stdlib: port to Solaris 2.6
[gnulib.git] / ChangeLog
1 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
2
3         stdlib: port to Solaris 2.6
4         Also, the code worked on Solaris 7 through 9 only by accident.
5         Problem reported by Tom G. Christensen in
6         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
7         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
8         simply include the system stdlib.h.
9         * lib/getopt.in.h (__need_system_stdlib_h):
10         * lib/pthread.in.h (__need_system_stdlib_h):
11         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
12         Define when including <stdlib.h>, to avoid problems at least for
13         the pthread case on Solaris 2.6 and 7.  These .h files can get by
14         with the system stdlib.h.
15
16 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
17
18         doc: update main copyright year
19         * doc/gnulib.texi: Update copyright date.
20
21         doc: improve ISO 8601 discussion
22         * doc/parse-datetime.texi (Combined date and time of day items):
23         Specify more carefully what formats are supported and what is
24         done with excess precision.
25
26 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
27
28         doc: avoid small caps
29         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
30         they're more trouble than they're worth.  Suggested by Karl Berry
31         in <http://bugs.gnu.org/13360>.
32
33         regex: conform to strict C
34         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
35         From Aharon Robbins.
36
37         gnulib-tool: fix incompatibility with autopoint 0.18.2
38         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
39         Problem reported by Tom G. Christensen in
40         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
41
42 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
43
44         fprintftime: bring back and reword fwrite comment
45         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
46
47         stdio: remove now-unnecessary stdio.c
48         Since stdio.in.h no longer uses inline functions, we no longer
49         need to compile the extern versions.
50         * lib/stdio.c: Remove.
51         * modules/stdio (Files): Remove lib/stdio.c.
52         (lib_SOURCES): Remove.
53
54         unicodeio: depend on stdio, not ignore-value
55         * lib/unicodeio.c: Do not include ignore-value.h.
56         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
57         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
58
59         fprintftime: depend on stdio, not ignore-value
60         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
61         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
62         since the stdio module arranges to silence that warning now.
63         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
64
65 2012-10-04  Simon Josefsson  <simon@josefsson.org>
66
67         stdint-tests: Fix expanded-before-required-warning.
68         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
69
70 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
71
72         fwrite: silence __wur only for older glibc versions
73         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
74         This will help us remove this workaround some time in the far future.
75
76 2013-01-03  Eric Blake  <eblake@redhat.com>
77
78         fwrite: silence __wur without using inline
79         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
80         just gcc, and in a way that avoids inline issues.
81         * modules/stdio (Depends-on): Drop extern-inline.
82
83 2013-01-03  Jim Meyering  <jim@meyering.net>
84
85         update-copyright: avoid copyright notice date corruption
86         Given a sequence of copyright year numbers in which the final
87         one was a two-digit number that happened to be a substring of
88         a preceding four-digit year number, we would mistakenly update
89         the substring (from two- to four-digit) rather than the two-digit
90         number at the end, which, combined with the addition of the current
91         4-digit year number would yield two 5-digit year numbers, e.g.,
92         here, it would convert the first "99" to "1999, 2013" rather than
93         the final one:
94           1991, 99
95           11999, 20131, 1999
96         * build-aux/update-copyright: Tighten a regexp.
97         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
98         Reported by Joseph Myers in
99         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
100
101 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
102
103         regex: omit needless signed-pointer casts
104         * lib/regcomp.c (build_charclass, build_charclass_op):
105         Use char *, not unsigned char *, for class name and extra.
106         The char values are always nonnegative so there's no need to
107         insist on unsigned char * here, and using char * removes the need
108         for casts.  Reported by Aharon Robbins in
109         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
110
111         regex: support Gawk, which never uses alloca
112         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
113         Do not include in this case.  Gawk doesn't supply a substitute
114         alloca.h and doesn't need one.
115
116         regex: port __libc_lock_define usage to C89
117         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
118         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
119         does not conform to C89, as it has an empty macro argument.
120         Reported by Aharon Robbins in
121         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
122
123 2013-01-01  Eric Blake  <eblake@redhat.com>
124
125         maint: update all copyright year number ranges
126         Run "make update-copyright".
127
128         version-etc: bump copyright year reported in --version
129         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
130
131 2012-12-31  Eric Blake  <eblake@redhat.com>
132
133         sigprocmask-tests: skip test if pid is unexpectedly large
134         * tests/test-sigprocmask.c (main): Add range check.
135
136         git-version-gen: avoid test -z portability glitch
137         * build-aux/git-version-gen: Prefer portable test spelling, since
138         git-version-gen is run on more than just developer machines.
139
140 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
141
142         git-version-gen: add --fallback option to use if git is not present
143         * build-aux/git-version-gen: Add support for the new option --fallback,
144         which comes into play when there is no $tarball_version_file and
145         git is not working.
146         (scriptversion): Update.
147
148         maint.mk: handle missing git with more grace
149         * top/maint.mk (no-submodule-changes, public-submodule-commit):
150         Quietly proceed if git is not present.
151
152 2012-12-31  Eric Blake  <eblake@redhat.com>
153
154         dup2: work around cygwin bug
155         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
156         * lib/dup2.c (rpl_dup2): Work around it.
157         * doc/posix-functions/dup2.texi (dup2): Document it.
158
159 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
160
161         regex: remove unnecessary dependency on localcharset.h
162         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
163         hasn't been needed for years.
164         * modules/regex (Depends-on): Remove localcharset.
165
166         regex: revert single-byte change
167         * lib/regexec.c (check_node_accept_bytes): Revert previous change
168         to this function.  This was alredy fixed in a different way, at
169         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
170         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
171         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
172
173         regex: simplify based on Gawk version
174         * lib/regex_internal.c (re_dfa_add_node): Simplify.
175         Reported by Aharon Robbins in
176         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
177
178 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
179
180         regex: check that pattern char is single-byte
181         Reported by Aharon Robbins in
182         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
183         * lib/regexec.c (check_node_accept_bytes):
184         Return 0 if the pattern string has a multibyte character here.
185
186         regex: implement rational ranges
187         Reported by Aharon Robbins in
188         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
189         * lib/regcomp.c (build_range_exp) [!_LIBC]:
190         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
191         Implement rational ranges.
192
193         regex: avoid redefining __wctype
194         Reported by Aharon Robbins in
195         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
196         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
197         #undef before defining.
198
199         regex: port to hosts where malloc (0) == NULL
200         Reported by Aharon Robbins in
201         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
202         * lib/regex_internal.c (re_node_set_alloc):
203         Don't assume that malloc (0) yields nonnull.
204         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
205         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
206         * modules/regex (Files): Add m4/eealloc.m4.
207
208         regex: port to C89
209         Reported by Aharon Robbins in
210         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
211         * lib/regcomp.c (init_word_char): Declaration before statement.
212
213         regex: merge glibc changes
214         Also, copy the license wording from glibc.  This simplifies
215         merging changes.  gnulib-tool will change the wording to GPL as
216         appropriate, when importing it to other packages.  The only
217         glibc change made since the last merge, which needs merging, is:
218         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
219         * lib/regex_internal.h (gettext): Remove use of INTUSE.
220
221         * users.txt: Add Emacs.
222
223         doc: omit mention of version when not needed
224         * doc/gnulib-intro.texi (Portability and Application Code):
225         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
226         Don't mention particular dates or versions when not necessary, so
227         that the documentation won't go out of date so quickly.
228
229         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
230
231 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
232
233         bootstrap: pass --force to autoreconf.
234         * build-aux/bootstrap (AUTORECONFFLAGS): New.
235         Add "--force" so that Automake's ylwrap and other such tools
236         be updated at each bootstrap invocation.
237         Use it.
238
239 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
240
241         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
242         The earlier patch forgot to update one of the #if conditions, causing
243         a problem on Debian testing i386 reported by Mats Erik Andersson
244         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
245         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
246         (__argp_fmtstream_puts, argp_fmtstream_puts)
247         (__argp_fmtstream_write, argp_fmtstream_write)
248         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
249
250         * doc/gnulib-readme.texi: Minor fixups.
251         (Portability guidelines): Modernize URLs.  Remove some repetition.
252         (Indent with spaces not TABs): Reword to avoid too-long lines.
253         Remove some '@ifset standalone' stuff that isn't used.
254
255         * doc/gnulib-readme.texi (Portability guidelines):
256         ctype.h, not ctime.h.
257
258         Correct name of POSIX.1-2001.
259         * doc/posix-functions/fgetc.texi (fgetc):
260         * doc/posix-functions/fgets.texi (fgets):
261         * doc/posix-functions/fread.texi (fread):
262         * doc/posix-functions/fscanf.texi (fscanf):
263         * doc/posix-functions/getc.texi (getc):
264         * doc/posix-functions/getchar.texi (getchar):
265         * doc/posix-functions/scanf.texi (scanf):
266         POSIX.1-2001, not POSIX-2001.
267
268         doc: move README into manual
269         * README: Move contents to new file doc/gnulib-readme.texi.
270         Replace with a one-line summary.
271         * doc/gnulib.texi (Brief Overview): New section,
272         with old intro preface.  Include gnulib-readme.texi for contents.
273         (Philosophy): Rename from "Introduction", since this
274         section no longer introduces the rest.  Write a new preface.
275         * doc/gnulib-readme.texi: New file, with the old contents of
276         README texinfo-ized.  This way, the README info appears
277         in the online and printed manual.
278
279 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
280
281         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
282         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
283         c_vasprintf() prototype.
284
285 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
286
287         c-vasprintf: Fix "empty declaration" warning reported by GCC.
288         * lib/c-vasprintf.h: Remove stray semicolon.
289
290 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
291
292         gettext: avoid obsolete macro AM_PROG_MKDIR_P
293         It is obsolete and is planned to be removed from Automake 1.14; see
294         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
295         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
296         (installdirs-data, installdirs-data-yes):
297         Use $(MKDIR_P), not $(mkdir_p).
298         * m4/intl.m4 (AM_INTL_SUBDIR):
299         * m4/po.m4 (AM_PO_SUBDIRS):
300         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
301
302 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
303
304         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
305         On this platform, we are not optimizing but we are using
306         the substitute for extern inlines, so compile as if
307         C99-style extern inline, or a substitute, is available.
308         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
309         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
310         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
311         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
312         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
313         Declare as ARGP_FS_EI, not as extern.
314         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
315         (__option_is_short, _option_is_end, __option_is_end)
316         [!_LIBC && __USE_EXTERN_INLINES]:
317         Declare as ARGP_EI, not as extern.
318
319 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
320
321         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
322         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
323         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
324         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
325         ...), as the latter is fatal with older Autoconfs.
326         Problem reported and fix suggested by Eric Blake in thread starting at
327         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
328
329 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
330
331         AC_PROG_MKDIR_P: don't workaround if not buggy
332         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
333         Define only for Autoconf versions before 2.62.
334         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
335         undocumented m4_PACKAGE_VERSION, for consistency with the
336         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
337         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
338         was introduced in 2.62.
339
340 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
341
342         New 'c-*printf' modules for formatted output in C locale.
343
344         New module 'c-vasnprintf'.
345         * modules/c-vasnprintf: New file.
346         * lib/c-vasnprintf.c: New file.
347         * lib/c-vasnprintf.h: New file.
348
349         New module 'c-snprintf'.
350         * modules/c-snprintf: New file.
351         * modules/c-snprintf-tests: New file.
352         * lib/c-snprintf.c: New file.
353         * lib/c-snprintf.h: New file.
354         * tests/test-c-snprintf.c: New file.
355         * tests/test-c-snprintf.sh: New file.
356
357         New module 'c-vsnprintf'.
358         * modules/c-vsnprintf: New file.
359         * modules/c-vsnprintf-tests: New file.
360         * lib/c-vsnprintf.c: New file.
361         * lib/c-vsnprintf.h: New file.
362         * tests/test-c-vsnprintf.c: New file.
363         * tests/test-c-vsnprintf.sh: New file.
364
365         New module 'c-vasprintf'.
366         * modules/c-vasprintf: New file.
367         * modules/c-vasprintf-tests: New file.
368         * lib/c-asprintf.c: New file.
369         * lib/c-vasprintf.c: New file.
370         * lib/c-vasprintf.h: New file.
371         * tests/test-c-vasprintf.c  +: New file.
372         * tests/test-c-vasprintf.sh: New file.
373
374         New module 'c-xvasprintf'.
375         * modules/c-xvasprintf: New file.
376         * modules/c-xvasprintf-tests: New file.
377         * lib/c-xasprintf.c: New file.
378         * lib/c-xvasprintf.c: New file.
379         * lib/c-xvasprintf.h: New file.
380         * tests/test-c-xvasprintf.c: New file.
381         * tests/test-c-xvasprintf.sh: New file.
382
383 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
384
385         argp: better 'inline'
386         Use extern-inline module to declare extern inline functions.
387         This avoids some bogus warning diagnostics.  Problem discovered
388         when modifying GNU tar to use the manywarnings module.
389         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
390         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
391         Define based on extern-inline.
392         * modules/argp (Depends-on): Add extern-inline.
393
394 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
395
396         filemode, sys_stat: Handle MPX files a la AIX.
397         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
398         * lib/sys_stat.in.h (S_ISMPX): New macro.
399         * tests/test-sys_stat.c: Add tests for MPX files.
400
401 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
402
403         x-to-1: honor $PERL
404         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
405         a chance to use his preferred version of Perl.  This is typically
406         required by Darwin users whose default /usr/bin/perl does not have all
407         the libraries required by help2man, and who need to use their MacPorts
408         installation of Perl instead.
409
410 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
411
412         gnu-web-doc-update: add all the new files, even in new directories
413         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
414         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
415         Use it.
416         (main): Don't use cvsutils to get the list of unknown files,
417         just add all the existing files and directories.
418
419 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
420
421         gnu-web-doc-update: improve --help
422         * build-aux/gnu-web-doc-update: Move comments into --help.
423
424 2012-12-07  Eric Wong  <normalperson@yhbt.net>
425
426         mountlist: recognize more "dummy" file systems
427         * lib/mountlist.c (ME_DUMMY_0):
428         Add these dummy FS names to the list:
429         - "debugfs" virtual filesystem for kernel debugging
430         - "devpts" PTY slave filesystem
431         - "devtmpfs" device filesystem on top of tmpfs/ramfs
432         - "fusectl" control filesystem for FUSE
433         - "mqueue" enumerates POSIX message queues
434         - "rpc_pipefs" kernel <-> userspace bridge for NFS
435         - "sysfs" is for exporting kernel objects
436         - "devfs" device filesystem for Linux 2.4 and FreeBSD
437
438 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
439
440         extern-inline: avoid incompatibility with Darwin Libc
441         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
442         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
443         Problem reported by Akim Demaille in
444         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
445
446 2012-12-11  Simon Josefsson  <simon@josefsson.org>
447
448         gnupload: Work with GnuPG using gpg-agent (for smartcards).
449         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
450         let it handle password prompting.
451
452 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
453
454         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
455         * lib/canonicalize.c (canonicalize_filename_mode):
456         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
457         fetching the current directory.  Don't overrun the beginning of
458         rpath if there's no slashes after the MS-Windows drive letter.
459
460 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
461
462         maint.mk: avoid extra forks
463         * top/maint.mk (_cfg_mk): The GNU make manual documents that
464         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
465         So use that instead of "$(shell test -f FILE && echo FILE)".
466
467 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
468
469         vasnprintf: fix ASCII_ONLY typo
470         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
471         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
472         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
473         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
474         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
475
476 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
477
478         list, oset, xlist, xoset: fix extern inline issue with C99
479         This was introduced by my recent changes for 'inline'.
480         Problem reported for gettext by Daiki Ueno in
481         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
482         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
483         (gl_list_nx_create, gl_list_size, gl_list_node_value)
484         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
485         (gl_list_previous_node, gl_list_get_at)
486         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
487         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
488         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
489         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
490         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
491         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
492         (gl_list_iterator_free, gl_sortedlist_search)
493         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
494         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
495         (gl_sortedlist_remove):
496         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
497         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
498         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
499         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
500         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
501         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
502         (gl_list_add_at, gl_sortedlist_add):
503         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
504         Wrap these extern decls inside "#if 0", because they are implemented
505         as inline functions, and extern inline is not what's wanted here.
506         It would simplify these .h files to remove the extern decls entirely,
507         although a downside would be less-clear separation between
508         specification and implementation.
509
510 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
511
512         sys_stat: no 'static inline'
513         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
514         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
515
516         extern-inline: no 'static inline'
517         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
518         Do not require AC_C_INLINE.
519         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
520         'static inline', for older compilers.
521
522         snippet/warn-on-use: no 'static inline'
523         * build-aux/snippet/warn-on-use.h:
524         Remove unnecessary 'inline' in comment.
525
526         rbtree-list, rbtreehash-list: no 'static inline'
527         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
528         * lib/gl_anytree_list2.h (node_at):
529         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
530         (gl_oset_first, add_nodes_to_buckets):
531         Now static, not static inline.
532
533         regex: no 'static inline'
534         * lib/regex_internal.c (calc_state_hash):
535         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
536         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
537         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
538         Now static, not static inline.
539         (inline) [__GNUC__ < 3 && _LIBC]:
540         Remove macro; no longer needed.
541
542         xvasprintf: no 'static inline'
543         * lib/xvasprintf.c (xstrcat):
544         Now static, not static inline.
545         * m4/xvasprintf.m4 (gl_XVASPRINTF):
546         Do not require AC_C_INLINE.
547
548         parse-datetime, parse-duration: no 'static inline'
549         * lib/parse-datetime.y (to_uchar):
550         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
551         (scale_n_add):
552         Now static, not static inline.
553         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
554         * modules/parse-duration (configure.ac):
555         Do not require AC_C_INLINE.
556
557         getaddrinfo: no 'static inline'
558         * lib/getaddrinfo.c (validate_family):
559         Now static, not static inline.
560         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
561         Do not require AC_C_INLINE.
562
563         ftruncate, fts, lstat, openat, raise: no 'static inline'
564         * lib/ftruncate.c (chsize_nothrow):
565         * lib/fts.c (opendirat, diropen):
566         * lib/lstat.c (orig_lstat):
567         * lib/openat.c (orig_openat):
568         * lib/raise.c (raise_nothrow):
569         Now static, not static inline.
570         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
571         * m4/fts.m4 (gl_FUNC_FTS_CORE):
572         * m4/lstat.m4 (gl_PREREQ_LSTAT):
573         * m4/openat.m4 (gl_PREREQ_OPENAT):
574         * m4/raise.m4 (gl_PREREQ_RAISE):
575         Do not require AC_C_INLINE.
576
577         fflush, stat: no 'static inline'
578         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
579         (clear_ungetc_buffer, disable_seek_optimization)
580         (restore_seek_optimization, update_fpos_cache):
581         * lib/stat.c (orig_stat):
582         Now static, not static inline.
583         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
584         (update_fpos_cache):
585         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
586         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
587         * m4/stat.m4 (gl_PREREQ_STAT):
588         Do not require AC_C_INLINE.
589
590         error, filevercmp: no 'static inline'
591         * lib/error.c (is_open, flush_stdout):
592         * lib/filevercmp.c (order):
593         Now static, not static inline.
594         * m4/error.m4 (gl_PREREQ_ERROR):
595         * modules/filevercmp (configure.ac):
596         Do not require AC_C_INLINE.
597
598         dup, execute, fatal-signal, etc.: no 'static inline'
599         * lib/dup.c (dup_nothrow):
600         * lib/execute.c (nonintr_close, nonintr_open):
601         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
602         * lib/fopen.c (orig_fopen):
603         * lib/freadseek.c (freadptrinc):
604         * lib/freopen.c (orig_freopen):
605         * lib/fstat.c (orig_fstat, fstat_nothrow):
606         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
607         (get_rusage_as_via_iterator):
608         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
609         * lib/getdtablesize.c (_setmaxstdio_nothrow):
610         * lib/isatty.c (_isatty_nothrow):
611         * lib/open.c (orig_open):
612         * lib/read.c (read_nothrow):
613         * lib/sigprocmask.c (signal_nothrow):
614         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
615         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
616         * lib/wait-process.c (unregister_slave_subprocess):
617         * lib/write.c (write_nothrow):
618         Now static, not static inline.
619         * lib/spawn-pipe.c (nonintr_open): Define only if
620         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
621         * m4/dup.m4 (gl_PREREQ_DUP):
622         * m4/execute.m4 (gl_EXECUTE):
623         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
624         * m4/fopen.m4 (gl_PREREQ_FOPEN):
625         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
626         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
627         * m4/fstat.m4 (gl_PREREQ_FSTAT):
628         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
629         * m4/isatty.m4 (gl_PREREQ_ISATTY):
630         * m4/open.m4 (gl_PREREQ_OPEN):
631         * m4/read.m4 (gl_PREREQ_READ):
632         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
633         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
634         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
635         * m4/wait-process.m4 (gl_WAIT_PROCESS):
636         * m4/write.m4 (gl_PREREQ_WRITE):
637         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
638         Do not require AC_C_INLINE.
639
640         c-strtod, memcoll, readutmp: no 'static inline'
641         * lib/c-strtod.c (c_locale):
642         * lib/memcoll.c (strcoll_loop):
643         * lib/readutmp.c (desirable_utmp_entry):
644         Now static, not static inline.
645         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
646         * m4/memcoll.m4 (gl_MEMCOLL):
647         * m4/readutmp.m4 (gl_READUTMP):
648         Do not require AC_C_INLINE.
649
650         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
651         * lib/arctwo.c (to_uchar):
652         * lib/md4.c (set_uint32):
653         * lib/md5.c (set_uint32):
654         * lib/sha1.c (set_uint32):
655         * lib/sha256.c (set_uint32):
656         * lib/sha512.c (set_uint64):
657         Now static, not static inline.  This is a bit simpler, and doesn't
658         affect performance with GCC and default optimization.
659         * m4/arctwo.m4 (gl_ARCTWO):
660         * m4/md4.m4 (gl_MD4):
661         * m4/md5.m4 (gl_MD5):
662         * m4/sha1.m4 (gl_SHA1):
663         * m4/sha256.m4 (gl_SHA256):
664         * m4/sha512.m4 (gl_SHA512):
665         Do not require AC_C_INLINE.
666
667         cond, lock, thread: better 'inline'
668         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
669         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
670         New macros.  Use them instead of static inline, for header functions.
671         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
672         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
673         * lib/glthread/lock.c (gl_waitqueue_init)
674         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
675         * lib/glthread/thread.c (get_current_thread_handle):
676         Change 'static inline' to 'inline'.
677         * lib/glthread/cond.h, lib/glthread/thread.h:
678         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
679         * m4/cond.m4 (gl_COND):
680         * m4/lock.m4 (gl_PREREQ_LOCK):
681         * m4/thread.m4 (gl_THREAD):
682         Do not require AC_C_INLINE.
683         * modules/cond, modules/thread (Depends-on): Add extern-inline.
684
685         chdir-long, cycle-check, savewd: better 'inline'
686         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
687         (find_non_slash):
688         * lib/cycle-check.c (is_zero_or_power_of_two):
689         * lib/savewd.c (savewd_delegating):
690         Change 'static inline' to 'inline'.
691         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
692         Replace all remaining uses of 'static inline' with it.
693         * lib/savewd.h:
694         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
695         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
696         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
697         * m4/savewd.m4 (gl_SAVEWD):
698         Do not require AC_C_INLINE.
699         * modules/savewd (Depends-on): Add extern-inline.
700
701         base32, base64: no need for 'inline'
702         * lib/base32.c (to_uchar, get_8, decode_8):
703         * lib/base64.c (to_uchar, get_4, decode_4):
704         Change 'static inline' to 'inline'.
705         * m4/base32.m4 (gl_PREREQ_BASE32):
706         * m4/base64.m4 (gl_PREREQ_BASE64):
707         Do not require AC_C_INLINE.
708
709         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
710         * lib/gl_array_oset.c (gl_array_nx_add_at):
711         (gl_array_remove_at):
712         * lib/gl_linkedhash_list.c (hash_resize_after_add)
713         (add_to_bucket, remove_from_bucket):
714         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
715         Change 'static inline' to 'static', as it's simpler to omit
716         'inline' unless there's a significant performance advantage.
717
718         list, oset, xlist, xoset, xsublist: simplify via extern inline
719         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
720         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
721         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
722         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
723         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
724         New macro.  Replace all uses of 'static inline' with it.
725         [HAVE_INLINE]: Implement functions as *_INLINE functions,
726         instead of as macros FOO that are defined to static inline
727         functions FOO_inline.
728         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
729         * lib/gl_xsublist.c:
730         Reimplement from scratch, by defining the corresponding *_INLINE
731         macro and including the corresponding .h file.  This is simpler.
732         * modules/list, modules/oset, modules/xlist, modules/xoset:
733         (Files): Remove m4/gl_list.m4.
734         (configure.ac): Remove gl_LIST.
735         * m4/gl_list.m4: Remove.
736         * modules/list, modules/oset, modules/xlist, modules/xoset:
737         * modules/xsublist:
738         (Depends-on): Depend on extern-inline, not inline.
739
740         xalloc: better 'inline'
741         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
742         New macro.  Replace all uses of 'static inline' with it.
743         (static_inline): Remove.
744         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
745         Let 'extern inline' do the work automatically, instead of doing
746         it by hand.
747         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
748         Remove.  All uses removed.
749         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
750
751         gethrxtime: better 'inline'
752         * lib/xtime.c: New file.
753         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
754         * lib/xtime.h (XTIME_INCLUDE):
755         New macros.  Replace all uses of 'static inline' with them.
756         * lib/gethrxtime.c (gethrxtime): Define only if
757         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
758         this source file is now always compiled, because of the extern inline.
759         * lib/gethrxtime.h, lib/xtime.h:
760         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
761         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
762         if gethrtime works, as they're not needed in that case.
763         (gl_XTIME): Do not require AC_C_INLINE.
764         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
765         compiled now.  Move the check into gl_GETHRXTIME.
766         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
767         (Depends-on): Add extern-inline.
768         (configure.ac): gethrxtime is always compiled now.
769         (lib_SOURCES): Add gethrxtime.c.
770
771         wctype-h: better 'inline'
772         * lib/wctype-h.c: New file.
773         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
774         New macro.  Replace all uses of 'static inline' with it.
775         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
776         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
777         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
778         (Depends-on): Add extern-inline.
779
780         unistd: better 'inline'
781         * lib/unistd.c: New file.
782         * lib/unistd.in.h (_GL_UNISTD_INLINE):
783         New macro.  Replace all uses of 'static inline' with it.
784         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
785         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
786         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
787         (Depends-on): Add extern-inline.
788
789         sys_socket: better 'inline'
790         * lib/sys_socket.c: New file.
791         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
792         New macro.  Replace all uses of 'static inline' with it.
793         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
794         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
795         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
796         (Depends-on): Add extern-inline.
797
798         stdio: better 'inline'
799         * lib/stdio.c: New file.
800         * lib/stdio.in.h (_GL_STDIO_INLINE):
801         New macro.  Replace all uses of 'static inline' with it.
802         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
803         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
804         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
805         (Depends-on): Add extern-inline.
806
807         sigaction: better 'inline'
808         * lib/sig-handler.c: New file.
809         * lib/sig-handler.h (SIG_HANDLER_INLINE):
810         New macro.  Replace all uses of 'static inline' with it.
811         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
812         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
813         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
814         (Depends-on): Add extern-inline.
815
816         selinux-h: better 'inline'
817         * lib/se-context.c, lib/se-selinux.c: New files.
818         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
819         * lib/se-context.in.h (SE_CONTEXT_INLINE):
820         New macro.  Replace all uses of 'static inline' with it.
821         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
822         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
823         New macro.  Replace all uses of 'static inline' with it.
824         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
825         * modules/selinux-h (Files, lib_SOURCES):
826         Add lib/se-context.c, lib/se-selinux.c.
827         (Depends-on): Add extern-inline.
828         (configure.ac): Do not require AC_C_INLINE.
829
830         pthread: better 'inline'
831         * lib/pthread.c: New file.
832         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
833         New macro.  Replace all uses of 'static inline' with it.
834         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
835         * m4/pthread.m4 (gl_PTHREAD_CHECK):
836         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
837         * modules/pthread (Files): Add lib/pthread.c.
838         (Depends-on): Add extern-inline.
839
840         math: better 'inline'
841         * lib/math.c: New file.
842         * lib/math.in.h (_GL_MATH_INLINE):
843         New macro.  Replace all uses of 'static inline' with it.
844         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
845         * m4/math_h.m4 (gl_MATH_H):
846         Do not require AC_C_INLINE.
847         * modules/math (Files, lib_SOURCES):
848         Add lib/math.c.
849         (Depends-on): Add extern-inline.
850
851         count-one-bits: better 'inline'
852         * lib/count-one-bits.c: New file.
853         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
854         New macro.  Replace all uses of 'static inline' with it.
855         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
856         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
857         Do not require AC_C_INLINE.
858         * modules/count-one-bits (Files, lib_SOURCES):
859         Add lib/count-one-bits.c.
860         (Depends-on): Add extern-inline.
861
862         count-leading-zeros: better 'inline'
863         * lib/count-leading-zeros.c: New file.
864         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
865         New macro.  Replace all uses of 'static inline' with it.
866         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
867         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
868         Do not require AC_C_INLINE.
869         * modules/count-leading-zeros (Files, lib_SOURCES):
870         Add lib/count-leading-zeros.c.
871         (Depends-on): Add extern-inline.
872
873         bitrotate: better 'inline'
874         * lib/bitrotate.c: New file.
875         * lib/bitrotate.h (BITROTATE_INLINE):
876         New macros.
877         Replace all uses of 'static inline' with them.
878         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
879         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
880         (Depends-on): Add extern-inline.
881         (configure.ac): Do not require AC_C_INLINE.
882
883 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
884
885         maint.mk: avoid gratuitous failure
886         Reported by Stefano Lattarini in
887         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
888         * top/maint.mk (public-submodule-commit): Quote more safely.
889
890 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
891
892         canonicalize, canonicalize-lgpl: support MS-Windows file names
893         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
894         for test cases, which it'd be nice to add at some point.
895         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
896         * lib/canonicalize.c (canonicalize_filename_mode):
897         * lib/canonicalize-lgpl.c (__realpath):
898         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
899         slash is at the beginning of the file name.  Use ISSLASH, instead
900         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
901         the first character with '/'.  Test for
902         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
903         with a drive letter.
904         * lib/canonicalize.c (SLASHES): New macro.
905         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
906
907 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
908
909         fts: introduce FTS_VERBATIM
910         * lib/fts_.h (FTS_VERBATIM): New bit flag.
911         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
912         * lib/fts.c (fts_open): Honor it.
913
914 2012-11-09  Pádraig Brady  <P@draigBrady.com>
915
916         getlogin-tests: allow errno == ENXIO
917         * tests/test-getlogin.c (main): Skip tests if getlogin fails
918         with errno == ENXIO (No controlling tty).
919         getlogin_r-tests: Likewise. Also allow errno == ENOENT
920         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
921         with errno == ENOENT.  This was reported to happen in various
922         situations on GNU/Linux.
923
924 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
925
926         getlogin-tests: allow errno == ENOENT
927         * tests/test-getlogin.c (main): Skip tests if getlogin fails
928         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
929         when running a test in an Emacs shell buffer.
930
931 2012-11-08  Jim Meyering  <jim@meyering.net>
932
933         tests/nap.h: avoid warning about unused variable
934         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
935
936         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
937         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
938         white space before each of the special-cased file names, to avoid
939         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
940         in http://bugs.gnu.org/12830.
941
942 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
943
944         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
945         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
946         fails with errno == EBADF when fd is opened with O_PATH.
947         Reported by Jim Meyering in
948         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
949         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
950         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
951
952 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
953
954         test-utimens: speed up by taking shorter naps
955         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
956         New functions.
957         (nap): Use them, to do a better job of guessing the delay.
958         On Fedora 17 with ext4 atop md atop hard disks, this made
959         test-utimens run 10x faster, because the test napped for
960         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
961         <http://bugs.gnu.org/12820#11>.
962
963 2012-11-07  Jim Meyering  <jim@meyering.net>
964
965         mountlist.c: fix a compilation failure
966         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
967         I introduced while transforming commit v0.0-7683-g613bcb6
968
969 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
970
971         errno: port to LynxOS 178 2.2.2
972         Problem reported by Joel Brobecker in
973         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
974         * doc/posix-headers/errno.texi (errno.h): Document this.
975         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
976         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
977         Supply a string for EILSEQ.
978         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
979
980 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
981
982         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
983         Linux kernel 2.6.39 introduced O_PATH (see
984         <http://lwn.net/Articles/433854/>) and this is a better fallback
985         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
986         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
987         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
988         * lib/fcntl.in.h (O_ACCMODE):
989         * tests/test-fcntl-h.c (main):
990         Do not reject O_ACCMODE merely because it has more than the
991         minimal number of bits, as POSIX allows extensions here.
992
993 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
994
995         mountlist: do not classify a bind-mounted dir entry as "dummy"
996         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
997         the "none"-testing clause.
998         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
999         exception for bind-mounted directories.
1000
1001 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
1002
1003         quote: provide a means to escape strings with nul characters
1004         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
1005         (quote, quote_n): Rename formal arguments for consistency with
1006         quotearg.
1007
1008 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
1009
1010         test-raise: don't assume 199 is an invalid signal
1011         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
1012
1013         sh-quote-tests: port to Solaris 9
1014         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
1015         Problem reported by Dagobert Michelsen in
1016         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
1017
1018 2012-10-28  Jim Meyering  <jim@meyering.net>
1019
1020         maint.mk: rename a new configurable variable
1021         * top/maint.mk (_gl_translatable_string_re): Rename from
1022         translation-markers: _gl_ prefix to insulate from user Makefile code,
1023         and the _re suffix to inform that it's a regular expression.
1024
1025 2012-10-26  Eric Blake  <eblake@redhat.com>
1026
1027         maint.mk: let packages tweak sc_po_check pattern
1028         * top/maint.mk (sc_po_check): Add translation-markers, to allow
1029         finding files with other translation markers.
1030
1031 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1032
1033         euidaccess: speed up 'configure' on GNU hosts
1034         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
1035         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
1036         it's needed only in this case.  Use AC_CHECK_DECLS, not
1037         AC_CHECK_DECLS_ONCE.
1038         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
1039         or AC_REQUIRE for AC_FUNC_GETGROUPS.
1040
1041         * lib/regexec.c (re_search_internal): Fix grammar in comment.
1042
1043 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1044
1045         fchmodat, fchownat, fstatat: port to non-inlining compilers
1046         Problem reported for FreeBSD 9 by Jim Meyering in
1047         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
1048         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
1049         New files, which define FCHMODAT_INLINE etc.
1050         * lib/fchmodat.c (FCHMODAT_INLINE):
1051         * lib/fchownat.c (FCHOWNAT_INLINE):
1052         * lib/fstatat.c (FSTATAT_INLINE):
1053         Remove, as chmodat.c etc. now do this.
1054         * modules/fchmodat (Files): Add lib/chmodat.c.
1055         * modules/fchownat (Files): Add lib/chownat.c.
1056         * modules/fstatat (Files): Add lib/statat.c.
1057
1058 2012-10-15  Jim Meyering  <jim@meyering.net>
1059
1060         fchmodat.c, fchownat.c: compile-impeding typos
1061         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
1062         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
1063         Introduced in commit v0.0-7636-gd202279.
1064
1065 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1066
1067         fcntl-h: support GNU flags like O_IGNORE_CTTY
1068         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
1069         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
1070         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
1071         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
1072         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
1073         Define to 0 if not already defined.
1074         * tests/test-fcntl-h.c: Test these new flags.
1075
1076 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1077
1078         faccessat, etc.: support AT_FDCWD-only use
1079         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
1080         this function only if its first argument is AT_FDCWD.
1081         Emacs wants faccessat for AT_EACCESS but not for any first-arg
1082         values other than AT_FDCWD, so it doesn't want all the openat
1083         machinery with fchdir etc.
1084         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
1085         * modules/fstatat, modules/mkdirat, modules/openat (Files):
1086         * modules/unlinkat (Files):
1087         Remove lib/openat-priv.h, as at-internal supplies this file.
1088         Removing this file here allows us to support programs like Emacs
1089         that avoid at-internal.
1090
1091         faccessat: speed up 'configure' on mainstream hosts
1092         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
1093         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
1094         since it's only on unusual platforms that we need to check for
1095         'access', and it's better not to slow 'configure' down on all
1096         platforms.
1097
1098         faccessat: port to Solaris 10
1099         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
1100         Needed on Solaris 10, which doesn't have AT_EACCESS,
1101         so we need the Gnulib fcntl.h, which defines it.
1102
1103 2012-10-14  Pádraig Brady  <P@draigBrady.com>
1104         canonicalize: fix C89 compilation
1105         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
1106         declarations so C89 is supported.  Also remove the comment
1107         referencing memorty allocation as the suggested feature could
1108         not be implemented as suggested.
1109         Reported by Michael Goffioul.
1110
1111 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
1112
1113         group-member: omit unnecessary dependencies
1114         This is for Emacs, which has its own allocator and where we
1115         don't want to use xalloc.
1116         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
1117         since we no longer use xmalloc.  Do not include stdbool.h, since
1118         the changes below happen to remove the only use of bool.
1119         (GROUPBUF_SIZE): New constant.
1120         (struct group_info): Remove n_groups member.  Add groupbuf member.
1121         This lets us get the groups without using malloc, usually.
1122         (free_group_info, get_group_info): Adjust to this.
1123         (get_group_info): Return the number of groups found, or -1 on error.
1124         Use plain malloc not xmalloc, and treat its failure as if there
1125         are no groups, as the user already loses in case of error.
1126         (group_member): Simplify, based on changes to get_group_info.
1127         * modules/group-member (Depends-on): Remove dependencies on
1128         xalloc and stdbool.  Add dependency on xalloc-oversized.
1129
1130 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
1131
1132         gethrxtime: port to C++
1133         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
1134
1135 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1136
1137         ptsname: fix macro-name typo
1138         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
1139
1140 2012-10-03  Simon Josefsson  <simon@josefsson.org>
1141
1142         inttostr: Relax license.
1143         * modules/inttostr (License): Change from LGPL to LGPLv2+.
1144
1145 2012-10-03  Eric Blake  <eblake@redhat.com>
1146
1147         ptsname_r: support ptys returned by FreeBSD posix_openpt
1148         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
1149         lives in /dev/pts/.
1150
1151 2012-10-02  Eric Blake  <eblake@redhat.com>
1152
1153         pselect: reject invalid file descriptors
1154         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
1155         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
1156         * modules/pselect (Depends-on): Add dup2.
1157         * doc/posix-functions/pselect.texi (pselect): Document this.
1158
1159         select: reject invalid file descriptors
1160         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
1161         * lib/select.c (rpl_select) [!win32]: Work around it.
1162         * modules/select (Depends-on): Add dup2.
1163         * doc/posix-functions/select.texi (select): Document this.
1164
1165         select: enhance test
1166         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
1167         New functions.
1168         (test_function): Enhance test.
1169         (do_select_bad_fd): Avoid any stale errno values.
1170
1171         ptsname: reject invalid file descriptors
1172         http://www.austingroupbugs.net/view.php?id=503
1173         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
1174         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
1175         * modules/stdlib (Makefile.am): Replace witness.
1176         * lib/stdlib.in.h (ptsname): Allow for replacement.
1177         * modules/ptsname (configure.ac): Trigger replacement.
1178         * doc/posix-functions/ptsname.texi (ptsname): Document this.
1179
1180 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
1181
1182         hash-pjw-bare: new module
1183         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
1184         * lib/hash-pjw-bare.h: Likewise.
1185         * modules/hash-pjw-bare: New file.
1186         * MODULES.html.sh (Misc): Add it.
1187
1188 2012-10-02  Eric Blake  <eblake@redhat.com>
1189
1190         manywarnings: cater to more gcc infelicities
1191         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
1192         -Wuninitialized without -O.
1193
1194 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
1195
1196         select, poll tests: Make setsockopt invocation effective.
1197         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
1198         the bind() call.
1199         * tests/test-select.h (open_server_socket): Likewise.
1200
1201 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
1202
1203         sockets, sys_stat: restore AC_C_INLINE
1204         This undoes the 2012-09-22 patch.
1205         * m4/sockets.m4 (gl_SOCKETS):
1206         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1207         Restore AC_C_INLINE, since MSVC requires __inline or _inline
1208         and does not support plain 'inline'.  Reported by Bruno Haible in
1209         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
1210
1211 2012-09-30  Bruno Haible  <bruno@clisp.org>
1212
1213         localeconv tests: Avoid test failure on OpenIndiana.
1214         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
1215         skip the 'grouping' and 'mon_grouping' tests.
1216         Reported by Jim Meyering.
1217
1218 2012-09-30  Bruno Haible  <bruno@clisp.org>
1219
1220         havelib: Follow libtool developments.
1221         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
1222         Suggested by Simon Josefsson.
1223
1224 2012-09-29  Jim Meyering  <meyering@redhat.com>
1225
1226         fstatat.c: fix a compile-impeding typo
1227         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
1228         Introduced in commit v0.0-7636-gd202279.
1229         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
1230
1231 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
1232
1233         extern-inline: provide a -Wundef safe config.h
1234         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
1235         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
1236         to produce a -Wundef warning free config.h.
1237
1238 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1239
1240         hash-pjw: relax license to LGPLv2+
1241         * modules/hash-pjw (License): Relax, with consent of author.
1242
1243 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1244
1245         maint.mk: fix strict vs. lazy variable issues with RELEASE
1246         * top/maint.mk (_equal): New function.
1247         (member_check): Strip the result to avoid spurious spaces.
1248         (url_dir_list): Do not use ifeq, which is strict, as it will
1249         require RELEASE_TYPE to be defined.
1250         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
1251         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
1252         (announcement_Cc_alpha,announcement_mail_headers_alpha)
1253         (announcement_Cc_beta,announcement_mail_headers_beta)
1254         (announcement_Cc_stable,announcement_mail_headers_stable): these.
1255         (release): Do not depend on $(release-type), as it forces its
1256         evaluation.  Bounce to it.
1257
1258 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1259
1260         maint.mk: formatting changes
1261         * top/maint.mk: Indent bodies of if's.
1262
1263 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
1264
1265         maint.mk: factor the validation of RELEASE_TYPE
1266         With help from Jim Meyering.
1267         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
1268         * top/maint.mk (_empty, _sp): Move their definition earlier.
1269         (member-check, release-type): New.
1270         Use the latter instead of $(RELEASE_TYPE).
1271         Remove now useless local checks.
1272
1273 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1274
1275         maint.mk: provide "make upload" to ease uploading
1276         See
1277         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
1278         Do not depend simply on the current $(VERSION), as there may have been
1279         new commits since the tarball generation.  Rather, rely on $(RELEASE),
1280         as "make release-commit" already does.
1281
1282         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
1283         "make TYPE".
1284
1285         * top/maint.mk (upload_command, upload, release): New.
1286         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
1287         (VERSION): first word of $(RELEASE) is always right.
1288         (emit_upload_commands): Adjust.
1289         * top/README-release: Update.
1290
1291 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1292
1293         maint.mk: silent rules
1294         With help from Stefano Lattarini.
1295         * top/maint.mk (writable-files): Use $(AM_V_GEN).
1296         (announcement): Use $(AM_V_at).
1297
1298 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1299
1300         localename: port gl_locale_name_thread_unsafe to FreeBSD
1301         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
1302         and use the simpler FreeBSD implementation on Mac OS X as well.
1303         Original idea suggested by Ed Maste in
1304         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
1305
1306 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1307
1308         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
1309         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
1310         * lib/mbuiter.c, lib/xsize.c: New files.
1311         * lib/binary-io.h (BINARY_IO_INLINE):
1312         * lib/eealloc.h (EEALLOC_INLINE):
1313         * lib/mbfile.h (MBFILE_INLINE):
1314         * lib/mbiter.h (MBITER_INLINE):
1315         * lib/mbuiter.h (MBUITER_INLINE):
1316         * lib/xsize.h (XSIZE_INLINE):
1317         New macros.
1318         Replace all uses of 'static inline' with them.
1319         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1320         * m4/eealloc.m4 (gl_EEALLOC):
1321         * m4/mbfile.m4 (gl_MBFILE):
1322         * m4/mbiter.m4 (gl_MBITER):
1323         * m4/xsize.m4 (gl_XSIZE):
1324         Do not require AC_C_INLINE.
1325         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
1326         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
1327         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
1328         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
1329         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
1330         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
1331         * modules/binary-io, modules/eealloc, modules/mbfile:
1332         * modules/mbiter, modules/mbuiter:
1333         (Depends-on): Add extern-inline.
1334
1335         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
1336         * lib/pipe-filter-aux.c: New file.
1337         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
1338         Replace all uses of 'static inline' with it.
1339         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1340         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
1341         (filter_retcode): No real need for inline here.
1342         * modules/pipe-filter-gi, modules/pipe-filter-ii:
1343         (Files): Add lib/pipe-filter-aux.c.
1344         (Depends-on): Add extern-inline.
1345         (configure.ac): Do not require AC_C_INLINE.
1346         (lib_SOURCES): Add pipe-filter-aux.c.
1347
1348         fdutimensat: omit unnecessary AC_C_INLINE
1349         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
1350
1351         fchmodat, fchownat, fstatat: use extern-inline
1352         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
1353         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
1354         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
1355         New macros.
1356         * lib/openat.h:
1357         Replace all uses of 'static inline' with them.
1358         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1359         * modules/fchmodat, modules/fchownat, modules/fstatat:
1360         * modules/openat-h:
1361         (Depends-on):
1362         Add extern-inline.
1363         (configure.ac): Remove AC_C_INLINE.
1364
1365         acl, mbchar, priv-set: use extern-inline
1366         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
1367         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
1368         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
1369         New macros.
1370         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
1371         Replace all uses of 'static inline' with it.
1372         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1373         * m4/acl.m4 (gl_FUNC_ACL):
1374         * m4/mbchar.m4 (gl_MBCHAR):
1375         * m4/priv-set.m4 (gl_PRIV_SET):
1376         Remove AC_C_INLINE, since 'inline' is no longer used directly.
1377         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
1378         Add extern-inline.
1379
1380         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
1381         * m4/sockets.m4 (gl_SOCKETS):
1382         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1383         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
1384         environments where it's already guaranteed to work, so we needn't
1385         check for it at 'configure'-time.
1386
1387         tls-tests: omit unnecessary 'inline'
1388         * tests/test-tls.c (perhaps_yield): No longer inline.
1389         Simplicity and portability trump efficiency in test cases.
1390
1391         utimens-tests: avoid unnecessary 'inline'
1392         * modules/fdutimensat-tests (configure.ac):
1393         * modules/futimens-tests (configure.ac):
1394         * modules/utimens-tests (configure.ac):
1395         * modules/utimensat-tests (configure.ac):
1396         Remove AC_C_INLINE.
1397         * tests/test-utimens-common.h (ctime_compare):
1398         No longer inline.  Simplicity and portability trump efficiency here.
1399
1400         misc: don't limit commentary to inline functions
1401         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
1402         * lib/xalloc-oversized.h, lib/xsize.h:
1403         Contrast macros to functions in general, not just to inline functions,
1404         when the commentary does not apply only to inline functions.
1405
1406 2012-09-20  Jim Meyering  <meyering@redhat.com>
1407
1408         non-recursive-gnulib-prefix-hack: new module
1409         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
1410         the file that originated in Bison.
1411         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
1412         largely copied from a snippet that resided in bison's configure.ac.
1413         * modules/non-recursive-gnulib-prefix-hack: New file.
1414         * MODULES.html.sh (Support for maintaining and releasing projects):
1415         Add it.
1416
1417 2012-09-18  Jim Meyering  <meyering@redhat.com>
1418
1419         maint.mk: generalize _gl_tight_scope for non-recursive make
1420         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
1421         that *.h would describe additional .h files in the directory
1422         specified by $(_gl_TS_dir).  I.e., add this...
1423         (_gl_TS_other_headers): New variable.
1424
1425         maint.mk: exempt trailing blanks found in "binary" files
1426         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
1427         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
1428         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1429
1430 2012-09-17  Jim Meyering  <meyering@redhat.com>
1431
1432         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
1433         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
1434         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
1435         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1436
1437 2012-09-17  Jim Meyering  <meyering@redhat.com>
1438
1439         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
1440         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
1441         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
1442         It is not in the same category as "exit (0)" or "exit (1)", and
1443         besides, I know of no symbolic name for that 77.  Reported by
1444         Richard W.M. Jones in
1445         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1446
1447 2012-09-17  Jim Meyering  <meyering@redhat.com>
1448
1449         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
1450         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
1451         all uses of #define, not just those that start in column 1.
1452         Richard W.M. Jones reported a false positive in
1453         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1454
1455 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1456
1457         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
1458         * lib/localcharset.c (locale_charset) [DARWIN7]:
1459         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
1460         as these two values are incompatible.  Problem reported by Max Horn.
1461         For more discussion, please see
1462         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
1463
1464         doc: document sticky-EOF issue
1465         * doc/posix-functions/fgetc.texi (fgetc):
1466         * doc/posix-functions/fgets.texi (fgets):
1467         * doc/posix-functions/fread.texi (fread):
1468         * doc/posix-functions/fscanf.texi (fscanf):
1469         * doc/posix-functions/getc.texi (getc):
1470         * doc/posix-functions/getchar.texi (getchar):
1471         * doc/posix-functions/scanf.texi (scanf):
1472         Mention that glibc and default Solaris do not conform to
1473         C99 and POSIX-2001 or later, with respect to how getchar
1474         etc. behave when feof reports nonzero.
1475
1476 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1477
1478         poll: fix poll(0, NULL, msec)
1479         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
1480         but nfd is 0.  In that case poll should behave like select.
1481
1482 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1483             Paolo Bonzini <bonzini@gnu.org>
1484
1485         poll: fix for systems that can't recv() on a non-socket
1486         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
1487         is readable.  In this case POLLHUP will not be supported.
1488         * doc/posix-functions/poll.texi: Document this.
1489
1490 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
1491
1492         poll/select: document portability problems not fixed by Gnulib.
1493         * doc/posix-functions/poll.texi: poll does not work well on
1494         pipes under Windows.  It has the same limitations as select on
1495         BeOS.
1496         * doc/posix-functions/select.texi: select does not work well
1497         on pipes under Windows.
1498
1499 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1500
1501         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
1502         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
1503         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
1504         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
1505
1506 2012-09-06  Eric Blake  <eblake@redhat.com>
1507
1508         net_if: give more details about the bug being fixed
1509         * doc/posix-headers/net_if.texi: Add clarification.
1510
1511 2012-09-05  Eric Blake  <eblake@redhat.com>
1512
1513         net_if: new module
1514         * modules/net_if: New module, borrowing ideas from netinet_in.
1515         * m4/net_if_h.m4: New file.
1516         * lib/net_if.in.h: Likewise.
1517         * doc/posix-headers/net_if.texi (net/if.h): Document it.
1518         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1519         * tests/test-net_if.c: Make function checks conditional.
1520         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
1521
1522 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
1523
1524         readutmp: fix non-portable UT_PID use
1525         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
1526         Use `UT_PID (u) > 0' as absolute condition.
1527
1528 2012-09-04  Jim Meyering  <meyering@redhat.com>
1529
1530         fts: reduce two or more trailing spaces to just one, usually
1531         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
1532         or more slashes, trim all but the final one.  But if a name consists
1533         solely of two slashes, don't modify it.  If it consists solely of
1534         three or more slashes, strip all but one.
1535
1536         This is part of the solution to a minor problem with rm:
1537         it would print a bogus ELOOP diagnostic when failing to remove
1538         the slash-decorated name of a symlink-to-directory:
1539
1540             $ mkdir d && ln -s d s && env rm -r s/
1541             rm: cannot remove 's': Too many levels of symbolic links
1542
1543         With the change below and a trivial don't-trim-trailing-slashes
1544         adjustment to remove.c, it does this:
1545
1546             $ env rm -r s/
1547             rm: cannot remove 's/': Not a directory
1548
1549         Improved by: Eric Blake
1550
1551         fts: when there is no risk of overlap, use memcpy, not memmove
1552         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
1553
1554 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
1555
1556         stdbool: be more compatible with mixed C/C++ compiles
1557         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
1558         Define to bool, true, false, respectively, as GCC's builtin
1559         stdbool.h does.  Problem reported by Michael Goffioul in
1560         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
1561
1562 2012-08-28  Jim Meyering  <meyering@redhat.com>
1563
1564         revert last change: it was not needed
1565         * tests/test-vc-list-files-git.sh: There's already a test for
1566         a working git, just below.
1567
1568 2012-08-28  Jim Meyering  <meyering@redhat.com>
1569
1570         tests: test-vc-list-files-git.sh: skip if git is not available
1571         * tests/test-vc-list-files-git.sh: Skip this test when git is
1572         not available.
1573
1574 2012-08-26  Bruno Haible  <bruno@clisp.org>
1575
1576         gnulib-tool: Remove no-op option --no-changelog.
1577         * gnulib-tool (func_usage): Don't mention --no-changelog.
1578         (do_changelog): Remove variable.
1579         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1580
1581 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1582
1583         doc: remove fdl-1.2.texi
1584         It is no longer used or maintained, and its use of @acronym
1585         is problematic.  See the thread containing
1586         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
1587         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
1588         * doc/old-licenses/fdl-1.2.texi: Remove.
1589
1590         execinfo: port to FreeBSD
1591         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
1592         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
1593         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
1594         * modules/execinfo (Link): Add $(LIB_EXECINFO).
1595
1596 2012-08-23  Jim Meyering  <meyering@redhat.com>
1597
1598         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
1599         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
1600         to placate gcc's -Wold-style-declaration.
1601
1602 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1603
1604         doc: do not use @acronym
1605         * doc/inet_ntoa.texi (inet_ntoa):
1606         * doc/parse-datetime.texi (Seconds since the Epoch)
1607         (Specifying time zone rules):
1608         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
1609         Don't use @acronym.  Problem reported by John Darlington in
1610         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
1611
1612 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1613
1614         stdnoreturn: port to newer GCCs
1615         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
1616         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
1617         Problem reported by Jim Meyering in
1618         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
1619         Also, rename the 'test' function to a void a clash with the
1620         already-supplied 'main' function; this fixes a bug that incorrectly
1621         rejected GCC 4.7.1's <stdnoreturn.h>.
1622         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
1623         Document GCC problem.
1624
1625 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
1626
1627         pipe-filter: fix comment typo
1628         * lib/pipe-filter.h: Mention correct function.
1629
1630 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
1631
1632         execinfo: new module
1633         This is for Emacs.  Currently, it provides a no-effect stub
1634         on all platforms where it does not already work.
1635         It already works on glibc-based systems, and on Solaris 11.
1636         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
1637         New files.
1638         * doc/glibc-headers/execinfo.texi (execinfo.h):
1639         * MODULES.html.sh (Misc): Document it.
1640
1641 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1642
1643         extern-inline: support old GCC 'inline'
1644         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
1645         if available.  This applies to GCC versions 2.7 through 4.2, or
1646         when newer GCC is using -fgnu89-inline.  The goal is to address
1647         some of the performance issues mentioned by Bruno Haible in
1648         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
1649
1650 2012-08-20  Eric Blake  <eblake@redhat.com>
1651
1652         maint.mk: avoid redundant file name in message
1653         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1654         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
1655         (sc_makefile_path_separator_check): Remove bogus $(ME).
1656
1657 2012-08-20  Mike Frysinger <vapier@gentoo.org>
1658
1659         timer-time: fix link order when static linking on glibc
1660         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1661         _after_ -lrt so that it's significant.
1662
1663 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
1664
1665         timespec: omit unnecessary AC_C_INLINE
1666         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
1667
1668         stat-time: omit unnecessary AC_C_INLINE
1669         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
1670         Do not require AC_C_INLINE.
1671
1672         ignore-value: omit unnecessary AC_C_INLINE
1673         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
1674
1675         sys_select: avoid 'static inline'
1676         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
1677
1678         mktime: avoid 'static inline'
1679         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
1680         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
1681
1682 2012-08-19  Bruno Haible  <bruno@clisp.org>
1683
1684         gnulib-tool: Improve coding style.
1685         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
1686         func_emit_lib_Makefile_am.
1687         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1688
1689 2012-08-19  Bruno Haible  <bruno@clisp.org>
1690
1691         gnulib-tool: Fix indentation.
1692         * gnulib-tool (func_import): Fix indentation.
1693
1694 2012-08-19  Bruno Haible  <bruno@clisp.org>
1695
1696         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
1697         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
1698         on the list of removed files.
1699
1700 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
1701
1702         test-parse-datetime: avoid glibc leap-second glitch
1703         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
1704         with the 2012 rules.  Problem reported by Bruce Dubbs in
1705         <http://bugs.gnu.org/12206>.
1706
1707 2012-08-14  Bruno Haible  <bruno@clisp.org>
1708
1709         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
1710         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
1711         from argument.
1712         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1713
1714 2012-08-14  Eric Blake  <eblake@redhat.com>
1715
1716         ldexp: relax license
1717         * modules/ldexp (License): Trivial relax, since the module only
1718         provides a permissively licensed m4 file.
1719
1720 2012-08-13  Bruno Haible  <bruno@clisp.org>
1721
1722         gnulib-tool: Fix persistence of --witness-c-macro option.
1723         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
1724         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1725
1726 2012-08-11  Eric Blake  <eblake@redhat.com>
1727
1728         count-leading-zeros: use a lookup table on non-gcc compilers
1729         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
1730         alternate implementation, suggested by Jim Meyering.
1731
1732 2012-08-10  Eric Blake  <eblake@redhat.com>
1733
1734         count-leading-zeros: new module
1735         * modules/count-leading-zeros: New module.
1736         * m4/count-leading-zeros.m4: New file.
1737         * lib/count-leading-zeros.h: Likewise.
1738         * modules/count-leading-zeros-tests: New test.
1739         * tests/test-count-leading-zeros.c: New file.
1740         * MODULES.html.sh (Integer arithmetic functions): Document it.
1741
1742 2012-08-07  Simon Josefsson  <simon@josefsson.org>
1743             Jim Meyering  <meyering@redhat.com>
1744
1745         maintainer-makefile: Fix syntax error with dash.
1746         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
1747         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
1748
1749 2012-08-05  Jim Meyering  <meyering@redhat.com>
1750
1751         extern-inline: also ignore -Wmissing-declarations
1752         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
1753         required with gcc-4.8.0-to-be.
1754
1755         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
1756         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
1757         for /error ?([^,]*)/.  This avoids false-positives for strings like
1758         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
1759
1760 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
1761
1762         gnumakefile: better interaction with Automake-NG
1763         * modules/gnumakefile [Makefile.am]: The makefiles generated by
1764         Automake-NG always contain a definition of VPATH, even in non-VPATH
1765         builds (its value being simply '.' in that case).  So, in the
1766         'clean-GNUmakefile' rule, to determine whether running under a
1767         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
1768         '$(VPATH)' expands to the empty string.
1769
1770 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
1771
1772         base64: Use extern C scope in header file, for C++.
1773         * lib/base64.h: Add C++ namespace protection.
1774
1775 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
1776
1777         stat-time, timespec, u64: support naive out-of-dir builds
1778         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
1779         Use '#include "foo.h"', not '#include <foo.h>', when including
1780         one's own interface.  This works better when configuring with
1781         out-of-directory builds, since packages need not add an
1782         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
1783
1784 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1785
1786         utimens: use extern-inline
1787         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
1788         * lib/utimens.h: Add copyright notice, since this is now large enough
1789         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1790         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
1791         * modules/utimens (Depends-on): Add extern-inline.
1792
1793         u64: use extern-inline
1794         * lib/u64.c: New file.
1795         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1796         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
1797         * modules/u64 (Files): Add lib/u64.c.
1798         (Depends-on): Add extern-inline.
1799         (configure.ac): No need to require AC_C_INLINE, since extern-inline
1800         does that now.
1801         (lib_SOURCES): Add u64.c.
1802
1803         timespec: use extern-inline
1804         * lib/timespec.c: New file.
1805         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1806         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
1807         * modules/timespec (Files): Add lib/timespec.c.
1808         (Depends-on): Add extern-inline.
1809         (lib_SOURCES): Add timespec.c.
1810
1811         stat-time: use extern-inline
1812         * lib/stat-time.c: New file.
1813         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1814         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
1815         * modules/stat-time (Files): Add lib/stat-time.c.
1816         (Depends-on): Add extern-inline.
1817         (lib_SOURCES): Add stat-time.c.
1818
1819         extern-inline: new module
1820         * modules/extern-inline, m4/extern-inline.m4: New files.
1821         This is for better support of 'extern inline' a la ISO C99,
1822         with a portable alternative on compilers that do not support
1823         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
1824         of the Emacs executable, when compiled with debugging disabled,
1825         which is a typical way that Emacs is built while developing.
1826
1827 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
1828
1829         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
1830         * build-aux/do-release-commit-and-tag: Move variable definitions
1831         together.
1832         ($branch): Instead of defaulting to "master", default to the current
1833         branch (as gnu-web-doc-update does).
1834         (help): Display the current values of the option arguments.
1835         * top/maint.mk (release-commit): New.
1836         * top/README-release: Simplify the corresponding step.
1837
1838 2012-07-30  Eric Blake  <eblake@redhat.com>
1839
1840         passfd: fix comment on recvfd
1841         * lib/passfd.c (recvfd): Fix comment.
1842         Reported by Jann Horn <jannhorn@googlemail.com>.
1843
1844 2012-07-30  Jim Meyering  <meyering@redhat.com>
1845
1846         maint.mk: avoid a sub-shell
1847         * top/maint.mk (release-prep): Remove unneeded sub-shell.
1848
1849 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1850
1851         maint.mk: use silent-rules support from Automake
1852         * top/maint.mk (news-check, vc-diff-check, announcement)
1853         (no-submodule-changes, alpha beta stable, release-prep)
1854         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
1855
1856 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1857
1858         maint.mk: provide a web-manual-update target
1859         * top/maint.mk: here.
1860         * top/README-release: Use it to simplify the web manual update step.
1861
1862 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1863
1864         README-release: shorten the circuit to post a news
1865         * top/README-release: Point directly to the news submission form.
1866
1867 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1868
1869         gnu-web-doc-update: fix --help
1870         * build-aux/gnu-web-doc-update: The information "top level" was written
1871         twice.
1872
1873 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1874
1875         maint.mk: absolute VPATH issue
1876         * top/maint.mk (release-prep): Help Git find .git/.
1877         From Jim Meyering.
1878
1879 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1880
1881         gitlog-to-changelog: fix previous change
1882         * build-aux/gitlog-to-changelog: Fix condition.
1883         Add missing ";".
1884
1885 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1886
1887         gitlog-to-changelog: don't expect .git to be in $srcdir
1888         Reported by Bruno Haible.
1889         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
1890         * build-aux/gitlog-to-changelog (&git_dir_option): New.
1891         Use it.
1892
1893 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1894
1895         maint.mk: absolute VPATH build fix
1896         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
1897         $(srcdir) is not a parent of $(builddir).
1898
1899 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
1900
1901         clean-temp: Fix memory leak.
1902         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
1903         'files' members of tmpdir.
1904
1905 2012-07-27  Jim Meyering  <meyering@redhat.com>
1906
1907         maint.mk: new rule: refresh-gnulib-patches
1908         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
1909         Use this rule to refresh them.
1910         * top/maint.mk (refresh-gnulib-patches): New rule.
1911
1912 2012-07-24  Bruno Haible  <bruno@clisp.org>
1913
1914         gnulib-tool: Fix handling of inctests variable.
1915         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
1916         Reported by Nick Bowler <nbowler@elliptictech.com>.
1917
1918 2012-07-22  Bruno Haible  <bruno@clisp.org>
1919
1920         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
1921         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
1922         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1923         Remove exemption for getpass.h.
1924         Suggested by Eric Blake.
1925
1926 2012-07-20  Eric Blake  <eblake@redhat.com>
1927
1928         verify: document conflict with -Wnested-externs
1929         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
1930
1931         maint.mk: forbid exit(-1)
1932         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
1933
1934 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
1935
1936         fsusage: port back to Solaris
1937         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
1938         error (fsd not declared) on Solaris 10.  Reported privately by
1939         Andrew Borodin.
1940
1941 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
1942
1943         gnu-web-doc-update: fix error messages
1944         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
1945
1946         gnu-web-doc-update: check the requirements.
1947         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
1948         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
1949         * build-aux/bootstrap (find_tool): Comment change.
1950
1951 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
1952
1953         maint.mk: minor simplication.
1954         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
1955         for default values.
1956
1957 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
1958
1959         gitlog-to-changelog: VPATH build issues
1960         If builddir is not a subdirectory of srcdir, running git from it will
1961         fail.
1962         * build-aux/gitlog-to-changelog (--srcdir): New option.
1963
1964 2012-07-15  Bruno Haible  <bruno@clisp.org>
1965
1966         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
1967         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
1968         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
1969         Remove exemption for fpending.h.
1970         Suggested by Eric Blake.
1971
1972 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1973
1974         pthread_sigmask: fix bug on FreeBSD 9
1975         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
1976         Include string.h.
1977         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
1978         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
1979         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
1980         but pthread_sigmask (1729, NULL, NULL) returns zero.
1981         See <http://bugs.gnu.org/11884>.
1982         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
1983         by inspecting whether the main call changed the old mask.
1984
1985 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
1986
1987         README-release: make it more legible
1988         * top/README-release: Improve typography slightly.
1989
1990 2012-07-15  Jim Meyering  <meyering@redhat.com>
1991
1992         maint: require that each sc_... command start with "@"
1993         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
1994         "make sc_maint" helps us avoid this nit.
1995
1996 2012-07-15  Jim Meyering  <meyering@redhat.com>
1997
1998         maint.mk: add leading "@" to quiet new "make syntax-check" rule
1999         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
2000
2001 2012-07-13  Eric Blake  <eblake@redhat.com>
2002
2003         maint.mk: new syntax check for HAVE_DECL checks
2004         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
2005         * cfg.mk
2006         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2007         Exempt some false positives.
2008         Based on a report by Karel Zak.
2009
2010         argp: make HAVE_DECL usage consistent
2011         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
2012         macros, not whether they are defined.
2013         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
2014         convention with other declaration checks.
2015         Reported by Karel Zak, with suggestions from Paul Eggert.
2016
2017         stat-time: relax license to LGPLv2+
2018         * modules/stat-time (License): Relax, with consent of all authors.
2019
2020         strndup: fix m4 usage error
2021         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
2022         defined, to either 0 or 1.
2023         Reported by Karel Zak.
2024
2025 2012-07-11  Jim Meyering  <meyering@redhat.com>
2026
2027         maint: enable the sc_avoid_if_before_free syntax-check rule
2028         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
2029         (if_before_free_offenders_): Define.
2030         (if_before_free_basename_re_): Define.
2031         Exempt current files with useless if-before-free.
2032
2033 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
2034
2035         gettext: do not assume '#define ... defined ...' behavior
2036         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
2037         Do not use '#define FOO ... defined BAR ...', as the C standard says
2038         it's not portable to expect that this works after macro expansion.
2039         Problem reported for gzip by Steven M. Schweda in
2040         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
2041
2042 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
2043
2044         getloadavg: clean out old Emacs and Autoconf cruft
2045         See Glenn Morris in <http://bugs.gnu.org/11905>.
2046         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
2047         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
2048         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
2049         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
2050
2051 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
2052
2053         bootstrap: let warn be like tests/init.sh's warn_
2054         Reported by Jim Meyering.
2055         * build-aux/bootstrap (warn): Remove, replaced by...
2056         (warnf_, warn_): these.
2057         Adjust callers.
2058         Shorten messages that no longer fit in 80 columns.
2059
2060 2012-07-09  Bruno Haible  <bruno@clisp.org>
2061
2062         getopt: Simplify after Emacs changed.
2063         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
2064         (gl_GETOPT_IFELSE): Remove macro.
2065
2066 2012-07-09  Jim Meyering  <meyering@redhat.com>
2067
2068         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
2069         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
2070
2071         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
2072         Bugs in both of those conspired to make the
2073         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
2074         _sc_search_regexp's handling of non-empty $in_files would filter
2075         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
2076         choice of in_files value meant there would be no match in most
2077         projects, due to the presence of two or more Makefile.in files.
2078         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
2079         Fix a bug in how a non-empty $$in_files was processed:
2080         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
2081         in spite of the name, it's a regexp, not a list of file names.
2082
2083 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2084
2085         getloadavg, getopt: fix commentary re configure.in
2086         Autoconf is deprecating the name 'configure.in', so change it to
2087         to the new name 'configure.ac' in a couple of places.
2088         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
2089         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
2090         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
2091         Emacs has renamed it to configure.ac, and it no longer refers
2092         to these macros anyway.
2093
2094         timespec: mark functions with const attributes
2095         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
2096         Mark with _GL_ATTRIBUTE_CONST.
2097
2098 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2099
2100         canonicalize[-lgpl]: handle "guessing" values when cross-building
2101         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
2102         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
2103         matches "*yes" instead of just "yes".  Regression introduced in commit
2104         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
2105
2106 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2107             Bruno Haible  <bruno@clisp.org>
2108
2109         canonicalize: make the right guess when cross-compiling to GNU
2110         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
2111         determine whether cross-compiling to glibc systems, so as to
2112         include GNU/Hurd.
2113
2114 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2115
2116         timespec-sub: avoid duplicate include
2117         * lib/timespec-sub.c: Do not include <config.h> twice.
2118         Reported by Juanma Barranquero.
2119
2120 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
2121
2122         bootstrap: use a more consistent error reporting scheme
2123         * build-aux/bootstrap (warn, die): New.
2124         Use them.
2125
2126 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2127
2128         sys_time: allow too-wide tv_sec
2129         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
2130         timeval even if tv_sec is wider than time_t.  This allows
2131         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
2132         as without this patch gnulib replaces struct timeval
2133         and OpenBSD futimes therefore has a type mismatch.
2134         * doc/posix-headers/sys_time.texi: Mention this.
2135
2136         pthread: check for both pthread_create and pthread_join
2137         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
2138         alter the check so that it tests for both pthread_create and
2139         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
2140         Suggested by Bruno Haible and Richard Yao in
2141         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
2142
2143         parse-datetime: doc tuneup
2144         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
2145         spacing issues.
2146
2147 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
2148
2149         do-release-commit-and-tag: fix the previous commit
2150         * build-aux/do-release-commit-and-tag: Actually the test was right,
2151         but the comment and the error message were misleading.
2152         Fix comment, and improve error message.
2153         Perform check first, so that NEWS is not modified uselessly.
2154
2155         do-release-commit-and-tag: fix typo
2156         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
2157         _not_ start with a stub.
2158
2159 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2160
2161         pthread: check for pthread_create, not pthread_join
2162         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
2163         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
2164         pthread_join in libc.  I hope this removes the need for all the
2165         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
2166         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
2167
2168 2012-07-04  Jim Meyering  <meyering@redhat.com>
2169
2170         parse-datetime: fix failure to diagnose invalid input
2171         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
2172         rather than diagnosing the invalid input.  Now it reports this:
2173         date: invalid date '\260'
2174         * lib/parse-datetime.y (to_uchar): Define.
2175         (yylex): Don't sign-extend "other" bytes.
2176         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
2177         Thanks to Bruno Haible for the patch to this file.
2178         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
2179         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
2180
2181 2012-07-03  Jim Meyering  <meyering@redhat.com>
2182
2183         bootstrap: do not require now-removed build-aux/missing
2184         Now that build-aux/missing is, er, missing, bootstrap would
2185         silently fail.
2186         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
2187         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
2188         no longer part of gnulib.
2189         Diagnose the failure.
2190
2191 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
2192
2193         alloca: add support for HP NonStop TNS/E native
2194         * lib/alloca.in.h (alloca): Support the new host.
2195         From a suggestion by Joachim Schmitz in
2196         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
2197
2198 2012-07-02  Pádraig Brady  <P@draigBrady.com>
2199
2200         fsusage: remove code not needed on non GNU/Linux systems.
2201
2202         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2203         Don't include headers no longer needed in this case.
2204         * lib/fsusage.c [STAT_STATVFS &&
2205         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
2206         STAT_STATFS2_FRSIZE to exclude code not used in this case.
2207
2208 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
2209
2210         fsusage: include files needed for glibc 2.6 fallback
2211         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2212         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
2213         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
2214         Problem reported by Ludovic Courtès in
2215         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
2216
2217         fsusage: avoid needless check on GNU/Linux
2218         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
2219         on GNU/Linux systems, since it can't possibly work.
2220
2221 2012-07-01  Bruno Haible  <bruno@clisp.org>
2222
2223         log: Fix an autoconf >= 2.64 warning.
2224         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
2225         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2226
2227 2012-06-28  Bruno Haible  <bruno@clisp.org>
2228
2229         log10f: Fix possible configuration problem.
2230         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
2231         $LOGF_LIBM.
2232         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2233
2234 2012-06-28  Bruno Haible  <bruno@clisp.org>
2235
2236         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
2237         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
2238         not gl_cv_func_unlink_works.
2239         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2240
2241 2012-06-27  Eric Blake  <eblake@redhat.com>
2242
2243         config: drop scripts that automake says are not independent
2244         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
2245         * build-aux/elisp-comp: Delete.
2246         * build-aux/missing: Likewise.
2247         * build-aux/ylwrap: Likewise.
2248         * modules/elisp-comp: Likewise.
2249         * MODULES.html.sh: Drop mention of elisp-comp.
2250         * NEWS: Mention this.
2251
2252 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
2253
2254         root-uid: new module
2255         This is for portability to Tandem's NonStop Kernel.
2256         * lib/root-uid.h, modules/root-uid: New files.
2257         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
2258         * lib/write-any-file.c, tests/test-sethostname2.c:
2259         Include "root-uid.h".
2260         * lib/euidaccess.c (euidaccess):
2261         * lib/pt_chown.c (main):
2262         * lib/unlinkdir.c (cannot_unlink_dir):
2263         * lib/write-any-file.c (can_write_any_file):
2264         * m4/mknod.m4 (gl_FUNC_MKNOD):
2265         * tests/test-sethostname2.c (geteuid, main):
2266         Don't assume ROOT_UID == 0.
2267         * modules/euidaccess (Depends-on):
2268         * modules/pt_chown (Depends-on):
2269         * modules/sethostname-tests (Depends-on):
2270         * modules/unlinkdir (Depends-on):
2271         * modules/write-any-file (Depends-on):
2272         Add root-uid.
2273
2274         regex: use locale-independent comparison for codeset name
2275         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
2276         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
2277         for codeset name.
2278         * lib/regex_internal.h: Do not include <strings.h>, since we
2279         no longer use strcasecmp.
2280         * modules/regex (Depends-on): Remove strcase.
2281
2282 2012-06-23  Bruno Haible  <bruno@clisp.org>
2283
2284         getopt-posix: No longer guarantee that option processing is resettable.
2285         * doc/posix-functions/getopt.texi: Drop description of problem with
2286         internal state. Fix info about mingw and msvc9.
2287         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
2288         option processing by getopt(). Run three test programs instead of one.
2289         Simplify cross-compilation guess.
2290         * NEWS: Mention the change.
2291         Reported by Rich Felker <dalias@aerifal.cx>.
2292
2293 2012-06-26  Bruno Haible  <bruno@clisp.org>
2294
2295         argp, regex: Ensure strcasecmp gets declared.
2296         * lib/argp-help.c: Include <strings.h>.
2297         * lib/regex_internal.h: Likewise.
2298         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
2299
2300 2012-06-24  Bruno Haible  <bruno@clisp.org>
2301
2302         ptsname_r: Make it consistent with ptsname on AIX.
2303         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
2304         implementation as for OSF/1.
2305         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
2306         a pty master.
2307
2308         ptsname_r: Make it consistent with ptsname on OSF/1.
2309         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2310         OSF/1.
2311
2312 2012-06-24  Bruno Haible  <bruno@clisp.org>
2313
2314         ttyname_r: Fix result on OSF/1, Solaris.
2315         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
2316
2317 2012-06-24  Bruno Haible  <bruno@clisp.org>
2318
2319         ptsname_r: Add support for Solaris.
2320         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2321         Solaris.
2322
2323         ptsname_r: Fix test failure on native Windows.
2324         * modules/ptsname_r (Depends-on): Add isatty.
2325
2326         ptsname_r: Fix test failures on IRIX, Solaris.
2327         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
2328         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
2329         accordingly.
2330         * lib/ptsname_r.c: Include <fcntl.h>.
2331         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
2332         set errno if fd is invalid.
2333         * tests/test-isatty.c (main): Update comments.
2334
2335 2012-06-24  Bruno Haible  <bruno@clisp.org>
2336
2337         ptsname test: Extend test.
2338         * tests/test-ptsname.c: Include <errno.h>.
2339         (main): Test behaviour with invalid file descriptor.
2340
2341 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2342
2343         time: fix obsolete comment
2344         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
2345         reference to HAVE_STRUCT_TIMESPEC in comment.
2346
2347 2012-06-23  Bruno Haible  <bruno@clisp.org>
2348
2349         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
2350         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
2351         does not handle abbreviated long options with equivalent
2352         disambiguations, set gl_replace_getopt to yes.
2353         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
2354
2355 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
2356
2357         time_r: fix typo that always overrode localtime_r decl
2358         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
2359         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
2360         not in a standard include.
2361
2362 2012-06-22  Bruno Haible  <bruno@clisp.org>
2363
2364         Write "Mac OS X" instead of "MacOS X".
2365         * README: Write "Mac OS X" instead of "MacOS X".
2366         * build-aux/bootstrap: Likewise.
2367         * build-aux/install-reloc: Likewise.
2368         * lib/acl-internal.h: Likewise.
2369         * lib/acl_entries.c: Likewise.
2370         * lib/argp-ba.c: Likewise.
2371         * lib/argp-pv.c: Likewise.
2372         * lib/config.charset: Likewise.
2373         * lib/copy-acl.c: Likewise.
2374         * lib/csharpexec.c: Likewise.
2375         * lib/euidaccess.c: Likewise.
2376         * lib/fbufmode.c: Likewise.
2377         * lib/fflush.c: Likewise.
2378         * lib/file-has-acl.c: Likewise.
2379         * lib/filemode.h: Likewise.
2380         * lib/fpurge.c: Likewise.
2381         * lib/freadable.c: Likewise.
2382         * lib/freadahead.c: Likewise.
2383         * lib/freading.c: Likewise.
2384         * lib/freadptr.c: Likewise.
2385         * lib/freadseek.c: Likewise.
2386         * lib/fseeko.c: Likewise.
2387         * lib/fseterr.c: Likewise.
2388         * lib/fsusage.c: Likewise.
2389         * lib/fwritable.c: Likewise.
2390         * lib/fwriting.c: Likewise.
2391         * lib/get-rusage-as.c: Likewise.
2392         * lib/get-rusage-data.c: Likewise.
2393         * lib/getdomainname.c: Likewise.
2394         * lib/idpriv-drop.c: Likewise.
2395         * lib/idpriv-droptemp.c: Likewise.
2396         * lib/localcharset.c: Likewise.
2397         * lib/locale.in.h: Likewise.
2398         * lib/localename.c: Likewise.
2399         * lib/mbsrtowcs-state.c: Likewise.
2400         * lib/nproc.c: Likewise.
2401         * lib/passfd.c: Likewise.
2402         * lib/posix_openpt.c: Likewise.
2403         * lib/printf-parse.c: Likewise.
2404         * lib/progreloc.c: Likewise.
2405         * lib/safe-read.h: Likewise.
2406         * lib/safe-write.h: Likewise.
2407         * lib/sched.in.h: Likewise.
2408         * lib/set-mode-acl.c: Likewise.
2409         * lib/signal.in.h: Likewise.
2410         * lib/stdint.in.h: Likewise.
2411         * lib/stdio-impl.h: Likewise.
2412         * lib/stdlib.in.h: Likewise.
2413         * lib/strtod.c: Likewise.
2414         * lib/sys_select.in.h: Likewise.
2415         * lib/tcgetsid.c: Likewise.
2416         * lib/unistd.in.h: Likewise.
2417         * lib/unlockpt.c: Likewise.
2418         * lib/vasnprintf.c: Likewise.
2419         * lib/vma-iter.c: Likewise.
2420         * lib/wcsrtombs-state.c: Likewise.
2421         * m4/acl.m4: Likewise.
2422         * m4/acosl.m4: Likewise.
2423         * m4/asinl.m4: Likewise.
2424         * m4/atanl.m4: Likewise.
2425         * m4/c-stack.m4: Likewise.
2426         * m4/cosl.m4: Likewise.
2427         * m4/expl.m4: Likewise.
2428         * m4/extensions.m4: Likewise.
2429         * m4/fdatasync.m4: Likewise.
2430         * m4/fmal.m4: Likewise.
2431         * m4/frexp.m4: Likewise.
2432         * m4/frexpf.m4: Likewise.
2433         * m4/frexpl.m4: Likewise.
2434         * m4/fsusage.m4: Likewise.
2435         * m4/getdomainname.m4: Likewise.
2436         * m4/getloadavg.m4: Likewise.
2437         * m4/getopt.m4: Likewise.
2438         * m4/gettext.m4: Likewise.
2439         * m4/gnulib-common.m4: Likewise.
2440         * m4/intdiv0.m4: Likewise.
2441         * m4/intlmacosx.m4: Likewise.
2442         * m4/largefile.m4: Likewise.
2443         * m4/ldexpl.m4: Likewise.
2444         * m4/link-follow.m4: Likewise.
2445         * m4/locale-ar.m4: Likewise.
2446         * m4/locale-fr.m4: Likewise.
2447         * m4/locale-ja.m4: Likewise.
2448         * m4/locale-tr.m4: Likewise.
2449         * m4/locale-zh.m4: Likewise.
2450         * m4/locale_h.m4: Likewise.
2451         * m4/lock.m4: Likewise.
2452         * m4/logl.m4: Likewise.
2453         * m4/mathfunc.m4: Likewise.
2454         * m4/minus-zero.m4: Likewise.
2455         * m4/mktime.m4: Likewise.
2456         * m4/mmap-anon.m4: Likewise.
2457         * m4/multiarch.m4: Likewise.
2458         * m4/nanosleep.m4: Likewise.
2459         * m4/nocrash.m4: Likewise.
2460         * m4/poll.m4: Likewise.
2461         * m4/printf-frexpl.m4: Likewise.
2462         * m4/printf.m4: Likewise.
2463         * m4/signbit.m4: Likewise.
2464         * m4/sinl.m4: Likewise.
2465         * m4/sqrtl.m4: Likewise.
2466         * m4/strerror_r.m4: Likewise.
2467         * m4/tanl.m4: Likewise.
2468         * m4/threadlib.m4: Likewise.
2469         * m4/ttyname_r.m4: Likewise.
2470         * m4/unlink.m4: Likewise.
2471         * m4/visibility.m4: Likewise.
2472         * m4/wcwidth.m4: Likewise.
2473         * tests/minus-zero.h: Likewise.
2474         * tests/test-alloca-opt.c: Likewise.
2475         * tests/test-copy-acl.sh: Likewise.
2476         * tests/test-copy-file.sh: Likewise.
2477         * tests/test-fdatasync.c: Likewise.
2478         * tests/test-file-has-acl.sh: Likewise.
2479         * tests/test-flock.c: Likewise.
2480         * tests/test-fsync.c: Likewise.
2481         * tests/test-localename.c: Likewise.
2482         * tests/test-malloca.c: Likewise.
2483         * tests/test-nonblocking-pipe.h: Likewise.
2484         * tests/test-nonblocking-socket.h: Likewise.
2485         * tests/test-openpty.c: Likewise.
2486         * tests/test-posix_openpt.c: Likewise.
2487         * tests/test-ptsname.c: Likewise.
2488         * tests/test-ptsname_r.c: Likewise.
2489         * tests/test-sameacls.c: Likewise.
2490         * tests/test-select.h: Likewise.
2491         * tests/test-set-mode-acl.sh: Likewise.
2492         * tests/test-snprintf-posix.h: Likewise.
2493         * tests/test-sprintf-posix.h: Likewise.
2494         * tests/test-strtod.c: Likewise.
2495         * tests/test-time.c: Likewise.
2496         * tests/test-vasnprintf-posix.c: Likewise.
2497         * tests/test-vasprintf-posix.c: Likewise.
2498         * doc/acl-resources.txt: Likewise.
2499         * doc/**/*.texi: Likewise.
2500         Reported by Max Horn <max@quendi.de>.
2501
2502 2012-06-22  Bruno Haible  <bruno@clisp.org>
2503
2504         grantpt: Relax requirement regarding invalid file descriptors.
2505         * lib/grantpt.c: Don't include <fcntl.h>.
2506         (grantpt): Don't verify the validity of the file descriptor.
2507         * modules/grantpt (Depends-on): Remove fcntl-h.
2508         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
2509         file descriptors.
2510         * doc/posix-functions/grantpt.texi: Document more platforms on which
2511         grantpt succeeds for invalid file descriptors.
2512         Reported by Rich Felker <dalias@aerifal.cx>.
2513
2514 2012-06-22  Bruno Haible  <bruno@clisp.org>
2515
2516         fbufmode test: Don't test unportable behaviour.
2517         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
2518         (main): Invoke it three times.
2519         Reported by Szabolcs Nagy <nsz@port70.net>
2520         and Rich Felker <dalias@aerifal.cx>.
2521
2522 2012-06-21  Bruno Haible  <bruno@clisp.org>
2523
2524         gnulib-tool: Refactor inctests variable.
2525         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
2526         (func_modules_transitive_closure,
2527         func_modules_transitive_closure_separately,
2528         func_import, func_create_testdir): Update.
2529
2530         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
2531         * gnulib-tool: Accept option --without-tests.
2532         (func_usage): Document --without-tests option. Rearrange.
2533         (inctests): Normalize according to the mode.
2534         * NEWS: Mention the change.
2535         Suggested by Simon Josefsson.
2536
2537 2012-06-21  Bruce Korb  <bkorb@gnu.org>
2538
2539         parse-duration test: Avoid spurious output.
2540         * tests/test-parse-duration.sh: Reindent with leading tabs.
2541
2542 2012-06-21  Jim Meyering  <meyering@redhat.com>
2543
2544         maint: disable the strncpy prohibition
2545         * cfg.mk: Do not prohibit strncpy here.
2546
2547 2012-06-21  Bruno Haible  <bruno@clisp.org>
2548
2549         nonblocking: Avoid compilation error on mingw64.
2550         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
2551         fscanf.
2552         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
2553         * modules/vfscanf (configure.ac): Likewise.
2554         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
2555         definition only if stdio.h has prepared it.
2556         Reported by Daniel P. Berrange <berrange@redhat.com>.
2557
2558 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
2559
2560         gnulib-tool: Use readlink if it is available.
2561         * gnulib-tool (func_readlink): Choose function more appropriately.
2562
2563 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2564
2565         posixtm-tests: port to buggy compiler
2566         Problem reported by Simon Josefsson in
2567         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
2568         * modules/posixtm-tests (Depends-on): Add stdint.
2569         * tests/test-posixtm.c (struct posixtm_test.t_expected):
2570         Now of type int_least64_t, not int64_t, both because that's
2571         what INT64_C returns and because int_least64_t works even
2572         on 72-bit hosts.
2573         (T): Use INT64_C on constants outside the traditional int range,
2574         to work around compiler bug noted by Simon.
2575
2576         mktime: fix integer overflow in 'configure'-time test
2577         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
2578         after integer overflow.  Problem reported by Rich Felker in
2579         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
2580         Also, don't look for further instances of a bug if we've already
2581         found one instance; this helps 'configure' run faster.
2582
2583 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
2584
2585         tmpfile, clean-temp: Fix invocation of GetVersionEx.
2586         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
2587         GetVersionEx correctly.
2588         * lib/clean-temp.c (supports_delete_on_close): Likewise.
2589
2590 2012-06-20  Bruno Haible  <bruno@clisp.org>
2591
2592         fdopen: Allow implementations that don't reject invalid fd arguments.
2593         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
2594         succeeds.
2595         Reported by Rich Felker <dalias@aerifal.cx>.
2596
2597 2012-06-20  Simon Josefsson  <simon@josefsson.org>
2598
2599         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
2600         bring in LIBINTL.
2601
2602 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2603
2604         init.sh: do not rely on autoupated PWD
2605         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
2606         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
2607         Although Nelson's bug was not necessarily fixed by this patch,
2608         it seems wise to make the change for safety.
2609         * tests/init.sh (path_prepend_): Do not rely on PWD updating
2610         automagically after 'cd'; this is not reliable on older shells.
2611         (setup_): Fail if we cannot cd to temporary directory.
2612
2613 2012-06-19  Bruno Haible  <bruno@clisp.org>
2614
2615         stat, fstat: Avoid warnings on mingw64.
2616         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
2617         redefining.
2618         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
2619         Reported by Daniel P. Berrange <berrange@redhat.com>.
2620
2621 2012-06-19  Bruno Haible  <bruno@clisp.org>
2622
2623         stdioext: Add support for musl libc.
2624
2625         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
2626         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
2627
2628         * m4/fseterr.m4: New file.
2629         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
2630         function exists.
2631         * modules/fseterr (Files): Add m4/fseterr.m4.
2632         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
2633         __fseterr does not exist.
2634         (Makefile.am): Remove fseterr.c from lib_SOURCES.
2635
2636         * lib/freadable.h: Update comment.
2637
2638         * lib/fwritable.h: Update comment.
2639
2640         * lib/freading.h: Update comment.
2641
2642         * lib/fwriting.h: Update comment.
2643
2644         * m4/freadahead.m4: New file.
2645         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
2646         that function exists.
2647         * modules/freadahead (Files): Add m4/freadahead.m4.
2648         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
2649         __freadahead does not exist.
2650         (Makefile.am): Remove freadahead.c from lib_SOURCES.
2651
2652         * m4/freadptr.m4: New file.
2653         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
2654         function exists.
2655         * modules/freadptr (Files): Add m4/freadptr.m4.
2656         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
2657         __freadptr does not exist.
2658         (Makefile.am): Remove freadptr.c from lib_SOURCES.
2659
2660         * m4/freadseek.m4: New file.
2661         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
2662         exists.
2663         * modules/freadseek (Files): Add m4/freadseek.m4.
2664         (configure.ac): Invoke gl_FUNC_FREADSEEK.
2665
2666         * lib/fpurge.c (fpurge): Update comment.
2667
2668         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
2669
2670 2012-06-19  Bruno Haible  <bruno@clisp.org>
2671
2672         *printf-posix: Put more info into config.log.
2673         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
2674         exit code into config.log.
2675
2676 2012-06-19  Bruno Haible  <bruno@clisp.org>
2677
2678         getopt-gnu: Fix exit code overflow in autoconf test.
2679         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
2680         to keep them below < 128.
2681
2682 2012-06-17  Jim Meyering  <meyering@redhat.com>
2683
2684         maint.mk: fix typo in code to derive GPG key at release time
2685         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
2686
2687 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2688
2689         regex: avoid warning when pointers are not long
2690         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
2691         and uintptr_t, not long, for portability to hosts where pointers and
2692         long have different sizes.  Issue noted by Daniel P. Berrange in
2693         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
2694         and fix suggested by Bruno Haible in
2695         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
2696
2697 2012-06-17  Bruno Haible  <bruno@clisp.org>
2698
2699         dummy: Relicense into the public domain.
2700         * modules/dummy (License): Set to "public domain".
2701         Suggested by Reuben Thomas.
2702
2703 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2704
2705         announce-gen: VPATH issues
2706         * build-aux/announce-gen (--srcdir): New option, used to trim the
2707         $srcdir part of the path from $builddir to NEWS.
2708         * top/maint.mk (announcement): Adjust.
2709
2710 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2711
2712         gnu-web-doc-update: VPATH builds
2713         * build-aux/gnu-web-doc-update (--builddir): New option.
2714         Revamp the handling of options.
2715         Prefer $(...) to `...`.
2716         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
2717         the template, and it is GNU mktemp specific.
2718         Prefer set -e to long series of &&.
2719         Restore the initial git branch, not "master".
2720         Properly initialize submodules (don't rely only on bootstrap).
2721         Do not reconfigure blindly, use config.status.
2722         * top/README-release: Update instructions for gnu-web-doc-update.
2723
2724 2012-06-11  Jim Meyering  <meyering@redhat.com>
2725
2726         maint.mk: revert most of the previous change re "all these"
2727         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
2728         For rationale, see the discussion at
2729         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
2730
2731 2012-06-10  Karl Berry  <karl@gnu.org>
2732
2733         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
2734
2735         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
2736
2737 2012-06-10  Bruce Korb  <bkorb@gnu.org>
2738
2739         parse-duration: Relicense under LGPLv2+.
2740         * modules/parse-duration (License): Change to LGPLv2+.
2741
2742 2012-06-10  Jim Meyering  <meyering@redhat.com>
2743
2744         maint.mk: prohibit common grammar error: "all these"
2745         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
2746         the list of prohibited word sequences.  It should be "all of these".
2747         * lib/tempname.c (__gen_tempname): Fix one of them.
2748
2749 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2750
2751         do-release-commit-and-tag: support VPATH builds
2752         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
2753         (noteworthy): Defined earlier to factor its value.
2754         (noteworthy_stub): New.
2755         Use it to factor.
2756         (help_version): Split into...
2757         (help, version): these.
2758         Adjust the option processing part.
2759         Support "--option=value" in addition to "--option value".
2760         (builddir): New.
2761         (--builddir): New option.
2762         * top/README-release: Document this.
2763         Reword slightly so that the reader cannot understand that he
2764         has to do these steps before calling do-release-commit-and-tag.
2765
2766 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2767
2768         readme-release: also require announce-gen and maintainer-makefile
2769         * modules/readme-release (Depends-on): here.
2770         * modules/announce-gen, modules/do-release-commit-and-tag,
2771         modules/gnu-web-doc-update, modules/maintainer-makefile
2772         (Description): Point to readme-release.
2773
2774 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2775
2776         maint.mk: fix VPATH issues.
2777         * top/maint.mk (news-check): GNU Make understand $< very well.
2778         (release-prep): NEWS is in $(srcdir).
2779
2780 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
2781
2782         readme-release: require the promoted modules.
2783         * modules/readme-release (Depends-on): Add
2784         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
2785         in this text.
2786
2787 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2788             Bruno Haible  <bruno@clisp.org>
2789
2790         error, strerror-override: Support mingw64 from Fedora 17.
2791         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
2792         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
2793         EINPROGRESS.
2794         * lib/strerror-override.h (strerror_override): Test it.
2795         * lib/strerror-override.c (strerror_override): Likewise.
2796         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
2797
2798 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2799             Bruno Haible  <bruno@clisp.org>
2800
2801         error, strerror-override: Support mingw64 from Fedora 17.
2802         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
2803         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
2804         * lib/strerror-override.h (strerror_override): Test it.
2805         * lib/strerror-override.c (strerror_override): Likewise.
2806
2807 2012-06-03  Bruno Haible  <bruno@clisp.org>
2808
2809         error, strerror-override: Support new errno values from POSIX:2008.
2810         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
2811         ENOTRECOVERABLE.
2812         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
2813         platforms.
2814         * lib/strerror-override.c (strerror_override): Conditionalize the
2815         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
2816         * lib/strerror-override.h (strerror_override): Declare also if
2817         GNULIB_defined_EOWNERDEAD is defined.
2818         * tests/test-errno.c (e130, e131): New variables.
2819         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
2820         ENOTRECOVERABLE.
2821         Reported by Paolo Bonzini.
2822
2823 2012-05-31  Jim Meyering  <meyering@redhat.com>
2824
2825         savewd: add missing dependency on sys_wait module
2826         * modules/savewd (Depends-on): Add sys_wait, needed at least
2827         for MSVC.  Report and suggested change by Michael Goffioul.
2828
2829 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2830
2831         system-quote-tests: port to CentOS 5
2832         Problem reported by Tom G. Christensen in
2833         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
2834         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
2835
2836 2012-05-29  Jim Meyering  <meyering@redhat.com>
2837
2838         maint: fix typos in comments and ChangeLog
2839         Culprits identified and fixed mostly automatically using these commands:
2840         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
2841         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
2842         using http://github.com/lyda/misspell-check
2843         * ChangeLog: Fix typos.
2844         * doc/solaris-versions: Likewise.
2845         * lib/regexec.c (re_search_stub): Likewise.
2846         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
2847
2848 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
2849
2850         manywarnings: remove duplicate -Wmultichar entry
2851         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
2852         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
2853         so keep the entry marked as documented.
2854
2855 2012-05-27  Karl Berry  <karl@gnu.org>
2856
2857         * config/srclist.txt (mktime.c): remove last libc sync,
2858         perhaps just temporarily.
2859
2860 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
2861
2862         regex: don't assume uint64_t or uint32_t
2863         * lib/regcomp.c (init_word_char): Don't assume that the types
2864         uint64_t and uint32_t exist.  The C standard doesn't guarantee
2865         them, and on some 32-bit compilers there is no uint64_t.
2866         Problem reported by Gianluigi Tiesi in
2867         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
2868
2869 2012-05-25  Jim Meyering  <meyering@redhat.com>
2870
2871         maint.mk: add strncpy-prohibiting syntax-check rule
2872         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
2873
2874 2012-05-24  Jim Meyering  <meyering@redhat.com>
2875
2876         maint.mk: compute $(gpg_key_ID) more portably
2877         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
2878         That use of sed is not portable to some fringe systems.
2879         Reported by Paul Eggert in
2880         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
2881
2882 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2883
2884         mktime: sync from glibc
2885         * config/srclist.txt: Uncomment mktime.c.
2886         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
2887         First, indent with tabs, since glibc uses tabs and doesn't want to
2888         change and we'd rather be identical to glibc.  Also, two small
2889         coding changes:
2890         (isdst_differ): Use &&, not &, as && is the usual style.
2891         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
2892         for clarity.
2893
2894 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2895
2896         announce-gen: du -h is more portable than du --human
2897         * build-aux/announce-gen (sizes): Invoke du with -h instead
2898         of --human.  Accept leading white space in its output.
2899
2900 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2901
2902         announce-gen: Improve diagnostics.
2903         * build-aux/announce-gen: When parsing command line options,
2904         prefer "announce-gen: option --release-type requires an argument"
2905         to "Option release-type requires an argument".
2906
2907 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2908
2909         maint.mk: gpg_key_ID: use sed more portably
2910         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
2911         the closing brace.
2912         (refresh-po): Fuse two sed invocations into one.
2913
2914 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
2915
2916         gitlog-to-changelog: support the log message format used in Bison.
2917         * build-aux/gitlog-to-changelog: Support --strip-tab and
2918         --strip-cherry-picked.
2919
2920 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2921
2922         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
2923         the rest of the current time slice to another thread in the current
2924         process. So if the thread that feeds the file decscriptor we're
2925         polling is not in the current process, we get busy-waiting.
2926         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
2927         Patch from Theodore Leblond.
2928         * lib/select.c: Split polling out of the loop that sets the output
2929         fd_sets.  Check for zero result and loop if the wait timeout is
2930         infinite.
2931
2932 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2933
2934         select: Fix build error on IRIX 6.5.
2935         * lib/select.c: Include stddef.h for NULL.
2936
2937 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2938
2939         gc: fix libgcrypt detection on older machines.
2940         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
2941         copyright years because the file has been distributed every year
2942         since it was created.
2943
2944 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
2945
2946         crypto: fix bug in large buffer handling
2947         Problem reported by Serge Belyshev for glibc in
2948         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
2949         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
2950         * lib/md4.c (md4_process_block):
2951         * lib/md5.c (md5_process_block):
2952         * lib/sha1.c (sha1_process_block):
2953         * lib/sha256.c (sha256_process_block):
2954         Don't assume the buffer length is less than 2**32.
2955         * lib/sha512.c (sha512_process_block): Likewise.
2956         Here, the bug is present only in the rare case where the host does
2957         not support uint64_t or where size_t is wider than 64 bits.
2958         Use u64size to work around the problems.
2959         * lib/u64.h (u64size): New macro.
2960
2961 2012-05-15  Pádraig Brady  <P@draigBrady.com>
2962
2963         fsusage: fix block size returned on older Linux 2.6
2964
2965         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
2966         which is available since Linux 2.6.
2967         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
2968         when the member is available so it can be used as a fallback.
2969         * doc/posix-functions/statvfs.texi: Mention the hang issue
2970         on Linux < 2.6.36.
2971
2972 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
2973
2974         bootstrap: suppress stderr chatter
2975         * build-aux/bootstrap (insert_sorted_if_absent, main program):
2976         Omit unnecessary chatter to stderr.  The main program chatter
2977         was there only inadvertantly.
2978
2979         bootstrap: .gitignore files created by autopoint, libtool
2980         I ran into this problem when bootstrapping the latest diffutils.
2981         After './bootstrap', 'git status' reported lots of untracked files
2982         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
2983         autopoint and do not need to be version-controlled.
2984         * build-aux/bootstrap: Put into .gitignore the files that
2985         autopoint and libtool create, by keeping track of files that exist
2986         after but not before these programs are run.
2987         (version_controlled_file): Move up.  2nd arg is now full file
2988         name, not base name; this is more convenient.  Put CVS at the end,
2989         as it's now somewhat deprecated.
2990
2991 2012-05-14  Jim Meyering  <meyering@redhat.com>
2992
2993         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
2994         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
2995         definition.  Reported by Bruno Haible.
2996
2997 2012-05-13  Bruno Haible  <bruno@clisp.org>
2998             Paul Eggert  <eggert@cs.ucla.edu>
2999
3000         binary-io: Define set_binary_mode function.
3001         * lib/binary-io.h (set_binary_mode): New function.
3002         (SET_BINARY): Define in terms of set_binary_mode.
3003         * modules/binary-io (configure.ac): Require AC_C_INLINE.
3004         * tests/test-binary-io.c (main): Accept an argument, and test either
3005         set_binary_mode or SET_BINARY depending on the argument.
3006         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
3007         argument. Clean up also t-bin-out0.tmp.
3008
3009 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
3010
3011         bootstrap: take advantage of POSIX shell features
3012
3013         The 'bootstrap' script offered by Gnulib script already uses POSIX
3014         shell features (like $((...)) arithmetic expansions) that are not
3015         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
3016         means that bootstrap must already be run using a proper POSIX shell,
3017         which will thus provide more features, like ${var#pattern} parameter
3018         expansion or inversion of a command exit status with '!'.  We can
3019         thus use these features to improve the clarity and the performances
3020         of the bootstrap script.
3021
3022         Suggested by Eric Blake.
3023
3024         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
3025         of sed/expr plus command substitutions, to save some forks.  While
3026         we are at it, prefer the POSIX $(...) form of command substitution,
3027         rather than the legacy form `...` (since the former is visually
3028         clearer and interacts better with quoting), and prefer the idiom:
3029           "if ! CMD; then ACTION ..."
3030         over the idiom:
3031           "if CMD; then :; else ACTION ..."
3032         which was required by legacy Bourne shells not supporting '!'.
3033
3034 2012-05-12  Bruno Haible  <bruno@clisp.org>
3035
3036         system-quote: Add more comments.
3037         * lib/system-quote.h: Add more comments about wilcards and limitations.
3038         Suggested by Eli Zaretskii <eliz@gnu.org>.
3039
3040         sh-quote, system-quote: Add comments about wildcards.
3041         * lib/sh-quote.h: Clarify what happens with wildcard characters.
3042         * lib/system-quote.h: Likewise.
3043         Reported by Eli Zaretskii <eliz@gnu.org>.
3044
3045 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3046
3047         fsusage: check for GNU/Linux statvfs problem dynamically
3048         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
3049         Define STAT_STATFS2_BSIZE too, since in this case the code now
3050         checks dynamically whether statvfs is reliable, falling back on
3051         Linux-style statfs otherwise.
3052         (statvfs_works): New function, for dynamically testing statvfs.
3053         (get_fs_usage) [STAT_STATVFS]: Use it.
3054         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
3055         statvfs on GNU/Linux hosts, since it's now done dynamically.
3056
3057 2012-05-10  Bruno Haible  <bruno@clisp.org>
3058
3059         system-quote, execute, spawn-pipe: Escape '?' on Windows.
3060         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
3061         '?' character.
3062         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
3063         * tests/test-system-quote-main.c (check_all): Check also strings like
3064         "??????????".
3065         Reported by Eli Zaretskii <eliz@gnu.org>.
3066
3067 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3068
3069         _Noreturn: port config.h to gcc -Wundef
3070         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
3071         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
3072         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
3073
3074 2012-05-10  Bruno Haible  <bruno@clisp.org>
3075
3076         system-quote: Refactor.
3077         * lib/system-quote.h (system_quote_copy): Fix comment.
3078         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
3079         New functions, extracted from system_quote_copy.
3080         (system_quote_length, system_quote_copy): Use these functions.
3081         Reported by Paul Eggert.
3082
3083 2012-05-08  Bruno Haible  <bruno@clisp.org>
3084
3085         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
3086         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
3087
3088 2012-05-08  Bruno Haible  <bruno@clisp.org>
3089
3090         Tests for module 'system-quote'.
3091         * modules/system-quote-tests: New file.
3092         * tests/test-system-quote.sh: New file.
3093         * tests/test-system-quote-main.c: New file.
3094         * tests/test-system-quote-child.c: New file.
3095
3096         New module 'system-quote'.
3097         * lib/system-quote.h: New file.
3098         * lib/system-quote.c: New file.
3099         * modules/system-quote: New file.
3100
3101 2012-05-08  Bruno Haible  <bruno@clisp.org>
3102
3103         sh-quote: Make C++ safe and allow multiple inclusion.
3104         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
3105         declarations in extern "C".
3106
3107 2012-05-08  Bruno Haible  <bruno@clisp.org>
3108
3109         sh-quote tests: Make tests stricter.
3110         * tests/test-sh-quote.c (check_one): Check the return value of
3111         shell_quote_copy.
3112         (main): Check a string with a CR character. Check a string that
3113         contains UCHAR_MAX.
3114
3115 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
3116
3117         warnings.m4: provide a means to specify the program to compile.
3118         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
3119         (gl_WARN_ADD): here.
3120         Use gl_AS_VAR_APPEND.
3121         Support an argument to specify the program to compile.
3122         (gl_WARN_ADD): Accept an argument to specify the program to compile.
3123         AC_SUBST the WARN_CFLAGS when they are used.
3124         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
3125         leave this to gl_WARN_ADD.
3126
3127 2012-05-08  Eric Blake  <eblake@redhat.com>
3128
3129         doc: recommendations on gettext version
3130         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
3131         choice between versions.
3132         * DEPENDENCIES (gettext): Cover both approaches.
3133
3134 2012-05-08  Jim Meyering  <meyering@redhat.com>
3135
3136         init.sh: explain why EXEEXT support uses aliases rather than functions
3137         * tests/init.sh: Add a comment.
3138
3139         init.sh: don't let bash aliases interfere with tests
3140         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
3141         is bash.  This avoids problems for those who alias standard commands to
3142         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
3143         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
3144
3145 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3146
3147         stdint: be more consistent with glibc, SunOS libc
3148         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
3149         (gl_int_fast16_t, gl_uint_fast16_t)
3150         (gl_int_fast32_t, gl_uint_fast32_t)
3151         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
3152         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
3153         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
3154         Be consistent with glibc by default, and with SunOS 5.10 and later
3155         if __sun is defined.  This lessens the likelihood of clashes if
3156         code compiled for older hosts is combined with code compiled for
3157         newer ones.  Problem reported by Niels Möller in
3158         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
3159
3160 2012-05-07  Eric Blake  <eblake@redhat.com>
3161
3162         isatty: relax license to LGPLv2+
3163         * modules/isatty (License): Relax license.
3164
3165 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3166
3167         stat-size: comment fix
3168         * lib/stat-size.h: Remove obsolete comment about indenting.
3169
3170 2012-05-06  Bruno Haible  <bruno@clisp.org>
3171
3172         Tests for module 'sh-quote'.
3173         * modules/sh-quote-tests: New file.
3174         * tests/test-sh-quote.c: New file.
3175
3176 2012-05-06  Bruno Haible  <bruno@clisp.org>
3177
3178         sh-quote: Improve shell_quote_argv's signature.
3179         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
3180         * lib/sh-quote.c (shell_quote_argv): Likewise.
3181
3182 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3183
3184         stdint: document issues with int_fast8_t etc.
3185         * doc/posix-headers/stdint.texi (stdint.h): Say that other
3186         stdint.h substitutes may define these types differently.  See
3187         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
3188
3189 2012-05-05  Bruno Haible  <bruno@clisp.org>
3190
3191         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
3192         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
3193         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
3194         or 'guessing no (mishandles large arguments)'.
3195
3196 2012-05-05  Bruno Haible  <bruno@clisp.org>
3197
3198         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
3199         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
3200         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3201         set gl_cv_func_link_follows_symlink to "guessing no".
3202
3203 2012-05-05  Bruno Haible  <bruno@clisp.org>
3204
3205         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
3206         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
3207         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
3208         "guessing no".
3209         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
3210
3211 2012-05-05  Bruno Haible  <bruno@clisp.org>
3212
3213         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
3214         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
3215         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3216         set gl_cv_struct_dirent_d_ino to "guessing yes".
3217
3218 2012-05-05  Bruno Haible  <bruno@clisp.org>
3219
3220         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
3221         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
3222         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
3223         "guessing yes".
3224
3225 2012-05-05  Bruno Haible  <bruno@clisp.org>
3226
3227         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
3228         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
3229         compiling to a glibc system, set gl_cv_func_signbit and
3230         gl_cv_func_signbit_gcc to "guessing yes".
3231
3232 2012-05-05  Bruno Haible  <bruno@clisp.org>
3233
3234         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
3235         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
3236         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
3237         to "guessing yes".
3238         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
3239         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
3240
3241 2012-05-05  Bruno Haible  <bruno@clisp.org>
3242
3243         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
3244         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
3245         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
3246         gl_cv_func_realpath_works to "guessing yes".
3247
3248 2012-05-05  Bruno Haible  <bruno@clisp.org>
3249
3250         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
3251         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
3252         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
3253
3254 2012-05-04  Bruno Haible  <bruno@clisp.org>
3255
3256         Tweak last commit.
3257         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
3258         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3259
3260 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
3261
3262         unistd_h: make it easier to avoid sys_types_h
3263         This is useful for Emacs, which has its own method of porting to
3264         Windows, and which therefore does not need the sys_types_h module.
3265         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
3266         code moved here from gl_SYS_TYPES_H.
3267         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
3268         using the code directly.
3269         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
3270         gl_SYS_TYPES_H.
3271         * modules/sys_types (Files):
3272         * modules/unistd (Files): Add m4/off_t.m4.
3273
3274 2012-05-03  Bruno Haible  <bruno@clisp.org>
3275
3276         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
3277         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
3278         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
3279         "guessing yes" or "guessing no".
3280         (gl_FUNC_LSTAT): Update.
3281         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
3282         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3283         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
3284
3285 2012-05-03  Bruno Haible  <bruno@clisp.org>
3286
3287         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
3288         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
3289         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
3290         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
3291         cross-compiling, choose the first alternative on glibc systems.
3292         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
3293
3294 2012-05-03  Bruno Haible  <bruno@clisp.org>
3295
3296         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
3297         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
3298         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
3299
3300 2012-05-03  Bruno Haible  <bruno@clisp.org>
3301
3302         chown: Avoid "guessing no" when cross-compiling to glibc systems.
3303         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
3304
3305 2012-05-03  Bruno Haible  <bruno@clisp.org>
3306
3307         Avoid "guessing no" guesses when cross-compiling to glibc systems.
3308         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
3309         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
3310         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
3311         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
3312         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
3313         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
3314         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
3315         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
3316         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
3317         compiling to glibc systems, set gl_cv_func_chown_slash_works,
3318         gl_cv_func_chown_ctime_works to "guessing yes".
3319         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
3320         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
3321         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
3322         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
3323         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
3324         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
3325         compiling to glibc systems, set gl_cv_func_open_directory_works to
3326         "guessing yes".
3327         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
3328         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
3329         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
3330         "guessing yes".
3331         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
3332         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
3333         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
3334         compiling to glibc systems, set gl_cv_func_floorf_ieee to
3335         "guessing yes".
3336         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
3337         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
3338         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
3339         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
3340         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
3341         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
3342         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
3343         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
3344         "guessing yes".
3345         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
3346         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
3347         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
3348         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
3349         "guessing yes".
3350         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
3351         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
3352         "guessing yes".
3353         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
3354         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
3355         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
3356         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
3357         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
3358         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
3359         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
3360         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
3361         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
3362         compiling to glibc systems, set gl_cv_func_log10f_ieee to
3363         "guessing yes".
3364         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
3365         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
3366         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
3367         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
3368         "guessing yes".
3369         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
3370         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
3371         "guessing yes".
3372         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
3373         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
3374         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
3375         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
3376         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
3377         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
3378         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
3379         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
3380         compiling to glibc systems, set gl_cv_func_mkfifo_works to
3381         "guessing yes".
3382         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
3383         compiling to glibc systems, set gl_cv_func_mknod_works to
3384         "guessing yes".
3385         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
3386         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
3387         "guessing yes".
3388         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
3389         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
3390         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
3391         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
3392         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
3393         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
3394         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
3395         compiling to glibc systems, set gl_cv_func_svid_putenv to
3396         "guessing yes".
3397         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
3398         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
3399         "guessing yes".
3400         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
3401         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
3402         "guessing yes".
3403         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
3404         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
3405         to "guessing yes".
3406         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
3407         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
3408         to "guessing yes".
3409         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
3410         compiling to glibc systems, set gl_cv_func_rmdir_works to
3411         "guessing yes".
3412         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
3413         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
3414         gl_cv_func_unlink_parent_fails to "guessing yes".
3415         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
3416         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
3417         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
3418         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
3419         gl_cv_func_rename_dest_works to "guessing yes".
3420         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
3421         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
3422         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
3423         compiling to glibc systems, set gl_cv_func_roundf_ieee to
3424         "guessing yes".
3425         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
3426         compiling to glibc systems, set gl_cv_func_roundl_ieee to
3427         "guessing yes".
3428         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
3429         compiling to glibc systems, set gl_cv_func_setenv_works to
3430         "guessing yes".
3431         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
3432         compiling to glibc systems, set gl_cv_func_unsetenv_works to
3433         "guessing yes".
3434         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
3435         compiling to glibc systems, set gl_cv_func_sleep_works to
3436         "guessing yes".
3437         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
3438         compiling to glibc systems, set gl_cv_func_stat_file_slash to
3439         "guessing yes".
3440         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
3441         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
3442         "guessing yes".
3443         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
3444         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
3445         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
3446         compiling to glibc systems, set gl_cv_func_truncf_ieee to
3447         "guessing yes".
3448         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
3449         compiling to glibc systems, set gl_cv_func_truncl_ieee to
3450         "guessing yes".
3451         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
3452         compiling to glibc systems, set gl_cv_func_usleep_works to
3453         "guessing yes".
3454         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
3455         compiling to glibc systems, set gl_cv_func_futimesat_works to
3456         "guessing yes".
3457
3458 2012-05-03  Bruno Haible  <bruno@clisp.org>
3459
3460         Say "guessing yes" or "guessing no" when cross-compiling.
3461         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
3462         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
3463         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
3464         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
3465         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
3466         am_cv_func_working_getline to "guessing yes" or "guessing no".
3467         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
3468         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
3469         (gl_FUNC_MEMMEM): When cross-compiling, set
3470         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
3471         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
3472         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
3473         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
3474         set gl_cv_func_strcasestr_works_always to "guessing yes" or
3475         "guessing no".
3476         (gl_FUNC_STRCASESTR): When cross-compiling, set
3477         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
3478         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
3479         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
3480         (gl_FUNC_STRSTR): When cross-compiling, set
3481         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
3482         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
3483         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
3484         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
3485         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
3486
3487 2012-05-01  Bruno Haible  <bruno@clisp.org>
3488
3489         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
3490         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
3491         * build-aux/reloc-ldflags: Likewise.
3492         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
3493
3494 2012-05-01  Bruno Haible  <bruno@clisp.org>
3495
3496         gnulib-tool: Remove transitional code.
3497         * gnulib-tool: Don't warn about --import with 0 arguments any more.
3498         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3499
3500 2012-05-01  Bruno Haible  <bruno@clisp.org>
3501
3502         getcwd: Fix misindentation.
3503         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
3504
3505 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
3506
3507         exclude: process exclude and include directives in order
3508         This restores the pre-2009 behavior, and is part of a fix of a
3509         grep bug reported by Quentin Arce in
3510         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
3511         * lib/exclude.c (struct exclude): Remove 'tail' member.
3512         (new_exclude_segment): Prepend the new segment instead of appending.
3513         Return void, since that's now more convenient.
3514         (file_pattern_matches): Renamed from excluded_file_pattern_p.
3515         (file_name_matches): Renamed from excluded_file_name_p.
3516         (file_pattern_matches, file_name_matches):
3517         Return true if the pattern matches, not if it excludes.
3518         All callers changed.
3519         (excluded_file_name): Process the list in reverse order;
3520         since the list is now reversed this restores the pre-2009 behavior.
3521         (add_exclude): Adjust to new reversed-order list.  Use local var
3522         rather than macro, for clarity.
3523         * tests/test-exclude7.sh: Adjust to corrected behavior.
3524
3525         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
3526         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
3527         it's not possible here.  Handle the case of \ at end of pattern
3528         without dumping core.
3529         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
3530
3531         _Noreturn: future-proof non-GNU and non-MSVC compilers
3532         * build-aux/snippet/_Noreturn.h (_Noreturn):
3533         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3534         Do not define _Noreturn if __STDC_VERSION__ indicates this is
3535         C11 or later.  This is more likely to work with random future C
3536         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
3537         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
3538
3539         exclude: handle wildcards with FNM_EXTMATCH
3540         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
3541         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
3542         comment that "has wildcards" really means "has or may have
3543         wildcards".  Simplify by avoiding the need to call strcspn.
3544
3545 2012-04-29  Bruno Haible  <bruno@clisp.org>
3546
3547         gnulib-tool: Fix list of authors.
3548         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
3549
3550 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
3551
3552         bootstrap: support Automake-NG in $buildreq
3553         * bootstrap (check_versions): Handle automake and aclocal from
3554         Automake-NG specially.  They can be specified as respectively
3555         the "automake-ng" and "aclocal-ng" requirements.
3556
3557 2012-04-25  Eric Blake  <eblake@redhat.com>
3558
3559         bootstrap: only force latest Makefile.in.in for gettext module
3560         * build-aux/bootstrap (with_gettext): Only install latest
3561         Makefile.in.in for projects requesting bleeding edge gettext.
3562
3563 2012-04-22  Bruno Haible  <bruno@clisp.org>
3564
3565         doc: Mention reason for replacement on glibc/Linux systems.
3566         * doc/posix-functions/dprintf.texi: Mention the problem with special
3567         'long double' values.
3568         * doc/posix-functions/fprintf.texi: Likewise.
3569         * doc/posix-functions/printf.texi: Likewise.
3570         * doc/posix-functions/snprintf.texi: Likewise.
3571         * doc/posix-functions/sprintf.texi: Likewise.
3572         * doc/posix-functions/vdprintf.texi: Likewise.
3573         * doc/posix-functions/vfprintf.texi: Likewise.
3574         * doc/posix-functions/vprintf.texi: Likewise.
3575         * doc/posix-functions/vsnprintf.texi: Likewise.
3576         * doc/posix-functions/vsprintf.texi: Likewise.
3577         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
3578         platforms with F_DUPFD_CLOEXEC problems.
3579         * doc/posix-functions/glob.texi: Mention which platforms are affected
3580         by the problem with symbolic links.
3581         * doc/posix-functions/linkat.texi: Mention the problem with
3582         AT_SYMLINK_FOLLOW on Linux.
3583
3584 2012-04-22  Bruno Haible  <bruno@clisp.org>
3585
3586         pwrite: Don't replace on all platforms.
3587         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
3588
3589 2012-04-22  Bruno Haible  <bruno@clisp.org>
3590
3591         rint* tests: Avoid gcc warnings.
3592         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
3593         * tests/test-rintf.c (INFINITY, NAN): Likewise.
3594         * tests/test-rintl.c (INFINITY, NAN): Likewise.
3595
3596 2012-04-21  Bruno Haible  <bruno@clisp.org>
3597
3598         users.txt: Update.
3599         * users.txt: Add freedink, wdiff. Update URLs for projects that have
3600         switched from CVS to git, bzr, or svn.
3601
3602 2012-04-21  Bruno Haible  <bruno@clisp.org>
3603
3604         Large File Support for native Windows platforms.
3605
3606         * m4/largefile.m4 (gl_LARGEFILE): New macro.
3607         * modules/largefile (configure.ac): Require gl_LARGEFILE.
3608
3609         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
3610         type.
3611         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
3612         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
3613         * doc/posix-headers/sys_types.texi: Mention the effect of the
3614         'largefile' module.
3615
3616         * lib/fcntl.in.h: Add comments about off_t.
3617         * modules/fcntl-h (Depends-on): Add sys_types.
3618
3619         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
3620         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
3621         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
3622         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
3623         * modules/unistd (Depends-on): Add sys_types.
3624         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
3625
3626         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
3627         instead of lseek.
3628         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
3629         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
3630         * modules/lseek (Depends-on): Add sys_types.
3631
3632         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
3633         msvc-nothrow.h.
3634         (SetFileSize): New function.
3635         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
3636         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
3637         if Large File Support is requested.
3638         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
3639         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
3640
3641         * lib/stdio.in.h: Add comments about off_t.
3642         * modules/stdio (Depends-on): Add sys_types.
3643
3644         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
3645         instead of ftello.
3646         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
3647         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
3648         (gl_PREREQ_FTELLO): New macro.
3649         * modules/ftello (Depends-on): Add sys_types.
3650         (configure.ac): Incoke gl_PREREQ_FTELLO.
3651
3652         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
3653         instead of fseeko.
3654         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
3655         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
3656         (gl_PREREQ_FSEEKO): New macro.
3657         * modules/fseeko (Depends-on): Add sys_types.
3658         (configure.ac): Invoke gl_PREREQ_FSEEKO.
3659
3660         * lib/sys_stat.in.h: Add comments about off_t.
3661         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
3662         64-bit integer for st_size in 'struct stat'.
3663         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
3664         Define _GL_WINDOWS_64_BIT_ST_SIZE.
3665         * modules/sys_stat (Depends-on): Add sys_types.
3666         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
3667
3668         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
3669         instead of stat or _stat.
3670
3671         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
3672         'struct _stati64' instead of fstat and 'struct stat'.
3673         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
3674         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
3675
3676         Reported by Ray Satiro <raysatiro@yahoo.com>.
3677
3678 2012-04-19  Eric Blake  <eblake@redhat.com>
3679
3680         bootstrap: accommodate older libtool
3681         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
3682         Reported by Daniel P. Berrange.
3683
3684 2012-04-19  Jim Meyering  <meyering@redhat.com>
3685
3686         announce-gen: avoid failure due to lack of Digest::SHA1
3687         Even with the preferred Digest::SHA available, this script
3688         would fail when the backup module, Digest::SHA1, was not installed.
3689         * build-aux/announce-gen: Quote the conditional use of "use".
3690         Reported by Reuben Thomas in:
3691         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
3692
3693         bootstrap: don't let a user's CDPATH setting affect this script
3694         When CDPATH is set, cd will sometimes generate output.
3695         When "cd" is run in a subshell whose output matters, that
3696         surprising-to-some output can cause malfunction.
3697         Unsetting CDPATH turns off this shell "feature."
3698         * build-aux/bootstrap (CDPATH): Unset.
3699         Reported by Reuben Thomas in:
3700         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
3701         and inspired by his patch here:
3702         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
3703
3704 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
3705         and Jim Meyering  <meyering@redhat.com>
3706
3707         maint.mk: catch "see @xref{}" and similar
3708         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
3709         prohibit "See also @xref{", "Also see @pxref{", and similar.
3710
3711 2012-04-16  Jim Meyering  <meyering@redhat.com>
3712
3713         bootstrap: really use gnulib's po/Makefile.in.in
3714         * build-aux/bootstrap: Correct the source file name in previous change.
3715         Reported by Akim Demaille.
3716
3717         configmake: correct minor inconsistency in Makefile rule
3718         * modules/configmake (Makefile.am): All other rules like this one
3719         run the final "mv -f ..." in the same backslash-continued command
3720         as the one that does everything else.  This one put the mv -f ...
3721         command on a separate, non-backslash-continued line.
3722         Make it like the others.
3723
3724         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
3725         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
3726         the one from gettext.  Reported by Akim Demaille.
3727
3728 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
3729
3730         Fix recursion of install-* into po directories.
3731         Bison's install-pdf bug reported by Hans Aberg at
3732         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
3733         * build-aux/po/Makefile.in.in (install-dvi, install-html)
3734         (install-info, install-pdf, install-ps): New targets.
3735
3736 2012-04-16  Jim Meyering  <meyering@redhat.com>
3737
3738         maint: avoid spurious "make sc_maint" failure
3739         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
3740         exempt all *.class file names, for lib/javaversion.class.
3741
3742 2012-04-15  Bruno Haible  <bruno@clisp.org>
3743
3744         lseek: Make configure test independent of environment.
3745         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
3746         Windows, we know that lseek() on pipes is broken; skip the runtime
3747         test.
3748
3749 2012-04-14  Bruno Haible  <bruno@clisp.org>
3750
3751         stat: Bypass buggy override in mingw64.
3752         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
3753         * lib/stat.c (stat) [mingw64]: Define to _stat.
3754         * doc/posix-functions/stat.texi: Mention mingw64 bug.
3755
3756 2012-04-14  Bruno Haible  <bruno@clisp.org>
3757
3758         pathmax: Fix compilation error on MSVC 9.
3759         * modules/pathmax (Depends-on): Add unistd.
3760
3761 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
3762
3763         README: document pointer comparison assumption
3764         * README (Portability guidelines): Document assumption about
3765         pointer comparisons, in response to a recent bug-gnulib comment by
3766         Jeffrey Kegler.
3767
3768 2012-04-12  Bruno Haible  <bruno@clisp.org>
3769
3770         Tests for module 'getrusage'.
3771         * modules/getrusage-tests: New file.
3772         * tests/test-getrusage.c: New file.
3773
3774         New module 'getrusage'.
3775         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
3776         warn-on-use.h.
3777         (getrusage): New declaration.
3778         * lib/getrusage.c: New file.
3779         * m4/getrusage.m4: New file.
3780         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
3781         is declared.
3782         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
3783         HAVE_GETRUSAGE.
3784         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
3785         snippet/c++defs, snippet/warn-on-use.
3786         (Makefile.am): Update generation of sys/resource.h. Substitute
3787         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
3788         * modules/getrusage: New file.
3789         * doc/posix-functions/getrusage.texi: Mention the new module.
3790
3791 2012-04-12  Bruno Haible  <bruno@clisp.org>
3792
3793         Tests for module 'sys_resource'.
3794         * modules/sys_resource-tests: New file.
3795         * tests/test-sys_resource.c: New file.
3796
3797         New module 'sys_resource'.
3798         * lib/sys_resource.in.h: New file.
3799         * m4/sys_resource_h.m4: New file.
3800         * modules/sys_resource: New file.
3801         * doc/posix-headers/sys_resource.texi: Mention the new module.
3802
3803 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
3804
3805         ioctl: Fix compilation error on mingw.
3806         * lib/ioctl.c: Include <windows.h>.
3807         Also reported by Ray Satiro <raysatiro@yahoo.com>.
3808
3809 2012-04-04  Jim Meyering  <meyering@redhat.com>
3810
3811         regex: correct #pragma guard expression
3812         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
3813         not 4.3.  Correct its cpp guard expression.
3814
3815 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
3816
3817         regex: remove unnecessary type punning
3818         Problem reported by Vladimir Serbinenko in
3819         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
3820         * lib/regex.h (struct re_pattern_buffer): Change the type of
3821         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
3822         Fix comment to match code.
3823         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
3824         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
3825         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
3826         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
3827         (set_regs):
3828         Omit no-longer-necessary casts.
3829
3830 2012-04-03  Bruno Haible  <bruno@clisp.org>
3831
3832         Tests for module 'ilogbl'.
3833         * modules/ilogbl-tests: New file.
3834         * tests/test-ilogbl.c: New file.
3835
3836         New module 'ilogbl'.
3837         * lib/math.in.h (ilogbl): New declaration.
3838         * lib/ilogbl.c: New file.
3839         * m4/ilogbl.m4: New file.
3840         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
3841         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
3842         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
3843         Split sed invocation, to avoid the limit of 100 substitutions of
3844         HP-UX 'sed'.
3845         * modules/ilogbl: New file.
3846         * tests/test-math-c++.cc: Check the declaration of ilogbl.
3847         * doc/posix-functions/ilogbl.texi: Mention the new module.
3848
3849 2012-04-03  Bruno Haible  <bruno@clisp.org>
3850
3851         Tests for module 'ilogbf'.
3852         * modules/ilogbf-tests: New file.
3853         * tests/test-ilogbf.c: New file.
3854
3855         New module 'ilogbf'.
3856         * lib/math.in.h (ilogbf): New declaration.
3857         * lib/ilogbf.c: New file.
3858         * m4/ilogbf.m4: New file.
3859         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
3860         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
3861         REPLACE_ILOGBF.
3862         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
3863         REPLACE_ILOGBF.
3864         * modules/ilogbf: New file.
3865         * tests/test-math-c++.cc: Check the declaration of ilogbf.
3866         * doc/posix-functions/ilogbf.texi: Mention the new module.
3867
3868 2012-04-03  Bruno Haible  <bruno@clisp.org>
3869
3870         Tests for module 'ilogb'.
3871         * modules/ilogb-tests: New file.
3872         * tests/test-ilogb.c: New file.
3873         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
3874         tests/test-logb-ieee.h.
3875
3876         New module 'ilogb'.
3877         * lib/math.in.h (ilogb): New declaration.
3878         * lib/ilogb.c: New file.
3879         * m4/ilogb.m4: New file.
3880         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
3881         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
3882         REPLACE_ILOGB.
3883         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
3884         REPLACE_ILOGB.
3885         * modules/ilogb: New file.
3886         * tests/test-math-c++.cc: Check the declaration of ilogb.
3887         * doc/posix-functions/ilogb.texi: Mention the new module.
3888
3889 2012-04-03  Bruno Haible  <bruno@clisp.org>
3890
3891         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
3892         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
3893         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
3894         (main): Check their values.
3895         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
3896         problem.
3897
3898 2012-04-03  Bruno Haible  <bruno@clisp.org>
3899
3900         Tests for module 'logbl-ieee'.
3901         * modules/logbl-ieee-tests: New file.
3902         * tests/test-logbl-ieee.c: New file.
3903
3904         New module 'logbl-ieee'.
3905         * modules/logbl-ieee: New file.
3906
3907         Tests for module 'logb-ieee'.
3908         * modules/logb-ieee-tests: New file.
3909         * tests/test-logb-ieee.c: New file.
3910
3911         New module 'logb-ieee'.
3912         * modules/logb-ieee: New file.
3913
3914         Tests for module 'logbf-ieee'.
3915         * modules/logbf-ieee-tests: New file.
3916         * tests/test-logbf-ieee.c: New file.
3917         * tests/test-logb-ieee.h: New file.
3918
3919         New module 'logbf-ieee'.
3920         * modules/logbf-ieee: New file.
3921
3922 2012-04-03  Bruno Haible  <bruno@clisp.org>
3923
3924         Tests for module 'logbl'.
3925         * modules/logbl-tests: New file.
3926         * tests/test-logbl.c: New file.
3927
3928         New module 'logbl'.
3929         * lib/math.in.h (logbl): New declaration.
3930         * lib/logbl.c: New file.
3931         * m4/logbl.m4: New file.
3932         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
3933         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
3934         REPLACE_LOGBL.
3935         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
3936         REPLACE_LOGBL.
3937         * modules/logbl: New file.
3938         * tests/test-math-c++.cc: Check the declaration of logbl.
3939         * doc/posix-functions/logbl.texi: Mention the new module.
3940
3941 2012-04-02  Bruno Haible  <bruno@clisp.org>
3942
3943         Tests for module 'logbf'.
3944         * modules/logbf-tests: New file.
3945         * tests/test-logbf.c: New file.
3946
3947         New module 'logbf'.
3948         * lib/math.in.h (logbf): New declaration.
3949         * lib/logbf.c: New file.
3950         * m4/logbf.m4: New file.
3951         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
3952         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
3953         REPLACE_LOGBF.
3954         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
3955         REPLACE_LOGBF.
3956         * modules/logbf: New file.
3957         * tests/test-math-c++.cc: Check the declaration of logbf.
3958         * doc/posix-functions/logbf.texi: Mention the new module.
3959
3960 2012-04-02  Bruno Haible  <bruno@clisp.org>
3961
3962         logb tests: More tests.
3963         * tests/test-logb.h: New file, based on tests/test-logb.c and
3964         tests/test-frexp.h.
3965         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
3966         (main): Just invoke test_function.
3967         * modules/logb-tests (Files): Add tests/test-logb.h,
3968         tests/minus-zero.h, tests/randomd.c.
3969         (Makefile.am): Add randomd.c to test_logb_SOURCES.
3970
3971         logb: Provide replacement and workarounds.
3972         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
3973         is 1.
3974         * lib/logb.c: New file.
3975         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
3976         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
3977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
3978         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
3979         * modules/logb (Files): Add lib/logb.c.
3980         (Depends-on): Add isfinite, frexp, isnand.
3981         (configure.ac): Compile the replacement code logb.c if needed.
3982         * tests/test-math-c++.cc: Check the declaration of logb.
3983         * doc/posix-functions/logb.texi: Mention the replacement and the bug
3984         with subnormal numbers.
3985
3986 2012-04-02  Bruno Haible  <bruno@clisp.org>
3987
3988         log10* tests: Speed up.
3989         * tests/test-log10.h (test_function): Reduce amount of random numbers
3990         to test.
3991
3992 2012-04-01  Bruno Haible  <bruno@clisp.org>
3993
3994         logf-ieee: Fix test whether logf works.
3995         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
3996
3997 2012-04-01  Bruno Haible  <bruno@clisp.org>
3998
3999         log10l: Work around log10l-ieee test failure on IRIX 6.5.
4000         * lib/log10l.c: Include <float.h>
4001         (log10l): On IRIX, normalize the +Infinity value.
4002         * modules/log10l (Depends-on): Add 'float'.
4003         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
4004         +Infinity.
4005
4006         log10f-ieee: Work around test failure on NetBSD 5.1.
4007         * m4/log10f-ieee.m4: New file.
4008         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
4009         test whether log10f works with a negative argument. Replace it if not.
4010         * lib/log10f.c (log10f): For negative arguments, return NaN.
4011         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
4012         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
4013         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
4014
4015         log10f-ieee: Work around test failure on Solaris 9.
4016         * modules/log10f-ieee (Depends-on): Add log10-ieee.
4017         (configure.ac): Require gl_FUNC_LOG10F.
4018
4019         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4020         * m4/log10-ieee.m4: New file.
4021         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
4022         whether log10 works with a negative argument. Replace it if not.
4023         * lib/log10.c (log10): For negative arguments, return NaN.
4024         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
4025         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
4026         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
4027
4028         Tests for module 'log10l-ieee'.
4029         * modules/log10l-ieee-tests: New file.
4030         * tests/test-log10l-ieee.c: New file.
4031
4032         New module 'log10l-ieee'.
4033         * modules/log10l-ieee: New file.
4034
4035         Tests for module 'log10-ieee'.
4036         * modules/log10-ieee-tests: New file.
4037         * tests/test-log10-ieee.c: New file.
4038
4039         New module 'log10-ieee'.
4040         * modules/log10-ieee: New file.
4041
4042         Tests for module 'log10f-ieee'.
4043         * modules/log10f-ieee-tests: New file.
4044         * tests/test-log10f-ieee.c: New file.
4045         * tests/test-log10-ieee.h: New file.
4046
4047         New module 'log10f-ieee'.
4048         * modules/log10f-ieee: New file.
4049
4050 2012-04-01  Bruno Haible  <bruno@clisp.org>
4051
4052         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
4053         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
4054         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
4055         workaround.
4056         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
4057         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
4058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
4059         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
4060         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
4061         (Depends-on): Update conditions.
4062         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
4063         IRIX 6.5, OSF/1 5.1 problems.
4064
4065 2012-04-01  Bruno Haible  <bruno@clisp.org>
4066
4067         log10f: Work around OSF/1 5.1 bug.
4068         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
4069         * lib/log10f.c (log10f): If logf exists, use it and provide just the
4070         workaround.
4071         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
4072         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
4073         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
4074         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
4075         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
4076         (Depends-on): Update conditions.
4077         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
4078
4079 2012-04-01  Bruno Haible  <bruno@clisp.org>
4080
4081         log10: Work around OSF/1 5.1 bug.
4082         * lib/math.in.h (log10): New declaration.
4083         * lib/log10.c: New file.
4084         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
4085         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
4086         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
4087         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
4088         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
4089         * modules/log10 (Files): Add lib/log10.c.
4090         (Depends-on): Add math.
4091         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
4092         * tests/test-math-c++.cc: Check the declaration of log10.
4093         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
4094
4095 2012-03-31  Bruno Haible  <bruno@clisp.org>
4096
4097         log10l tests: More tests.
4098         * modules/log10l-tests (Files): Add tests/test-log10l.h,
4099         tests/minus-zero.h, tests/randoml.c.
4100         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
4101         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
4102         (main): Invoke test_function.
4103
4104         log10f tests: More tests.
4105         * modules/log10f-tests (Files): Add tests/test-log10.h,
4106         tests/minus-zero.h, tests/randomf.c.
4107         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
4108         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
4109         (main): Invoke test_function.
4110
4111         log10 tests: More tests.
4112         * tests/test-log10.h: New file.
4113         * modules/log10-tests (Files): Add tests/test-log10.h,
4114         tests/minus-zero.h, tests/randomd.c.
4115         (Makefile.am): Add randomd.c to test_log10_SOURCES.
4116         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
4117         (main): Invoke test_function.
4118
4119 2012-03-31  Simon Josefsson  <simon@josefsson.org>
4120
4121         fflush: Fix syntax error.
4122         * lib/fflush.c: Include unused-parameter.h, needed for
4123         _GL_UNUSED_PARAMETER.
4124         * modules/fflush (Depends-on): Add snippet/unused-parameter.
4125
4126 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4127
4128         regex: pacify GCC when compiling GRUB
4129         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
4130         a diagnostic.  Reported by Vladimir Serbinenko in
4131         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
4132
4133 2012-03-29  Eric Blake  <eblake@redhat.com>
4134
4135         stdio: don't assume gets any more
4136         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
4137         support.
4138         * modules/stdio (Makefile.am): Likewise.
4139         * lib/stdio-read.c (gets): Likewise.
4140         * tests/test-stdio-c++.cc: Likewise.
4141         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
4142         * lib/stdio.in.h (gets): Make warning occur in more places.
4143         * doc/posix-functions/gets.texi (gets): Update documentation.
4144         Reported by Christer Solskogen.
4145
4146         maint.mk: fix syntax checks without exclusions
4147         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
4148         Reported by Daniel P. Berrange.
4149
4150         strerror_r: avoid compiler warning
4151         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
4152         level.
4153
4154         fflush: avoid compiler warning
4155         * lib/fflush.c (update_fpos_cache): Mark variables that are
4156         potentially unused.
4157
4158 2012-03-25  Bruno Haible  <bruno@clisp.org>
4159
4160         Tests for module 'localeconv'.
4161         * modules/localeconv-tests: New file.
4162         * tests/test-localeconv.c: New file.
4163
4164         New module 'localeconv'.
4165         * lib/locale.in.h (localeconv): New declaration.
4166         * lib/localeconv.c: New file.
4167         * m4/localeconv.m4: New file.
4168         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
4169         REPLACE_LOCALECONV.
4170         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
4171         REPLACE_LOCALECONV.
4172         * modules/localeconv: New file.
4173         * modules/nl_langinfo (Depends-on): Add localeconv.
4174         * modules/human (Depends-on): Likewise.
4175         * doc/posix-functions/localeconv.texi: Mention the new module.
4176
4177 2012-03-25  Bruno Haible  <bruno@clisp.org>
4178
4179         locale: Provide a complete 'struct lconv'.
4180         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4181         'struct lconv' does not contain int_p_cs_precedes.
4182         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4183         * doc/posix-headers/locale.texi: Update.
4184
4185         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
4186         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
4187         * doc/posix-headers/locale.texi: Update.
4188
4189         locale: Provide a working 'struct lconv'.
4190         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
4191         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4192         'struct lconv' does not even contain decimal_point.
4193         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
4194         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
4195         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4196         * doc/posix-headers/locale.texi: Mention the problems with
4197         'struct lconv'.
4198         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
4199
4200 2012-03-24  Bruno Haible  <bruno@clisp.org>
4201
4202         Enable common subexpression optimization in GCC.
4203         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
4204         macros.
4205         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
4206         GCC attribute 'const'.
4207         (uc_locale_language): Declare with GCC attribute 'pure'.
4208         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
4209         with GCC attribute 'const'.
4210         * lib/unictype.in.h (uc_is_general_category_withtable,
4211         uc_combining_class, uc_combining_class_name,
4212         uc_combining_class_long_name, uc_bidi_class_name,
4213         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
4214         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
4215         uc_decimal_value, uc_digit_value, uc_numeric_value,
4216         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
4217         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
4218         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
4219         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
4220         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
4221         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
4222         Declare with GCC attribute 'const'.
4223         (uc_general_category_name, uc_general_category_long_name,
4224         uc_general_category_byname, uc_general_category,
4225         uc_is_general_category, uc_combining_class_byname,
4226         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
4227         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
4228         Declare with GCC attribute 'pure'.
4229         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
4230         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
4231         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
4232         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
4233         with GCC attribute 'pure'.
4234         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
4235         'const'.
4236         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
4237         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
4238         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
4239         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
4240         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
4241         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
4242         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
4243         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
4244         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
4245         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
4246         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
4247         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
4248         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
4249         GCC attribute 'pure'.
4250         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
4251         'const'.
4252         * lib/uniwidth.in.h (uc_width): Simplify declaration.
4253         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
4254         u32_strwidth): Declare with GCC attribute 'pure'.
4255
4256         Enable common subexpression optimization in GCC.
4257         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4258         (alphasort): Declare with GCC attribute 'pure'.
4259         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4260         (atoll): Declare with GCC attribute 'pure'.
4261         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
4262         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
4263         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
4264         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4265         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
4266         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
4267         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
4268
4269 2012-03-24  Bruno Haible  <bruno@clisp.org>
4270
4271         gnulib-tool: Avoid unintended error output from 'cmp'.
4272         * gnulib-tool (func_add_file, func_update_file, func_import): Use
4273         "cmp -s", not "cmp > /dev/null".
4274
4275 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
4276
4277         gnulib-tool: fix imprecise comments w.r.t. an automake bug
4278
4279         It's not just Automake versions < 1.9b that creates an empty
4280         pkgdatadir at installation time if pkgdata_DATA is specified
4281         to empty; modern automake versions do this as well, at least
4282         until automake 1.11.4 (not yet released at the moment of writing,
4283         but soon to appear).  That behaviour was generally considered a
4284         feature rather than a bug, at least until this discussion:
4285         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
4286
4287         See also automake bugs #10997 and #11030.
4288
4289         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
4290         reference to relevant automake bug numbers.
4291         (func_emit_tests_Makefile_am): Likewise.
4292
4293 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4294
4295         announce-gen: use Digest::SHA when possible
4296         * build-aux/announce-gen: Use Digest::SHA when possible, falling
4297         back to Digest::SHA1 if necessary.
4298
4299 2012-03-20  Jim Meyering  <meyering@redhat.com>
4300
4301         tests: avoid gcc warnings about argv vs. const initializers
4302         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
4303         warnings about discarding 'const' qualifier from pointer target type.
4304         * tests/test-posix_spawn2.c (main): Likewise.
4305
4306 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4307
4308         README-release: simplify slightly
4309         * top/README-release: Run "git checkout master" only once.
4310
4311 2012-03-15  Mark Wielaard  <mark@klomp.org>
4312
4313         git-merge-changelog: add specific example on how to use with hg.
4314         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
4315
4316 2012-03-18  Mark Wielaard  <mark@klomp.org>
4317
4318         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
4319
4320 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
4321
4322         git-version-gen: don't let "prefix" envvar cause trouble
4323         * build-aux/git-version-gen (prefix): Initialize properly,
4324         so as not to use a value specified via the environment.
4325         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
4326
4327 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4328
4329         regex: diagnose too-large repeat counts in EREs
4330         Previously, the code did not diagnose the too-large repeat count
4331         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
4332         as if it were 'b\{1000000000}', which is unexpected.
4333         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
4334         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
4335         is a reasonable one for this problem.  Another option would be to
4336         create a new REG_OVERFLOW error for repeat counts that are too large.
4337         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
4338         count is too large, so that the caller can distinguish the two cases.
4339         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
4340         "Too large" return code, and that repeat counts are one example of this.
4341
4342 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4343
4344         doc: some glibc x32 integer width issues
4345         * doc/posix-headers/sys_types.texi (sys/types.h):
4346         * doc/posix-headers/time.texi (time.h):
4347         Mention that glibc x32 does not conform to POSIX in a couple of
4348         areas related to integer widths.
4349
4350 2012-03-15  Bruno Haible  <bruno@clisp.org>
4351
4352         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
4353         * lib/fma.c (VOLATILE): New macro.
4354         (FUNC): Use it to work around a GCC compiler bug.
4355
4356 2012-03-13  Bruno Haible  <bruno@clisp.org>
4357
4358         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4359         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
4360         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
4361         REPLACE_HYPOTL to 1.
4362         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
4363
4364 2012-03-13  Bruno Haible  <bruno@clisp.org>
4365
4366         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4367         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
4368         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
4369         REPLACE_REMAINDERL to 1.
4370         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
4371         bug.
4372
4373 2012-03-13  Bruno Haible  <bruno@clisp.org>
4374
4375         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4376         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
4377         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
4378         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
4379         too big rounding errors.
4380         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
4381         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
4382         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
4383         (Depends-on): Update conditions.
4384         * tests/test-sqrtl.c (my_ldexpl): New function.
4385         (main): Add test of a particular value.
4386         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4387
4388 2012-03-13  Pádraig Brady  <P@draigBrady.com>
4389
4390         doc: Update timer_* platform portability notes.
4391         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
4392         that always return ENOSYS.
4393         * doc/posix-functions/timer_delete.texi: Likewise.
4394         * doc/posix-functions/timer_gettime.texi: Likewise.
4395         * doc/posix-functions/timer_settime.texi: Likewise.
4396
4397 2012-03-13  Bruno Haible  <bruno@clisp.org>
4398
4399         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4400         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
4401         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
4402         REPLACE_CBRTL to 1.
4403         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4404
4405 2012-03-13  Bruno Haible  <bruno@clisp.org>
4406
4407         remainderl: Avoid compilation error on AIX >= 5.2.
4408         * lib/math.in.h (remainderl): Undefine macro from the system header.
4409
4410 2012-03-13  Bruno Haible  <bruno@clisp.org>
4411
4412         Avoid compilation errors with MSVC option -fp:strict.
4413         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
4414         * lib/cbrtf.c: Likewise.
4415         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4416
4417 2012-03-12  Bruno Haible  <bruno@clisp.org>
4418
4419         uninorm: Don't crash in out-of-memory conditions.
4420         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
4421         gracefully.
4422         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
4423         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
4424
4425 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
4426
4427         quote: fix syntax-check
4428         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
4429         also exports quote_quoting_options.
4430
4431 2012-03-12  Simon Josefsson  <simon@josefsson.org>
4432
4433         Collapse list of copyright years to ranges.  See
4434         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
4435         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
4436         build-aux/csharpexec.sh.in, build-aux/gnupload,
4437         build-aux/install-reloc, build-aux/javacomp.sh.in,
4438         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
4439         build-aux/move-if-change, build-aux/reloc-ldflags,
4440         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
4441
4442 2012-03-11  Bruno Haible  <bruno@clisp.org>
4443
4444         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4445         * m4/log2f-ieee.m4: New file.
4446         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
4447         whether log2f works with a minus zero argument. Replace it if not.
4448         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
4449         (Depends-on): Add log2-ieee.
4450         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
4451         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
4452
4453         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4454         * m4/log2-ieee.m4: New file.
4455         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
4456         whether log2 works with a minus zero argument. Replace it if not.
4457         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
4458         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
4459         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
4460
4461         Tests for module 'log2l-ieee'.
4462         * modules/log2l-ieee-tests: New file.
4463         * tests/test-log2l-ieee.c: New file.
4464
4465         New module 'log2l-ieee'.
4466         * modules/log2l-ieee: New file.
4467
4468         Tests for module 'log2-ieee'.
4469         * modules/log2-ieee-tests: New file.
4470         * tests/test-log2-ieee.c: New file.
4471
4472         New module 'log2-ieee'.
4473         * modules/log2-ieee: New file.
4474
4475         Tests for module 'log2f-ieee'.
4476         * modules/log2f-ieee-tests: New file.
4477         * tests/test-log2f-ieee.c: New file.
4478         * tests/test-log2-ieee.h: New file.
4479
4480         New module 'log2f-ieee'.
4481         * modules/log2f-ieee: New file.
4482
4483 2012-03-11  Bruno Haible  <bruno@clisp.org>
4484
4485         Tests for module 'log2l'.
4486         * modules/log2l-tests: New file.
4487         * tests/test-log2l.c: New file.
4488
4489         New module 'log2l'.
4490         * lib/math.in.h (log2l): New declaration.
4491         * lib/log2l.c: New file.
4492         * m4/log2l.m4: New file.
4493         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
4494         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
4495         REPLACE_LOG2L.
4496         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
4497         REPLACE_LOG2L.
4498         * modules/log2l: New file.
4499         * tests/test-math-c++.cc: Check the declaration of log2l.
4500         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
4501         and OSF/1 problems.
4502
4503 2012-03-11  Bruno Haible  <bruno@clisp.org>
4504
4505         Tests for module 'log2f'.
4506         * modules/log2f-tests: New file.
4507         * tests/test-log2f.c: New file.
4508
4509         New module 'log2f'.
4510         * lib/math.in.h (log2f): New declaration.
4511         * lib/log2f.c: New file.
4512         * m4/log2f.m4: New file.
4513         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
4514         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
4515         REPLACE_LOG2F.
4516         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
4517         REPLACE_LOG2F.
4518         * modules/log2f: New file.
4519         * tests/test-math-c++.cc: Check the declaration of log2f.
4520         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
4521         and OSF/1 and Cygwin problems.
4522
4523 2012-03-11  Bruno Haible  <bruno@clisp.org>
4524
4525         Tests for module 'log2'.
4526         * modules/log2-tests: New file.
4527         * tests/test-log2.c: New file.
4528         * tests/test-log2.h: New file.
4529
4530         New module 'log2'.
4531         * lib/math.in.h (log2): New declaration.
4532         * lib/log2.c: New file.
4533         * m4/log2.m4: New file.
4534         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
4535         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
4536         REPLACE_LOG2.
4537         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
4538         REPLACE_LOG2.
4539         * modules/log2: New file.
4540         * tests/test-math-c++.cc: Check the declaration of log2.
4541         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
4542         and OSF/1 and Cygwin problems.
4543
4544 2012-03-11  Bruno Haible  <bruno@clisp.org>
4545
4546         exp2* tests: More tests.
4547         * tests/test-exp2.h (test_function): Test all integral arguments that
4548         don't need to overflow or denormalized numbers.
4549         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
4550         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
4551         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
4552
4553 2012-03-10  Bruno Haible  <bruno@clisp.org>
4554
4555         log1pl-ieee: Work around test failure on AIX 7.1.
4556         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
4557
4558         log1pl-ieee: Work around test failure on IRIX 6.5.
4559         * m4/log1pl-ieee.m4: New file.
4560         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
4561         test whether log1pl works with a minus zero argument. Replace it if
4562         not.
4563         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
4564         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
4565         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
4566         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
4567         (Depends-on): Update conditions.
4568         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4569         m4/signbit.m4.
4570         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
4571         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
4572
4573         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
4574         * m4/log1pf-ieee.m4: New file.
4575         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
4576         test whether log1pf works with a minus zero argument. Replace it if
4577         not.
4578         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
4579         m4/signbit.m4.
4580         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
4581         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
4582
4583         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
4584         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
4585         (configure.ac): Require gl_FUNC_LOG1PF.
4586
4587         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
4588         * m4/log1p-ieee.m4: New file.
4589         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
4590         whether log1p works with a minus zero argument. Replace it if not.
4591         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
4592         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
4593         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
4594         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
4595         (Depends-on): Update conditions.
4596         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4597         m4/signbit.m4.
4598         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
4599         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
4600
4601         Tests for module 'log1pl-ieee'.
4602         * modules/log1pl-ieee-tests: New file.
4603         * tests/test-log1pl-ieee.c: New file.
4604
4605         New module 'log1pl-ieee'.
4606         * modules/log1pl-ieee: New file.
4607
4608         Tests for module 'log1p-ieee'.
4609         * modules/log1p-ieee-tests: New file.
4610         * tests/test-log1p-ieee.c: New file.
4611
4612         New module 'log1p-ieee'.
4613         * modules/log1p-ieee: New file.
4614
4615         Tests for module 'log1pf-ieee'.
4616         * modules/log1pf-ieee-tests: New file.
4617         * tests/test-log1pf-ieee.c: New file.
4618         * tests/test-log1p-ieee.h: New file.
4619
4620         New module 'log1pf-ieee'.
4621         * modules/log1pf-ieee: New file.
4622
4623 2012-03-10  Bruno Haible  <bruno@clisp.org>
4624
4625         Tests for module 'log1pl'.
4626         * modules/log1pl-tests: New file.
4627         * tests/test-log1pl.c: New file.
4628
4629         New module 'log1pl'.
4630         * lib/math.in.h (log1pl): New declaration.
4631         * lib/log1pl.c: New file.
4632         * m4/log1pl.m4: New file.
4633         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
4634         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
4635         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
4636         * modules/log1pl: New file.
4637         * tests/test-math-c++.cc: Check the declaration of log1pl.
4638         * doc/posix-functions/log1pl.texi: Mention the new module.
4639
4640 2012-03-10  Bruno Haible  <bruno@clisp.org>
4641
4642         Tests for module 'log1pf'.
4643         * modules/log1pf-tests: New file.
4644         * tests/test-log1pf.c: New file.
4645
4646         New module 'log1pf'.
4647         * lib/math.in.h (log1pf): New declaration.
4648         * lib/log1pf.c: New file.
4649         * m4/log1pf.m4: New file.
4650         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
4651         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
4652         REPLACE_LOG1PF.
4653         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
4654         REPLACE_LOG1PF.
4655         * modules/log1pf: New file.
4656         * tests/test-math-c++.cc: Check the declaration of log1pf.
4657         * doc/posix-functions/log1pf.texi: Mention the new module.
4658
4659 2012-03-10  Bruno Haible  <bruno@clisp.org>
4660
4661         log1p tests: More tests.
4662         * tests/test-log1p.h: New file.
4663         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
4664         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
4665         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
4666         (main): Invoke test_function.
4667
4668         log1p: Provide replacement for Minix and MSVC.
4669         * lib/math.in.h (log1p): New declaration.
4670         * lib/log1p.c: New file.
4671         * m4/log1p.m4: New file.
4672         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
4673         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
4674         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
4675         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
4676         (Depends-on): Add math, isnand, log, round.
4677         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
4678         HAVE_LOG1P is 0.
4679         * tests/test-math-c++.cc: Check the declaration of log1p.
4680         * doc/posix-functions/log1p.texi: Mention the replacement.
4681
4682 2012-03-10  Bruno Haible  <bruno@clisp.org>
4683
4684         math tests: Small simplification.
4685         * tests/test-exp.h (test_function): Use the same err_bound for
4686         'double' on platforms with sizeof (long double) == sizeof (double)
4687         than on platforms with sizeof (long double) > sizeof (double).
4688         * tests/test-exp2.h (test_function): Likewise.
4689         * tests/test-expm1.h (test_function): Likewise.
4690         * tests/test-log.h (test_function): Likewise.
4691
4692 2012-03-10  Bruno Haible  <bruno@clisp.org>
4693
4694         Fix some comments.
4695         * lib/expl.c: Fix an ambiguous comment.
4696         * lib/expm1.c: Likewise.
4697         * lib/expm1l.c: Likewise.
4698         * lib/exp2.c: Likewise.
4699         * lib/exp2l.c: Likewise.
4700
4701 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
4702
4703         regex: allow inclusion of <regex.h> before <limits.h>
4704         Without this patch, portable programs had to include <limits.h> before
4705         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
4706         I ran into this problem with a test version of GNU grep on Solaris 8.
4707         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
4708         This is done conditionally so that this change can be merged
4709         back to glibc.
4710         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
4711         using the included regex.
4712
4713         fts: depend on fdopendir
4714         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
4715         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
4716         problem was introduced when fdopendir was split out.
4717
4718 2012-03-10  Bruno Haible  <bruno@clisp.org>
4719
4720         Remove unused variables.
4721         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
4722         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4723
4724 2012-03-10  Bruno Haible  <bruno@clisp.org>
4725
4726         isnanf-nolibm: Fix last commit.
4727         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
4728
4729         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
4730         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
4731
4732 2012-03-10  Bruno Haible  <bruno@clisp.org>
4733
4734         logf-ieee: Work around test failure on NetBSD 5.1.
4735         * m4/logf-ieee.m4: New file.
4736         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
4737         whether logf works with a negative argument. Replace it if not.
4738         * lib/logf.c (logf): For negative arguments, return NaN.
4739         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
4740         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
4741         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
4742
4743         logf-ieee: Work around test failure on Solaris 9.
4744         * modules/logf-ieee (Depends-on): Add log-ieee.
4745         (configure.ac): Require gl_FUNC_LOGF.
4746
4747         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4748         * m4/log-ieee.m4: New file.
4749         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
4750         log works with a negative argument. Replace it if not.
4751         * lib/log.c (log): For negative arguments, return NaN.
4752         * modules/log-ieee (Files): Add m4/log-ieee.m4.
4753         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
4754         * doc/posix-functions/log.texi: Mention the log-ieee module.
4755
4756         Tests for module 'logl-ieee'.
4757         * modules/logl-ieee-tests: New file.
4758         * tests/test-logl-ieee.c: New file.
4759
4760         New module 'logl-ieee'.
4761         * modules/logl-ieee: New file.
4762
4763         Tests for module 'log-ieee'.
4764         * modules/log-ieee-tests: New file.
4765         * tests/test-log-ieee.c: New file.
4766
4767         New module 'log-ieee'.
4768         * modules/log-ieee: New file.
4769
4770         Tests for module 'logf-ieee'.
4771         * modules/logf-ieee-tests: New file.
4772         * tests/test-logf-ieee.c: New file.
4773         * tests/test-log-ieee.h: New file.
4774
4775         New module 'logf-ieee'.
4776         * modules/logf-ieee: New file.
4777
4778 2012-03-10  Bruno Haible  <bruno@clisp.org>
4779
4780         log: Fix bug introduced on 2012-03-09.
4781         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
4782
4783 2012-03-10  Pádraig Brady  <P@draigBrady.com>
4784
4785         timer-time: link explicitly with pthreads on glibc
4786         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
4787         to support static linking, when newer glibc is
4788         detected, as that contains pthread emulation of
4789         POSIX timer functions where required.
4790         * modules/timer-time: Depend on threadlib to
4791         pull in the appropriate library to link.
4792
4793 2012-03-10  Bruno Haible  <bruno@clisp.org>
4794
4795         log* tests: More tests.
4796         * tests/test-log.h: New file.
4797         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
4798         (main): Invoke test_function.
4799         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
4800         (main): Invoke test_function.
4801         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
4802         (main): Invoke test_function.
4803         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4804         tests/randomd.c.
4805         (Makefile.am): Add randomd.c to test_log_SOURCES.
4806         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4807         tests/randomf.c.
4808         (Makefile.am): Add randomf.c to test_logf_SOURCES.
4809         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4810         tests/randoml.c.
4811         (Depends-on): Add 'float'.
4812         (Makefile.am): Add randoml.c to test_logl_SOURCES.
4813
4814 2012-03-09  Bruno Haible  <bruno@clisp.org>
4815
4816         logl: Work around OSF/1 5.1 bug.
4817         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
4818         * lib/logl.c (logl): If logl exists, use it and provide just the
4819         workaround.
4820         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
4821         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
4822         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
4823         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
4824         * modules/logl (configure.ac): Consider REPLACE_LOGL.
4825         (Depends-on): Update conditions.
4826         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
4827
4828 2012-03-09  Bruno Haible  <bruno@clisp.org>
4829
4830         logf: Work around OSF/1 5.1 bug.
4831         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
4832         * lib/logf.c (logf): If logf exists, use it and provide just the
4833         workaround.
4834         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
4835         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
4836         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
4837         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
4838         * modules/logf (configure.ac): Consider REPLACE_LOGF.
4839         (Depends-on): Update conditions.
4840         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
4841
4842 2012-03-09  Bruno Haible  <bruno@clisp.org>
4843
4844         log: Work around OSF/1 5.1 bug.
4845         * lib/math.in.h (log): New declaration.
4846         * lib/log.c: New file.
4847         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
4848         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
4849         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
4850         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
4851         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
4852         * modules/log (Files): Add lib/log.c.
4853         (Depends-on): Add math.
4854         (configure.ac): If REPLACE_LOG is 1, compile an override.
4855         * tests/test-math-c++.cc: Check the declaration of log.
4856         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
4857
4858 2012-03-09  Jim Meyering  <meyering@redhat.com>
4859
4860         readtokens.c: adjust wording in a comment
4861         * lib/readtokens.c: Insert omitted "that" in a comment.
4862
4863 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4864
4865         modechange: add notations +40, 00440, etc.
4866         * lib/modechange.c (mode_compile): Support new notations
4867         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
4868
4869 2012-03-08  Bruno Haible  <bruno@clisp.org>
4870
4871         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
4872         * m4/exp2l-ieee.m4: New file.
4873         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
4874         test whether exp2l works with a NaN argument and with a negative
4875         infinity argument. Replace it if not.
4876         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
4877         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
4878         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
4879         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
4880         (Depends-on): Update conditions.
4881         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
4882         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
4883         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
4884
4885         Tests for module 'exp2l-ieee'.
4886         * modules/exp2l-ieee-tests: New file.
4887         * tests/test-exp2l-ieee.c: New file.
4888
4889         New module 'exp2l-ieee'.
4890         * modules/exp2l-ieee: New file.
4891
4892         Tests for module 'exp2-ieee'.
4893         * modules/exp2-ieee-tests: New file.
4894         * tests/test-exp2-ieee.c: New file.
4895
4896         New module 'exp2-ieee'.
4897         * modules/exp2-ieee: New file.
4898
4899         Tests for module 'exp2f-ieee'.
4900         * modules/exp2f-ieee-tests: New file.
4901         * tests/test-exp2f-ieee.c: New file.
4902         * tests/test-exp2-ieee.h: New file.
4903
4904         New module 'exp2f-ieee'.
4905         * modules/exp2f-ieee: New file.
4906
4907 2012-03-08  Bruno Haible  <bruno@clisp.org>
4908
4909         Tests for module 'exp2l'.
4910         * modules/exp2l-tests: New file.
4911         * tests/test-exp2l.c: New file.
4912
4913         New module 'exp2l'.
4914         * lib/math.in.h (exp2l): New declaration.
4915         * lib/exp2l.c: New file.
4916         * lib/expl-table.c: New file, extracted from lib/expl.c.
4917         * lib/expl.c (gl_expl_table): New declaration.
4918         (expl): Remove expl_table. Update reference.
4919         * m4/exp2l.m4: New file.
4920         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
4921         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
4922         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
4923         * modules/exp2l: New file.
4924         * modules/expl (Files): Add lib/expl-table.c.
4925         (configure.ac): Compile also expl-table.c.
4926         * tests/test-math-c++.cc: Check the declaration of exp2l.
4927         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
4928         problem.
4929
4930 2012-03-08  Bruno Haible  <bruno@clisp.org>
4931
4932         Tests for module 'exp2f'.
4933         * modules/exp2f-tests: New file.
4934         * tests/test-exp2f.c: New file.
4935
4936         New module 'exp2f'.
4937         * lib/math.in.h (exp2f): New declaration.
4938         * lib/exp2f.c: New file.
4939         * m4/exp2f.m4: New file.
4940         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
4941         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
4942         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
4943         * modules/exp2f: New file.
4944         * tests/test-math-c++.cc: Check the declaration of exp2f.
4945         * doc/posix-functions/exp2f.texi: Mention the new module and the
4946         IRIX problem.
4947
4948 2012-03-08  Bruno Haible  <bruno@clisp.org>
4949
4950         Tests for module 'exp2'.
4951         * modules/exp2-tests: New file.
4952         * tests/test-exp2.c: New file.
4953         * tests/test-exp2.h: New file.
4954
4955         New module 'exp2'.
4956         * lib/math.in.h (exp2): New declaration.
4957         * lib/exp2.c: New file.
4958         * m4/exp2.m4: New file.
4959         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
4960         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
4961         REPLACE_EXP2.
4962         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
4963         REPLACE_EXP2.
4964         * modules/exp2: New file.
4965         * tests/test-math-c++.cc: Check the declaration of exp2.
4966         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
4967         and OpenBSD problems.
4968
4969 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4970
4971         savedir: fix comment typo
4972         * lib/savedir.c (savedirstream): Fix typo in comment.
4973
4974 2012-03-08  Bruno Haible  <bruno@clisp.org>
4975
4976         test-readtokens.c: use const; remove unwarranted cast
4977         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
4978
4979 2012-03-08  Bruno Haible  <bruno@clisp.org>
4980
4981         fmal: Avoid compilation error on AIX.
4982         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
4983         AIX 5.2..7.1.
4984
4985 2012-03-08  Bruno Haible  <bruno@clisp.org>
4986
4987         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
4988         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
4989         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
4990         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
4991         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
4992         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
4993         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
4994
4995 2012-03-08  Bruno Haible  <bruno@clisp.org>
4996
4997         remainderf: Override buggy system function on IRIX 6.5.
4998         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
4999         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
5000         when it exists.
5001         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
5002
5003 2012-03-08  Jim Meyering  <meyering@redhat.com>
5004
5005         test-readtokens.c: avoid const-related compilation warnings
5006         * tests/test-readtokens.c: Avoid const-related compilation warnings.
5007
5008 2012-03-07  Jim Meyering  <meyering@redhat.com>
5009             Bruno Haible  <bruno@clisp.org>
5010
5011         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
5012         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
5013         tests/randomd.c.
5014         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
5015         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
5016         tests/randoml.c.
5017         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
5018
5019 2012-03-07  Bruno Haible  <bruno@clisp.org>
5020
5021         expm1l: Avoid compilation error on AIX.
5022         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
5023         AIX 5.2..7.1.
5024
5025 2012-03-07  Bruno Haible  <bruno@clisp.org>
5026
5027         expm1l: Don't override undeclared system function on IRIX 6.5.
5028         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
5029         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
5030         it exists. Set HAVE_DECL_EXPM1L.
5031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
5032         HAVE_EXPM1L.
5033         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
5034         HAVE_EXPM1L.
5035         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
5036
5037 2012-03-07  Bruno Haible  <bruno@clisp.org>
5038
5039         remainderl: Don't override undeclared system function on IRIX 6.5.
5040         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
5041         HAVE_REMAINDERL.
5042         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
5043         declared when it exists. Set HAVE_DECL_REMAINDERL.
5044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
5045         not HAVE_REMAINDERL.
5046         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
5047         HAVE_REMAINDERL.
5048         * doc/posix-functions/remainderl.texi: Mention missing declaration
5049         problem.
5050
5051 2012-03-07  Bruno Haible  <bruno@clisp.org>
5052
5053         rintf: Don't override undeclared system function on IRIX 6.5.
5054         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
5055         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
5056         exists. Set HAVE_DECL_RINTF.
5057         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
5058         HAVE_RINTF.
5059         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
5060         HAVE_RINTF.
5061         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
5062
5063 2012-03-07  Bruno Haible  <bruno@clisp.org>
5064
5065         roundl: Avoid compilation error on AIX.
5066         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
5067         AIX 5.2..7.1.
5068
5069 2012-03-07  Bruno Haible  <bruno@clisp.org>
5070
5071         roundl: Don't override undeclared system function on IRIX 6.5.
5072         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
5073         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
5074         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5075         * modules/roundl (configure.ac): For replacement code, test
5076         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5077         (Depends-on): Update conditions.
5078         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
5079
5080 2012-03-07  Bruno Haible  <bruno@clisp.org>
5081
5082         roundf: Don't override undeclared system function on IRIX 6.5.
5083         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
5084         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
5085         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5086         * modules/roundf (configure.ac): For replacement code, test
5087         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5088         (Depends-on): Update conditions.
5089         * modules/roundf-ieee (Depends-on): Update conditions.
5090         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
5091
5092 2012-03-07  Bruno Haible  <bruno@clisp.org>
5093
5094         round: Don't override undeclared system function on IRIX 6.5.
5095         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
5096         argument.
5097         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
5098         also when it is not declared. Set HAVE_ROUND. For replacement code,
5099         test HAVE_ROUND, not HAVE_DECL_ROUND.
5100         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
5101         not HAVE_DECL_ROUND.
5102         (Depends-on): Update conditions.
5103         * modules/round-ieee (Depends-on): Update conditions.
5104         * doc/posix-functions/round.texi: Mention the IRIX problem.
5105
5106 2012-03-07  Bruno Haible  <bruno@clisp.org>
5107
5108         copysignf: Don't override undeclared system function on IRIX 6.5.
5109         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
5110         HAVE_COPYSIGNF.
5111         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
5112         declared when it exists. Set HAVE_DECL_COPYSIGNF.
5113         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
5114         not HAVE_COPYSIGNF.
5115         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
5116         HAVE_COPYSIGNF.
5117         * doc/posix-functions/copysignf.texi: Mention missing declaration
5118         problem.
5119
5120 2012-03-07  Jim Meyering  <meyering@redhat.com>
5121
5122         readtokens: add tests
5123         * modules/readtokens-tests: New file.
5124         * tests/test-readtokens.c: New file.
5125
5126 2012-03-07  Jim Meyering  <meyering@redhat.com>
5127
5128         quotearg: the module must now include quote.h
5129         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
5130         So must the module.
5131         * modules/quotearg (Files): Add quote.h.
5132
5133 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
5134
5135         readtokens: avoid core dumps with unusual calling patterns
5136         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
5137         * lib/readtokens.c: Include limits.h.
5138         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
5139         (readtoken): Don't cache the delimiters; the cache code was buggy
5140         if !delim && saved_delim, or if the new n_delim differs from the old.
5141         Also, it wasn't thread-safe.
5142
5143 2012-03-07  Bruno Haible  <bruno@clisp.org>
5144
5145         quote: Adhere to common module description layout.
5146         * modules/quote (Makefile.am): Add back empty section.
5147
5148 2012-03-06  Akim Demaille  <demaille@gostai.com>
5149
5150         quote: fuse into quotearg
5151         This patch is made for the benefit of Bison.
5152         quote does not leave the choice of the quoting style to the user.
5153         quoting_style provides poor customizability, yet quoting_options,
5154         which is very rich, is hidden inside quotearg.c.  So in order to
5155         allow quote customization, move its implementation to quotearg.c.
5156         * lib/quote.c: Remove.
5157         * modules/quote: Adjust.
5158         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
5159         warning: provide all the members of literal structs.
5160         (quote_quoting_options): New.
5161         (quote, quote_n): Import implementation from quote.c.
5162         * lib/quote.h: Import the comments from quote.c.
5163         (quote_quoting_options): New.
5164
5165 2012-03-06  Bruno Haible  <bruno@clisp.org>
5166
5167         Tests for module 'expm1l-ieee'.
5168         * modules/expm1l-ieee-tests: New file.
5169         * tests/test-expm1l-ieee.c: New file.
5170
5171         New module 'expm1l-ieee'.
5172         * modules/expm1l-ieee: New file.
5173
5174         Tests for module 'expm1f-ieee'.
5175         * modules/expm1f-ieee-tests: New file.
5176         * tests/test-expm1f-ieee.c: New file.
5177
5178         New module 'expm1f-ieee'.
5179         * modules/expm1f-ieee: New file.
5180
5181         Tests for module 'expm1-ieee'.
5182         * modules/expm1-ieee-tests: New file.
5183         * tests/test-expm1-ieee.c: New file.
5184         * tests/test-expm1-ieee.h: New file.
5185
5186         New module 'expm1-ieee'.
5187         * modules/expm1-ieee: New file.
5188         * m4/expm1-ieee.m4: New file.
5189         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
5190         whether expm1 works with a minus zero argument. Replace it if not.
5191         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
5192         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
5193         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
5194         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
5195         (Depends-on): Update conditions.
5196         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
5197         AIX problem.
5198
5199 2012-03-06  Bruno Haible  <bruno@clisp.org>
5200
5201         Work around expm1f bug on IRIX 6.5.
5202         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
5203         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
5204         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
5205         not work.
5206         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
5207         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
5208         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
5209         (Depends-on): Update conditions.
5210         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
5211
5212 2012-03-06  Bruno Haible  <bruno@clisp.org>
5213
5214         Tests for module 'expm1l'.
5215         * modules/expm1l-tests: New file.
5216         * tests/test-expm1l.c: New file.
5217
5218         New module 'expm1l'.
5219         * lib/math.in.h (expm1l): New declaration.
5220         * lib/expm1l.c: New file.
5221         * m4/expm1l.m4: New file.
5222         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
5223         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
5224         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
5225         * modules/expm1l: New file.
5226         * tests/test-math-c++.cc: Check the declaration of expm1l.
5227         * doc/posix-functions/expm1l.texi: Mention the new module.
5228
5229 2012-03-06  Bruno Haible  <bruno@clisp.org>
5230
5231         Tests for module 'expm1f'.
5232         * modules/expm1f-tests: New file.
5233         * tests/test-expm1f.c: New file.
5234
5235         New module 'expm1f'.
5236         * lib/math.in.h (expm1f): New declaration.
5237         * lib/expm1f.c: New file.
5238         * m4/expm1f.m4: New file.
5239         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
5240         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
5241         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
5242         * modules/expm1f: New file.
5243         * tests/test-math-c++.cc: Check the declaration of expm1f.
5244         * doc/posix-functions/expm1f.texi: Mention the new module.
5245
5246 2012-03-06  Bruno Haible  <bruno@clisp.org>
5247
5248         Tests for module 'expm1'.
5249         * modules/expm1-tests: New file.
5250         * tests/test-expm1.c: New file.
5251         * tests/test-expm1.h: New file.
5252
5253         New module 'expm1'.
5254         * lib/math.in.h (expm1): New declaration.
5255         * lib/expm1.c: New file.
5256         * m4/expm1.m4: New file.
5257         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
5258         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
5259         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
5260         * modules/expm1: New file.
5261         * tests/test-math-c++.cc: Check the declaration of expm1.
5262         * doc/posix-functions/expm1.texi: Mention the new module.
5263
5264 2012-03-06  Bruno Haible  <bruno@clisp.org>
5265
5266         math: Ensure declarations of math functions.
5267         * modules/acosf (Depends-on): Add 'extensions'.
5268         * modules/asinf (Depends-on): Likewise.
5269         * modules/atan2f (Depends-on): Likewise.
5270         * modules/atanf (Depends-on): Likewise.
5271         * modules/cbrt (Depends-on): Likewise.
5272         * modules/cbrtf (Depends-on): Likewise.
5273         * modules/cbrtl (Depends-on): Likewise.
5274         * modules/copysignf (Depends-on): Likewise.
5275         * modules/copysignl (Depends-on): Likewise.
5276         * modules/cosf (Depends-on): Likewise.
5277         * modules/coshf (Depends-on): Likewise.
5278         * modules/expf (Depends-on): Likewise.
5279         * modules/fabsf (Depends-on): Likewise.
5280         * modules/fabsl (Depends-on): Likewise.
5281         * modules/fmaf (Depends-on): Likewise.
5282         * modules/fmal (Depends-on): Likewise.
5283         * modules/fmodf (Depends-on): Likewise.
5284         * modules/fmodl (Depends-on): Likewise.
5285         * modules/frexpf (Depends-on): Likewise.
5286         * modules/frexpl (Depends-on): Likewise.
5287         * modules/hypot (Depends-on): Likewise.
5288         * modules/hypotf (Depends-on): Likewise.
5289         * modules/hypotl (Depends-on): Likewise.
5290         * modules/ldexpf (Depends-on): Likewise.
5291         * modules/ldexpl (Depends-on): Likewise.
5292         * modules/log10f (Depends-on): Likewise.
5293         * modules/log10l (Depends-on): Likewise.
5294         * modules/log1p (Depends-on): Likewise.
5295         * modules/logb (Depends-on): Likewise.
5296         * modules/logf (Depends-on): Likewise.
5297         * modules/modff (Depends-on): Likewise.
5298         * modules/modfl (Depends-on): Likewise.
5299         * modules/powf (Depends-on): Likewise.
5300         * modules/remainderf (Depends-on): Likewise.
5301         * modules/remainderl (Depends-on): Likewise.
5302         * modules/rintf (Depends-on): Likewise.
5303         * modules/rintl (Depends-on): Likewise.
5304         * modules/sinf (Depends-on): Likewise.
5305         * modules/sinhf (Depends-on): Likewise.
5306         * modules/sqrtf (Depends-on): Likewise.
5307         * modules/tanf (Depends-on): Likewise.
5308         * modules/tanhf (Depends-on): Likewise.
5309         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
5310         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
5311         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
5312         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
5313         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
5314         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
5315         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
5316         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
5317         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
5318         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
5319         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
5320         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
5321         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
5322         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
5323         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
5324         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
5325         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
5326         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5327         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
5328         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
5329         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
5330         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
5331         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
5332         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
5333         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5334         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
5335         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
5336         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5337         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
5338         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
5339         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5340         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
5341         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5342         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5343         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
5344         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
5345         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
5346         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
5347         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
5348         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
5349         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
5350
5351 2012-03-06  Bruno Haible  <bruno@clisp.org>
5352
5353         math: Update module names in warnings.
5354         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
5355         tanl): Use specific module name in warn-on-use warning.
5356
5357 2012-03-06  Bruno Haible  <bruno@clisp.org>
5358
5359         expl: Simplify computation.
5360         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
5361
5362 2012-03-05  Bruno Haible  <bruno@clisp.org>
5363
5364         exp* tests: More tests.
5365         * tests/test-exp.h: New file.
5366         * tests/test-exp.c: Include <float.h> and test-exp.h.
5367         (main): Invoke test_function.
5368         * tests/test-expf.c: Include <float.h> and test-exp.h.
5369         (main): Invoke test_function.
5370         * tests/test-expl.c: Include <float.h> and test-exp.h.
5371         (main): Invoke test_function.
5372         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
5373         (Makefile.am): Add randomd.c to test_exp_SOURCES.
5374         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
5375         (Makefile.am): Add randomf.c to test_expf_SOURCES.
5376         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
5377         (Depends-on): Add 'float'.
5378         (Makefile.am): Add randoml.c to test_expl_SOURCES.
5379
5380         expl: Fix precision of computed result.
5381         * lib/expl.c: Completely rewritten.
5382         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
5383         (Maintainer): Add me.
5384         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
5385
5386 2012-03-05  Bruno Haible  <bruno@clisp.org>
5387
5388         cbrt* tests: More tests.
5389         * tests/test-cbrt.h: New file.
5390         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
5391         (main): Invoke test_function.
5392         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
5393         (main): Invoke test_function.
5394         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
5395         (main): Invoke test_function.
5396         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
5397         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
5398         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
5399         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
5400         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
5401         (Depends-on): Add 'float'.
5402         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
5403
5404 2012-03-05  Bruno Haible  <bruno@clisp.org>
5405
5406         hypot* tests: More tests.
5407         * tests/test-hypot.h: New file, partially extracted from
5408         tests/test-hypotl.c.
5409         * tests/test-hypot.c: Include test-hypot.h.
5410         (main): Invoke test_function.
5411         * tests/test-hypotf.c: Include test-hypot.h.
5412         (main): Invoke test_function.
5413         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
5414         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
5415         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
5416         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
5417         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
5418         tests/randomf.c.
5419         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
5420         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
5421         tests/randoml.c.
5422         (Depends-on): Add 'fpucw', 'float'.
5423         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
5424
5425 2012-03-05  Bruno Haible  <bruno@clisp.org>
5426
5427         fpucw: Doc about FreeBSD.
5428         * lib/fpucw.h: Mention FreeBSD in comments.
5429
5430 2012-03-04  Bruno Haible  <bruno@clisp.org>
5431
5432         sqrt* tests: More tests.
5433         * tests/test-sqrt.h: New file.
5434         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
5435         (main): Invoke test_function.
5436         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
5437         (main): Invoke test_function.
5438         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
5439         (main): Invoke test_function.
5440         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
5441         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
5442         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
5443         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
5444         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
5445         (Depends-on): Add 'float'.
5446         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
5447
5448 2012-03-04  Bruno Haible  <bruno@clisp.org>
5449
5450         remainder* tests: More tests.
5451         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
5452         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
5453         (main): Invoke test_function.
5454         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
5455         (main): Invoke test_function.
5456         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
5457         (main): Invoke test_function.
5458         * modules/remainder-tests (Files): Add tests/test-remainder.h,
5459         tests/randomd.c.
5460         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
5461         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
5462         tests/randomf.c.
5463         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
5464         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
5465         tests/randoml.c.
5466         (Depends-on): Add 'float'.
5467         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
5468
5469 2012-03-04  Bruno Haible  <bruno@clisp.org>
5470
5471         remainder, remainderf, remainderl: Fix computation for large quotients.
5472         * lib/remainder.c: Completely rewritten.
5473         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
5474         USE_FLOAT.
5475         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
5476         USE_LONG_DOUBLE.
5477         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
5478         isnand, isinf. Remove round, fma.
5479         * modules/remainderf (Files): Add lib/remainder.c.
5480         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
5481         Remove roundf, fmaf.
5482         * modules/remainderl (Files): Add lib/remainder.c.
5483         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
5484         isinf. Remove roundl, fmal.
5485         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
5486         REMAINDER_LIBM.
5487         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
5488         REMAINDERF_LIBM.
5489         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
5490         REMAINDERL_LIBM.
5491
5492 2012-03-04  Bruno Haible  <bruno@clisp.org>
5493
5494         fmod* tests: More tests.
5495         * tests/test-fmod.h (my_ldexp): New function.
5496         (test_function): Reduce amount of random numbers to test. Add tests
5497         of very large quotients x / y.
5498         * tests/test-fmod.c (MAX_EXP): New macro.
5499         * tests/test-fmodf.c (MAX_EXP): Likewise.
5500         * tests/test-fmodl.c (MAX_EXP): Likewise.
5501
5502 2012-03-04  Bruno Haible  <bruno@clisp.org>
5503
5504         fmod, fmodl: Fix computation for large quotients x / y.
5505         * lib/fmod.c: Completely rewritten.
5506         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
5507         USE_LONG_DOUBLE.
5508         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
5509         isnand. Remove fma.
5510         * modules/fmodl (Files): Add lib/fmod.c.
5511         (Depends-on): Add float, isfinite, signbit, fabsl,
5512         frexpl, ldexpl, isnanl. Remove fma.
5513         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
5514         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
5515
5516 2012-03-03  Bruno Haible  <bruno@clisp.org>
5517
5518         fmod* tests: More tests.
5519         * tests/test-fmod.h: New file.
5520         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
5521         (main): Invoke test_function.
5522         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
5523         (main): Invoke test_function.
5524         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
5525         (main): Invoke test_function.
5526         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
5527         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
5528         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
5529         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
5530         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
5531         (Depends-on): Add 'float'.
5532         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
5533
5534 2012-03-03  Bruno Haible  <bruno@clisp.org>
5535
5536         rint* tests: More tests.
5537         * tests/test-rint.h: New file, partially extracted from
5538         tests/test-rintl.c.
5539         * tests/test-rint.c: Include test-rint.h.
5540         (main): Invoke test_function.
5541         * tests/test-rintf.c: Include test-rint.h.
5542         (main): Invoke test_function.
5543         * tests/test-rintl.c: Include test-rint.h.
5544         (main): Invoke test_function.
5545         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
5546         (Makefile.am): Add randomd.c to test_rint_SOURCES.
5547         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
5548         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
5549         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
5550         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
5551
5552 2012-03-03  Bruno Haible  <bruno@clisp.org>
5553
5554         modf* tests: More tests.
5555         * tests/test-modf.h: New file.
5556         * tests/test-modf.c: Include <float.h> and test-modf.h.
5557         (main): Invoke test_function.
5558         * tests/test-modff.c: Include <float.h> and test-modf.h.
5559         (main): Invoke test_function.
5560         * tests/test-modfl.c: Include <float.h> and test-modf.h.
5561         (main): Invoke test_function.
5562         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
5563         (Makefile.am): Add randomd.c to test_modf_SOURCES.
5564         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
5565         (Makefile.am): Add randomf.c to test_modff_SOURCES.
5566         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
5567         (Depends-on): Add 'float'.
5568         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
5569
5570 2012-03-03  Bruno Haible  <bruno@clisp.org>
5571
5572         fabs* tests: More tests.
5573         * tests/test-fabs.h: New file, partially extracted from
5574         tests/test-fabsl.c.
5575         * tests/test-fabs.c (RANDOM): New macro.
5576         * tests/test-fabsf.c (RANDOM): New macro.
5577         * tests/test-fabsl.c (RANDOM): New macro.
5578         * modules/fabs-tests (Files): Add tests/randomd.c.
5579         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
5580         * modules/fabsf-tests (Files): Add tests/randomf.c.
5581         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
5582         * modules/fabsl-tests (Files): Add tests/randoml.c.
5583         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
5584
5585 2012-03-03  Bruno Haible  <bruno@clisp.org>
5586
5587         ldexp* tests: More tests.
5588         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
5589         * tests/test-ldexp.c (RANDOM): New macro.
5590         * tests/test-ldexpf.c (RANDOM): New macro.
5591         * tests/test-ldexpl.c (RANDOM): New macro.
5592         * modules/ldexp-tests (Files): Add tests/randomd.c.
5593         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
5594         * modules/ldexpf-tests (Files): Add tests/randomf.c.
5595         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
5596         * modules/ldexpl-tests (Files): Add tests/randoml.c.
5597         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
5598
5599 2012-03-03  Bruno Haible  <bruno@clisp.org>
5600
5601         frexp* tests: More tests.
5602         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
5603         * tests/test-frexp.c (RANDOM): New macro.
5604         * tests/test-frexpf.c (RANDOM): New macro.
5605         * tests/test-frexpl.c (RANDOM): New macro.
5606         * modules/frexp-tests (Files): Add tests/randomd.c.
5607         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
5608         * modules/frexpf-tests (Files): Add tests/randomf.c.
5609         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
5610         * modules/frexpl-tests (Files): Add tests/randoml.c.
5611         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
5612
5613 2012-03-03  Bruno Haible  <bruno@clisp.org>
5614
5615         Support for pseudo-random numbers in tests.
5616         * tests/randomf.c: New file.
5617         * tests/randomd.c: New file.
5618         * tests/randoml.c: New file.
5619         * tests/macros.h (randomf, randomd, randoml): New declarations.
5620
5621 2012-03-03  Bruno Haible  <bruno@clisp.org>
5622
5623         frexp* tests: Refactor.
5624         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
5625         * tests/test-frexp.c: Include and use it.
5626         * tests/test-frexpf.c: Likewise.
5627         * tests/test-frexpl.c: Likewise.
5628         * modules/frexp-tests (Files): Add tests/test-frexp.h.
5629         * modules/frexpf-tests (Files): Likewise.
5630         * modules/frexpl-tests (Files): Likewise.
5631
5632 2012-03-02  Jim Meyering  <meyering@redhat.com>
5633
5634         maint: don't specify XZ_OPT=-9ev in dist-related rule
5635         Using xz's -9 option is warranted only if you have a very large
5636         tarball (see xz's documentation for the sizes vs. presets), and
5637         requires 64MiB of memory at decompression time.
5638         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
5639         Automake's default of just "-e" is fine.  Override on a
5640         per-package basis by setting XZ_OPT e.g., in cfg.mk.
5641
5642 2012-03-01  Eric Blake  <eblake@redhat.com>
5643
5644         maint.mk: allow announcement for non-gnulib project
5645         * maint.mk (announcement): Skip gnulib version if not used.
5646
5647 2012-03-01  Jim Meyering  <meyering@redhat.com>
5648
5649         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
5650         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
5651         envvar settings cannot interfere.  Otherwise, setting envvars like
5652         prohibit=foo require=bar, etc. would cause spurious test failures.
5653
5654 2012-03-01  Eric Blake  <eblake@redhat.com>
5655
5656         maint.mk: add per-line exclusions to prohibitions
5657         * maint.mk (_sc_search_regexp): Add $exclude parameter.
5658         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
5659         (sc_const_long_option): Use it.
5660
5661 2012-03-01  Bruno Haible  <bruno@clisp.org>
5662
5663         Tests for module 'expl-ieee'.
5664         * modules/expl-ieee-tests: New file.
5665         * tests/test-expl-ieee.c: New file.
5666
5667         New module 'expl-ieee'.
5668         * modules/expl-ieee: New file.
5669
5670         Tests for module 'exp-ieee'.
5671         * modules/exp-ieee-tests: New file.
5672         * tests/test-exp-ieee.c: New file.
5673
5674         New module 'exp-ieee'.
5675         * modules/exp-ieee: New file.
5676
5677         Tests for module 'expf-ieee'.
5678         * modules/expf-ieee-tests: New file.
5679         * tests/test-expf-ieee.c: New file.
5680         * tests/test-exp-ieee.h: New file.
5681
5682         New module 'expf-ieee'.
5683         * modules/expf-ieee: New file.
5684
5685 2012-02-29  Bruno Haible  <bruno@clisp.org>
5686
5687         cbrtl-ieee: Work around test failure on IRIX 6.5.
5688         * m4/cbrtl-ieee.m4: New file.
5689         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
5690         test whether cbrtl works with a minus zero argument. Replace it if not.
5691         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
5692         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
5693         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
5694         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
5695         (Depends-on): Update conditions.
5696         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
5697         m4/signbit.m4.
5698         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
5699         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
5700         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
5701
5702         Tests for module 'cbrtl-ieee'.
5703         * modules/cbrtl-ieee-tests: New file.
5704         * tests/test-cbrtl-ieee.c: New file.
5705
5706         New module 'cbrtl-ieee'.
5707         * modules/cbrtl-ieee: New file.
5708
5709         Tests for module 'cbrt-ieee'.
5710         * modules/cbrt-ieee-tests: New file.
5711         * tests/test-cbrt-ieee.c: New file.
5712
5713         New module 'cbrt-ieee'.
5714         * modules/cbrt-ieee: New file.
5715
5716         Tests for module 'cbrtf-ieee'.
5717         * modules/cbrtf-ieee-tests: New file.
5718         * tests/test-cbrtf-ieee.c: New file.
5719         * tests/test-cbrt-ieee.h: New file.
5720
5721         New module 'cbrtf-ieee'.
5722         * modules/cbrtf-ieee: New file.
5723
5724 2012-02-29  Bruno Haible  <bruno@clisp.org>
5725
5726         cbrtf: Work around bug in IRIX 6.5 system function.
5727         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
5728         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
5729         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
5730         work.
5731         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
5732         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
5733         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
5734         (Depends-on): Update conditions.
5735         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
5736
5737 2012-02-29  Bruno Haible  <bruno@clisp.org>
5738
5739         Tests for module 'cbrtl'.
5740         * modules/cbrtl-tests: New file.
5741         * tests/test-cbrtl.c: New file.
5742
5743         New module 'cbrtl'.
5744         * lib/math.in.h (cbrtl): New declaration.
5745         * lib/cbrtl.c: New file.
5746         * m4/cbrtl.m4: New file.
5747         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
5748         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
5749         HAVE_DECL_CBRTL.
5750         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
5751         HAVE_DECL_CBRTL.
5752         * modules/cbrtl: New file.
5753         * tests/test-math-c++.cc: Check the declaration of cbrtl.
5754         * doc/posix-functions/cbrtl.texi: Mention the new module.
5755
5756 2012-02-29  Bruno Haible  <bruno@clisp.org>
5757
5758         Tests for module 'cbrtf'.
5759         * modules/cbrtf-tests: New file.
5760         * tests/test-cbrtf.c: New file.
5761
5762         New module 'cbrtf'.
5763         * lib/math.in.h (cbrtf): New declaration.
5764         * lib/cbrtf.c: New file.
5765         * m4/cbrtf.m4: New file.
5766         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
5767         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
5768         HAVE_DECL_CBRTF.
5769         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
5770         HAVE_DECL_CBRTF.
5771         * modules/cbrtf: New file.
5772         * tests/test-math-c++.cc: Check the declaration of cbrtf.
5773         * doc/posix-functions/cbrtf.texi: Mention the new module.
5774
5775 2012-02-29  Bruno Haible  <bruno@clisp.org>
5776
5777         cbrt: Provide replacement on MSVC and Minix.
5778         * lib/math.in.h (cbrt): New declaration.
5779         * lib/cbrt.c: New file.
5780         * m4/cbrt.m4: New file.
5781         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
5782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
5783         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
5784         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
5785         (Depends-on): Add dependencies.
5786         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
5787         * tests/test-math-c++.cc: Check the declaration of cbrt.
5788         * doc/posix-functions/cbrt.texi: Mention that the module provides a
5789         replacement.
5790
5791 2012-02-29  Bruno Haible  <bruno@clisp.org>
5792
5793         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
5794         * m4/hypotl-ieee.m4: New file.
5795         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
5796         test whether hypotl works with mixed NaN and Infinity arguments.
5797         Replace it if not.
5798         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
5799         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
5800         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
5801         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
5802         (Depends-on): Update conditions.
5803         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
5804         (Depends-on): Add hypot-ieee.
5805         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
5806         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
5807
5808         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
5809         * m4/hypotf-ieee.m4: New file.
5810         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
5811         test whether hypotf works with mixed NaN and Infinity arguments.
5812         Replace it if not.
5813         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
5814         (Depends-on): Add hypot-ieee.
5815         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
5816         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
5817
5818         hypot-ieee: Work around test failure on OSF/1 and native Windows.
5819         * lib/math.in.h (hypot): New declaration.
5820         * lib/hypot.c: New file.
5821         * m4/hypot-ieee.m4: New file.
5822         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
5823         whether hypot works with mixed NaN and Infinity arguments. Replace it
5824         if not.
5825         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
5826         REPLACE_HYPOT.
5827         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
5828         * modules/hypot (Files): Add lib/hypot.c.
5829         (Depends-on): Add dependencies.
5830         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
5831         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
5832         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
5833         * tests/test-math-c++.cc: Check the declaration of hypot.
5834         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
5835
5836         Tests for module 'hypotl-ieee'.
5837         * modules/hypotl-ieee-tests: New file.
5838         * tests/test-hypotl-ieee.c: New file.
5839
5840         New module 'hypotl-ieee'.
5841         * modules/hypotl-ieee: New file.
5842
5843         Tests for module 'hypot-ieee'.
5844         * modules/hypot-ieee-tests: New file.
5845         * tests/test-hypot-ieee.c: New file.
5846
5847         New module 'hypot-ieee'.
5848         * modules/hypot-ieee: New file.
5849
5850         Tests for module 'hypotf-ieee'.
5851         * modules/hypotf-ieee-tests: New file.
5852         * tests/test-hypotf-ieee.c: New file.
5853         * tests/test-hypot-ieee.h: New file.
5854
5855         New module 'hypotf-ieee'.
5856         * modules/hypotf-ieee: New file.
5857
5858 2012-02-29  Bruno Haible  <bruno@clisp.org>
5859
5860         Remove unused variables.
5861         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
5862         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5863         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
5864         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5865
5866 2012-02-29  Eric Blake  <eblake@redhat.com>
5867
5868         termios: fix pid_t always, not just for tcgetsid
5869         * doc/posix-headers/termios.texi (termios.h): Mention problem.
5870         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
5871         just when building tcgetsid.
5872
5873 2012-02-29  Bruno Haible  <bruno@clisp.org>
5874
5875         Tests for module 'hypotl'.
5876         * modules/hypotl-tests: New file.
5877         * tests/test-hypotl.c: New file.
5878
5879         New module 'hypotl'.
5880         * lib/math.in.h (hypotl): New declaration.
5881         * lib/hypotl.c: New file.
5882         * m4/hypotl.m4: New file.
5883         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5884         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
5885         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
5886         * modules/hypotl: New file.
5887         * tests/test-math-c++.cc: Check the hypotl declaration.
5888         * doc/posix-functions/hypotl.texi: Mention the new module.
5889
5890 2012-02-29  Eric Blake  <eblake@redhat.com>
5891
5892         tcgetsid: fix cygwin header bug
5893         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
5894
5895         docs: update cygwin progress
5896         * doc/posix-functions/llround.texi (llround): Added in cygwin
5897         1.7.8.
5898         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
5899         * doc/glibc-functions/program_invocation_name.texi
5900         (program_invocation_name): Likewise.
5901         * doc/glibc-functions/program_invocation_short_name.texi
5902         (program_invocation_short_name): Likewise.
5903         * doc/glibc-functions/madvise.texi (madvise): Likewise.
5904         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
5905         Likewise.
5906         * doc/posix-functions/pthread_spin_destroy.texi
5907         (pthread_spin_destroy): Added in cygwin 1.7.10.
5908         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
5909         Likewise.
5910         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
5911         Likewise.
5912         * doc/posix-functions/pthread_spin_trylock.texi
5913         (pthread_spin_trylock): Likewise.
5914         * doc/posix-functions/pthread_spin_unlock.texi
5915         (pthread_spin_unlock): Likewise.
5916         * doc/posix-functions/pthread_setschedprio.texi
5917         (pthread_setschedprio): Likewise.
5918         * doc/posix-functions/pthread_attr_getstack.texi
5919         (pthread_attr_getstack): Likewise.
5920         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
5921         (pthread_attr_getstackaddr): Likewise.
5922         * doc/glibc-functions/pthread_getattr_np.texi
5923         (pthread_getattr_np): Likewise.
5924         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
5925         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
5926         * doc/posix-functions/clock_settime.texi (clock_settime):
5927         Likewise.
5928         * doc/posix-functions/pthread_attr_getguardsize.texi
5929         (pthread_attr_getguardsize): Likewise.
5930         * doc/posix-functions/pthread_attr_setguardsize.texi
5931         (pthread_attr_setguardsize): Likewise.
5932         * doc/posix-functions/pthread_attr_setstack.texi
5933         (pthread_attr_setstack): Likewise.
5934         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
5935         (pthread_attr_setstackaddr): Likewise.
5936         * doc/posix-functions/clock_getcpuclockid.texi
5937         (clock_getcpuclockid): Likewise.
5938         * doc/posix-functions/pthread_getcpuclockid.texi
5939         (pthread_getcpuclockid): Likewise.
5940         * doc/glibc-functions/error.texi (error): Likewise.
5941         * doc/glibc-functions/error_at_line.texi (error_at_line):
5942         Likewise.
5943         * doc/glibc-functions/error_message_count.texi
5944         (error_message_count): Likewise.
5945         * doc/glibc-functions/error_one_per_line.texi
5946         (error_one_per_line): Likewise.
5947         * doc/glibc-functions/error_print_progname.texi
5948         (error_print_progname): Likewise.
5949         * doc/posix-functions/pthread_condattr_getclock.texi
5950         (pthread_condattr_getclock): Likewise.
5951         * doc/posix-functions/pthread_condattr_setclock.texi
5952         (pthread_condattr_setclock): Likewise.
5953         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
5954         Likewise.
5955         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
5956         * doc/glibc-functions/getpt.texi (getpt): Likewise.
5957         * doc/glibc-functions/get_current_dir_name.texi
5958         (get_current_dir_name): Likewise.
5959         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
5960         Likewise.
5961         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
5962         wrong return type.
5963         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
5964         1.7.11.
5965
5966 2012-02-29  Bruno Haible  <bruno@clisp.org>
5967
5968         Tests for module 'hypotf'.
5969         * modules/hypotf-tests: New file.
5970         * tests/test-hypotf.c: New file.
5971
5972         New module 'hypotf'.
5973         * lib/math.in.h (hypotf): New declaration.
5974         * lib/hypotf.c: New file.
5975         * m4/hypotf.m4: New file.
5976         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5977         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
5978         REPLACE_HYPOTF.
5979         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
5980         REPLACE_HYPOTF.
5981         * modules/hypotf: New file.
5982         * tests/test-math-c++.cc: Check the hypotf declaration.
5983         * doc/posix-functions/hypotf.texi: Mention the new module.
5984
5985         hypot: Prepare for hypotf module.
5986         * m4/hypot.m4: New file.
5987         * modules/hypot (Files): Add m4/hypot.m4.
5988         (configure.ac): Invoke gl_FUNC_HYPOT.
5989
5990 2012-02-29  Bruno Haible  <bruno@clisp.org>
5991
5992         hypot tests: More tests.
5993         * tests/test-hypot.c: Include <float.h>.
5994         (main): Add tests about overflow and underflow.
5995
5996 2012-02-29  Bruno Haible  <bruno@clisp.org>
5997
5998         math code: Add comments.
5999         * lib/acosl.c: Add comment about related glibc source files.
6000         * lib/asinl.c: Likewise.
6001         * lib/atanl.c: Likewise.
6002         * lib/expl.c: Likewise.
6003         * lib/logl.c: Likewise.
6004         * lib/sincosl.c: Likewise.
6005         * lib/sinl.c: Likewise.
6006         * lib/tanl.c: Likewise.
6007         * lib/trigl.c: Likewise.
6008         * lib/cosl.c: Likewise. Fix comments.
6009
6010 2012-02-28  Bruno Haible  <bruno@clisp.org>
6011
6012         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
6013         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
6014         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
6015         HUGE_VALL are defined.
6016         (numeric_equald): Renamed from numeric_equal.
6017         (numeric_equalf, numeric_equall): New functions.
6018         (main): Check also HUGE_VALF, HUGE_VALL.
6019         * modules/math-tests (Files): Add tests/macros.h.
6020         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
6021         HUGE_VALL.
6022
6023 2012-02-28  Bruno Haible  <bruno@clisp.org>
6024
6025         doc: Move ISO C11 feature notes into POSIX chapters.
6026         * doc/posix-functions/aligned_alloc.texi: Renamed from
6027         doc/glibc-functions/aligned_alloc.texi.
6028         * doc/posix-functions/quick_exit.texi: Renamed from
6029         doc/glibc-functions/quick_exit.texi.
6030         * doc/posix-headers/uchar.texi: Renamed from
6031         doc/glibc-headers/uchar.texi.
6032         * doc/posix-functions/c16rtomb.texi: Renamed from
6033         doc/glibc-functions/c16rtomb.texi.
6034         * doc/posix-functions/c32rtomb.texi: Renamed from
6035         doc/glibc-functions/c32rtomb.texi.
6036         * doc/posix-functions/mbrtoc16.texi: Renamed from
6037         doc/glibc-functions/mbrtoc16.texi.
6038         * doc/posix-functions/mbrtoc32.texi: Renamed from
6039         doc/glibc-functions/mbrtoc32.texi.
6040         * doc/gnulib.texi: Update.
6041         (Glibc uchar.h): Remove section.
6042         Suggested by Eric Blake.
6043
6044 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
6045
6046         stdnoreturn: port to MSVC better
6047         MSVC standard headers use __declspec(noreturn), so #define noreturn
6048         to empty on that platform.  Reported by Bruno Haible in
6049         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
6050         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
6051         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
6052
6053 2012-02-28  Bruno Haible  <bruno@clisp.org>
6054
6055         doc: Mention new glibc headers and functions.
6056         * doc/glibc-headers/uchar.texi: New file.
6057         * doc/glibc-functions/aligned_alloc.texi: New file.
6058         * doc/glibc-functions/c16rtomb.texi: New file.
6059         * doc/glibc-functions/c32rtomb.texi: New file.
6060         * doc/glibc-functions/clock_adjtime.texi: New file.
6061         * doc/glibc-functions/fanotify_init.texi: New file.
6062         * doc/glibc-functions/fanotify_mark.texi: New file.
6063         * doc/glibc-functions/inet6_opt_append.texi: New file.
6064         * doc/glibc-functions/inet6_opt_find.texi: New file.
6065         * doc/glibc-functions/inet6_opt_finish.texi: New file.
6066         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
6067         * doc/glibc-functions/inet6_opt_init.texi: New file.
6068         * doc/glibc-functions/inet6_opt_next.texi: New file.
6069         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
6070         * doc/glibc-functions/inet6_rth_add.texi: New file.
6071         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
6072         * doc/glibc-functions/inet6_rth_init.texi: New file.
6073         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
6074         * doc/glibc-functions/inet6_rth_segments.texi: New file.
6075         * doc/glibc-functions/inet6_rth_space.texi: New file.
6076         * doc/glibc-functions/login.texi: New file.
6077         * doc/glibc-functions/mbrtoc16.texi: New file.
6078         * doc/glibc-functions/mbrtoc32.texi: New file.
6079         * doc/glibc-functions/name_to_handle_at.texi: New file.
6080         * doc/glibc-functions/ntp_gettimex.texi: New file.
6081         * doc/glibc-functions/open_by_handle_at.texi: New file.
6082         * doc/glibc-functions/prlimit.texi: New file.
6083         * doc/glibc-functions/process_vm_readv.texi: New file.
6084         * doc/glibc-functions/process_vm_writev.texi: New file.
6085         * doc/glibc-functions/recvmmsg.texi: New file.
6086         * doc/glibc-functions/scandirat.texi: New file.
6087         * doc/glibc-functions/sendmmsg.texi: New file.
6088         * doc/glibc-functions/setns.texi: New file.
6089         * doc/glibc-functions/timespec_get.texi: New file.
6090         * doc/gnulib.texi: Include them.
6091         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
6092         sections.
6093         Reported by Eric Blake.
6094
6095 2012-02-28  Bruno Haible  <bruno@clisp.org>
6096
6097         Avoid compilation errors with MSVC option -fp:strict.
6098         * lib/floor.c: Use MSVC specific pragma fenv_access.
6099         * lib/ceil.c: Likewise.
6100         * lib/trunc.c: Likewise.
6101         * lib/round.c: Likewise.
6102         * lib/rint.c: Likewise.
6103         * lib/fma.c: Likewise.
6104         * lib/integer_length.c: Likewise.
6105         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6106         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6107         * tests/test-floor2.c: Likewise.
6108         * tests/test-floorf2.c: Likewise.
6109         * tests/test-ceil2.c: Likewise.
6110         * tests/test-ceilf2.c: Likewise.
6111         * tests/test-trunc2.c: Likewise.
6112         * tests/test-truncf2.c: Likewise.
6113         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6114
6115 2012-02-27  Bruno Haible  <bruno@clisp.org>
6116
6117         Tests for module 'sqrtl-ieee'.
6118         * modules/sqrtl-ieee-tests: New file.
6119         * tests/test-sqrtl-ieee.c: New file.
6120
6121         New module 'sqrtl-ieee'.
6122         * modules/sqrtl-ieee: New file.
6123
6124         Tests for module 'sqrt-ieee'.
6125         * modules/sqrt-ieee-tests: New file.
6126         * tests/test-sqrt-ieee.c: New file.
6127
6128         New module 'sqrt-ieee'.
6129         * modules/sqrt-ieee: New file.
6130
6131         Tests for module 'sqrtf-ieee'.
6132         * modules/sqrtf-ieee-tests: New file.
6133         * tests/test-sqrtf-ieee.c: New file.
6134         * tests/test-sqrt-ieee.h: New file.
6135
6136         New module 'sqrtf-ieee'.
6137         * modules/sqrtf-ieee: New file.
6138
6139 2012-02-27  Bruno Haible  <bruno@clisp.org>
6140
6141         remainderl-ieee: Work around test failure on OSF/1.
6142         * m4/remainderl-ieee.m4: New file.
6143         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
6144         present, test whether remainderl works with a zero second argument.
6145         Replace it if not.
6146         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
6147         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
6148         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
6149         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
6150         (Depends-on): Update conditions.
6151         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
6152         (Depends-on): Add remainder-ieee.
6153         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
6154         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
6155         module.
6156
6157         remainderf-ieee: Work around test failure on OSF/1.
6158         * m4/remainderf-ieee.m4: New file.
6159         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
6160         present, test whether remainderf works with a zero second argument.
6161         Replace it if not.
6162         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
6163         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
6164         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
6165         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
6166         (Depends-on): Update conditions.
6167         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
6168         (Depends-on): Add remainder-ieee.
6169         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
6170         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
6171         module.
6172
6173         remainder-ieee: Work around test failure on OSF/1.
6174         * m4/remainder-ieee.m4: New file.
6175         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
6176         present, test whether remainder works with a zero second argument.
6177         Replace it if not.
6178         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
6179         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
6180         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
6181         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
6182         (Depends-on): Update dependencies.
6183         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
6184         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
6185         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
6186
6187         Tests for module 'remainderl-ieee'.
6188         * modules/remainderl-ieee-tests: New file.
6189         * tests/test-remainderl-ieee.c: New file.
6190
6191         New module 'remainderl-ieee'.
6192         * modules/remainderl-ieee: New file.
6193
6194         Tests for module 'remainder-ieee'.
6195         * modules/remainder-ieee-tests: New file.
6196         * tests/test-remainder-ieee.c: New file.
6197
6198         New module 'remainder-ieee'.
6199         * modules/remainder-ieee: New file.
6200
6201         Tests for module 'remainderf-ieee'.
6202         * modules/remainderf-ieee-tests: New file.
6203         * tests/test-remainderf-ieee.c: New file.
6204         * tests/test-remainder-ieee.h: New file.
6205
6206         New module 'remainderf-ieee'.
6207         * modules/remainderf-ieee: New file.
6208
6209 2012-02-27  Bruno Haible  <bruno@clisp.org>
6210
6211         modff, modfl: Fix configure syntax error.
6212         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
6213         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6214
6215 2012-02-27  Bruno Haible  <bruno@clisp.org>
6216
6217         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
6218         * m4/fmodl-ieee.m4: New file.
6219         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
6220         whether fmodl works with zero arguments. Replace it if not.
6221         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
6222         (Depends-on): Add fmod-ieee.
6223         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
6224         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
6225
6226         fmodf-ieee: Work around test failure on OSF/1.
6227         * m4/fmodf-ieee.m4: New file.
6228         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
6229         whether fmodf works with zero arguments. Replace it if not.
6230         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
6231         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
6232         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
6233         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
6234         (Depends-on): Update dependencies.
6235         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
6236         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
6237         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
6238
6239         fmodf-ieee: Work around test failure on MSVC 9.
6240         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
6241         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
6242
6243         fmod-ieee: Work around test failures on OSF/1, mingw.
6244         * m4/fmod-ieee.m4: New file.
6245         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
6246         whether fmod works with zero arguments. Replace it if not.
6247         * lib/math.in.h (fmod): New declaration.
6248         * lib/fmod.c: New file.
6249         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
6250         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
6251         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
6252         * modules/fmod (Files): Add lib/fmod.c.
6253         (Depends-on): Add math, isinf, trunc, fma.
6254         (configure.ac): Arrange to compile lib/fmod.c if needed.
6255         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
6256         m4/signbit.m4.
6257         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
6258         * tests/test-math-c++.cc: Check the declaration of fmod.
6259         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
6260
6261         fmodl-ieee: Fix test failures.
6262         * lib/fmodl.c (fmodl): Treat Inf specially.
6263         * modules/fmodl (Depends-on): Add isinf.
6264
6265         Tests for module 'fmodl-ieee'.
6266         * modules/fmodl-ieee-tests: New file.
6267         * tests/test-fmodl-ieee.c: New file.
6268
6269         New module 'fmodl-ieee'.
6270         * modules/fmodl-ieee: New file.
6271
6272         Tests for module 'fmod-ieee'.
6273         * modules/fmod-ieee-tests: New file.
6274         * tests/test-fmod-ieee.c: New file.
6275
6276         New module 'fmod-ieee'.
6277         * modules/fmod-ieee: New file.
6278
6279         Tests for module 'fmodf-ieee'.
6280         * modules/fmodf-ieee-tests: New file.
6281         * tests/test-fmodf-ieee.c: New file.
6282         * tests/test-fmod-ieee.h: New file.
6283
6284         New module 'fmodf-ieee'.
6285         * modules/fmodf-ieee: New file.
6286
6287 2012-02-27  Bruno Haible  <bruno@clisp.org>
6288
6289         Tests for module 'rintl-ieee'.
6290         * modules/rintl-ieee-tests: New file.
6291         * tests/test-rintl-ieee.c: New file.
6292
6293         New module 'rintl-ieee'.
6294         * modules/rintl-ieee: New file.
6295
6296         Tests for module 'rint-ieee'.
6297         * modules/rint-ieee-tests: New file.
6298         * tests/test-rint-ieee.c: New file.
6299
6300         New module 'rint-ieee'.
6301         * modules/rint-ieee: New file.
6302
6303         Tests for module 'rintf-ieee'.
6304         * modules/rintf-ieee-tests: New file.
6305         * tests/test-rintf-ieee.c: New file.
6306         * tests/test-rint-ieee.h: New file.
6307
6308         New module 'rintf-ieee'.
6309         * modules/rintf-ieee: New file.
6310
6311 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
6312
6313         regex: re_search etc. should return -2 when memory exhausted
6314         This bug was uncovered when testing 'grep'.  Without the fix,
6315         re_search and friends return -1 when memory is exhausted, but -1
6316         means no match, and this causes grep to falsely report no-match
6317         instead of memory-exhaustion.  See
6318         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
6319         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
6320         trouble; this can occur if re_search_internal ran out of memory.
6321
6322 2012-02-26  Bruno Haible  <bruno@clisp.org>
6323
6324         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
6325         * m4/modfl-ieee.m4: New file.
6326         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
6327         whether modfl works with Inf. Replace it if not.
6328         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
6329         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
6330         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
6331         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
6332         (Depends-on): Update dependencies.
6333         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
6334         m4/signbit.m4.
6335         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
6336         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
6337
6338         modfl-ieee: Fix dependencies.
6339         * modules/modfl-ieee (Depends-on): Add modf-ieee.
6340
6341         modfl-ieee: Fix test failures.
6342         * lib/modfl.c (modfl): Treat NaN and Inf specially.
6343         * modules/modfl (Depends-on): Add isfinite, isinf.
6344
6345         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
6346         * m4/modff-ieee.m4: New file.
6347         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
6348         whether modff works with NaN and Inf. Replace it if not.
6349         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
6350         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
6351         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
6352         * modules/modff (configure.ac): Consider REPLACE_MODFF.
6353         (Depends-on): Update dependencies.
6354         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
6355         m4/signbit.m4.
6356         (Depends-on): Add modf-ieee.
6357         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
6358         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
6359
6360         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
6361         * m4/modf-ieee.m4: New file.
6362         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
6363         whether modf works with NaN and Inf. Replace it if not.
6364         * lib/math.in.h (modf): New declaration.
6365         * lib/modf.c: New file.
6366         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
6367         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
6368         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
6369         * modules/modf (Files): Add lib/modf.c.
6370         (Depends-on): Add math, isfinite, trunc, isinf.
6371         (configure.ac): Addrange to compile lib/modf.c if needed.
6372         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
6373         m4/signbit.m4.
6374         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
6375         * tests/test-math-c++.cc: Check the declaration of modf.
6376         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
6377
6378         Tests for module 'modfl-ieee'.
6379         * modules/modfl-ieee-tests: New file.
6380         * tests/test-modfl-ieee.c: New file.
6381
6382         New module 'modfl-ieee'.
6383         * modules/modfl-ieee: New file.
6384
6385         Tests for module 'modf-ieee'.
6386         * modules/modf-ieee-tests: New file.
6387         * tests/test-modf-ieee.c: New file.
6388
6389         New module 'modf-ieee'.
6390         * modules/modf-ieee: New file.
6391
6392         Tests for module 'modff-ieee'.
6393         * modules/modff-ieee-tests: New file.
6394         * tests/test-modff-ieee.c: New file.
6395         * tests/test-modf-ieee.h: New file.
6396
6397         New module 'modff-ieee'.
6398         * modules/modff-ieee: New file.
6399
6400 2012-02-26  Bruno Haible  <bruno@clisp.org>
6401
6402         Tests for module 'fabsl-ieee'.
6403         * modules/fabsl-ieee-tests: New file.
6404         * tests/test-fabsl-ieee.c: New file.
6405
6406         New module 'fabsl-ieee'.
6407         * modules/fabsl-ieee: New file.
6408
6409         Tests for module 'fabs-ieee'.
6410         * modules/fabs-ieee-tests: New file.
6411         * tests/test-fabs-ieee.c: New file.
6412
6413         New module 'fabs-ieee'.
6414         * modules/fabs-ieee: New file.
6415
6416         Tests for module 'fabsf-ieee'.
6417         * modules/fabsf-ieee-tests: New file.
6418         * tests/test-fabsf-ieee.c: New file.
6419         * tests/test-fabs-ieee.h: New file.
6420
6421         New module 'fabsf-ieee'.
6422         * modules/fabsf-ieee: New file.
6423
6424 2012-02-26  Bruno Haible  <bruno@clisp.org>
6425
6426         Tests for module 'fmal-ieee'.
6427         * modules/fmal-ieee-tests: New file.
6428         * tests/test-fmal-ieee.c: New file.
6429
6430         New module 'fmal-ieee'.
6431         * modules/fmal-ieee: New file.
6432
6433         Tests for module 'fma-ieee'.
6434         * modules/fma-ieee-tests: New file.
6435         * tests/test-fma-ieee.c: New file.
6436
6437         New module 'fma-ieee'.
6438         * modules/fma-ieee: New file.
6439
6440         Tests for module 'fmaf-ieee'.
6441         * modules/fmaf-ieee-tests: New file.
6442         * tests/test-fmaf-ieee.c: New file.
6443         * tests/test-fma-ieee.h: New file.
6444
6445         New module 'fmaf-ieee'.
6446         * modules/fmaf-ieee: New file.
6447
6448 2012-02-26  Bruno Haible  <bruno@clisp.org>
6449
6450         Tests for module 'ldexpl-ieee'.
6451         * modules/ldexpl-ieee-tests: New file.
6452         * tests/test-ldexpl-ieee.c: New file.
6453
6454         New module 'ldexpl-ieee'.
6455         * modules/ldexpl-ieee: New file.
6456
6457         Tests for module 'ldexp-ieee'.
6458         * modules/ldexp-ieee-tests: New file.
6459         * tests/test-ldexp-ieee.c: New file.
6460
6461         New module 'ldexp-ieee'.
6462         * modules/ldexp-ieee: New file.
6463
6464         Tests for module 'ldexpf-ieee'.
6465         * modules/ldexpf-ieee-tests: New file.
6466         * tests/test-ldexpf-ieee.c: New file.
6467         * tests/test-ldexp-ieee.h: New file.
6468
6469         New module 'ldexpf-ieee'.
6470         * modules/ldexpf-ieee: New file.
6471
6472 2012-02-26  Bruno Haible  <bruno@clisp.org>
6473
6474         Refactor frexp*-ieee tests.
6475         * tests/test-frexp-ieee.h: New file.
6476         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
6477         (main): Just call test_function.
6478         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
6479         (main): Just call test_function.
6480         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
6481         (main): Just call test_function.
6482         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
6483         * modules/frexp-ieee-tests (Files): Likewise.
6484         * modules/frexpl-ieee-tests (Files): Likewise.
6485
6486         Tests for module 'frexpl-ieee'.
6487         * modules/frexpl-ieee-tests: New file.
6488         * tests/test-frexpl-ieee.c: New file.
6489
6490         New module 'frexpl-ieee'.
6491         * modules/frexpl-ieee: New file.
6492
6493         Tests for module 'frexp-ieee'.
6494         * modules/frexp-ieee-tests: New file.
6495         * tests/test-frexp-ieee.c: New file.
6496
6497         New module 'frexp-ieee'.
6498         * modules/frexp-ieee: New file.
6499
6500         Tests for module 'frexpf-ieee'.
6501         * modules/frexpf-ieee-tests: New file.
6502         * tests/test-frexpf-ieee.c: New file.
6503
6504         New module 'frexpf-ieee'.
6505         * modules/frexpf-ieee: New file.
6506
6507 2012-02-26  Bruno Haible  <bruno@clisp.org>
6508
6509         roundl-ieee tests: More tests.
6510         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6511         (main): Add tests for [MX] shaded specification in POSIX.
6512         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6513         (Depends-on): Add isnanl-nolibm.
6514
6515         round-ieee tests: More tests.
6516         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6517         (main): Add tests for [MX] shaded specification in POSIX.
6518         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6519         (Depends-on): Add isnand-nolibm.
6520
6521         roundf-ieee tests: More tests.
6522         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6523         (main): Add tests for [MX] shaded specification in POSIX.
6524         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6525         (Depends-on): Add isnanf-nolibm.
6526
6527         truncl-ieee tests: More tests.
6528         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6529         (main): Add tests for [MX] shaded specification in POSIX.
6530         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6531         (Depends-on): Add isnanl-nolibm.
6532
6533         trunc-ieee tests: More tests.
6534         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6535         (main): Add tests for [MX] shaded specification in POSIX.
6536         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6537         (Depends-on): Add isnand-nolibm.
6538
6539         truncf-ieee tests: More tests.
6540         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6541         (main): Add tests for [MX] shaded specification in POSIX.
6542         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6543         (Depends-on): Add isnanf-nolibm.
6544
6545         ceill-ieee tests: More tests.
6546         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6547         (main): Add tests for [MX] shaded specification in POSIX.
6548         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6549         (Depends-on): Add isnanl-nolibm.
6550
6551         ceil-ieee tests: More tests.
6552         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6553         (main): Add tests for [MX] shaded specification in POSIX.
6554         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6555         (Depends-on): Add isnand-nolibm.
6556
6557         ceilf-ieee tests: More tests.
6558         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6559         (main): Add tests for [MX] shaded specification in POSIX.
6560         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6561         (Depends-on): Add isnanf-nolibm.
6562
6563         floorl-ieee tests: More tests.
6564         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6565         (main): Add tests for [MX] shaded specification in POSIX.
6566         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6567         (Depends-on): Add isnanl-nolibm.
6568
6569         floor-ieee tests: More tests.
6570         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6571         (main): Add tests for [MX] shaded specification in POSIX.
6572         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6573         (Depends-on): Add isnand-nolibm.
6574
6575         floorf-ieee tests: More tests.
6576         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6577         (main): Add tests for [MX] shaded specification in POSIX.
6578         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6579         (Depends-on): Add isnanf-nolibm.
6580
6581 2012-02-26  Bruno Haible  <bruno@clisp.org>
6582
6583         fpieee: More comments.
6584         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
6585
6586 2012-02-25  Bruno Haible  <bruno@clisp.org>
6587
6588         Tests for module 'log10l'.
6589         * modules/log10l-tests: New file.
6590         * tests/test-log10l.c: New file.
6591         * tests/test-math-c++.cc: Check the declaration of log10l.
6592
6593         New module 'log10l'.
6594         * lib/math.in.h (log10l): New declaration.
6595         * lib/log10l.c: New file.
6596         * m4/log10l.m4: New file.
6597         * modules/log10l: New file.
6598         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
6599         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
6600         HAVE_DECL_LOG10L.
6601         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
6602         HAVE_DECL_LOG10L.
6603         * doc/posix-functions/log10l.texi: Mention the new module.
6604
6605 2012-02-25  Bruno Haible  <bruno@clisp.org>
6606
6607         fmodl, remainder*: Avoid wrong results due to rounding errors.
6608         * lib/fmodl.c (fmodl): Correct the result if it is not within the
6609         expected bounds.
6610         * lib/remainderf.c (remainderf): Likewise.
6611         * lib/remainder.c (remainder): Likewise.
6612         * lib/remainderl.c (remainderl): Likewise.
6613
6614 2012-02-25  Bruno Haible  <bruno@clisp.org>
6615
6616         Tests for module 'remainderl'.
6617         * modules/remainderl-tests: New file.
6618         * tests/test-remainderl.c: New file.
6619         * tests/test-math-c++.cc: Check the declaration of remainderl.
6620
6621         New module 'remainderl'.
6622         * lib/math.in.h (remainderl): New declaration.
6623         * lib/remainderl.c: New file.
6624         * m4/remainderl.m4: New file.
6625         * modules/remainderl: New file.
6626         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
6627         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
6628         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
6629         HAVE_REMAINDERL.
6630         * doc/posix-functions/remainderl.texi: Mention the new module.
6631
6632 2012-02-25  Bruno Haible  <bruno@clisp.org>
6633
6634         Tests for module 'remainderf'.
6635         * modules/remainderf-tests: New file.
6636         * tests/test-remainderf.c: New file.
6637         * tests/test-math-c++.cc: Check the declaration of remainderf.
6638
6639         New module 'remainderf'.
6640         * lib/math.in.h (remainderf): New declaration.
6641         * lib/remainderf.c: New file.
6642         * m4/remainderf.m4: New file.
6643         * modules/remainderf: New file.
6644         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
6645         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
6646         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
6647         HAVE_REMAINDERF.
6648         * doc/posix-functions/remainderf.texi: Mention the new module.
6649
6650 2012-02-25  Bruno Haible  <bruno@clisp.org>
6651
6652         remainder: Support for MSVC.
6653         * lib/math.in.h (remainder): New declaration.
6654         * lib/remainder.c: New file.
6655         * m4/remainder.m4: New file.
6656         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
6657         (Depends-on): Add math, round, fma.
6658         (configure.ac): Use results of gl_FUNC_REMAINDER.
6659         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
6660         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
6661         HAVE_DECL_REMAINDER.
6662         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
6663         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
6664         * tests/test-math-c++.cc: Check the declaration of remainder.
6665         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
6666         problems are fixed.
6667
6668 2012-02-25  Bruno Haible  <bruno@clisp.org>
6669
6670         Tests for module 'fmodl'.
6671         * modules/fmodl-tests: New file.
6672         * tests/test-fmodl.c: New file.
6673         * tests/test-math-c++.cc: Check the declaration of fmodl.
6674
6675         New module 'fmodl'.
6676         * lib/math.in.h (fmodl): New declaration.
6677         * lib/fmodl.c: New file.
6678         * m4/fmodl.m4: New file.
6679         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
6680         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
6681         REPLACE_FMODL.
6682         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
6683         REPLACE_FMODL.
6684         * modules/fmodl: New file.
6685         * doc/posix-functions/fmodl.texi: Mention the new module.
6686
6687 2012-02-25  Bruno Haible  <bruno@clisp.org>
6688
6689         Tests for module 'modfl'.
6690         * modules/modfl-tests: New file.
6691         * tests/test-modfl.c: New file.
6692         * tests/test-math-c++.cc: Check the declaration of modfl.
6693
6694         New module 'modfl'.
6695         * lib/math.in.h (modfl): New declaration.
6696         * lib/modfl.c: New file.
6697         * m4/modfl.m4: New file.
6698         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
6699         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
6700         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
6701         * modules/modfl: New file.
6702         * doc/posix-functions/modfl.texi: Mention the new module.
6703
6704 2012-02-25  Bruno Haible  <bruno@clisp.org>
6705
6706         Tests for module 'fabsl'.
6707         * modules/fabsl-tests: New file.
6708         * tests/test-fabsl.c: New file.
6709         * tests/test-math-c++.cc: Check the declaration of fabsl.
6710
6711         New module 'fabsl'.
6712         * lib/math.in.h (fabsl): New declaration.
6713         * lib/fabsl.c: New file.
6714         * m4/fabsl.m4: New file.
6715         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
6716         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
6717         REPLACE_FABSL.
6718         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
6719         REPLACE_FABSL.
6720         * modules/fabsl: New file.
6721         * doc/posix-functions/fabsl.texi: Mention the new module.
6722
6723 2012-02-25  Bruno Haible  <bruno@clisp.org>
6724
6725         fabs tests: More tests.
6726         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
6727         (zero): New variable.
6728         (main): Add tests for signed zero.
6729         * modules/fabs-tests (Files): Add tests/minus-zero.h.
6730
6731         fabsf tests: More tests.
6732         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
6733         (zero): New variable.
6734         (main): Add tests for signed zero.
6735         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
6736
6737 2012-02-24  Bruno Haible  <bruno@clisp.org>
6738
6739         atanl: Provide function definition on MSVC.
6740         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
6741         function pointer.
6742         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
6743
6744 2012-02-24  Bruno Haible  <bruno@clisp.org>
6745
6746         acosl: Provide function definition on MSVC.
6747         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
6748         function pointer.
6749         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
6750
6751 2012-02-24  Bruno Haible  <bruno@clisp.org>
6752
6753         asinl: Provide function definition on MSVC.
6754         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
6755         function pointer.
6756         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
6757
6758 2012-02-24  Bruno Haible  <bruno@clisp.org>
6759
6760         tanl: Provide function definition on MSVC.
6761         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
6762         function pointer.
6763         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
6764
6765 2012-02-24  Bruno Haible  <bruno@clisp.org>
6766
6767         cosl: Provide function definition on MSVC.
6768         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
6769         function pointer.
6770         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
6771
6772 2012-02-24  Bruno Haible  <bruno@clisp.org>
6773
6774         sinl: Provide function definition on MSVC.
6775         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
6776         function pointer.
6777         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
6778
6779 2012-02-24  Bruno Haible  <bruno@clisp.org>
6780
6781         logl: Provide function definition on MSVC.
6782         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
6783         function pointer.
6784         * lib/math.in.h (logl): Undefine if it does not exist as a function.
6785
6786 2012-02-24  Bruno Haible  <bruno@clisp.org>
6787
6788         expl: Provide function definition on MSVC.
6789         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
6790         function pointer.
6791         * lib/math.in.h (expl): Undefine if it does not exist as a function.
6792
6793 2012-02-24  Bruno Haible  <bruno@clisp.org>
6794
6795         sqrtl: Provide function definition on MSVC.
6796         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
6797         a function pointer.
6798         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
6799
6800 2012-02-24  Bruno Haible  <bruno@clisp.org>
6801
6802         ceill: Provide function definition on MSVC.
6803         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
6804         used as a function pointer.
6805         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
6806
6807 2012-02-24  Bruno Haible  <bruno@clisp.org>
6808
6809         floorl: Provide function definition on MSVC.
6810         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
6811         used as a function pointer.
6812         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
6813
6814 2012-02-24  Bruno Haible  <bruno@clisp.org>
6815
6816         ceilf: Provide function definition on MSVC.
6817         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
6818         used as a function pointer.
6819         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
6820
6821 2012-02-24  Bruno Haible  <bruno@clisp.org>
6822
6823         floorf: Provide function definition on MSVC.
6824         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
6825         used as a function pointer.
6826         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
6827
6828 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6829
6830         stdnoreturn: new module
6831         This implements a replacement for C11's <stdnoreturn.h>.
6832         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
6833         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
6834         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6835         * tests/test-stdnoreturn.c: New files.
6836
6837 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
6838
6839         regex: fix false multibyte matches in some regular expressions
6840         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
6841         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
6842         * lib/regex_internal.c (re_string_skip_chars):
6843         Fix miscomputation of remain_len that may cause incomplete
6844         multi-byte character and false match.
6845
6846 2012-02-24  Jim Meyering  <meyering@redhat.com>
6847
6848         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
6849         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
6850         uses with "==" *before* the call, e.g., 0 == strcmp (...)
6851         Remove now-unnecessary str''cmp obfuscation.
6852         Suggested by Akim Demaille.
6853
6854 2012-02-24  Bruno Haible  <bruno@clisp.org>
6855
6856         streq: Rename macro.
6857         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
6858         * NEWS: Mention the change.
6859         * lib/mbrtowc.c (mbrtowc): Update.
6860         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
6861         * lib/wcwidth.c (wcwidth): Update.
6862         Suggested by Akim Demaille and Jim Meyering.
6863
6864 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6865
6866         regex: fix typo in definition of MIN
6867         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
6868         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
6869
6870 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6871             Bruno Haible  <bruno@clisp.org>
6872
6873         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
6874         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
6875         entries into a stack-allocated buffer directly.
6876         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
6877
6878 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6879             Bruno Haible  <bruno@clisp.org>
6880
6881         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
6882
6883          - There were several instances of this pattern:
6884
6885              for (;;) {
6886                n = acl (f, GETACLCNT, 0, NULL);
6887                [ allocate an array A of size N ]
6888                if (acl (f, GETACL, n, a) == n)
6889                  break;
6890              }
6891
6892            This loop might never terminate if some other process is constantly
6893            manipulating the file's ACL.  The loop should be rewritten to
6894            terminate.
6895
6896          - The acl (... GETACLNT ...) call is merely an optimization; its value
6897            is merely a hint as to how big to make the array.  A better
6898            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
6899            and just guess a reasonably-big size, growing the size and trying
6900            again if it's not large enough.  This guarantees termination, and
6901            saves a system call.
6902
6903         * lib/acl-internal.h: Include <limits.h>.
6904         (MIN, SIZE_MAX): New macros.
6905         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
6906         a stack-allocated buffer, and use malloc if it does not fit. Don't
6907         use GETACLCNT.
6908         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6909
6910 2012-02-19  Bruno Haible  <bruno@clisp.org>
6911
6912         acl: Fix endless loop on Solaris with vxfs.
6913         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
6914         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
6915         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6916         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
6917         * tests/test-sameacls.c (main)[Solaris]: Likewise.
6918         Reported by Bill Jones in
6919         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
6920
6921 2012-02-19  Bruno Haible  <bruno@clisp.org>
6922
6923         acl: Fix copy-acl test failure on Solaris 11 2011-11.
6924         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
6925         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
6926         that this function returns 0 in some more cases.
6927
6928 2012-02-19  Bruno Haible  <bruno@clisp.org>
6929
6930         acl: Update doc references.
6931         * doc/acl-resources.txt: Update links to Solaris documentation.
6932
6933 2012-02-19  Bruno Haible  <bruno@clisp.org>
6934
6935         Fix test failure in many locales on Solaris 11.
6936         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
6937         'tr' arguments.
6938         * tests/test-pipe-filter-ii1.c (main): Likewise.
6939         * build-aux/bootstrap (check_versions): Run 'tr' command with range
6940         expressions in the C locale.
6941         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6942         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6943
6944 2012-02-19  Bruno Haible  <bruno@clisp.org>
6945
6946         gnulib-tool: Improve usage message.
6947         * gnulib-tool (func_usage): Move doc of --help and --version to the
6948         section "Operation modes".
6949
6950 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
6951
6952         README-release: make it easier to execute commands
6953         * top/README-release: break commands out on to separate lines.
6954
6955 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
6956
6957         GNUmakefile: simplify detection of unconfigured trees
6958         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
6959         whether the tree make is being run from is already configured or
6960         not.  Related simplifications.
6961
6962 2012-02-13  Simon Josefsson  <simon@josefsson.org>
6963
6964         * gnulib-tool (func_usage): Document --help and --version.
6965
6966 2012-02-11  Jim Meyering  <meyering@redhat.com>
6967
6968         bootstrap: don't exit 0 upon gnulib-tool failure
6969         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
6970         its exit status, not 0.
6971
6972 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
6973
6974         README-release: various improvements
6975         * top/README-release: Give a command to push changes for the
6976         release.  Add "distcheck" to list of other pre-release checks.
6977         Fix instance of "make stable" which should be "make TYPE".
6978
6979 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6980
6981         maint: replace FSF snail-mail addresses with URLs
6982         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
6983         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
6984         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
6985         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
6986         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
6987         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
6988         * lib/check-version.c, lib/check-version.h, lib/config.charset:
6989         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
6990         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
6991         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
6992         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
6993         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
6994         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
6995         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
6996         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
6997         * lib/glthread/thread.c, lib/glthread/thread.h:
6998         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
6999         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
7000         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
7001         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
7002         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
7003         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
7004         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
7005         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
7006         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
7007         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
7008         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
7009         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
7010         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
7011         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
7012         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
7013         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
7014         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
7015         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
7016         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
7017         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
7018         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
7019         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
7020         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
7021         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
7022         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
7023         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
7024         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
7025         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
7026         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
7027         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
7028         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
7029         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
7030         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
7031         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
7032         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
7033         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
7034         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
7035         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
7036         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
7037         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
7038         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
7039         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
7040         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
7041         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
7042         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
7043         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
7044         * tests/test-poll.c, tests/test-quotearg-simple.c:
7045         * tests/test-quotearg.c, tests/test-quotearg.h:
7046         * tests/test-round-ieee.c, tests/test-round1.c:
7047         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
7048         * tests/test-roundl-ieee.c, tests/test-roundl.c:
7049         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
7050         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
7051         * tests/test-strerror.c, tests/test-strerror_r.c:
7052         * tests/test-strsignal.c, tests/test-strverscmp.c:
7053         * tests/test-xmemdup0.c:
7054         Replace FSF snail mail addresses with URLs, as per GNU coding
7055         standards.  See glibc bug
7056         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
7057
7058 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7059
7060         README-release: capitalize a word and split a line
7061         * top/README-release: Fix punctuation and spacing.
7062
7063 2012-02-08  Akim Demaille  <demaille@gostai.com>
7064
7065         fatal-signal: use C prototypes (with explicit void).
7066         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
7067         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
7068
7069 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7070
7071         regex: spelling fix
7072         * lib/regexec.c: spelling fix
7073
7074         regex: rely on stdint.h for SIZE_MAX
7075         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
7076
7077 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7078
7079         regex: merge glibc changes
7080
7081         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
7082         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
7083         (init_word_char): Work even if bitset words are not exactly 32 or
7084         64 bits wide.  Don't assume there are no padding bits.
7085         * lib/regex.c [_LIBC]: Do not include <config.h>.
7086         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
7087         and -Wtype-limits.
7088         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
7089         needless disagreement with glibc.  All uses changed.  Define it to
7090         1 only if _GNU_SOURCE, to match glibc.
7091         (_REG_RM_NAME): Remove; no longer needed, since the names in
7092         question are now all protected by __USE_GNU.
7093         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
7094         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
7095         * lib/regex_internal.h (MIN): New macro.
7096
7097         2012-01-03 Ulrich Drepper <drepper@gmail.com>
7098         * lib/regcomp.c (init_word_char): Optimize regex a bit.
7099
7100         2011-12-30 Jakub Jelinek <jakub@redhat.com>
7101         * lib/regex_internal.c (re_string_fetch_byte_case):
7102         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
7103         is miscompiled, and it turns out it is because of an incorrect
7104         attribute on re_string_fetch_byte_case.  Unlike
7105         re_string_peek_byte_case, this one is really not pure, it modifies
7106         memory (increments pstr->cur_idx), and with the pure attribute GCC
7107         assumed it doesn't and it cached the presumed value of
7108         regexp->cur_idx in a variable across the
7109          for (;; ++i)
7110            {
7111              if (i >= BRACKET_NAME_BUF_SIZE)
7112                return REG_EBRACK;
7113              if (token->type == OP_OPEN_CHAR_CLASS)
7114                ch = re_string_fetch_byte_case (regexp);
7115              else
7116                ch = re_string_fetch_byte (regexp);
7117              if (re_string_eoi(regexp))
7118                return REG_EBRACK;
7119              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
7120                break;
7121              elem->opr.name[i] = ch;
7122            }
7123
7124         2011-11-29 Andreas Schwab <schwab@redhat.com>
7125         * lib/regcomp.c (build_equiv_class):
7126         Fix access after end of search string in regex matcher.
7127
7128         2011-11-12 Ulrich Drepper <drepper@redhat.com>
7129         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
7130
7131         2011-10-12 Ulrich Drepper <drepper@redhat.com>
7132         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
7133
7134         2011-10-11 Ulrich Drepper <drepper@redhat.com>
7135         * lib/regcomp.c (parse_branch, parse_sub_exp):
7136         More regex memory leak fixes and tests.
7137         (parse_sub_exp, parse_bracket_exp):
7138         Fix memory leak for some invalid regular expressions.
7139
7140         2011-05-28 Ulrich Drepper <drepper@gmail.com>
7141         * lib/regex_internal.c, lib/regexec.c:
7142         Fix unnecessary overallocation due to incomplete character.  When
7143         incomplete characters are found at the end of a string the code
7144         ran amok and allocated lots of memory.  Stricter limits are now in
7145         place.
7146
7147         2011-05-20 Reuben Thomas <rrt@sc3d.org>
7148         * lib/regex.h: Update documentation.
7149
7150         2011-05-16 Aharon Robbins <arnold@skeeve.com>
7151         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
7152
7153         2010-05-05 Andreas Schwab <schwab@redhat.com>
7154         * lib/regexec.c (find_collation_sequence_value):
7155         Fix lookup of collation sequence value during regexp matching.
7156
7157         2010-01-22 Ulrich Drepper <drepper@redhat.com>
7158         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
7159
7160         2008-01-16 Ulrich Drepper <drepper@redhat.com>
7161         * lib/regex.h: Cleanup namespace.
7162
7163         2007-11-26 Ulrich Drepper <drepper@redhat.com>
7164         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
7165
7166         2007-08-26 Ulrich Drepper <drepper@redhat.com>
7167         * lib/regex_internal.h: Prevent some declarations and definitions
7168         to be seen when used in tests.
7169
7170         2005-05-06 Ulrich Drepper <drepper@redhat.com>
7171         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
7172         __libc_lock_* macros if not _LIBC.
7173         (struct re_dfa_t): Add lock.
7174
7175 2012-02-07  Eric Blake  <eblake@redhat.com>
7176
7177         maint.mk: also prohibit lower-case @var@
7178         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
7179         lower case, like @top_srcdir@.
7180
7181 2012-02-04  Eric Blake  <eblake@redhat.com>
7182
7183         canonicalize: avoid uninitialized memory use
7184         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
7185         random '/' left in dest.
7186         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
7187
7188 2012-02-04  Bruno Haible  <bruno@clisp.org>
7189
7190         isatty: Fix test failure of ptsname_r on native Windows.
7191         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
7192         and don't set errno.
7193         (isatty): Test first whether fd is valid. Set errno when returning 0.
7194
7195 2012-02-04  Bruno Haible  <bruno@clisp.org>
7196
7197         spawn-pipe tests: Fix a NULL program name in a diagnostic.
7198         * tests/test-spawn-pipe-main.c: Include progname.h.
7199         (main): Invoke set_program_name.
7200         * modules/spawn-pipe-tests (Depends-on): Add progname.
7201
7202         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
7203         * tests/test-nonblocking-socket-main.c: Include progname.h.
7204         (main): Invoke set_program_name.
7205         * modules/nonblocking-socket-tests (Depends-on): Add progname.
7206
7207         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
7208         * tests/test-nonblocking-pipe-main.c: Include progname.h.
7209         (main): Invoke set_program_name.
7210         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
7211
7212 2012-02-04  Eric Blake  <eblake@redhat.com>
7213
7214         canonicalize-lgpl: fix // handling
7215         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
7216
7217         canonicalize: fix // handling
7218         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
7219         /// to //, since only // is special.
7220
7221 2012-02-04  Bruno Haible  <bruno@clisp.org>
7222
7223         ioctl: Fix test failure on native Windows.
7224         * lib/ioctl.c: Include msvc-nothrow.h.
7225         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
7226
7227 2012-02-04  Bruno Haible  <bruno@clisp.org>
7228
7229         fsync: Avoid test failure on native Windows.
7230         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
7231         read-only.
7232
7233 2012-02-04  Bruno Haible  <bruno@clisp.org>
7234
7235         sys_select: Avoid syntax error on OpenBSD 5.0.
7236         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
7237         currently being included, just include the system's <sys/select.h>.
7238
7239 2012-02-04  Bruno Haible  <bruno@clisp.org>
7240
7241         sys_select: Avoid syntax error on OpenBSD 5.0.
7242         * lib/sys_select.in.h: Include <signal.h> only after the include_next
7243         <sys/select.h>, not before.
7244         Reported by Jiri B <jirib@devio.us>.
7245
7246 2012-02-04  Bruno Haible  <bruno@clisp.org>
7247
7248         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
7249         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
7250         global variables.
7251         * tests/test-get-rusage-data.c (main): Likewise.
7252         Reported by Jim Meyering.
7253
7254 2012-02-04  Bruno Haible  <bruno@clisp.org>
7255
7256         stdioext: Fix last commit.
7257         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
7258
7259 2012-02-03  Bruno Haible  <bruno@clisp.org>
7260
7261         stdioext: Add tentative support for Plan9.
7262         * lib/stdio-impl.h: Include <errno.h>.
7263         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
7264         * lib/freadable.c (freadable): Likewise.
7265         * lib/fwritable.c (fwritable): Likewise.
7266         * lib/fbufmode.c (fbufmode): Likewise.
7267         * lib/freading.c (freading): Likewise.
7268         * lib/fwriting.c (fwriting): Likewise.
7269         * lib/freadptr.c (freadptr): Likewise.
7270         * lib/freadseek.c (freadptrinc): Likewise.
7271         * lib/freadahead.c (freadahead): Likewise.
7272         * lib/fpurge.c (fpurge): Likewise.
7273         * lib/fseeko.c (rpl_fseeko): Likewise.
7274         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
7275         Reported by Jens Staal <staal1978@gmail.com>.
7276
7277 2012-02-02  Jim Meyering  <meyering@redhat.com>
7278
7279         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
7280         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
7281         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
7282         not even to try to add the attribute.  Instead, add a pragma to suppress
7283         the suggestion/warning.
7284
7285 2012-01-31  Karl Berry  <karl@gnu.org>
7286
7287         setstate doc: typo.
7288         * doc/posix-functions/setstate.texi (setstate): { not (.
7289
7290 2012-01-31  Bruno Haible  <bruno@clisp.org>
7291
7292         popen: Make more robust on Windows.
7293         * lib/popen.c: On native Windows, use the _popen based code even if
7294         HAVE_POPEN is set.
7295         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
7296         environment variable on native Windows.
7297
7298 2012-01-30  Bruno Haible  <bruno@clisp.org>
7299
7300         pclose: Fix typo.
7301         * lib/stdio.in.h (pclose): Fix typo in warning message.
7302
7303 2012-01-30  Bruno Haible  <bruno@clisp.org>
7304
7305         doc about getlogin_r, setstate.
7306         * doc/posix-functions/getlogin_r.texi: List the incompatible
7307         declaration problem under "not fixed by gnulib".
7308         * doc/posix-functions/setstate.texi: Mention incompatible declaration
7309         problem on Solaris 11 and other platforms.
7310
7311 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
7312             Bruno Haible  <bruno@clisp.org>
7313
7314         poll tests: Make test more robust.
7315         * tests/test-poll.c: Include macros.h.
7316         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
7317         return value of various I/O operations.
7318         * modules/poll-tests (Files): Add tests/macros.h.
7319
7320 2012-01-30  Bruno Haible  <bruno@clisp.org>
7321
7322         sys_stat: Fix support for mingw64 and MSVC.
7323         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
7324         header files already do it.
7325         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
7326         stat itself.
7327         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7328
7329 2012-01-30  Bruno Haible  <bruno@clisp.org>
7330
7331         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
7332         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
7333         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
7334
7335 2012-01-29  Bruno Haible  <bruno@clisp.org>
7336
7337         quotearg: Fix test failure on MacOS X 10.5.
7338         * tests/test-quotearg-simple.c: Include localcharset.h.
7339         (main): If the locale encoding is not ASCII, bypass the tests of
7340         locale_quoting_style and clocale_quoting_style.
7341         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
7342
7343 2012-01-29  Jim Meyering  <meyering@redhat.com>
7344
7345         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
7346         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
7347         detect uses of canonicalize_file_name.
7348
7349 2012-01-28  Bruno Haible  <bruno@clisp.org>
7350
7351         test-framework-sh: Fix test failure with AIX 7.1 diff.
7352         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
7353         in column 1, like 'diff -c' does.
7354         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
7355         whether 'diff -u' is used. Instead, test whether the output contains
7356         some '@' character.
7357
7358 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7359
7360         strtoimax: eliminate need for stdint.h, inttypes.h checks
7361         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
7362         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
7363         the prerequisites for a recently-introduced strtoimax test.
7364         I guess this might cause strtoimax to be replaced when not
7365         strictly necessary on older hosts, but this shouldn't introduce
7366         any bugs and it should make Emacs 'configure' faster on typical
7367         modern hosts.  Problem discovered when importing the latest gnulib
7368         to an Emacs test version.
7369         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
7370
7371 2012-01-28  Bruno Haible  <bruno@clisp.org>
7372
7373         sys_time: Override 'struct timeval' on some native Windows platforms.
7374         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
7375         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
7376         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
7377         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
7378         needs to be overridden.
7379         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
7380         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
7381         * tests/test-sys_select.c: Check that the tv_sec member has the same
7382         size as a 'time_t'.
7383         * tests/test-sys_time.c: Likewise.
7384         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
7385         is set, set also REPLACE_GETTIMEOFDAY.
7386         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
7387         convert the resulting 'struct timeval' before returning.
7388         * lib/select.c: Include <sys/time.h>.
7389         (select, timeval): Undefine at the right place.
7390         * modules/select (Depends-on): Add sys_time.
7391         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
7392         some Windows platforms.
7393         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7394
7395 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7396
7397         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
7398         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
7399         an integer.
7400         * lib/fcntl.c (dupfd): Likewise.
7401         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
7402
7403 2012-01-28  Bruno Haible  <bruno@clisp.org>
7404
7405         fcntl: Avoid compilation error on native Windows.
7406         * modules/fcntl (Depends-on): Add 'close'.
7407
7408 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7409
7410         select, poll, isatty: Avoid warnings on x86_64 mingw64.
7411         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
7412         pointer to an integer.
7413         * lib/poll.c (IsConsoleHandle): Likewise.
7414         * lib/isatty.c (IsConsoleHandle): Likewise.
7415
7416 2012-01-28  Jim Meyering  <meyering@redhat.com>
7417
7418         doc: clarify README-release
7419         * top/README-release: Clarify: you should make a point to have
7420         the latest stable versions of build tools in your PATH, and the
7421         reference to buildreq is solely for its list of tool names, not
7422         for its minimal-functional version numbers.
7423         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
7424
7425         maint.mk: use more readable (yet functionally equivalent) quoting
7426         It is common to quote a single quote in a single quoted string like
7427         this:  '...'\''...'.  Unless you know the idiom, that looks like
7428         gibberish, so prefer to double-quote the string when possible.
7429         Then you can use a more readable, lone single quote: "...'..."
7430         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
7431         "don't" is more readable than the equivalent 'don'\''t'.
7432         (sc_cast_of_x_alloc_return_value): Likewise.
7433         (sc_cast_of_alloca_return_value): Likewise.
7434         (sc_makefile_path_separator_check): Similar: use ":" in '...',
7435         rather than '\'':'\''.
7436
7437 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7438
7439         stdalign: relax _Alignof and tighten _Alignas test
7440         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
7441         as it was too strict: alignof must divide offsetof, but it need
7442         not equal offsetof.  Inspired by Joseph S. Myers's comment
7443         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
7444         Conversely, tighten the _Alignas test a bit, as the resulting
7445         alignment must be exactly 8.
7446
7447 2012-01-27  Bruno Haible  <bruno@clisp.org>
7448
7449         stdalign: Document the last change.
7450         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
7451
7452 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7453
7454         stdalign: check that alignof and offsetof are consistent
7455         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
7456         Problem reported for gnulib by Richard W.M. Jones in
7457         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
7458
7459 2012-01-27  Jim Meyering  <meyering@redhat.com>
7460
7461         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
7462         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
7463         convert a sequence with gaps to the minimal containing range.
7464         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
7465         * tests/test-update-copyright.sh: Test for this.
7466         The FSF confirmed it is ok to do this, assuming there is at
7467         least one significant change per year in the affected range:
7468         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
7469
7470 2012-01-26  Bruno Haible  <bruno@clisp.org>
7471
7472         pipe2: refine doc about thread-safety
7473         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
7474         multithread-safety problem.
7475         * doc/glibc-functions/accept4.texi: Likewise.
7476
7477 2012-01-26  Bruno Haible  <bruno@clisp.org>
7478
7479         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
7480         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
7481         In the test program, include <fcntl.h>, for O_RDONLY.
7482
7483 2012-01-26  Eric Blake  <eblake@redhat.com>
7484
7485         pipe2: document lack of thread-safety in replacement
7486         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
7487         issue in replacement.
7488         * doc/glibc-functions/accept4.texi (accept4): Likewise.
7489         Based on a report by Eric Wong.
7490
7491 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7492             Bruno Haible  <bruno@clisp.org>
7493
7494         malloca: Avoid warnings on x86_64 mingw64.
7495         * lib/malloca.c: Include <stdint.h>.
7496         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
7497         * modules/malloca (Depends-on): Add stdint.
7498         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
7499
7500 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7501
7502         obstack: remove __STDC__ conditionals
7503         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
7504         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
7505         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
7506         m4/include_next.m4 as the only gnulib-maintained places that still
7507         refer to __STDC__.
7508
7509 2012-01-24  Bruno Haible  <bruno@clisp.org>
7510
7511         havelib: Modern quoting.
7512         * build-aux/config.rpath: Quote 'like this', not `like this', as per
7513         the recent change to the GNU coding standards.
7514
7515 2012-01-24  Bruno Haible  <bruno@clisp.org>
7516
7517         stdint: Improve support for Android.
7518         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
7519         Reported by Simon Josefsson <simon@josefsson.org>.
7520
7521 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7522
7523         doc: omit trailing empty lines from INSTALL etc.
7524         * doc/Makefile (INSTALL): Omit trailing empty lines.
7525         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
7526         omit trailing empty lines.  This simplifies the build procedure.
7527
7528 2012-01-23  Jim Meyering  <meyering@redhat.com>
7529
7530         tests: avoid spurious warnings about gl_sockets_startup
7531         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
7532         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
7533         reporting a "statement with no effect".
7534         * tests/test-accept.c (main): Mark as "(void)".
7535         * tests/test-accept4.c (main): Likewise.
7536         * tests/test-bind.c (main): Likewise.
7537         * tests/test-connect.c (main): Likewise.
7538         * tests/test-getpeername.c (main): Likewise.
7539         * tests/test-getsockname.c (main): Likewise.
7540         * tests/test-getsockopt.c (main): Likewise.
7541         * tests/test-listen.c (main): Likewise.
7542         * tests/test-recv.c (main): Likewise.
7543         * tests/test-recvfrom.c (main): Likewise.
7544         * tests/test-send.c (main): Likewise.
7545         * tests/test-sendto.c (main): Likewise.
7546         * tests/test-setsockopt.c (main): Likewise.
7547         * tests/test-shutdown.c (main): Likewise.
7548
7549 2012-01-21  Bruno Haible  <bruno@clisp.org>
7550
7551         locale-fr.m4: Fix for Android.
7552         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
7553         failure of the test program on Bionic libc.
7554
7555 2012-01-21  Jim Meyering  <meyering@redhat.com>
7556
7557         bootstrap: fail when bootstrap_post_import_hook fails
7558         Otherwise, it's far too easy to miss diagnostics emitted
7559         between gnulib-tool's output and that of running configure.
7560         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
7561
7562 2012-01-17  Jim Meyering  <meyering@redhat.com>
7563
7564         maint: enable sc_trailing_blank
7565         * build-aux/pmccabe.css: Remove trailing blanks.
7566         * doc/acl-cygwin.txt: Likewise.
7567         * doc/gnu-oids.texi: Likewise
7568         * cfg.mk: Enable sc_trailing_blank.
7569         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
7570
7571 2012-01-17  Jim Meyering  <meyering@redhat.com>
7572
7573         maint: enable sc_prohibit_openat_without_use
7574         * cfg.mk: Enable sc_prohibit_openat_without_use.
7575         Exempt lib/selinux-at.c.
7576
7577 2012-01-17  Jim Meyering  <meyering@redhat.com>
7578
7579         maint: enable sc_prohibit_cloexec_without_use
7580         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
7581         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
7582
7583 2012-01-17  Jim Meyering  <meyering@redhat.com>
7584
7585         maint: enable sc_prohibit_intprops_without_use
7586         * cfg.mk: Enable sc_prohibit_intprops_without_use
7587         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
7588
7589 2012-01-17  Jim Meyering  <meyering@redhat.com>
7590
7591         maint: enable sc_prohibit_hash_pjw_without_use
7592         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
7593         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
7594         to match any use of \<hash_pjw\>, i.e., not necessarily with a
7595         following " (".
7596
7597 2012-01-17  Jim Meyering  <meyering@redhat.com>
7598
7599         maint: enable double-word-prohibiting rule
7600         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
7601         Exempt three files.
7602
7603 2012-01-17  Jim Meyering  <meyering@redhat.com>
7604
7605         maint: remove empty lines at EOF, but excluding modules/*
7606         Apply syntax rules at home as well as abroad.  Most changes
7607         were induced by running this:
7608           make srcdir=. _build-aux=build-aux -f top/maint.mk \
7609             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
7610             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
7611         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
7612         Exempt modules/* and two binary files.
7613         Also exempt doc/INSTALL*, per request from Bruno Haible.
7614         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
7615         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
7616         * doc/Copyright/request-assign.future: Likewise.
7617         * doc/Copyright/request-disclaim.changes: Likewise.
7618         * doc/INSTALL: Likewise.
7619         * doc/INSTALL.ISO: Likewise.
7620         * doc/INSTALL.UTF-8: Likewise.
7621         * doc/acl-cygwin.txt: Likewise.
7622         * doc/acl-resources.txt: Likewise.
7623         * doc/fdl-1.2.texi: Likewise.
7624         * doc/fdl-1.3.texi: Likewise.
7625         * doc/fdl.texi: Likewise.
7626         * lib/argp-pin.c: Likewise.
7627         * lib/round.c: Likewise.
7628         * lib/unicase/u16-totitle.c: Likewise.
7629         * lib/unictype/block_test.c: Likewise.
7630         * lib/uninorm/canonical-decomposition.c: Likewise.
7631         * m4/README: Likewise.
7632         * m4/relocatable-lib.m4: Likewise.
7633         * tests/test-isnand-nolibm.c: Likewise.
7634         * tests/test-isnand.c: Likewise.
7635         * tests/uninorm/NormalizationTest.txt: Likewise.
7636
7637 2012-01-17  Jim Meyering  <meyering@redhat.com>
7638
7639         maint: add framework to run syntax-check rules against gnulib sources
7640         * cfg.mk: New file, to disable all currently-failing tests.
7641         We'll enable them one by one, as they are made to pass.
7642         * Makefile (sc_maint): New rule.
7643
7644 2012-01-21  Bruno Haible  <bruno@clisp.org>
7645
7646         stdint: Add support for Android.
7647         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
7648         include the system's <stdint.h>.
7649         Reported by Simon Josefsson <simon@josefsson.org>.
7650
7651 2012-01-19  Jim Meyering  <meyering@redhat.com>
7652
7653         bootstrap: add bootstrap_post_import_hook
7654         Bison does still need something like the gnulib_mk_hook whose
7655         invocation I had to remove along with slurp in commit 767ccd40.
7656         Technically, we could get along without it, but doing so would
7657         have required living with a warning and a mandatory post-bootstrap
7658         automake rerun.
7659         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
7660         (bootstrap_post_import_hook): New function.
7661         Invoke it after gnulib-tool --import and before autoreconf.
7662
7663 2012-01-18  Jim Meyering  <meyering@redhat.com>
7664
7665         gitlog-to-changelog: don't use "no_"-prefixed variable name
7666         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
7667         to enable both --cluster and --no-cluster.  Change variable name,
7668         s/\$no_cluster/$cluster/, and reverse usage to match.
7669
7670         gitlog-to-changelog: use "||", not "or" in expressions
7671         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
7672         expressions.
7673
7674 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
7675
7676         gitlog-to-changelog: new option --no-cluster
7677         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
7678         clustering of adjacent commit messages.
7679
7680 2012-01-17  Jim Meyering  <meyering@redhat.com>
7681
7682         maint: spell file systems with two words, not one
7683         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
7684         two words, not one.
7685
7686 2012-01-16  Jim Meyering  <meyering@redhat.com>
7687
7688         bootstrap: add a FIXME comment to ensure we eventually remove the hack
7689         * build-aux/bootstrap (gnulib_tool_options): Add comment.
7690
7691 2012-01-16  Eric Blake  <eblake@redhat.com>
7692
7693         bootstrap: cater to autoconf 2.59
7694         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
7695         is not available.
7696
7697         bootstrap: properly check for libtool
7698         * build-aux/bootstrap (libtoolize): Also run libtool when older
7699         usage is detected.
7700
7701 2012-01-15  Bruno Haible  <bruno@clisp.org>
7702
7703         Improve support for MSVC 9.
7704         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
7705         clashes on MSVC.
7706         * lib/fcntl.in.h: Likewise.
7707         * lib/stdlib.in.h: Likewise.
7708         * lib/sys_stat.in.h: Likewise.
7709
7710 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
7711
7712         gnupload: we hold the master copy of this script now
7713         For motivation and more information, see:
7714         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
7715         * build-aux/gnupload: Make it clear in the heading comments that the
7716         master copy of this file is maintained by gnulib.  Since we are at
7717         it, bump its copyright year and ...
7718         ($scriptversion): ... the date in its version.
7719         ($usage): Patches and bug reports should be sent to the gnulib list,
7720         not the automake one.
7721         * config/srclist.txt: Don't try to sync 'gnupload' from automake
7722         anymore.
7723
7724 2012-01-15  Bruno Haible  <bruno@clisp.org>
7725
7726         Fix module 'random'.
7727         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
7728         initstate, setstate are declared.
7729
7730 2012-01-14  Bruno Haible  <bruno@clisp.org>
7731
7732         Tests for module 'random'.
7733         * modules/random-tests: New file.
7734         * tests/test-random.c: New file, based on tests/test-random_r.c.
7735
7736         New module 'random'.
7737         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
7738         declarations.
7739         * lib/random.c: New file, based on glibc/stdlib/random.c.
7740         * m4/random.m4: New file.
7741         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
7742         HAVE_RANDOM.
7743         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
7744         * modules/random: New file.
7745         * config/srclist.txt: Add an entry for random.c.
7746         * doc/posix-functions/random.texi: Mention the 'random' module.
7747         * doc/posix-functions/initstate.texi: Likewise.
7748         * doc/posix-functions/setstate.texi: Likewise.
7749         * doc/posix-functions/srandom.texi: Likewise.
7750
7751 2012-01-12  Bruno Haible  <bruno@clisp.org>
7752
7753         random_r: Use common idioms.
7754         * lib/random_r.c: Include <stdlib.h> first.
7755
7756         random_r: Override incompatible API on AIX, OSF/1.
7757         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
7758         Override the system function if REPLACE_RANDOM_R is 1.
7759         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
7760         and OSF/1, set REPLACE_RANDOM_R.
7761         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
7762         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
7763         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
7764         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
7765         * doc/glibc-functions/random_r.texi: Likewise.
7766         * doc/glibc-functions/setstate_r.texi: Likewise.
7767
7768         random_r: Support for MSVC 9.
7769         * lib/random_r.c: Include stdint.h, not inttypes.h.
7770
7771 2012-01-12  Eric Blake  <eblake@redhat.com>
7772
7773         inet_ntop: guard extra work by IF_LINT
7774         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
7775         better code generation when not checking for warnings.
7776         Suggested by Paul Eggert and Jim Meyering.
7777
7778         strptime: fix regression on mingw
7779         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
7780         Fix regression.  Reported by Bruno Haible.
7781
7782 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
7783             Bruno Haible  <bruno@clisp.org>
7784
7785         copy-file: add error-code-returning variant.
7786         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
7787         (qcopy_file_preserving): New declaration.
7788         * lib/copy-file.c (qcopy_file_preserving): Renamed from
7789         copy_file_preserving. Change return type to 'int'. Don't emit an error
7790         message here.
7791         (copy_file_preserving): New function.
7792         * tests/test-copy-file.c: Include <stdlib.h>.
7793         (main): Test qcopy_file_preserving if the environment variable
7794         NO_STDERR_OUTPUT is set.
7795         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
7796         with NO_STDERR_OUTPUT
7797         * tests/test-copy-file-2.sh: Likewise.
7798
7799 2012-01-10  Bruno Haible  <bruno@clisp.org>
7800
7801         copy-file: Use 'quote' module consistently.
7802         * lib/copy-file.c (copy_file_preserving): Use quote().
7803
7804         copy-file: Refactor.
7805         * lib/copy-file.c: Include quote.h.
7806         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
7807         message here.
7808         * modules/copy-file (Depends-on): Add quote.
7809
7810         acl: Export qcopy_acl.
7811         * lib/acl.h (qcopy_acl): New declaration.
7812         * lib/copy-acl.c (qcopy_acl): Make non-static.
7813
7814         acl: Rename a local variable.
7815         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
7816
7817         acl: Align return values of copy_acl and qcopy_acl.
7818         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
7819         maybe < -1.
7820
7821 2012-01-11  Eric Blake  <eblake@redhat.com>
7822
7823         strptime: silence gcc warnings
7824         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
7825         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
7826         Reported by Daniel P. Berrange.
7827
7828         inet_ntop: silence gcc warning
7829         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
7830         Reported by Daniel P. Berrange.
7831
7832 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
7833
7834         getloadavg test: skip the test on GNU/Linux without /proc mounted
7835         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
7836         file.  When /proc is not mounted, it always fails with ENOENT.
7837         * tests/test-getloadavg.c (main): Treat ENOENT return code from
7838         getloadavg(3) the same way as ENOSYS and ENOTSUP.
7839
7840 2012-01-10  Bruno Haible  <bruno@clisp.org>
7841
7842         regex: Avoid link error on MSVC 9.
7843         * modules/regex (Depends-on): Add wctype.
7844
7845 2012-01-10  Bruno Haible  <bruno@clisp.org>
7846
7847         doc: Mention --with-tests option.
7848         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
7849         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
7850         --with-tests.
7851         Reported by Reuben Thomas.
7852
7853 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
7854
7855         users.txt: order package names lexicographically.
7856         * users.txt: Order package names lexicographically.
7857
7858 2012-01-10  Jim Meyering  <meyering@redhat.com>
7859
7860         maint.mk: fix description in comment
7861         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
7862
7863         ignore-value: remove deprecated ignore_ptr function
7864         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
7865         * NEWS: Note this.
7866
7867 2012-01-09  Jim Meyering  <meyering@redhat.com>
7868
7869         test-init.sh: avoid a subshell
7870         * tests/test-init.sh: Remove protective subshell.
7871         Suggested by Bernhard Voelker.  While a subshell is normally
7872         required to protect against older shells (Solaris, FreeBSD) that
7873         warn about a missing program before performing redirection, the
7874         shell-selection tests performed by init.sh probably exclude any
7875         offending shell.
7876
7877 2012-01-08  Bruno Haible  <bruno@clisp.org>
7878
7879         setlocale tests: Avoid test failure on Solaris 11 2011-11.
7880         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
7881         variable.
7882
7883 2012-01-08  Bruno Haible  <bruno@clisp.org>
7884
7885         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
7886         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7887         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7888         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
7889         macro.
7890         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
7891         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7892         * lib/spawn_faction_addopen.c: Add workaround implementation if
7893         HAVE_WORKING_POSIX_SPAWN.
7894         * modules/spawn (Makefile): Substitute
7895         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7896         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
7897         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
7898         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7899         (Depends-on): Update conditions.
7900         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
7901         the Solaris 11 bug.
7902
7903 2012-01-08  Bruno Haible  <bruno@clisp.org>
7904
7905         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
7906         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7907         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7908         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
7909         macro.
7910         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
7911         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7912         * lib/spawn_faction_adddup2.c: Add workaround implementation if
7913         HAVE_WORKING_POSIX_SPAWN.
7914         * modules/spawn (Makefile): Substitute
7915         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7916         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
7917         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
7918         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7919         (Depends-on): Update conditions.
7920         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
7921         the Solaris 11 bug.
7922
7923 2012-01-08  Bruno Haible  <bruno@clisp.org>
7924
7925         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
7926         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7927         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7928         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
7929         HAVE_WORKING_POSIX_SPAWN.
7930         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
7931         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
7932         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7933         * lib/spawn_faction_addclose.c: Add workaround implementation if
7934         HAVE_WORKING_POSIX_SPAWN.
7935         * modules/spawn (Makefile): Substitute
7936         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7937         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
7938         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
7939         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7940         (Depends-on): Update conditions.
7941         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
7942         the Solaris 11 bug.
7943
7944 2012-01-08  Bruno Haible  <bruno@clisp.org>
7945
7946         doc: Update for Solaris 11 2011-11.
7947         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
7948         * m4/printf.m4: Update comments.
7949
7950 2012-01-08  Bruno Haible  <bruno@clisp.org>
7951
7952         mktime: Avoid compilation error on Solaris 11.
7953         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
7954
7955 2012-01-08  Bruno Haible  <bruno@clisp.org>
7956
7957         doc: Small fix.
7958         * doc/posix-headers/nl_types.texi: Correct platforms list.
7959
7960 2012-01-08  Simon Josefsson  <simon@josefsson.org>
7961
7962         Add lgpl-3.0 module.
7963         * MODULES.html.sh (Support for building documentation): Add
7964         lgpl-3.0.
7965         * modules/lgpl-3.0: New file.
7966
7967 2012-01-08  Jim Meyering  <meyering@redhat.com>
7968
7969         select.c: indent with spaces, not TABs
7970         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
7971
7972 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7973
7974         quotearg: do not use grave accent for left quote
7975         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
7976         locale_quoting_style.
7977         (quotearg_buffer_restyled): Fix example.
7978         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
7979
7980 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7981
7982         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
7983         Most programs do not have translation catalogs for English and much
7984         less separate catalogs for British and American English.  Drop the
7985         suggestion to translators about these two, and provide it
7986         automatically for Unicode locales.  Like most programs, even those
7987         using American English, we use single quotation marks.  This conflicts
7988         with the American typographic convention, but works better when you
7989         cite the entire error message within double quotes.  It also tries not
7990         to clash with established practice and with what non-gnulib programs
7991         will usually do.
7992         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
7993         using an UTF-8 or GB-18030 locale.  The list of other locales with
7994         quotes was provided by Bruno Haible.
7995         (quotearg_buffer_restyled): Adjust instructions to translators.
7996         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
7997         text, since this would be wrong when using Unicode.
7998         * modules/quotearg: Depend on c-strcaseeq.
7999
8000 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8001
8002         quotearg: fix Wikipedia link
8003         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
8004
8005 2012-01-07  Simon Josefsson  <simon@josefsson.org>
8006
8007         Fix for mingw with MSVC9.
8008         * m4/ld-version-script.m4: Check that compiler rejects version
8009         scripts with syntax errors.  Reported by Bruno Haible
8010         <bruno@clisp.org>.
8011
8012 2012-01-06  Bruno Haible  <bruno@clisp.org>
8013
8014         Talk about "native Windows API", not "Woe32".
8015         * lib/accept4.c: Update comments to mention native Windows.
8016         * lib/execute.c: Likewise.
8017         * lib/fatal-signal.c: Likewise.
8018         * lib/localcharset.c: Likewise.
8019         * lib/nanosleep.c: Likewise.
8020         * lib/nl_langinfo.c: Likewise.
8021         * lib/pclose.c: Likewise.
8022         * lib/pipe-filter-gi.c: Likewise.
8023         * lib/pipe-filter-ii.c: Likewise.
8024         * lib/pipe.c: Likewise.
8025         * lib/pipe2.c: Likewise.
8026         * lib/popen.c: Likewise.
8027         * lib/progreloc.c: Likewise.
8028         * lib/relocatable.c: Likewise.
8029         * lib/sigaction.c: Likewise.
8030         * lib/sigprocmask.c: Likewise.
8031         * lib/spawn-pipe.h: Likewise.
8032         * lib/spawn-pipe.c: Likewise.
8033         * lib/spawni.c: Likewise.
8034         * lib/stat-time.h: Likewise.
8035         * lib/w32spawn.h: Likewise.
8036         * tests/test-isatty.c: Likewise.
8037         * lib/config.charset: More comments.
8038         * doc/gnulib-intro.texi: Mention native Windows.
8039         * doc/posix-functions/_Exit_C99.texi: Likewise.
8040         * doc/posix-headers/fcntl.texi: Likewise.
8041
8042 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
8043
8044         argp: Avoid crash if translator uses % characters in a translation.
8045         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
8046         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8047
8048 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
8049
8050         doc: C11 and C++11 are now official
8051         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
8052         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
8053         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
8054         * modules/stdalign:
8055         Replace references to draft C1X to C11, and to draft C++0X to C++11.
8056
8057 2012-01-06  Bruno Haible  <bruno@clisp.org>
8058
8059         uc-is-grapheme-break tests: Tweak.
8060         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
8061         message.
8062
8063 2012-01-06  Bruno Haible  <bruno@clisp.org>
8064
8065         test-init.sh: correct the test for diff -u
8066         * tests/test-init.sh: Also redirect stdout to /dev/null.
8067
8068 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8069
8070         Use ', not `, for quoting output.
8071         * build-aux/announce-gen (usage, sizes, print_news_deltas)
8072         (print_changelog_deltas, get_tool_versions, main program):
8073         * build-aux/git-version-gen:
8074         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
8075         * build-aux/move-if-change (help):
8076         * build-aux/useless-if-before-free (usage, main program):
8077         * check-module (parse_module_file, usage)
8078         (find_included_lib_files, check_module):
8079         * lib/argmatch.c (main) [TEST]:
8080         * lib/argp-help.c (_help):
8081         * lib/getopt1.c (main) [TEST]:
8082         * lib/git-merge-changelog.c (usage):
8083         * lib/xstrtol-error.c (xstrtol_error):
8084         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
8085         * m4/argz.m4 (gl_FUNC_ARGZ):
8086         * m4/bison.m4 (gl_BISON):
8087         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
8088         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
8089         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8090         * m4/fpending.m4 (gl_PREREQ_FPENDING):
8091         * m4/gc-random.m4 (gl_GC_RANDOM):
8092         * m4/intl.m4 (gt_CHECK_DECL):
8093         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
8094         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
8095         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
8096         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
8097         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
8098         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
8099         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
8100         * tests/test-dirname.c (main):
8101         * tests/test-getpass.c (main):
8102         * tests/test-iconvme.c (main):
8103         * tests/test-parse-datetime.c (LOG):
8104         * tests/test-xstrtoimax.sh:
8105         * tests/test-xstrtol.sh:
8106         * tests/test-xstrtoll.sh:
8107         * tests/test-xstrtoumax.sh:
8108         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
8109         * top/GNUmakefile (abort-due-to-no-makefile):
8110         Quote 'like this', not `like this', as per the recent change to
8111         the GNU coding standards.
8112
8113 2012-01-05  Bruno Haible  <bruno@clisp.org>
8114
8115         strtoimax: Don't force a replacement on systems where intmax_t is int.
8116         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
8117         'intmax_t' is not larger than 'int'.
8118         Reported by Pádraig Brady <P@draigBrady.com>.
8119
8120 2012-01-05  Bruno Haible  <bruno@clisp.org>
8121
8122         doc: Mention NetBSD bugs.
8123         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
8124         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
8125
8126 2012-01-05  Bruno Haible  <bruno@clisp.org>
8127
8128         strtoumax tests: Enhance tests.
8129         * tests/test-strtoumax.c (main): Add tests for large values.
8130
8131 2012-01-05  Bruno Haible  <bruno@clisp.org>
8132
8133         strtoimax: Work around AIX 5.1 bug.
8134         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
8135         definition.
8136         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
8137         Set HAVE_STRTOIMAX.
8138         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
8139         REPLACE_STRTOIMAX.
8140         * modules/inttypes-incomplete (Makefile.am): Substitute
8141         REPLACE_STRTOIMAX.
8142         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
8143         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
8144         (Depends-on): Update conditions.
8145         * tests/test-strtoimax.c (main): Add tests for large values.
8146         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
8147
8148 2012-01-05  Bruno Haible  <bruno@clisp.org>
8149
8150         inttypes: Modernize.
8151         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
8152         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
8153         (Makefile.am): Update inttypes.h rule.
8154
8155 2012-01-05  Jim Meyering  <meyering@redhat.com>
8156
8157         init.sh: don't waste a subshell just to redirect stderr
8158         * tests/init.sh: In testing for diff -u and diff -c, use a
8159         stderr-redirecting exec inside `...` rather than a subshell.
8160
8161         test-init.sh: avoid failure on HP-UX 11.00
8162         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
8163         resolves to diff -c or cmp.  Reported by Bruno Haible.
8164
8165 2012-01-05  Bruno Haible  <bruno@clisp.org>
8166
8167         Tests for module 'strtoull'.
8168         * modules/strtoull-tests: New file.
8169         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
8170
8171 2012-01-05  Bruno Haible  <bruno@clisp.org>
8172
8173         Tests for module 'strtoll'.
8174         * modules/strtoll-tests: New file.
8175         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
8176
8177 2012-01-05  Bruno Haible  <bruno@clisp.org>
8178
8179         Tests for module 'strtoul'.
8180         * modules/strtoul-tests: New file.
8181         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
8182
8183 2012-01-05  Bruno Haible  <bruno@clisp.org>
8184
8185         Tests for module 'strtol'.
8186         * modules/strtol-tests: New file.
8187         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
8188
8189 2012-01-04  Jim Meyering  <meyering@redhat.com>
8190
8191         test-init.sh: accommodate Solaris 5.10's different diff -u output
8192         * tests/test-init.sh: Also exempt @@ lines from the comparison
8193         of diff output, since Solaris 5.10 and GNU diff formats differ.
8194         Reported by Stefano Lattarini.
8195
8196 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8197
8198         test-posixtm: don't assume signed integer wraparound
8199         * tests/test-posixtm.c (main): Don't assume wraparound semantics
8200         after signed integer overflow.  Inspired by (though it may not
8201         fix) Bruno Haible's bug report in
8202         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
8203
8204         Spell out "Windows 9x" and "Windows XP".
8205         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
8206         "Windows 9x" and "WinXP" with "Windows XP".
8207
8208 2012-01-04  Jim Meyering  <meyering@redhat.com>
8209
8210         test-vc-list-files-cvs.sh: remove obsolete comment
8211         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
8212         double exit.  Now that's all encapsulated via skip_ and Exit.
8213
8214 2012-01-04  Bruno Haible  <bruno@clisp.org>
8215
8216         Talk about "native Windows API", not "Win32".
8217         * lib/classpath.c: Update comments to mention native Windows.
8218         * lib/csharpexec.c: Likewise.
8219         * lib/dup2.c: Likewise.
8220         * lib/error.c: Likewise.
8221         * lib/fcntl.c: Likewise.
8222         * lib/filename.h: Likewise.
8223         * lib/findprog.c: Likewise.
8224         * lib/get-rusage-as.c: Likewise.
8225         * lib/get-rusage-data.c: Likewise.
8226         * lib/getpagesize.c: Likewise.
8227         * lib/javaexec.c: Likewise.
8228         * lib/msvc-inval.c: Likewise.
8229         * lib/msvc-nothrow.c: Likewise.
8230         * lib/nanosleep.c: Likewise.
8231         * lib/nonblocking.c: Likewise.
8232         * lib/printf-parse.c: Likewise.
8233         * lib/setlocale.c: Likewise.
8234         * lib/sigaction.c: Likewise.
8235         * lib/strerror_r.c: Likewise.
8236         * lib/tmpdir.c: Likewise.
8237         * lib/vasnprintf.c: Likewise.
8238         * lib/w32spawn.h: Likewise.
8239         * lib/waitpid.c: Likewise.
8240         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
8241         * m4/locale-ar.m4: Likewise.
8242         * m4/locale-fr.m4: Likewise.
8243         * m4/locale-ja.m4: Likewise.
8244         * m4/locale-tr.m4: Likewise.
8245         * m4/locale-zh.m4: Likewise.
8246         * m4/printf.m4: Likewise.
8247         * tests/test-cloexec.c: Likewise.
8248         * tests/test-copy-acl.sh: Likewise.
8249         * tests/test-copy-file.sh: Likewise.
8250         * tests/test-file-has-acl.sh: Likewise.
8251         * tests/test-set-mode-acl.sh: Likewise.
8252         * tests/test-dup-safer.c: Likewise.
8253         * tests/test-dup2.c: Likewise.
8254         * tests/test-dup3.c: Likewise.
8255         * tests/test-fcntl.c: Likewise.
8256         * tests/test-nonblocking-pipe.h: Likewise.
8257         * tests/test-nonblocking-socket.h: Likewise.
8258         * tests/test-pipe.c: Likewise.
8259         * tests/test-pipe2.c: Likewise.
8260         * tests/test-spawn-pipe-child.c: Likewise.
8261         * doc/acl-resources.txt: Likewise.
8262         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8263         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
8264         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
8265         * lib/localcharset.c: Update comments to mention native Windows.
8266         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8267         * lib/localename.c: Likewise.
8268         * lib/progreloc.c: Likewise.
8269         * lib/relocatable.c: Likewise.
8270         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8271         (windows_compute_revents): Renamed from win32_compute_revents.
8272         (windows_compute_revents_socket): Renamed from
8273         win32_compute_revents_socket.
8274         * lib/select.c: Update comments to mention native Windows.
8275         (windows_poll_handle): Renamed from win32_poll_handle.
8276         * m4/threadlib.m4: Update comments to mention native Windows.
8277         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
8278         --enable-threads=windows instead of --enable-threads=win32. Set
8279         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
8280         * lib/glthread/lock.h: Update comments to mention native Windows.
8281         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
8282         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
8283         USE_WIN32_THREADS.
8284         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
8285         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
8286         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
8287         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
8288         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
8289         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
8290         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
8291         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
8292         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
8293         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
8294         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
8295         * tests/test-tls.c: Likewise.
8296         Rationale:
8297         Microsoft renamed the "Win32 API" to "Windows API", as it is available
8298         on both 32-bit and 64-bit Windows systems.
8299         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
8300         line of distinction is between "native Windows" on one side and Unix/
8301         POSIX systems on the other side. More details in
8302         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
8303         Suggested by Paul Eggert.
8304
8305 2012-01-03  Bruno Haible  <bruno@clisp.org>
8306
8307         isatty: Support for MSVC 9.
8308         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
8309         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
8310         (_isatty_nothrow): New function.
8311         (isatty): Use it instead of _isatty.
8312         (IsConsoleHandle): Add comment, from Paolo Bonzini.
8313         * lib/poll.c (IsConsoleHandle): Likewise.
8314         * lib/select.c (IsConsoleHandle): Likewise.
8315         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
8316         (gl_PREREQ_ISATTY): New macro.
8317         * modules/isatty (Depends-on): Add msvc-inval.
8318         (configure.ac): Invoke gl_PREREQ_ISATTY.
8319
8320 2012-01-03  Jim Meyering  <meyering@redhat.com>
8321
8322         maint.mk: remove temporary transition aid from over 1.5 years ago
8323         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
8324         purpose was to aid in the transition (avoiding silent malfunction)
8325         from that old name to the new _sc_search_regexp.  This shim was
8326         added by commit 219c504b.
8327
8328         init.sh: do not try to accommodate compare arguments starting with "-"
8329         * tests/init.sh (compare_dev_null_): Do not try to accommodate
8330         compare arguments that start with "-".  Besides, we do not worry
8331         about this when invoking diff or cmp; why start now with sed?
8332         Using "--" to separate options from argument would trigger sed
8333         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
8334         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
8335
8336 2012-01-02  Bruno Haible  <bruno@clisp.org>
8337
8338         Enhance tests for module 'isatty'.
8339         * modules/isatty-tests (Depends-on): Add pipe-posix.
8340         * tests/test-isatty.c: Include <fcntl.h>.
8341         (DEV_NULL): New macro.
8342         (main): Test the resut of isatty() also on regular files, pipes, and
8343         /dev/null.
8344
8345         New module 'isatty'.
8346         * lib/unistd.in.h (isatty): New declaration.
8347         * lib/isatty.c: New file, based on an idea of
8348         Bastien Roucariès <roucaries.bastien@gmail.com>.
8349         * m4/isatty.m4: New file.
8350         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
8351         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
8352         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
8353         REPLACE_ISATTY.
8354         * modules/isatty: New file.
8355         * doc/posix-functions/isatty.texi: Mention the new module.
8356         Suggested by Paolo Bonzini.
8357
8358 2012-01-02  Bruno Haible  <bruno@clisp.org>
8359
8360         canonicalize: Tweak 2011-12-29 commit.
8361         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
8362         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
8363
8364 2012-01-02  Jim Meyering  <meyering@redhat.com>
8365
8366         gitlog-to-changelog: describe input syntax in --help output
8367         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
8368
8369         gitlog-to-changelog: fix typo in --help: show backslash before email @
8370         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
8371         in sources, but not in actual output.
8372
8373 2011-12-30  Jim Meyering  <meyering@redhat.com>
8374
8375         gitlog-to-changelog: don't malfunction when name contains %-directive
8376         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
8377         in a name string cause trouble.  E.g., with a user name of "%s",
8378         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
8379
8380 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
8381
8382         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
8383         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
8384         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
8385         the "  (tiny change)" notation that is appended to the standard
8386         ChangeLog "date  name  email" header line.
8387
8388 2012-01-01  Jim Meyering  <meyering@redhat.com>
8389
8390         test-framework-sh: init.sh: fix "make dist" failure
8391         When using gnulib-tool's --with-tests option and any module that
8392         depends on test-framework-sh, "make dist" would fail due to the
8393         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
8394         in the gltests directory, and not in the gllib/ directory.
8395         One way to work around that is to move the EXTRA_DIST += init.sh
8396         from the primary module to the -tests one:
8397         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
8398         * modules/test-framework-sh (Makefile.am): ...not here.
8399         Reported by Tom G. Christensen in
8400         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
8401
8402         version-etc: update copyright year reported by --version
8403         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
8404
8405 2011-12-31  Pádraig Brady  <P@draigBrady.com>
8406
8407         canonicalize: only stat() if required
8408         * lib/canonicalize.c (canonicalize_filename_mode):
8409         Avoid calling l?stat() when both CAN_MISSING,
8410         and CAN_NOLINKS are set, as we neither need
8411         to resolve symlinks or test component existence.
8412
8413 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8414
8415         doc: cover st_ino issues once; add OpenVMS etc.
8416         * doc/posix-functions/stat.texi (stat):
8417         * doc/posix-functions/lstat.texi (lstat):
8418         * doc/posix-functions/fstatat.texi (fstatat):
8419         * doc/posix-functions/fstat.texi (fstat):
8420         Move general 'struct stat' stuff to sys_stat.texi,
8421         leaving behind a pointer.
8422         * doc/posix-headers/sys_stat.texi (sys/stat.h):
8423         Merge duplicate info about 'struct stat' problems into here.
8424         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
8425         and suggest partial workarounds.
8426
8427         same-inode: port to OpenVMS
8428         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
8429         three st_ino values.
8430
8431 2011-12-30  Pádraig Brady  <P@draigBrady.com>
8432
8433         canonicalize: fix references to stat() and lstat()
8434         * lib/canonicalize.c (canonicalize_filename_mode):
8435         Ensure references always resolve to a replacement
8436         function if required (even via a macro).
8437
8438 2011-12-30  Jim Meyering  <meyering@redhat.com>
8439
8440         gitlog-to-changelog: remove a little duplication
8441         * build-aux/gitlog-to-changelog (main): Grep @lines once,
8442         rather than twice.
8443
8444 2011-12-29  Pádraig Brady  <P@draigBrady.com>
8445
8446         canonicalize: add support for not resolving symlinks
8447         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
8448         indicate we don't want to follow symlinks.  Also
8449         provide CAN_MODE_MASK to aid setting these existing
8450         mutually exclusive values.
8451         * lib/canonicalize.c (canonicalize_filename_mode):
8452         Extract the flags from can_mode parameter, which
8453         are currently just used to select between stat()
8454         and lstat().  Also ensure that mutually exclusive
8455         values are flagged immediately as invalid.
8456         * tests/test-canonicalize.c: Verify symlinks are
8457         not followed, and that invalid flag combinations
8458         are diagnosed.
8459
8460 2011-12-25  Jim Meyering  <meyering@redhat.com>
8461
8462         gitlog-to-changelog: do not clump multi-paragraph entries
8463         Identical header lines (date,name,email+coauthors) are suppressed,
8464         thus putting all entries with those same characteristics under
8465         a single header.  However, when a log entry consists of two or
8466         more paragraphs, it may not be clear where it starts and ends.
8467         This change makes it so that such an entry is always separated
8468         from others by a header line, even when that header would
8469         otherwise be suppressed.
8470         * build-aux/gitlog-to-changelog: Implement the above.
8471         Inspired by a related request from Stefano Lattarini in
8472         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
8473
8474 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8475
8476         announce-gen: fix `cmd' typo in diagnostic
8477         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
8478         diagnostic: a missing '$' meant that the command was not output.
8479
8480 2011-12-23  Jim Meyering  <meyering@redhat.com>
8481
8482         test-framework-sh: distribute init.sh
8483         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
8484         Otherwise, "make -C gnulib-tests check" (at least in grep) would
8485         fail due to the lack of init.sh.
8486
8487         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
8488         * modules/atexit-tests: Rather than listing tests/init.sh,
8489         now that there's a module for it, simply depend on that new module.
8490         * modules/closein-tests: Likewise.
8491         * modules/exclude-tests: Likewise.
8492         * modules/getcwd-tests: Likewise.
8493         * modules/perror-tests: Likewise.
8494         * modules/pread-tests: Likewise.
8495         * modules/pwrite-tests: Likewise.
8496         * modules/vc-list-files-tests: Likewise.
8497         * modules/verify-tests: Likewise.
8498         * modules/xalloc-die-tests: Likewise.
8499         * modules/xstrtoimax-tests: Likewise.
8500         * modules/xstrtol-tests: Likewise.
8501         * modules/xstrtoll-tests: Likewise.
8502         * modules/xstrtoumax-tests: Likewise.
8503         * modules/yesno-tests: Likewise.
8504
8505 2011-12-22  Jim Meyering  <meyering@redhat.com>
8506
8507         test-framework-sh: add minimal tests of init.sh's compare function
8508         * modules/test-framework-sh-tests: New file.
8509         * tests/test-init.sh: New file.
8510
8511         test-framework-sh: new module
8512         * modules/test-framework-sh: New file.
8513         * MODULES.html.sh (Support for maintaining and releasing projects):
8514         List it.
8515
8516         init.sh: do not emit simulated diff output to stderr
8517         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
8518
8519 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8520
8521         .gitignore: ignore gnulib.dvi and regex.info
8522         * doc/.gitignore:add gnulib.dvi and regex.info
8523
8524 2011-12-22  Jim Meyering  <meyering@redhat.com>
8525
8526         init.sh: correct previous change
8527         * tests/init.sh (compare): My previous change was wrong.
8528         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
8529
8530         init.sh: avoid unwarranted test failure when using "set -e"
8531         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
8532         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
8533         a use like "compare exp out" would get evoke an unconditional failure.
8534
8535 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
8536
8537         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
8538         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
8539         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
8540         autoreconf that did not.
8541         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
8542         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8543
8544 2011-12-17  Jim Meyering  <meyering@redhat.com>
8545
8546         bootstrap: remove some now-unneeded code
8547         This script arose back when gnulib-tool was young.
8548         Since then, it has seen improvements that render much of this
8549         script unnecessary.  In particular, it can now make symlinks
8550         to the files it uses.  Also, I no longer see as much value in
8551         marking files as read-only via comments.
8552         If you relied on the symlink-creation feature of the preceding
8553         version of this script, you can get most of that functionality
8554         by adding the --symlink option to the definition of
8555         gnulib_tool_option_extras in your bootstrap.conf file.
8556         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
8557         Run autopoint and libtoolize *before* gnulib-tool.
8558         After it, run an abbreviated autoreconf, rather than a loop around
8559         all tools.
8560         (slirp, bt_mark_as_generated): Remove functions.
8561
8562 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8563
8564         ftoastr: fix typo
8565         * lib/ftoastr.h: Fix misspelling in comment.
8566
8567 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
8568
8569         * top/README-release: fix punctuation.
8570
8571 2011-12-17  Jim Meyering  <meyering@redhat.com>
8572
8573         bootstrap: correct the recent buildreq change
8574         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
8575         had no effect.
8576         * build-aux/bootstrap (buildreq): Bracket each search term with
8577         "*...*", so that the shell "case" statement works as intended.
8578         Add comments.
8579
8580 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
8581
8582         build: let bootstrap resort to wget when downloading .po files
8583         * build-aux/bootstrap (download_po_files): Fallback to wget when
8584         downloading the .po files via rsync fails.  This is necessary to
8585         bootstrap from behind a strict firewall.
8586
8587 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8588
8589         stdint: don't assume C++11 when compiling with g++
8590         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
8591         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
8592         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
8593         work also in C++ before C++11, as that improperly inhibits
8594         generating a substitute stdint.h for that case.
8595
8596 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8597
8598         alloca: protect comment from gnulib-tool
8599         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
8600         that gnulib-tool doesn't think it's a license, and munge it to
8601         say "GCC version 3".
8602
8603 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
8604
8605         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
8606         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
8607         $(abs_top_builddir) instead of $(top_builddir).
8608
8609 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
8610
8611         strftime-tests: also test nanoseconds
8612         * tests/test-strftime.c (T): Add a test of %N.
8613
8614 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
8615
8616         inttypes, stdint: add C++11 support
8617         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
8618         when including inttypes.h and stdint.h.  Support this change to
8619         the standard.
8620         * doc/posix-headers/inttypes.texi (inttypes.h):
8621         * doc/posix-headers/stdint.texi (stdint.h): Document this.
8622         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
8623         Define if not defined already, for the benefit of pre-C++11 hosts.
8624         Define the standard format macros (e.g., PRId8) always.
8625         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
8626         Likewise, if __cpluspus.  Define the standard constant and limit
8627         macros (e.g., INT8_C, INT8_MAX) always.
8628         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
8629         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
8630         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
8631         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
8632         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
8633         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
8634         Likewise.
8635
8636 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
8637
8638         nonblocking tests: Fix test failure on Linux/PPC.
8639         Suggested by Prerna Saxena in
8640         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
8641         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
8642         Set to 1100000.
8643
8644 2011-12-12  Jim Meyering  <meyering@redhat.com>
8645
8646         argmatch: don't hard-code `' when listing valid option arguments
8647         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
8648         use the quote function to add quotes.  Use fputs rather than
8649         fprintf for the format string with no format directive.
8650
8651 2011-12-07  Eric Blake  <eblake@redhat.com>
8652
8653         bootstrap: detect tools required by gnulib-tool
8654         * build-aux/bootstrap (buildreq): Provide minimum implicit
8655         dependencies.
8656         * DEPENDENCIES: Mention patch as a prereq.
8657
8658 2011-12-04  Bruno Haible  <bruno@clisp.org>
8659
8660         sethostname: Port to Windows platforms.
8661         * lib/sethostname.c: Provide an alternate implementation for Windows
8662         platforms.
8663         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
8664         (main): Skip the test if sethostname() fails with EPERM. On Windows
8665         platforms, don't check the result of gethostname().
8666
8667 2011-12-04  Bruno Haible  <bruno@clisp.org>
8668             Jim Meyering  <meyering@redhat.com>
8669
8670         tests: Avoid spurious error message on platforms without mktemp program.
8671         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
8672
8673 2011-12-04  Bruno Haible  <bruno@clisp.org>
8674
8675         sethostname: Fix documentation.
8676         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
8677         "not fixed" section.
8678
8679 2011-12-03  Bruno Haible  <bruno@clisp.org>
8680
8681         gnulib-tool: Verify that the License field is present and non-empty.
8682         * gnulib-tool (func_get_license_raw): New function, extracted from
8683         func_get_license.
8684         (func_get_license): Use it. Warn if the module is not a test module and
8685         has no license.
8686         Suggested by Jim Meyering.
8687
8688 2011-12-03  Bruno Haible  <bruno@clisp.org>
8689
8690         sethostname tests: Fix link error on mingw.
8691         * tests/test-sethostname1.c: New file, extracted from
8692         tests/test-sethostname.c.
8693         * tests/test-sethostname2.c: New file, extracted from
8694         tests/test-sethostname.c.
8695         * tests/test-sethostname.c: Remove file.
8696         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
8697         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
8698         (Depends-on): Add gethostname.
8699         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
8700         Link the latter with $(GETHOSTNAME_LIB).
8701
8702         sethostname tests: Fix compilation error on mingw.
8703         * tests/test-sethostname.c: Don't include <sys/types.h>.
8704         (geteuid): Use a dummy value without uid_t.
8705         * modules/sethostname-tests (Depends-on): Remove sys_types.
8706
8707         sethostname tests: Avoid a gcc warning.
8708         * tests/test-sethostname.c (main): Remove an unused variable.
8709
8710         Tweak last commit.
8711         * modules/sethostname-tests (Files): Sort by decreasing importance.
8712         (configure.ac): Check for geteuid.
8713         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
8714         the test when there's nothing to test. Drop an unnecessary cast.
8715         Improve an error message. Verify that the final sethostname() call
8716         succeeds.
8717
8718 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8719
8720         Add a test suite for the sethostname module.
8721         * modules/sethostname-tests: New file.  A test program
8722         for the sethostname module.
8723         * tests/test-sethostname.c: Likewise.
8724
8725 2011-12-03  Bruno Haible  <bruno@clisp.org>
8726
8727         Tweak last commit.
8728         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
8729         Fix preprocessor directives indentation. Fix typos.
8730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
8731         * modules/unistd (Makefile): Likewise.
8732
8733 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8734
8735         Integrate the sethostname module into unistd.
8736         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
8737         into the unistd.h header.
8738         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
8739         preprocessor directives.
8740         * modules/unistd: Setup the Makefile substitutions of the
8741         SETHOSTNAME preprocessor directives.
8742
8743 2011-12-03  Bruno Haible  <bruno@clisp.org>
8744
8745         Tweak last commit.
8746         * lib/sethostname.c: Don't include <string.h>.
8747         (sethostname): No need to copy the argument string to the stack. Don't
8748         call clearerr. Preserve errno when fprintf failed.
8749         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
8750         Don't invoke AC_REPLACE_FUNCS.
8751         * modules/sethostname (Link): Remove empty section.
8752         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
8753         failure problem.
8754
8755 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8756
8757         New module 'sethostname'.
8758         * lib/sethostname.c (sethostname): New file.  Provide sethostname
8759         for systems that lack it.
8760         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
8761         sethostname declaration and function.
8762         * modules/sethostname: New file.  Define the sethostname module.
8763
8764 2011-12-03  Bruno Haible  <bruno@clisp.org>
8765
8766         Tweak last commit.
8767         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
8768
8769 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8770
8771         Split the HOST_NAME_MAX detection into a separate m4 macro.
8772         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
8773         macro so it can be used by the pending sethostname module.
8774
8775 2011-12-03  Bruno Haible  <bruno@clisp.org>
8776
8777         Fix module descriptions syntax.
8778         * modules/argv-iter (License): Fix syntax.
8779         * modules/di-set (License): Likewise.
8780         * modules/ino-map (License): Likewise.
8781         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
8782
8783 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
8784
8785         stdalign: port to Clang 3.0
8786         Problem reported by Simon Josefsson in
8787         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
8788         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
8789         which has <stdalign.h> but which does not define alignof.
8790         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
8791
8792 2011-12-01  Eric Blake  <eblake@redhat.com>
8793
8794         mktempd: silence dd usage
8795         * build-aux/mktempd (rand_bytes): Silence dd.
8796
8797 2011-11-30  Simon Josefsson  <simon@josefsson.org>
8798
8799         manywarnings: Don't mention gcc version in docstring.
8800         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
8801         Jim Meyering <meyering@redhat.com>.
8802
8803 2011-11-30  Jim Meyering  <meyering@redhat.com>
8804
8805         hash: mark a few floating point constants with "f" suffix
8806         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
8807         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
8808         floating point constants with "f", since they're destined to be
8809         saved/used as "float"s.
8810
8811 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
8812
8813         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
8814         * tests/test-float.c (test_long_double): Correct and re-enable the
8815         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
8816
8817 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
8818
8819         Avoid subtracting two pointers that don't point into the same block.
8820         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
8821         only pointers into the same memory block are subtracted. We cannot
8822         assume that sizeof (ptrdiff_t) == sizeof (void *).
8823
8824 2011-11-29  Eric Blake  <eblake@redhat.com>
8825
8826         maint.mk: add syntax check for use of compare from init.sh
8827         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
8828         moved here from coreutils.
8829
8830         manywarnings: drop -Wunsuffixed-float-constants
8831         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
8832         '1.0D', which is the only way to silence this warning for 'double'.
8833
8834 2011-11-29  Jim Meyering  <meyering@redhat.com>
8835
8836         hash: mark compute_bucket_size with the pure attribute
8837         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
8838
8839         quotearg, propername: correct pragma guard expression
8840         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
8841         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
8842
8843 2011-11-28  Jim Meyering  <meyering@redhat.com>
8844
8845         propername: do not mark proper_name with the const attribute
8846         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
8847         since it examines data pointed to by its parameter.
8848         * lib/propername.c (proper_name): Instead, add a pragma to suppress
8849         the suggestion from -Wsuggest-attribute=const.
8850
8851         propername: mark one more function as const
8852         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
8853
8854 2011-11-27  Jim Meyering  <meyering@redhat.com>
8855
8856         mark functions with const and pure attributes
8857
8858         Mark functions per suggestions from gcc-4.6 when using these options:
8859         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
8860         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
8861         Follow these guidelines: when possible, apply the attribute to
8862         an extern declaration, not to its definition.  Apply it to the
8863         definition only when the definition is static.
8864         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
8865         * lib/argv-iter.h (argv_iter_n_args): Likewise.
8866         * lib/base64.h (isbase64): Likewise.
8867         * lib/basename-lgpl.c (last_component, base_len): Likewise.
8868         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
8869         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
8870         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
8871         (c_tolower, c_toupper): Likewise.
8872         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
8873         * lib/chdir-long.c (find_non_slash): Likewise.
8874         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
8875         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
8876         * lib/file-type.h (file_type): Likewise.
8877         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
8878         * lib/filevercmp.c (verrevcmp): Likewise.
8879         * lib/freadahead.h (freadahead): Likewise.
8880         * lib/fts.c (fts_maxarglen): Likewise.
8881         * lib/hash-pjw.h (hash_pjw): Likewise.
8882         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
8883         * lib/hash.c (is_prime, next_prime): Likewise.
8884         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
8885         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
8886         (hash_table_ok, hash_get_first, hash_string): Likewise.
8887         (compute_bucket_size): Likewise.
8888         * lib/i-ring.h (i_ring_empty): Likewise.
8889         * lib/isnan.c (isnanl): Likewise.
8890         * lib/math.h (isnanl, rpl_isnanl): Likewise.
8891         * lib/memcasecmp.h (memcasecmp): Likewise.
8892         * lib/memchr2.h (memchr2): Likewise.
8893         * lib/memcmp2.h (memcmp2): Likewise.
8894         * lib/parse-datetime.y (lookup_zone): Likewise.
8895         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
8896         [!WINDOWS_SOCKETS]: Likewise.
8897         * lib/strnlen1.h (strnlen1): Likewise.
8898         * lib/uniwidth.in.h (uc_width): Likewise.
8899         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
8900         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
8901         (quoting_options_from_style): Add a comment.
8902         * lib/propername.h (proper_name): Add a comment.
8903
8904 2011-11-27  Bruno Haible  <bruno@clisp.org>
8905
8906         Remove unused macros from !_LIBC code in glibc-borrowed files.
8907         * lib/fnmatch.c (STRCOLL): Remove macro.
8908         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
8909         * lib/glob.c (__stat, __readdir64): Remove macros.
8910         * lib/tempname.c (__open64, __xstat64): Remove macros.
8911         Suggested by Paul Eggert.
8912
8913 2011-11-27  Bruno Haible  <bruno@clisp.org>
8914
8915         getcwd: Fix link error on MSVC 9.
8916         * modules/getcwd (Depends-on): Add readdir, rewinddir.
8917
8918 2011-11-27  Bruno Haible  <bruno@clisp.org>
8919
8920         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
8921         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
8922         HAVE_OPENDIR is 0.
8923         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
8924         HAVE_CLOSEDIR is 0.
8925         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
8926         is 0.
8927         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
8928
8929 2011-11-27  Bruno Haible  <bruno@clisp.org>
8930
8931         getcwd: Fix bug from 2011-08-17.
8932         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
8933         platforms that need it.
8934         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
8935         code of 4 to be a failure, not a success. This ensures that
8936         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
8937
8938 2011-11-27  Bruno Haible  <bruno@clisp.org>
8939
8940         binary-io tests: Avoid test failure on mingw when libtool is used.
8941         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
8942         Don't verify the size of t-bin-out1.tmp here.
8943         * tests/test-binary-io.sh: Verify it here.
8944         Reported by Simon Josefsson.
8945
8946 2011-11-26  Bruno Haible  <bruno@clisp.org>
8947
8948         Fix conflict between two instantiations of module 'unistd'.
8949         * gnulib-tool (func_emit_autoconf_snippet): Substitute
8950         ${include_guard_prefix} also in the autoconf snippet.
8951         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
8952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
8953         GNULIB_UNISTD_H_GETOPT.
8954         * modules/getopt-posix (configure.ac): Set the
8955         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
8956         * modules/getopt-gnu (configure.ac): Likewise.
8957         * modules/unistd (Makefile.am): Change the substitution value of
8958         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
8959         Reported by Simon Josefsson.
8960
8961 2011-11-25  Bruno Haible  <bruno@clisp.org>
8962
8963         pagealign_alloc: Doc and comments.
8964         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
8965         module.
8966         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
8967
8968 2011-11-25  Jim Meyering  <meyering@redhat.com>
8969
8970         test-update-copyright.sh: avoid false-positive failure
8971         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
8972         around false positive failure on Cygwin/Windows.  The latter was
8973         matching erroneously-created files with names like
8974         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
8975
8976 2011-11-25  Simon Josefsson  <simon@josefsson.org>
8977
8978         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
8979         * m4/valgrind-tests.m4: Check that the parameters that will be
8980         used works, not just a subset of them.  Reported by Bruno Haible
8981         <bruno@clisp.org>.
8982
8983 2011-11-24  Jim Meyering  <meyering@redhat.com>
8984
8985         test-stdalign.c: comment out long double tests
8986         * tests/test-stdalign.c: Don't try to reduce alignment of long double
8987         variables.  That provokes errors like this from gcc-4.7.0 20111124:
8988         error: '_Alignas' specifiers cannot reduce alignment of \
8989         'static_longdouble_alignas'.
8990
8991 2011-11-22  Jim Meyering  <meyering@redhat.com>
8992
8993         init.sh: make "compare /dev/null FILE" output more readable
8994         * tests/init.sh (compare_): Document the preferred order of arguments.
8995         (emit_diff_u_header_): New function.
8996         (compare_dev_null_): Emit a simulated diff, rather than just the
8997         contents of the unexpected file.  Suggestion from Bruno Haible.
8998
8999 2011-11-21  Jim Meyering  <meyering@redhat.com>
9000             Eric Blake  <eblake@redhat.com>
9001
9002         init.sh: work around OSF/1 5.1's mishandling of /dev/null
9003         * tests/init.sh: Make our compare function slightly more portable.
9004         Reported by Bruno Haible in
9005         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
9006
9007 2011-11-21  Simon Josefsson  <simon@josefsson.org>
9008
9009         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
9010         before using it, in code that ends up in config.h.
9011
9012 2011-11-20  Bruno Haible  <bruno@clisp.org>
9013
9014         getcwd: Work around getcwd bug on AIX 5..7.
9015         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
9016         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
9017         Use a different value for gl_cv_func_getcwd_path_max. Move the
9018         definition of HAVE_PARTLY_WORKING_GETCWD from here...
9019         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
9020         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
9021         Define HAVE_MINIMALLY_WORKING_GETCWD.
9022         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
9023         where it is not even minimally working, that is, on AIX.
9024         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
9025         m4/getcwd-path-max.m4.
9026         (main): Update exit code computation.
9027         * doc/posix-functions/getcwd.texi: Mention list of platforms where
9028         getcwd does not handle long file names.
9029
9030 2011-11-20  Bruno Haible  <bruno@clisp.org>
9031
9032         getcwd: Fix bug from 2009-09-10.
9033         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
9034         like "no".
9035
9036 2011-11-20  Simon Josefsson  <simon@josefsson.org>
9037
9038         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
9039
9040 2011-11-20  Bruno Haible  <bruno@clisp.org>
9041
9042         fma tests: Avoid shadowing local variables.
9043         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
9044         expected.
9045
9046 2011-11-20  Bruno Haible  <bruno@clisp.org>
9047
9048         copysignf tests: Fix.
9049         * tests/test-copysignf.c: Fix signature check.
9050
9051 2011-11-20  Bruno Haible  <bruno@clisp.org>
9052
9053         fma: Remove unused code.
9054         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
9055         unused macros.
9056
9057 2011-11-20  Bruno Haible  <bruno@clisp.org>
9058
9059         sethostname: Fix doc about AIX.
9060         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
9061         sethostname; it has it.
9062
9063         sethostname: Mention more portability problems.
9064         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
9065         problem.
9066         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9067
9068 2011-11-19  Bruno Haible  <bruno@clisp.org>
9069
9070         Depend on module fcntl-h when AT_FDCWD is used.
9071         * modules/utimens (Depends-on): Add fcntl-h.
9072         * modules/areadlinkat (Depends-on): Likewise.
9073         * modules/areadlinkat-with-size (Depends-on): Likewise.
9074         * modules/faccessat (Depends-on): Likewise.
9075         * modules/fchmodat (Depends-on): Likewise.
9076         * modules/fchownat (Depends-on): Likewise.
9077         * modules/getcwd (Depends-on): Likewise.
9078         * modules/mkdirat (Depends-on): Likewise.
9079         * modules/mkfifoat (Depends-on): Likewise.
9080         * modules/readlinkat (Depends-on): Likewise.
9081         * modules/symlinkat (Depends-on): Likewise.
9082         * modules/dup2-tests (Depends-on): Likewise.
9083         * modules/fdutimensat-tests (Depends-on): Likewise.
9084         * modules/futimens-tests (Depends-on): Likewise.
9085
9086 2011-11-19  Bruno Haible  <bruno@clisp.org>
9087
9088         euidaccess: Update a comment.
9089         * lib/euidaccess.c: Update comment about platforms with faccessat.
9090
9091 2011-11-19  Bruno Haible  <bruno@clisp.org>
9092
9093         openat: Fix file list.
9094         * modules/openat (Files): Remove lib/at-func.c.
9095
9096 2011-11-19  Bruno Haible  <bruno@clisp.org>
9097
9098         fstatat: Simplify.
9099         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
9100         gnulib should define rpl_fstatat, there is a
9101         "#define fstatat rpl_fstatat" in <sys/stat.h>.
9102
9103 2011-11-19  Bruno Haible  <bruno@clisp.org>
9104
9105         Ensure 'inline' can be used in tests/test-utimens-common.h.
9106         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
9107         * modules/futimens-tests (configure.ac): Likewise.
9108         * modules/utimens-tests (configure.ac): Likewise.
9109         * modules/utimensat-tests (configure.ac): Likewise.
9110
9111 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9112
9113         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
9114         not hash_insert0.
9115         (hash_insert_if_absent): Doc fix.
9116
9117 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9118
9119         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
9120
9121 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9122
9123         test-getcwd: disambiguate exit status
9124         * tests/test-getcwd.c (test_long_name): Return 0..7.
9125         (main): Exit with an unambiguous exit status.  The old
9126         code yielded a mysterious mixture of two failure codes.
9127
9128         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
9129         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
9130         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
9131         rpl_fstatat or fstatat.  This should fix the other problem
9132         reported by Kai Habel in
9133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9134         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
9135         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
9136         and I reproduced it on a Solaris 8 host we still have in production.
9137
9138 2011-11-18  Jim Meyering  <meyering@redhat.com>
9139
9140         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
9141         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
9142         Add a sentence to the comment.
9143         (hash_insert0): New function that simply calls hash_insert_if_absent.
9144         * lib/hash.h (hash_insert_if_absent): Declare it.
9145         (hash_insert0): Add deprecation attribute.
9146         (_GL_ATTRIBUTE_DEPRECATED): Define.
9147         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
9148         not hash_insert0.
9149         * NEWS: Mention it, even though it's not really an incompatible change.
9150
9151 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
9152
9153         openat: avoid compilation failure due to lack of <errno.h> inclusion
9154         * lib/openat.c: Include <errno.h>.
9155
9156 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9157
9158         * modules/getcwd (Depends-on): Add fdopendir.
9159         This fixes one of the two problems reported by Kai Habel in
9160         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9161
9162         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
9163         stdalign problem reported by Ian Beckwith in
9164         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
9165         * modules/crypto/gc-arcfour (Depends-on):
9166         Depend conditionally on crypto/arcfour.
9167         * modules/crypto/gc-arctwo (Depends-on):
9168         Depend conditionally on crypto/arctwo.
9169         * modules/crypto/gc-des (Depends-on):
9170         Depend conditionally on crypto/des.
9171         * modules/crypto/gc-hmac-md5 (Depends-on):
9172         Depend conditionally on crypto/hmac-md5.
9173         * modules/crypto/gc-hmac-sha1 (Depends-on):
9174         Depend conditionally on crypto/hmac-sha1.
9175         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
9176         * modules/crypto/gc-md4 (Depends-on):
9177         Depend conditionally on crypto/md4.
9178         * modules/crypto/gc-md5 (Depends-on):
9179         Depend conditionally on crypto/md5.
9180         * modules/crypto/gc-rijndael (Depends-on):
9181         Depend conditionally on crypto/rijndael.
9182         * modules/crypto/gc-sha1 (Depends-on):
9183         Depend conditionally on crypto/sha1.
9184         * modules/crypto/gc-arcfour:
9185         * modules/crypto/gc-arctwo:
9186         * modules/crypto/gc-des:
9187         * modules/crypto/gc-hmac-md5:
9188         * modules/crypto/gc-hmac-sha1:
9189         * modules/crypto/gc-md2:
9190         * modules/crypto/gc-md4:
9191         * modules/crypto/gc-md5:
9192         * modules/crypto/gc-rijndael:
9193         * modules/crypto/gc-sha1:
9194         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
9195         now that the conditional dependencies do the work for us.
9196
9197 2011-11-17  Jim Meyering  <meyering@redhat.com>
9198
9199         tests: factor st_ctime-comparison out of two headers
9200         * tests/test-utimens-common.h (ctime_compare): Define.
9201         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
9202         * tests/test-lutimens.h (test_lutimens): Likewise.
9203         * tests/test-utimens.h (test_utimens): Likewise.
9204
9205         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
9206         Invoke the test program via an init.sh-using wrapper.
9207         * tests/test-getcwd.sh: New file.
9208         * modules/getcwd-tests (Files): Add it.
9209         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
9210
9211 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
9212
9213         gitlog-to-changelog: support multi-author commits.
9214         The FSF cares about keeping track of all authors of patches to its
9215         projects, but Git doesn't provide obvious support for multi-author
9216         changesets. Consensus seems to be forming around the use of extra
9217         Signed-off-by inspired lines in the log message formatted as
9218         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
9219         multi-author commits between version control systems.
9220         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
9221         log message and output in standard ChangeLog multi-author format.
9222         Reported by Peter Rosin <peda@lysator.liu.se>
9223
9224 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
9225             Bruno Haible  <bruno@clisp.org>
9226
9227         Fix some modules' file list.
9228         * modules/fstatat (Files): Add m4/lstat.m4.
9229         * modules/openat (Files): Likewise.
9230         * modules/unlinkat (Files): Likewise.
9231
9232 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
9233
9234         maint.mk: fix tight-scope.mk generation in VPATH builds.
9235         * top/maint.mk (tight-scope.mk): Make sure to prefix file
9236         reference with $(srcdir) so that the file is found correctly even
9237         when running `make syntax-check' in a VPATH build.
9238
9239 2011-11-13  Bruno Haible  <bruno@clisp.org>
9240             Jim Meyering  <meyering@redhat.com>
9241
9242         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
9243         * tests/init.sh (compare): Remove "No differences encountered" or
9244         synonymous output from the 'diff' program.
9245
9246 2011-11-13  Bruno Haible  <bruno@clisp.org>
9247
9248         Makefile: Tweak indentation.
9249         * Makefile: Use tab as first character in every line that contains rule
9250         commands.
9251
9252 2011-11-13  Bruno Haible  <bruno@clisp.org>
9253
9254         Syntax check for copyright statements.
9255         * check-copyright: New file.
9256         * Makefile (sc_check_copyright): New rule.
9257
9258 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9259
9260         * build-aux/git-version-gen: Add --prefix to configure the tag
9261         match string.
9262
9263 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9264
9265         * build-aux/git-version-gen: Add --help and --version.
9266
9267 2011-11-12  Jim Meyering  <meyering@redhat.com>
9268
9269         revamp the other test-exclude?.sh scripts to use init.sh, too
9270         * tests/test-exclude1.sh: Use init.sh.
9271         * tests/test-exclude2.sh: Likewise.
9272         * tests/test-exclude3.sh: Likewise.
9273         * tests/test-exclude4.sh: Likewise.
9274         * tests/test-exclude5.sh: Likewise.
9275         * tests/test-exclude6.sh: Likewise.
9276         * tests/test-exclude7.sh: Likewise.
9277         * tests/test-exclude8.sh: Likewise.
9278         * modules/exclude-tests (Files): List init.sh.
9279
9280         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
9281         These shell scripts ignored failure of the binary test-exclude,
9282         so making the latter return 77 didn't cause them to be skipped.
9283         * tests/test-exclude5.sh: Exit with test-exclude's error status
9284         when that program fails.  Revamp to use init.sh.
9285         * tests/test-exclude2.sh: Likewise.
9286
9287         test-exclude: fix a typo
9288         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
9289
9290 2011-11-11  Bruno Haible  <bruno@clisp.org>
9291
9292         obstack: Fix compilation error on MSVC 9.
9293         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
9294
9295 2011-11-11  Jim Meyering  <meyering@redhat.com>
9296
9297         test-exclude: skip tests rather than failing on deficient systems
9298         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
9299         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
9300         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
9301         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
9302
9303 2011-11-10  Bruno Haible  <bruno@clisp.org>
9304
9305         ptsname_r test: Avoid gcc warning on glibc systems.
9306         * tests/test-ptsname_r.c (null_ptr): New function.
9307         (test_errors): Use it.
9308
9309 2011-11-10  Bruno Haible  <bruno@clisp.org>
9310
9311         ptsname_r: Avoid compilation error on OSF/1 5.1.
9312         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
9313         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
9314         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
9315         function is not declared or incompatibly declared.
9316         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
9317         * modules/ptsname_r (Depends-on, configure.ac): Update.
9318         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
9319
9320 2011-11-10  Bruno Haible  <bruno@clisp.org>
9321
9322         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
9323         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
9324         When cross-compiling, guess yes on all platforms except AIX.
9325         Reported by Ludovic Courtès <ludo@gnu.org>.
9326
9327 2011-11-09  Bruno Haible  <bruno@clisp.org>
9328
9329         ptsname_r tests: Fix bugs.
9330         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
9331         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
9332
9333 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9334
9335         fstatat: work with cross-compilation
9336         Problem reported by Ludovic Courtès in
9337         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
9338         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
9339         "cross-compiling" and assume the bug is present.  Replace
9340         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
9341         an inverted sense, to be more conservative about our assumptions.
9342         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
9343
9344 2011-11-09  Bruno Haible  <bruno@clisp.org>
9345
9346         Improve MODULES.html output.
9347         * modules/mkfifoat (Description): Use the word "function".
9348         * modules/readlinkat (Description): Likewise.
9349         * modules/symlinkat (Description): Likewise.
9350
9351 2011-11-09  Eric Blake  <eblake@redhat.com>
9352
9353         ptsname_r-tests: new test module
9354         * modules/ptsname_r-tests: New module.
9355         * tests/test-ptsname_r.c: New file.
9356
9357         ptsname_r: new module
9358         * modules/ptsname_r: New module.
9359         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
9360         * lib/ptsname.c (__ptsname_r): Split...
9361         * lib/ptsname_r.c: ...into new file.
9362         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9363         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
9364         * modules/stdlib (Makefile.am): Substitute witnesses.
9365         * lib/stdlib.in.h (ptsname_r): Declare it.
9366         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
9367         * MODULES.html.sh (Misc): Likewise.
9368         * modules/ptsname (Depends-on): Alter dependency.
9369         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
9370
9371 2011-11-09  Jim Meyering  <meyering@redhat.com>
9372
9373         announce-gen: be more concise when there's only one URL+tarball
9374         * build-aux/announce-gen (get_tool_versions): When you distribute
9375         only one type of tarball, combine the first two "Here are..."
9376         sections and make the key-checking grammar independent of
9377         how many tarballs there are.
9378
9379 2011-11-09  Eric Blake  <eblake@redhat.com>
9380
9381         openpty: provide a stub on mingw
9382         * lib/pty.in.h (includes): Provide forward declarations.
9383         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
9384
9385         raise: fix mingw handling of SIGPIPE
9386         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
9387
9388 2011-11-08  Bruno Haible  <bruno@clisp.org>
9389
9390         More conditional dependencies.
9391         * modules/faccessat (Depends-on): Add conditions.
9392         * modules/fchmodat (Depends-on): Likewise.
9393         * modules/fchownat (Depends-on): Likewise.
9394         * modules/fstatat (Depends-on): Likewise.
9395         * modules/mkfifoat (Depends-on): Likewise.
9396         * modules/readlinkat (Depends-on): Likewise.
9397         * modules/symlinkat (Depends-on): Likewise.
9398         * modules/unlinkat (Depends-on): Likewise.
9399         * modules/utimensat (Depends-on): Likewise.
9400         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
9401         * modules/linkat (Depends-on): Refine the conditions.
9402         * modules/renameat (Depends-on): Likewise.
9403
9404 2011-11-08  Bruno Haible  <bruno@clisp.org>
9405
9406         faccessat: Move AC_LIBOBJ invocation to module description.
9407         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
9408         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
9409         invocation from here...
9410         * modules/faccessat (configure.ac): ... to here. Invoke
9411         gl_PREREQ_FACCESSAT.
9412
9413 2011-11-08  Bruno Haible  <bruno@clisp.org>
9414
9415         faccessat: Simplify autoconf macro.
9416         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
9417         gl_FUNC_EUIDACCESS.
9418
9419 2011-11-08  Bruno Haible  <bruno@clisp.org>
9420
9421         renameat: Fix dependencies.
9422         * modules/renameat (Depends-on): Add stdbool.
9423
9424 2011-11-08  Bruno Haible  <bruno@clisp.org>
9425
9426         mkfifoat: Fix module description.
9427         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
9428         not gl_UNISTD_MODULE_INDICATOR.
9429
9430 2011-11-08  Bruno Haible  <bruno@clisp.org>
9431
9432         fstatat: Remove unused dependency.
9433         * modules/fstatat (Depends-on): Remove fstat.
9434
9435 2011-11-08  Simon Josefsson  <simon@josefsson.org>
9436
9437         GNUmakefile: behave when Makefile is missing.
9438         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
9439
9440 2011-11-08  Bruno Haible  <bruno@clisp.org>
9441
9442         openat: Conditionalize dependencies.
9443         * lib/openat.c: Reduce the scope of some #includes.
9444         * modules/openat (Depends-on): Add conditions.
9445
9446 2011-11-07  Jim Meyering  <meyering@redhat.com>
9447
9448         maint.mk: extract GPG key ID without using a temporary file
9449         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
9450         without using a temporary file.  Based on a suggestion from Werner Koch
9451         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
9452
9453 2011-11-07  Eric Blake  <eblake@redhat.com>
9454
9455         grantpt: fix typo
9456         * lib/stdlib.in.h (grantpt): Check correct function.
9457
9458         maint.mk: silence new syntax check
9459         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
9460
9461 2011-11-06  Bruno Haible  <bruno@clisp.org>
9462
9463         Doc about floating-point and math API.
9464         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
9465         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
9466
9467 2011-11-06  Bruno Haible  <bruno@clisp.org>
9468
9469         stdalign tests: Skip the test when compiled by Sun C.
9470         * tests/test-stdalign.c (main): Skip the test on Sun C.
9471
9472 2011-11-06  Bruno Haible  <bruno@clisp.org>
9473
9474         ansi-c++-opt: Complete the 2011-06-05 change.
9475         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
9476         does not support namespaces, set the variable to "no", not to ":".
9477
9478 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
9479
9480         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
9481
9482 2011-11-06  Bruno Haible  <bruno@clisp.org>
9483
9484         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
9485         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
9486         (minus_zerol) [HP-UX]: New macro.
9487         (unary_minus) [HP-UX]: New function.
9488         (copysignl) [HP-UX]: Use unary_minus function.
9489
9490 2011-11-06  Bruno Haible  <bruno@clisp.org>
9491
9492         ldexp, ldexpf, ldexpl: Enhance tests.
9493         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
9494         and tests/test-ldexpl.c.
9495         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
9496         LDEXP, MIN_EXP, MAX_EXP): New macros.
9497         Include test-ldexp.h.
9498         (main): Just call test_function.
9499         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
9500         infinity.h, nan.h.
9501         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9502         MAX_EXP): New macros.
9503         Include test-ldexp.h.
9504         (x, y): Remove variables.
9505         (main): Just call test_function.
9506         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
9507         infinity.h, nan.h.
9508         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9509         MAX_EXP): New macros.
9510         Include test-ldexp.h.
9511         (x, y): Remove variables.
9512         (main): Just call test_function.
9513         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
9514         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
9515         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9516         (Depends-on): Add isnand-nolibm, signbit, float.
9517         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
9518         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9519         (Depends-on): Add isnanf-nolibm, signbit, float.
9520
9521 2011-11-06  Bruno Haible  <bruno@clisp.org>
9522
9523         math tests: Cosmetics.
9524         * tests/test-math-c++.cc: Reorder declarations.
9525
9526 2011-11-05  Bruno Haible  <bruno@clisp.org>
9527
9528         fma*: Simplify test.
9529         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
9530         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
9531
9532         Tests for module 'fmal'.
9533         * modules/fmal-tests: New file.
9534         * tests/test-fmal1.c: New file.
9535         * tests/test-fmal2.c: New file.
9536
9537         New module 'fmal'.
9538         * lib/math.in.h (fmal): New declaration.
9539         * lib/fmal.c: New file.
9540         * m4/fmal.m4: New file.
9541         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
9542         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
9543         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
9544         REPLACE_FMAL.
9545         * modules/fmal: New file.
9546         * doc/posix-functions/fmal.texi: Mention the new module and the various
9547         bugs.
9548
9549         Tests for module 'fmaf'.
9550         * modules/fmaf-tests: New file.
9551         * tests/test-fmaf1.c: New file.
9552         * tests/test-fmaf2.c: New file.
9553
9554         New module 'fmaf'.
9555         * lib/math.in.h (fmaf): New declaration.
9556         * lib/fmaf.c: New file.
9557         * m4/fmaf.m4: New file.
9558         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
9559         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
9560         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
9561         REPLACE_FMAF.
9562         * modules/fmaf: New file.
9563         * doc/posix-functions/fmaf.texi: Mention the new module and the various
9564         bugs.
9565
9566         Tests for module 'fma'.
9567         * modules/fma-tests: New file.
9568         * tests/test-fma1.c: New file.
9569         * tests/test-fma1.h: New file.
9570         * tests/test-fma2.c: New file.
9571         * tests/test-fma2.h: New file.
9572
9573         New module 'fma'.
9574         * lib/math.in.h (fma): New declaration.
9575         * lib/fma.c: New file.
9576         * m4/fma.m4: New file.
9577         * m4/fegetround.m4: New file.
9578         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
9579         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
9580         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
9581         REPLACE_FMA.
9582         * modules/fma: New file.
9583         * doc/posix-functions/fma.texi: Mention the new module and the various
9584         bugs.
9585
9586         Extend gl_MATHFUNC.
9587         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
9588         Support 'void' as argument type.
9589         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
9590
9591 2011-11-05  Jim Meyering  <meyering@redhat.com>
9592
9593         maint.mk: also prohibit inclusion of dirent.h without use
9594         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
9595
9596 2011-11-05  Bruno Haible  <bruno@clisp.org>
9597
9598         ldexpl tests: Avoid test failure on MSVC 9.
9599         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
9600         value. Needed in order to enforce the conversion from a value greater
9601         than LDBL_MAX to Infinity.
9602
9603 2011-11-05  Bruno Haible  <bruno@clisp.org>
9604
9605         New modules 'at-internal', 'openat-h', split off from module 'openat'.
9606         * modules/at-internal: New file, extracted from modules/openat.
9607         * modules/openat-h: New file.
9608         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
9609         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
9610         * modules/openat (Description): Add reference to POSIX function.
9611         (Files): Remove lib/openat.h, lib/openat-proc.c.
9612         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
9613         intprops, unistd.
9614         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
9615         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
9616         gl_FCNTL_MODULE_INDICATOR.
9617         (Include): Remove unistd.h, openat.h.
9618         * modules/areadlinkat (Files): Add lib/at-func.c.
9619         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9620         openat-die, openat-h, save-cwd.
9621         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
9622         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9623         openat-die, openat-h, save-cwd, unistd.
9624         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
9625         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9626         openat-h, save-cwd. Remove fcntl-h, openat.
9627         * modules/fchmodat (Files): Remove lib/openat.h.
9628         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9629         openat, stdbool, unistd.
9630         * modules/fchownat (Files): Remove lib/openat.h.
9631         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9632         openat, stdbool, sys_stat.
9633         * modules/fdopendir (Files): Remove lib/openat-priv.h,
9634         lib/openat-proc.c.
9635         (Depends-on): Add at-internal.
9636         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
9637         * modules/fstatat (Files): Remove lib/openat.h.
9638         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9639         stdbool, unistd.
9640         * modules/fts (Depends-on): Add openat-h.
9641         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
9642         openat.
9643         * modules/mkdirat (Files): Remove lib/openat.h.
9644         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9645         openat, stdbool, sys_stat.
9646         * modules/mkfifoat (Files): Add lib/at-func.c.
9647         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9648         openat-h, save-cwd. Remove fcntl-h, openat.
9649         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
9650         * modules/readlinkat (Files): Add lib/at-func.c.
9651         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9652         openat-h, save-cwd. Remove fcntl-h, openat.
9653         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
9654         openat.
9655         * modules/selinux-at (Files): Add lib/at-func.c.
9656         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9657         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
9658         * modules/symlinkat (Files): Add lib/at-func.c.
9659         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9660         openat-h, save-cwd. Remove fcntl-h, openat.
9661         * modules/unlinkat (Files): Remove lib/openat.h.
9662         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9663         stdbool.
9664         * modules/utimensat (Files): Add lib/at-func.c.
9665         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
9666         openat-die, openat-h, save-cwd.
9667         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
9668         * modules/fdutimensat-tests (Depends-on): Add openat.
9669         * modules/fstatat-tests (Depends-on): Add openat-h.
9670         * modules/readlinkat-tests (Depends-on): Add openat.
9671         * modules/symlinkat-tests (Depends-on): Add openat.
9672
9673 2011-11-05  Bruno Haible  <bruno@clisp.org>
9674
9675         openat: Include <stdbool.h>.
9676         * lib/openat.c: Include <stdbool.h>.
9677
9678 2011-11-04  Bruno Haible  <bruno@clisp.org>
9679
9680         fchownat, renameat, unlinkat: Fix dependencies.
9681         * modules/fchownat (Depends-on): Add fstatat.
9682         * modules/renameat (Depends-on): Likewise.
9683         * modules/unlinkat (Depends-on): Likewise.
9684
9685 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
9686
9687         openat: remove direct dependency on dirent
9688         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
9689         and hasn't been needed ever since fdopendir was split into its own
9690         module on 2009-08-31.
9691         * modules/openat (Depends-on): Remove dirent.
9692
9693 2011-11-04  Bruno Haible  <bruno@clisp.org>
9694
9695         renameat: Optimize code size.
9696         * modules/renameat (configure.ac): Don't compile at-func2.c if
9697         REPLACE_RENAMEAT is 1.
9698
9699 2011-11-04  Bruno Haible  <bruno@clisp.org>
9700
9701         openat tests: Fix file list.
9702         * modules/openat-tests (Files): Add tests/test-open.h.
9703
9704 2011-11-04  Bruno Haible  <bruno@clisp.org>
9705
9706         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
9707         * modules/fchmodat (Depends-on): Add openat-die.
9708         * modules/fchownat (Depends-on): Likewise.
9709         * modules/linkat (Depends-on): Likewise.
9710         * modules/renameat (Depends-on): Likewise.
9711         * modules/openat (Depends-on): Add dirent.
9712
9713 2011-11-04  Jim Meyering  <meyering@redhat.com>
9714
9715         at-func*.c: fix comments
9716         * lib/at-func2.c: Correct/improve first-line comment.
9717         * lib/at-func.c: Correct grammar in first-line comment.
9718
9719 2011-11-04  Bruno Haible  <bruno@clisp.org>
9720
9721         New module 'mkdirat', split off from module 'openat'.
9722         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
9723         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
9724         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
9725         * modules/mkdirat: New file, extracted from modules/openat.
9726         * modules/openat (Files): Remove lib/mkdirat.c.
9727         (Depends-on): Remove mkdir.
9728         (configure.ac): Remove AC_LIBOBJ of mkdirat.
9729         (Include): Remove <sys/stat.h>.
9730         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
9731         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
9732         tests/test-mkdir.h.
9733         (Depends-on): Remove ignore-value.
9734         (Makefile.am): Remove rules for test-mkdirat.
9735         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
9736         of module 'openat'.
9737         * NEWS: Mention the change.
9738
9739 2011-11-04  Bruno Haible  <bruno@clisp.org>
9740
9741         closedir: Avoid warning on mingw.
9742         * lib/closedir.c: Include <unistd.h>.
9743
9744 2011-11-04  Bruno Haible  <bruno@clisp.org>
9745
9746         New module 'fstatat', split off from module 'openat'.
9747         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
9748         defined.
9749         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
9750         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
9751         gl_FUNC_FSTATAT.
9752         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
9753         * modules/fstatat: New file, extracted from modules/openat.
9754         * modules/openat (Files): Remove lib/fstatat.c.
9755         (Depends-on): Remove lstat.
9756         (configure.ac): Remove AC_LIBOBJ of fstatat.
9757         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
9758         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
9759         tests/test-lstat.h, tests/test-stat.h.
9760         (Depends-on): Remove getcwd-lgpl.
9761         (Makefile.am): Remove rules for test-fstatat.
9762         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
9763         of module 'openat'.
9764         * NEWS: Mention the change.
9765         * modules/getcwd (Depends-on): Add fstatat.
9766         * modules/linkat (Depends-on): Likewise.
9767         * modules/mkfifoat-tests (Depends-on): Likewise.
9768         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
9769
9770 2011-11-03  Bruno Haible  <bruno@clisp.org>
9771
9772         New module 'unlinkat', split off from module 'openat'.
9773         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
9774         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
9775         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
9776         * modules/unlinkat: New file, extracted from modules/openat. Correct
9777         the dependency conditions.
9778         * modules/openat (Files): Remove lib/unlinkat.c.
9779         (Depends-on): Remove rmdir, unlink.
9780         (configure.ac): Remove AC_LIBOBJ of unlinkat.
9781         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
9782         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
9783         tests/test-rmdir.h, tests/test-unlink.h.
9784         (Depends-on): Remove unlinkdir.
9785         (Makefile.am): Remove rules for test-unlinkat.
9786         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
9787         of module 'openat'.
9788         * NEWS: Mention the change.
9789         * modules/linkat-tests (Depends-on): Add unlinkat.
9790         * modules/mkfifoat-tests (Depends-on): Likewise.
9791         * modules/readlinkat-tests (Depends-on): Likewise.
9792
9793 2011-11-02  Bruno Haible  <bruno@clisp.org>
9794
9795         New module 'fchmodat', split off from module 'openat'.
9796         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
9797         defined.
9798         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
9799         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
9800         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
9801         * modules/fchmodat: New file, extracted from modules/openat.
9802         * modules/openat (Files): Remove lib/fchmodat.c.
9803         (configure.ac): Remove AC_LIBOBJ of fchmodat.
9804         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
9805         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
9806         (Makefile.am): Remove rules for test-fchmodat.
9807         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
9808         of module 'openat'.
9809         * NEWS: Mention the change.
9810
9811 2011-11-02  Jim Meyering  <meyering@redhat.com>
9812
9813         putenv: indent #definition of "environ" to placate cppi
9814         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
9815
9816         gitlog-to-changelog: provide a ChangeLog-repair mechanism
9817         Git logs are often treated as immutable, because editing them
9818         changes the SHA1 checksums of all descendants.  Thus, errors in
9819         git logs tend to stay there forever.  However, when we generate
9820         a ChangeLog file -- typically for distribution -- from that git log,
9821         we can actually make corrections in the generated file.  The key
9822         lies in recording in machine-readable/applicable form the desired
9823         corrections.  See --help for description and an example.
9824         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
9825         (usage): Describe it; alphabetize option descriptions.
9826         (main): Honor the new option, carefully.
9827
9828 2011-11-01  Jim Meyering  <meyering@redhat.com>
9829
9830         gitlog-to-changelog: avoid an infloop
9831         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
9832         that ends up being empty.
9833
9834 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9835
9836         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
9837         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
9838         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
9839         contains (possibly-quoted) backslashes.  This should avoid
9840         all-too-common shell bugs if COMPLICATED contains backslashes in
9841         the "wrong" places.  Reported by David Evans in
9842         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
9843         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
9844         because we want ASCII ranges.  Is there some reason we don't use
9845         the C locale everywhere in this script?
9846         (func_module, top level): Avoid unwanted pathname expansion when
9847         $repo_url_prefix or $repo_url_suffix_repl contain shell
9848         metacharacters like '?' and '*'.
9849
9850 2011-11-01  Bruno Haible  <bruno@clisp.org>
9851
9852         fchownat: Improve description.
9853         * modules/fchownat (Description): Add link to function.
9854
9855 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9856
9857         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
9858         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
9859         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
9860         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
9861
9862 2011-11-01  Bruno Haible  <bruno@clisp.org>
9863
9864         alignof: Avoid collision with stdalign module.
9865         * lib/alignof.h (alignof): Remove macro.
9866         * NEWS: Mention the change.
9867         Reported by Paul Eggert.
9868
9869 2011-11-01  Bruno Haible  <bruno@clisp.org>
9870
9871         New module 'fchownat', split off from module 'openat'.
9872         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
9873         defined.
9874         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
9875         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
9876         invoke gl_FUNC_FCHOWNAT.
9877         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
9878         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
9879         * modules/fchownat: New file, extracted from modules/openat.
9880         * modules/openat (Files): Remove lib/fchownat.c.
9881         (Depends-on): Remove lchown.
9882         (configure.ac): Remove AC_LIBOBJ of fchownat.
9883         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
9884         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
9885         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
9886         (Depends-on): Remove mgetgroups, usleep, stat-time.
9887         (configure.ac): Remove test for getegid.
9888         (Makefile.am): Remove rules for test-fchownat.
9889         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
9890         of module 'openat'.
9891         * NEWS: Mention the change.
9892
9893 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
9894
9895         stdalign: port better to MSVC and to Sun C 5.11
9896         This fixes some of the problems reported by Bruno Haible in
9897         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
9898         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
9899         shortcomings of MSVC and of Sun C 5.11.
9900         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
9901         around __declspec arg.
9902         * modules/stdalign-tests (Files): Add tests/macros.h.
9903         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
9904         Include macros.h, for ASSERT.
9905         (DECLARE_ALIGNED): Remove.
9906         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
9907         to catch bug), and to 1 if not (simplifies the rest of the code).
9908         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
9909         (CHECK_AUTO): Remove.
9910         (CHECK_ALIGNED): Check only the alignment of the static vars,
9911         since auto var alignment isn't supported by Sun C 5.11.
9912         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
9913         ASSERT failures are easier to diagnose.
9914
9915 2011-10-31  Bruno Haible  <bruno@clisp.org>
9916
9917         doc about some IRIX 5.3 problems.
9918         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
9919         on IRIX 5.3.
9920         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
9921         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
9922         5.3.
9923         * doc/posix-functions/grantpt.texi: Likewise.
9924         * doc/posix-functions/unlockpt.texi: Likewise.
9925         * doc/posix-functions/lgamma.texi: Likewise.
9926         * doc/posix-functions/nextafter.texi: Likewise.
9927         * doc/posix-functions/remainder.texi: Likewise.
9928         * doc/posix-functions/select.texi: Mention misplaced declaration on
9929         IRIX 5.3.
9930         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9931
9932 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
9933
9934         gitlog-to-changelog: fix git-log invocation.
9935         git-log mishandles date strings before 1970-01-01 UTC, and there is
9936         no use to specify --since=1970-01-01 by default anyway.
9937         * build-aux/gitlog-to-changelog: By default, when no --since option
9938         was given, do not specify explicit --since option to git-log.
9939
9940 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
9941
9942         gitlog-to-changelog: new option --append-dot.
9943         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
9944         first non-blank line of each commit message terminated with a dot.
9945
9946 2011-10-30  Bruno Haible  <bruno@clisp.org>
9947
9948         ffsl, ffsll: Avoid compilation error due to 'restrict'.
9949         * lib/ffsl.h: Include <config.h>.
9950         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
9951
9952 2011-10-30  Jim Meyering  <meyering@redhat.com>
9953
9954         GNUmakefile: reenable "make syntax-check" for most projects
9955         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
9956         build-aux variable", "syntax-check" would do nothing but succeed with
9957         the "No version control files detected..." diagnostic (unless you
9958         happened to override _build-aux via cfg.mk).
9959         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
9960         to precede inclusion of maint.mk.  Otherwise, these variables would
9961         be used undefined in any project that does not override the default.
9962
9963 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
9964
9965         gitlog-to-changelog: treat a message with only blank lines as empty.
9966         * build-aux/gitlog-to-changelog: Move the code that removes leading and
9967         trailing blank lines before the code that issues a warning about an
9968         empty commit message.
9969
9970 2011-10-30  Jim Meyering  <meyering@redhat.com>
9971
9972         test-parse-datetime.c: avoid new DST-related false positive test failure
9973         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
9974         based on the time/date we'll convert, not the current time.
9975         Otherwise, the moment we cross a DST boundary like today's in
9976         Europe, (CEST to CET), that offset ends up being one hour off.
9977
9978 2011-10-27  Bruno Haible  <bruno@clisp.org>
9979
9980         fstat: Tweak documentation.
9981         * modules/fstat (Description): More precise description.
9982
9983 2011-10-27  Bruno Haible  <bruno@clisp.org>
9984
9985         Update documentation regarding 'largefile' module.
9986         * doc/posix-functions/fstat.texi: Tweak wording.
9987         * doc/posix-functions/opendir.texi: Mention that the module fixes the
9988         problems with huge directories and/or small ino_t types.
9989         * doc/posix-functions/readdir.texi: Likewise.
9990         * doc/posix-functions/rewinddir.texi: Likewise.
9991
9992 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
9993
9994         maint.mk: don't maintain a second build-aux variable.
9995         * maint.mk (build_aux): Removed.  The maintainer-makefile module
9996         depends on GNUmakefile, which already maintains a cfg.mk
9997         overridable $(_build-aux) for projects with a non-standard
9998         build-aux directory location, although without the $(srcdir)
9999         prefix.  Use that variable consistently instead of introducing a
10000         second one.  Adjust all call sites.
10001
10002 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
10003
10004         Add stdalign module and use it in other modules.
10005         This is based on a previous proposal by Bruno Haible
10006         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
10007
10008         stdalign: new module
10009         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
10010         * modules/stdalign: New files.
10011         * MODULES.html.sh (c1x_core_properties): Add stdalign.
10012         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
10013
10014         stdalign-tests: new module
10015         * modules/stdalign-tests, tests/test-stdalign.c: New files.
10016
10017         argp: use stdalign
10018         * lib/argp-parse.c: Include <stdalign.h>.
10019         (alignof): Remove.
10020         * modules/argp (Depends-on): Add stdalign.
10021
10022         crypto libraries: use stdalign
10023         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
10024         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
10025         Do not include <stdlib.h> twice, in md4.c.
10026         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
10027         because we are accessing a pointer's bit-pattern, not a size.
10028         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
10029         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
10030         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
10031         * modules/crypto/sha512: Likewise.
10032
10033         sys_socket: use stdalign, not alignof
10034         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
10035         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
10036
10037 2011-10-27  Bruno Haible  <bruno@clisp.org>
10038
10039         raise test: Avoid a test failure on Linux/MIPS.
10040         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
10041         because 99 is a valid signal on Linux/MIPS.
10042
10043 2011-10-27  Bruno Haible  <bruno@clisp.org>
10044
10045         nonblocking tests: Fix test failure on Linux/MIPS.
10046         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
10047         Set to 270000.
10048
10049 2011-10-27  Bruno Haible  <bruno@clisp.org>
10050
10051         utimensat: Work around problem on Linux/hppa.
10052         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
10053         values.
10054         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
10055
10056 2011-10-25  Jim Meyering  <meyering@redhat.com>
10057
10058         maint.mk: fix a bug in sc_prohibit_stddef_without_use
10059         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
10060         after symbols like NULL, size_t, etc.
10061         Reported by Alfred M. Szmidt.
10062
10063         maint.mk: exempt ENODATA from a syntax-check rule
10064         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
10065         from the sc_prohibit_always-defined_macros syntax-check rule.
10066         Add a comment.  See this for more details:
10067         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
10068
10069 2011-10-23  Jim Meyering  <meyering@redhat.com>
10070
10071         fts: close parent dir FD before returning from post-traversal fts_read
10072         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
10073         unlink A, even though an FD open on A remained.  This is suboptimal
10074         (holding a file descriptor open longer than needed), but otherwise not
10075         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
10076         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
10077         that represents a real problem: it causes the removal of A to fail
10078         with e.g., "rm: cannot remove `A': Device or resource busy"
10079
10080         fts visits each directory twice and keeps a cache (fts_fd_ring) of
10081         directory file descriptors.  After completing the final, FTS_DP,
10082         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
10083         cache, but then proceeded to add a new FD to it via the subsequent
10084         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
10085         final file descriptor would be closed only via fts_close's call to
10086         fd_ring_clear.  Now, it is usually closed earlier, via the final
10087         FTS_DP-returning fts_read call.
10088         * lib/fts.c (restore_initial_cwd): New function, converted from
10089         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
10090         Update callers.
10091         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
10092         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
10093
10094 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
10095             Bruno Haible  <bruno@clisp.org>
10096             Jim Meyering  <jim@meyering.net>
10097
10098         readme-release: improve safety of release prep instructions.
10099         * README-release: Don't git pull all branches when only master
10100         is needed for the release process.
10101         Run make maintainer-clean before changing trees and merging.
10102         Don't try to run ./configure right after git pull in case files
10103         that influence the bootstrap process have changed, move the
10104         ./configure step to after running ./bootstrap.
10105         Don't bootstrap "one last time"... it's the first time!
10106
10107 2011-10-22  Bruno Haible  <bruno@clisp.org>
10108
10109         errno, strerror-override: Support for MSVC 10.
10110         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
10111         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
10112         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
10113         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
10114         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
10115         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
10116         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
10117         Assign values compatible with MSVC 10.
10118         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
10119         New macros.
10120         (GNULIB_defined_EWINSOCK): New macro.
10121         * lib/strerror-override.c (strerror_override): Update accordingly.
10122         * lib/strerror-override.h: Likewise.
10123         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
10124         longer equal to the corresponding errno value.
10125         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10126
10127 2011-10-22  Bruno Haible  <bruno@clisp.org>
10128
10129         perror: Recognize when test program crashes.
10130         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
10131         strerror, set gl_cv_func_perror_works to no.
10132         Reported by Daniel Richard G. <skunk@iskunk.org>.
10133
10134         perror: Fix indentation.
10135         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
10136
10137 2011-10-22  Bruno Haible  <bruno@clisp.org>
10138
10139         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
10140         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
10141         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
10142         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
10143         functions, not as a macro.
10144         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
10145         macros.
10146         (isfinite, isinf, isnan, signbit): Check overloaded functions and
10147         absence of macro.
10148         Suggested by Eric Blake.
10149         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10150
10151 2011-10-21  Bruno Haible  <bruno@clisp.org>
10152
10153         relocatable-prog-wrapper: Don't leave object files behind.
10154         * build-aux/install-reloc: Re-synchronize list of .o files to be
10155         removed with list of compilation units.
10156
10157 2011-10-20  Bruno Haible  <bruno@clisp.org>
10158
10159         openpty, posix_openpt: Remove code duplication.
10160         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
10161         * lib/openpty.c: Include <stdlib.h>.
10162         (openpty): Use posix_openpt on all platforms except IRIX.
10163         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
10164
10165 2011-10-20  Bruno Haible  <bruno@clisp.org>
10166
10167         unlockpt: Detect invalid argument.
10168         * lib/unlockpt.c: Include <fcntl.h>.
10169         (unlockpt): Check whether fd is valid, using fcntl().
10170         * modules/unlockpt (Depends-on): Add fcntl-h.
10171
10172 2011-10-20  Bruno Haible  <bruno@clisp.org>
10173
10174         openpty: Avoid compilation error on AIX 6.1.
10175         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
10176
10177 2011-10-20  Bruno Haible  <bruno@clisp.org>
10178
10179         posix_openpt: Support for OpenBSD.
10180         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
10181         (posix_openpt) [OpenBSD]: New code.
10182         * lib/grantpt.c: Include <fcntl.h>.
10183         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
10184         * modules/grantpt (Depends-on): Add fcntl-h.
10185
10186 2011-10-20  Bruno Haible  <bruno@clisp.org>
10187
10188         posix_openpt test: Coding style.
10189         * tests/test-posix_openpt.c: Use GNU coding style.
10190
10191 2011-10-20  Bruno Haible  <bruno@clisp.org>
10192
10193         grantpt: Support --avoid=pt_chown.
10194         * modules/grantpt (Files): Add lib/pty-private.h.
10195
10196 2011-10-20  Bruno Haible  <bruno@clisp.org>
10197
10198         posix_openpt: Fix autoconf macro.
10199         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
10200         unneeded check for _getpty.
10201
10202 2011-10-20  Bruno Haible  <bruno@clisp.org>
10203
10204         openpty: Update comments.
10205         * lib/openpty.c: Add comments about Minix.
10206
10207 2011-10-19  Eric Blake  <eblake@redhat.com>
10208
10209         openpty: relax license
10210         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
10211
10212         pt_chown: use configmake to simplify build
10213         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
10214
10215         ptsname and others: relax license
10216         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
10217         * modules/unlockpt (License): Likewise.
10218         * modules/pt_chown (License): Likewise.
10219         * modules/ptsname (License): Likewise.
10220         * modules/ttyname_r (License): Likewise.
10221
10222 2011-10-19  Jim Meyering  <meyering@redhat.com>
10223
10224         posix_openpt: remove spurious #endif
10225         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
10226
10227 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
10228
10229         maint.mk: Respect $(build_aux) in web-manual rule.
10230         * top/maint.mk (web-manual): Find gen-announce script in user's
10231         $(build_aux) directory instead of hard-coding 'build-aux'.
10232
10233 2011-10-19  Bruno Haible  <bruno@clisp.org>
10234
10235         posix_openpt: Fix compilation error.
10236         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
10237         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
10238         Mention the openpty module as an alternative.
10239
10240 2011-10-19  Bruno Haible  <bruno@clisp.org>
10241
10242         Support for old NeXTstep 3.3 frexp().
10243         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
10244         execution time of the test to 5 seconds.
10245         Reported by Daniel Richard G. <skunk@iskunk.org>.
10246
10247 2011-10-19  Bruno Haible  <bruno@clisp.org>
10248
10249         Support for old NeXTstep 3.3 sed.
10250         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
10251         part, use /.../, not \|...|. Escape periods in the header file name.
10252         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10253         Reported by Daniel Richard G. <skunk@iskunk.org>.
10254
10255 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10256
10257         Support for old NeXTstep 3.3 gcc.
10258         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
10259         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
10260         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
10261         * lib/spawn.in.h (_Restrict_arr_): Likewise.
10262         * lib/regex.h (_Restrict_arr_): Likewise.
10263         * lib/regex_internal.h (re_token_t): Likewise.
10264         * lib/regexec.c (check_node_accept_bytes): Likewise.
10265         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
10266
10267 2011-10-18  Eric Blake  <eblake@redhat.com>
10268
10269         posix_openpt: new module
10270         * modules/posix_openpt: New module.
10271         * m4/posix_openpt.m4: New file.
10272         * lib/posix_openpt.c: Likewise.
10273         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10274         (gl_STDLIB_H_DEFAULTS): Set defaults.
10275         * modules/stdlib (Makefile.am): Substitute macros.
10276         * lib/stdlib.in.h (posix_openpt): Declare.
10277         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
10278         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
10279         * modules/posix_openpt-tests: New test module.
10280         * tests/test-posix_openpt.c: New test.
10281
10282 2011-10-15  Bruno Haible  <bruno@clisp.org>
10283
10284         xstrtoll: Fix compilation failure.
10285         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
10286         from lib/strtol.c.
10287         * doc/posix-headers/limits.texi: Mention missing numerical limits on
10288         some platforms.
10289         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10290
10291 2011-10-15  Bruno Haible  <bruno@clisp.org>
10292
10293         vasnprintf: Optimize bit search operation.
10294         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
10295         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
10296         gl_DOUBLE_EXPONENT_LOCATION.
10297         * modules/vasnprintf (Files): Add m4/exponentd.m4.
10298         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10299         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10300         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10301         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10302         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10303         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10304         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10305         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
10306
10307 2011-10-15  Bruno Haible  <bruno@clisp.org>
10308
10309         vasnprintf: Fix comments.
10310         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
10311
10312 2011-10-14  Bruno Haible  <bruno@clisp.org>
10313
10314         Tests for module 'integer_length_ll'.
10315         * modules/integer_length_ll-tests: New file.
10316         * tests/test-integer_length_ll.c: New file.
10317
10318         New module 'integer_length_ll'.
10319         * lib/integer_length_ll.c: New file.
10320         * modules/integer_length_ll: New file.
10321
10322 2011-10-14  Bruno Haible  <bruno@clisp.org>
10323
10324         Tests for module 'integer_length_l'.
10325         * modules/integer_length_l-tests: New file.
10326         * tests/test-integer_length_l.c: New file.
10327
10328         New module 'integer_length_l'.
10329         * lib/integer_length_l.c: New file.
10330         * modules/integer_length_l: New file.
10331
10332 2011-10-14  Bruno Haible  <bruno@clisp.org>
10333
10334         Tests for module 'integer_length'.
10335         * modules/integer_length-tests: New file.
10336         * tests/test-integer_length.c: New file.
10337
10338         New module 'integer_length'.
10339         * lib/integer_length.h: New file.
10340         * lib/integer_length.c: New file.
10341         * modules/integer_length: New file.
10342
10343 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10344
10345         popen: Fix dependency conditions.
10346         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
10347
10348 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10349
10350         perror: Fix autoconf test.
10351         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
10352         <stdlib.h> and <string.h>.
10353
10354 2011-10-14  Bruno Haible  <bruno@clisp.org>
10355
10356         ffsl: Optimize on 64-bit platforms.
10357         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
10358         unrolling.
10359
10360 2011-10-13  Bruno Haible  <bruno@clisp.org>
10361
10362         ffsl: Optimize on 32-bit platforms.
10363         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
10364         use ffs() without a loop.
10365
10366         ffsl, ffsll: Optimize for GCC.
10367         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
10368         * lib/ffsl.c (GCC_BUILTIN): New macro.
10369         * lib/ffsll.c (GCC_BUILTIN): Likewise.
10370
10371 2011-10-13  Bruno Haible  <bruno@clisp.org>
10372
10373         ffs, bcopy, memset: Support symbol renaming via config.h.
10374         * lib/ffs.c: Include <config.h>.
10375         * lib/bcopy.c: Likewise.
10376         * lib/memset.c: Likewise.
10377
10378 2011-10-10  Bruno Haible  <bruno@clisp.org>
10379
10380         atanl: Simplify for platforms where 'long double' == 'double'.
10381         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10382         alternative implementation.
10383         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10384         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10385         * modules/atanl (Depends-on): Add atan. Update conditions.
10386
10387 2011-10-10  Bruno Haible  <bruno@clisp.org>
10388
10389         acosl: Simplify for platforms where 'long double' == 'double'.
10390         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10391         alternative implementation.
10392         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10393         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10394         * modules/acosl (Depends-on): Add acos. Update conditions.
10395
10396 2011-10-10  Bruno Haible  <bruno@clisp.org>
10397
10398         asinl: Simplify for platforms where 'long double' == 'double'.
10399         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10400         alternative implementation.
10401         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10402         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10403         * modules/asinl (Depends-on): Add asin. Update conditions.
10404
10405 2011-10-10  Bruno Haible  <bruno@clisp.org>
10406
10407         tanl: Simplify for platforms where 'long double' == 'double'.
10408         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10409         implementation.
10410         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10411         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10412         * modules/tanl (Depends-on): Add tan. Update conditions.
10413         (configure.ac): Don't compile trigl.c if
10414         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10415
10416 2011-10-10  Bruno Haible  <bruno@clisp.org>
10417
10418         cosl: Simplify for platforms where 'long double' == 'double'.
10419         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10420         implementation.
10421         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10422         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10423         * modules/cosl (Depends-on): Add cos. Update conditions.
10424         (configure.ac): Don't compile sincosl.c and trigl.c if
10425         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10426
10427 2011-10-10  Bruno Haible  <bruno@clisp.org>
10428
10429         sinl: Simplify for platforms where 'long double' == 'double'.
10430         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10431         implementation.
10432         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10433         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10434         * modules/sinl (Depends-on): Add sin. Update conditions.
10435         (configure.ac): Don't compile sincosl.c and trigl.c if
10436         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10437
10438 2011-10-10  Bruno Haible  <bruno@clisp.org>
10439
10440         logl: Simplify for platforms where 'long double' == 'double'.
10441         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10442         implementation.
10443         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10444         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10445         * modules/logl (Depends-on): Add log. Update conditions.
10446
10447 2011-10-10  Bruno Haible  <bruno@clisp.org>
10448
10449         expl: Simplify for platforms where 'long double' == 'double'.
10450         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10451         implementation.
10452         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10453         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10454         * modules/expl (Depends-on): Add exp. Update conditions.
10455
10456 2011-10-10  Bruno Haible  <bruno@clisp.org>
10457
10458         sqrtl: Simplify for platforms where 'long double' == 'double'.
10459         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10460         alternative implementation.
10461         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10462         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10463         * modules/sqrtl (Depends-on): Update conditions.
10464
10465 2011-10-10  Bruno Haible  <bruno@clisp.org>
10466
10467         ldexpl: Simplify for platforms where 'long double' == 'double'.
10468         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10469         alternative implementation.
10470         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10471         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10472         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
10473
10474 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
10475
10476         ffsll: set correct witness
10477         * modules/ffsll (configure.ac): Fix typo.
10478
10479 2011-10-10  Bruno Haible  <bruno@clisp.org>
10480
10481         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
10482         * lib/printf-frexpl.c: Include <config.h>.
10483         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10484         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
10485         second time.
10486         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
10487         gl_LONG_DOUBLE_VS_DOUBLE.
10488         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
10489         conditions.
10490
10491 2011-10-10  Bruno Haible  <bruno@clisp.org>
10492
10493         frexpl: Simplify for platforms where 'long double' == 'double'.
10494         * lib/frexpl.c: Include <config.h>.
10495         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10496         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10497         time.
10498         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10499         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10500         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
10501         * modules/frexpl (Depends-on): Add frexp. Update conditions.
10502         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
10503         conditions.
10504
10505 2011-10-10  Jim Meyering  <meyering@redhat.com>
10506
10507         test-renameat: don't leave behind a temporary file
10508         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
10509           ERROR: files left in build directory after distclean:
10510           ./gltests/test-renameat.too
10511           make[1]: *** [distcleancheck] Error 1
10512         Reported by Tom G. Christensen.
10513
10514 2011-10-09  Bruno Haible  <bruno@clisp.org>
10515
10516         rint: Determine RINT_LIBM correctly on AIX 7.
10517         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
10518         directly, not only through a function pointer. Also accept an optional
10519         4th argument with extra code.
10520         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
10521         rintf() call by gcc when optimizing.
10522
10523         mathfunc.m4: Refactor.
10524         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
10525         m4 variable.
10526
10527 2011-10-09  Bruno Haible  <bruno@clisp.org>
10528
10529         rintl: Simplify for platforms where 'long double' == 'double'.
10530         * lib/rintl.c: Include <config.h>.
10531         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10532         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10533         time.
10534         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10535         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10536         * modules/rintl (Depends-on): Add rint. Update conditions.
10537
10538 2011-10-09  Bruno Haible  <bruno@clisp.org>
10539
10540         roundl: Simplify for platforms where 'long double' == 'double'.
10541         * lib/roundl.c: Include <config.h>.
10542         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10543         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10544         time.
10545         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10546         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10547         * modules/roundl (Depends-on): Add round. Update conditions.
10548
10549 2011-10-09  Bruno Haible  <bruno@clisp.org>
10550
10551         truncl: Simplify for platforms where 'long double' == 'double'.
10552         * lib/truncl.c: Include <config.h>.
10553         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10554         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10555         time.
10556         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10557         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10558         * modules/truncl (Depends-on): Add trunc. Update conditions.
10559
10560 2011-10-09  Bruno Haible  <bruno@clisp.org>
10561
10562         ceill: Simplify for platforms where 'long double' == 'double'.
10563         * lib/ceill.c: Include <config.h>.
10564         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10565         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10566         time.
10567         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10568         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10569         * modules/ceill (Depends-on): Add ceil. Update conditions.
10570
10571 2011-10-09  Bruno Haible  <bruno@clisp.org>
10572
10573         floorl: Simplify for platforms where 'long double' == 'double'.
10574         * lib/floorl.c: Include <config.h>.
10575         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10576         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10577         time.
10578         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10579         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10580         * modules/floorl (Depends-on): Add floor. Update conditions.
10581
10582 2011-10-09  Bruno Haible  <bruno@clisp.org>
10583
10584         rint: Fix ordering constraints.
10585         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
10586         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
10587         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
10588
10589 2011-10-09  Bruno Haible  <bruno@clisp.org>
10590
10591         copysignl: Simplify for platforms where 'long double' == 'double'.
10592         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10593         alternative.
10594         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10595         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10596         * modules/copysignl (Depends-on): Add copysign. Update conditions.
10597
10598 2011-10-09  Bruno Haible  <bruno@clisp.org>
10599
10600         Tests for module 'rintl'.
10601         * modules/rintl-tests: New file.
10602         * tests/test-rintl.c: New file.
10603
10604         New module 'rintl'.
10605         * lib/math.in.h (rintl): New declaration.
10606         * lib/rintl.c: New file.
10607         * m4/rintl.m4: New file.
10608         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
10609         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
10610         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
10611         * modules/rintl: New file.
10612         * tests/test-math-c++.cc: Check the declaration of rintl.
10613         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10614         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
10615         * doc/posix-functions/rintl.texi: Mention the new module.
10616
10617 2011-10-09  Bruno Haible  <bruno@clisp.org>
10618
10619         Tests for module 'rintf'.
10620         * modules/rintf-tests: New file.
10621         * tests/test-rintf.c: New file.
10622
10623         New module 'rintf'.
10624         * lib/math.in.h (rintf): New declaration.
10625         * lib/rintf.c: New file.
10626         * m4/rintf.m4: New file.
10627         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
10628         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
10629         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
10630         * modules/rintf: New file.
10631         * tests/test-math-c++.cc: Check the declaration of rintf.
10632         * doc/posix-functions/rintf.texi: Mention the new module.
10633
10634 2011-10-09  Bruno Haible  <bruno@clisp.org>
10635
10636         rint: Support for MSVC.
10637         * lib/math.in.h (rint): New declaration.
10638         * lib/rint.c: New file.
10639         * m4/rint.m4: New file.
10640         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
10641         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
10642         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
10643         * modules/rint (Description): Fix.
10644         (Files): Add lib/rint.c, m4/rint.m4.
10645         (Depends-on): Add math.
10646         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
10647         gl_MATH_MODULE_INDICATOR.
10648         * tests/test-math-c++.cc: Check the declaration of rint.
10649         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10650         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
10651         * doc/posix-functions/rint.texi: Mention the replacement provided by
10652         the module.
10653
10654         rint tests: More tests.
10655         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
10656         minus-zero.h, infinity.h, nan.h.
10657         (main): Skip the test if the current rounding mode is not standard. Add
10658         tests for negative numbers, minus zero, infinity, NaN.
10659         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
10660         tests/nan.h.
10661         (Depends-on): Add isnand-nolibm.
10662
10663 2011-10-09  Bruno Haible  <bruno@clisp.org>
10664
10665         Tests for module 'copysignl'.
10666         * modules/copysignl-tests: New file.
10667         * tests/test-copysignl.c: New file.
10668
10669         New module 'copysignl'.
10670         * lib/math.in.h (copysignl): New declaration.
10671         * lib/copysignl.c: New file.
10672         * m4/copysignl.m4: New file.
10673         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
10674         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
10675         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
10676         HAVE_COPYSIGNL.
10677         * modules/copysignl: New file.
10678         * tests/test-math-c++.cc: Check the declaration of copysignl.
10679         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10680         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
10681         * doc/posix-functions/copysignl.texi: Mention the new module.
10682
10683 2011-10-09  Bruno Haible  <bruno@clisp.org>
10684
10685         Tests for module 'copysignf'.
10686         * modules/copysignf-tests: New file.
10687         * tests/test-copysignf.c: New file.
10688
10689         New module 'copysignf'.
10690         * lib/math.in.h (copysignf): New declaration.
10691         * lib/copysignf.c: New file.
10692         * m4/copysignf.m4: New file.
10693         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
10694         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
10695         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
10696         HAVE_COPYSIGNF.
10697         * modules/copysignf: New file.
10698         * tests/test-math-c++.cc: Check the declaration of copysignf.
10699         * doc/posix-functions/copysignf.texi: Mention the new module.
10700
10701 2011-10-09  Bruno Haible  <bruno@clisp.org>
10702
10703         Ensure that HAVE_* variables are set to 1 before they are set to 0.
10704         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
10705         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
10706         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10707         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
10708         gl_SIGNAL_H_DEFAULTS.
10709
10710 2011-10-09  Bruno Haible  <bruno@clisp.org>
10711
10712         poll: Make macro safer.
10713         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
10714         ac_cv_header_poll_h is not set.
10715
10716 2011-10-09  Bruno Haible  <bruno@clisp.org>
10717
10718         copysign: Provide replacement.
10719         * lib/math.in.h (copysign): New declaration.
10720         * lib/copysign.c: New file.
10721         * m4/copysign.m4: New file.
10722         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
10723         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
10724         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
10725         HAVE_COPYSIGN.
10726         * modules/copysign (Description): Clarify.
10727         (Files): Add lib/copysign.c, m4/copysign.m4.
10728         (Depends-on): Add math, signbit.
10729         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
10730         gl_MATH_MODULE_INDICATOR.
10731         * tests/test-math-c++.cc: Check the declaration of copysign.
10732         * doc/posix-functions/copysign.texi: Mention the effects of the module
10733         on Minix and MSVC.
10734
10735 2011-10-09  Bruno Haible  <bruno@clisp.org>
10736
10737         isinf: Ensure macro on AIX 5.1.
10738         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
10739         macro.
10740         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
10741
10742 2011-10-09  Bruno Haible  <bruno@clisp.org>
10743
10744         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
10745         * modules/snprintf-posix-tests (configure.ac): Require
10746         gl_LONG_DOUBLE_VS_DOUBLE.
10747         * modules/sprintf-posix-tests (configure.ac): Likewise.
10748         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
10749         * modules/vasprintf-posix-tests (configure.ac): Likewise.
10750         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
10751         * modules/vsprintf-posix-tests (configure.ac): Likewise.
10752         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
10753         tests on platforms where 'long double' is the same as 'double'.
10754         * tests/test-sprintf-posix.h (test_function): Likewise.
10755         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10756         * tests/test-vasprintf-posix.c (test_function): Likewise.
10757
10758         *printf: Fix for platforms where 'long double' == 'double'.
10759         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
10760         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
10761         * modules/dprintf-posix (Files): Add m4/math_h.m4.
10762         * modules/fprintf-posix (Files): Likewise.
10763         * modules/obstack-printf-posix (Files): Likewise.
10764         * modules/snprintf-posix (Files): Likewise.
10765         * modules/sprintf-posix (Files): Likewise.
10766         * modules/vasnprintf (Files): Likewise.
10767         * modules/vasnprintf-posix (Files): Likewise.
10768         * modules/vasprintf-posix (Files): Likewise.
10769         * modules/vdprintf-posix (Files): Likewise.
10770         * modules/vfprintf-posix (Files): Likewise.
10771         * modules/vsnprintf-posix (Files): Likewise.
10772         * modules/vsprintf-posix (Files): Likewise.
10773         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10774         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10775         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10776         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10777         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10778         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10779         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10780
10781         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
10782         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
10783         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10784         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
10785         'long double'.
10786         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
10787
10788         isinf: Fix for platforms where 'long double' == 'double'.
10789         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10790         Don't blindly assume 80-bit 'long double'.
10791
10792         isfinite: Fix for platforms where 'long double' == 'double'.
10793         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10794         Don't blindly assume 80-bit 'long double'.
10795
10796         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
10797         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
10798         * modules/isfinite-tests (configure.ac): Require
10799         gl_LONG_DOUBLE_VS_DOUBLE.
10800         * modules/isinf-tests (configure.ac): Likewise.
10801         * modules/isnan-tests (configure.ac): Likewise.
10802         * modules/isnanl-tests (configure.ac): Likewise.
10803         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
10804         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
10805         tests on platforms where 'long double' is the same as 'double'.
10806         * tests/test-isinf.c (test_isinfl): Likewise.
10807         * tests/test-isnan.c (test_long_double): Likewise.
10808         * tests/test-isnanl.h (main): Likewise.
10809
10810 2011-10-08  Bruno Haible  <bruno@clisp.org>
10811
10812         Tests for module 'tanhf'.
10813         * modules/tanhf-tests: New file.
10814         * tests/test-tanhf.c: New file.
10815
10816         New module 'tanhf'.
10817         * lib/math.in.h (tanhf): New declaration.
10818         * lib/tanhf.c: New file.
10819         * m4/tanhf.m4: New file.
10820         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
10821         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
10822         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
10823         * modules/tanhf: New file.
10824         * tests/test-math-c++.cc: Check the declaration of tanhf.
10825         * doc/posix-functions/tanhf.texi: Mention the new module.
10826
10827         tanh: Use a .m4 file.
10828         * m4/tanh.m4: New file.
10829         * modules/tanh (Files): Add it.
10830         (configure.ac): Just invoke gl_FUNC_TANH.
10831
10832 2011-10-08  Bruno Haible  <bruno@clisp.org>
10833
10834         Tests for module 'coshf'.
10835         * modules/coshf-tests: New file.
10836         * tests/test-coshf.c: New file.
10837
10838         New module 'coshf'.
10839         * lib/math.in.h (coshf): New declaration.
10840         * lib/coshf.c: New file.
10841         * m4/coshf.m4: New file.
10842         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
10843         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
10844         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
10845         * modules/coshf: New file.
10846         * tests/test-math-c++.cc: Check the declaration of coshf.
10847         * doc/posix-functions/coshf.texi: Mention the new module.
10848
10849         cosh: Use a .m4 file.
10850         * m4/cosh.m4: New file.
10851         * modules/cosh (Files): Add it.
10852         (configure.ac): Just invoke gl_FUNC_COSH.
10853
10854 2011-10-08  Bruno Haible  <bruno@clisp.org>
10855
10856         Tests for module 'sinhf'.
10857         * modules/sinhf-tests: New file.
10858         * tests/test-sinhf.c: New file.
10859
10860         New module 'sinhf'.
10861         * lib/math.in.h (sinhf): New declaration.
10862         * lib/sinhf.c: New file.
10863         * m4/sinhf.m4: New file.
10864         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
10865         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
10866         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
10867         * modules/sinhf: New file.
10868         * tests/test-math-c++.cc: Check the declaration of sinhf.
10869         * doc/posix-functions/sinhf.texi: Mention the new module.
10870
10871         sinh: Use a .m4 file.
10872         * m4/sinh.m4: New file.
10873         * modules/sinh (Files): Add it.
10874         (configure.ac): Just invoke gl_FUNC_SINH.
10875
10876 2011-10-08  Bruno Haible  <bruno@clisp.org>
10877
10878         Tests for module 'atan2f'.
10879         * modules/atan2f-tests: New file.
10880         * tests/test-atan2f.c: New file.
10881
10882         New module 'atan2f'.
10883         * lib/math.in.h (atan2f): New declaration.
10884         * lib/atan2f.c: New file.
10885         * m4/atan2f.m4: New file.
10886         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
10887         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
10888         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
10889         * modules/atan2f: New file.
10890         * tests/test-math-c++.cc: Check the declaration of atan2f.
10891         * doc/posix-functions/atan2f.texi: Mention the new module.
10892
10893         atan2: Use a .m4 file.
10894         * m4/atan2.m4: New file.
10895         * modules/atan2 (Files): Add it.
10896         (configure.ac): Just invoke gl_FUNC_ATAN2.
10897
10898 2011-10-08  Bruno Haible  <bruno@clisp.org>
10899
10900         Tests for module 'atanf'.
10901         * modules/atanf-tests: New file.
10902         * tests/test-atanf.c: New file.
10903
10904         New module 'atanf'.
10905         * lib/math.in.h (atanf): New declaration.
10906         * lib/atanf.c: New file.
10907         * m4/atanf.m4: New file.
10908         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
10909         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
10910         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
10911         * modules/atanf: New file.
10912         * tests/test-math-c++.cc: Check the declaration of atanf.
10913         * doc/posix-functions/atanf.texi: Mention the new module.
10914
10915         atan: Use a .m4 file.
10916         * m4/atan.m4: New file.
10917         * modules/atan (Files): Add it.
10918         (configure.ac): Just invoke gl_FUNC_ATAN.
10919
10920 2011-10-08  Bruno Haible  <bruno@clisp.org>
10921
10922         Tests for module 'acosf'.
10923         * modules/acosf-tests: New file.
10924         * tests/test-acosf.c: New file.
10925
10926         New module 'acosf'.
10927         * lib/math.in.h (acosf): New declaration.
10928         * lib/acosf.c: New file.
10929         * m4/acosf.m4: New file.
10930         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
10931         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
10932         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
10933         * modules/acosf: New file.
10934         * tests/test-math-c++.cc: Check the declaration of acosf.
10935         * doc/posix-functions/acosf.texi: Mention the new module.
10936
10937         acos: Use a .m4 file.
10938         * m4/acos.m4: New file.
10939         * modules/acos (Files): Add it.
10940         (configure.ac): Just invoke gl_FUNC_ACOS.
10941
10942 2011-10-08  Bruno Haible  <bruno@clisp.org>
10943
10944         Tests for module 'asinf'.
10945         * modules/asinf-tests: New file.
10946         * tests/test-asinf.c: New file.
10947
10948         New module 'asinf'.
10949         * lib/math.in.h (asinf): New declaration.
10950         * lib/asinf.c: New file.
10951         * m4/asinf.m4: New file.
10952         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
10953         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
10954         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
10955         * modules/asinf: New file.
10956         * tests/test-math-c++.cc: Check the declaration of asinf.
10957         * doc/posix-functions/asinf.texi: Mention the new module.
10958
10959         asin: Use a .m4 file.
10960         * m4/asin.m4: New file.
10961         * modules/asin (Files): Add it.
10962         (configure.ac): Just invoke gl_FUNC_ASIN.
10963
10964 2011-10-08  Bruno Haible  <bruno@clisp.org>
10965
10966         Tests for module 'tanf'.
10967         * modules/tanf-tests: New file.
10968         * tests/test-tanf.c: New file.
10969
10970         New module 'tanf'.
10971         * lib/math.in.h (tanf): New declaration.
10972         * lib/tanf.c: New file.
10973         * m4/tanf.m4: New file.
10974         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
10975         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
10976         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
10977         * modules/tanf: New file.
10978         * tests/test-math-c++.cc: Check the declaration of tanf.
10979         * doc/posix-functions/tanf.texi: Mention the new module.
10980
10981         tan: Use a .m4 file.
10982         * m4/tan.m4: New file.
10983         * modules/tan (Files): Add it.
10984         (configure.ac): Just invoke gl_FUNC_TAN.
10985
10986 2011-10-08  Bruno Haible  <bruno@clisp.org>
10987
10988         Tests for module 'cosf'.
10989         * modules/cosf-tests: New file.
10990         * tests/test-cosf.c: New file.
10991
10992         New module 'cosf'.
10993         * lib/math.in.h (cosf): New declaration.
10994         * lib/cosf.c: New file.
10995         * m4/cosf.m4: New file.
10996         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
10997         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
10998         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
10999         * modules/cosf: New file.
11000         * tests/test-math-c++.cc: Check the declaration of cosf.
11001         * doc/posix-functions/cosf.texi: Mention the new module.
11002
11003         cos: Use a .m4 file.
11004         * m4/cos.m4: New file.
11005         * modules/cos (Files): Add it.
11006         (configure.ac): Just invoke gl_FUNC_COS.
11007
11008 2011-10-08  Bruno Haible  <bruno@clisp.org>
11009
11010         Tests for module 'sinf'.
11011         * modules/sinf-tests: New file.
11012         * tests/test-sinf.c: New file.
11013
11014         New module 'sinf'.
11015         * lib/math.in.h (sinf): New declaration.
11016         * lib/sinf.c: New file.
11017         * m4/sinf.m4: New file.
11018         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
11019         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
11020         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
11021         * modules/sinf: New file.
11022         * tests/test-math-c++.cc: Check the declaration of sinf.
11023         * doc/posix-functions/sinf.texi: Mention the new module.
11024
11025         sin: Use a .m4 file.
11026         * m4/sin.m4: New file.
11027         * modules/sin (Files): Add it.
11028         (configure.ac): Just invoke gl_FUNC_SIN.
11029
11030 2011-10-08  Bruno Haible  <bruno@clisp.org>
11031
11032         Tests for module 'powf'.
11033         * modules/powf-tests: New file.
11034         * tests/test-powf.c: New file.
11035
11036         New module 'powf'.
11037         * lib/math.in.h (powf): New declaration.
11038         * lib/powf.c: New file.
11039         * m4/powf.m4: New file.
11040         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
11041         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
11042         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
11043         * modules/powf: New file.
11044         * tests/test-math-c++.cc: Check the declaration of powf.
11045         * doc/posix-functions/powf.texi: Mention the new module.
11046
11047         pow: Use a .m4 file.
11048         * m4/pow.m4: New file.
11049         * modules/pow (Files): Add it.
11050         (configure.ac): Just invoke gl_FUNC_POW.
11051
11052 2011-10-08  Bruno Haible  <bruno@clisp.org>
11053
11054         Tests for module 'log10f'.
11055         * modules/log10f-tests: New file.
11056         * tests/test-log10f.c: New file.
11057
11058         New module 'log10f'.
11059         * lib/math.in.h (log10f): New declaration.
11060         * lib/log10f.c: New file.
11061         * m4/log10f.m4: New file.
11062         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
11063         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
11064         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
11065         * modules/log10f: New file.
11066         * tests/test-math-c++.cc: Check the declaration of log10f.
11067         * doc/posix-functions/log10f.texi: Mention the new module.
11068
11069         log10: Use a .m4 file.
11070         * m4/log10.m4: New file.
11071         * modules/log10 (Files): Add it.
11072         (configure.ac): Just invoke gl_FUNC_LOG10.
11073
11074 2011-10-08  Bruno Haible  <bruno@clisp.org>
11075
11076         Tests for module 'logf'.
11077         * modules/logf-tests: New file.
11078         * tests/test-logf.c: New file.
11079
11080         New module 'logf'.
11081         * lib/math.in.h (logf): New declaration.
11082         * lib/logf.c: New file.
11083         * m4/logf.m4: New file.
11084         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
11085         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
11086         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
11087         * modules/logf: New file.
11088         * tests/test-math-c++.cc: Check the declaration of logf.
11089         * doc/posix-functions/logf.texi: Mention the new module.
11090
11091         log: Use a .m4 file.
11092         * m4/log.m4: New file.
11093         * modules/log (Files): Add it.
11094         (configure.ac): Just invoke gl_FUNC_LOG.
11095
11096 2011-10-08  Bruno Haible  <bruno@clisp.org>
11097
11098         Tests for module 'expf'.
11099         * modules/expf-tests: New file.
11100         * tests/test-expf.c: New file.
11101
11102         New module 'expf'.
11103         * lib/math.in.h (expf): New declaration.
11104         * lib/expf.c: New file.
11105         * m4/expf.m4: New file.
11106         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
11107         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
11108         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
11109         * modules/expf: New file.
11110         * tests/test-math-c++.cc: Check the declaration of expf.
11111         * doc/posix-functions/expf.texi: Mention the new module.
11112
11113         exp: Use a .m4 file.
11114         * m4/exp.m4: New file.
11115         * modules/exp (Files): Add it.
11116         (configure.ac): Just invoke gl_FUNC_EXP.
11117
11118 2011-10-08  Bruno Haible  <bruno@clisp.org>
11119
11120         Tests for module 'sqrtf'.
11121         * modules/sqrtf-tests: New file.
11122         * tests/test-sqrtf.c: New file.
11123
11124         New module 'sqrtf'.
11125         * lib/math.in.h (sqrtf): New declaration.
11126         * lib/sqrtf.c: New file.
11127         * m4/sqrtf.m4: New file.
11128         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
11129         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
11130         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
11131         * modules/sqrtf: New file.
11132         * tests/test-math-c++.cc: Check the declaration of sqrtf.
11133         * doc/posix-functions/sqrtf.texi: Mention the new module.
11134
11135 2011-10-08  Bruno Haible  <bruno@clisp.org>
11136
11137         Tests: Avoid link failures w.r.t. libintl.
11138         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
11139         $(LIBINTL).
11140         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
11141         $(LIBINTL).
11142         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
11143         against $(LIBINTL).
11144         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
11145         $(LIBINTL).
11146         * modules/openat-tests (Makefile.am): Link test-fchmodat against
11147         $(LIBINTL).
11148         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
11149
11150 2011-10-08  Bruno Haible  <bruno@clisp.org>
11151
11152         pow tests: Defeat compiler optimizations.
11153         * tests/test-pow.c (main): Assign arguments to x and y before use.
11154
11155 2011-10-08  Bruno Haible  <bruno@clisp.org>
11156
11157         gnulib-tool: Improve last commit.
11158         * gnulib-tool (func_modules_transitive_closure): Simplify code.
11159         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
11160         ignore dependencies that are not among the modules list.
11161
11162 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
11163
11164         gnulib-tool: don't follow dependencies to avoided modules
11165         This fixes a bug that is related to the previous one.
11166         * gnulib-tool (func_modules_transitive_closure)
11167         (func_emit_autoconf_snippets):
11168         Check whether a dependency is acceptable before using it.
11169         (--extract-dependencies): Report an error if --avoid is also used,
11170         since this combination of options is not yet supported.
11171
11172         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
11173         Problem reported by Peter Dyballa in
11174         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
11175         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
11176         when echoing "$condition".
11177
11178 2011-10-07  Bruno Haible  <bruno@clisp.org>
11179
11180         Fix documentation about math functions on MacOS X.
11181         * doc/posix-functions/exp2.texi: Don't say the function is missing on
11182         MacOS X 10.5.
11183         * doc/posix-functions/fdim.texi: Likewise.
11184         * doc/posix-functions/feclearexcept.texi: Likewise.
11185         * doc/posix-functions/fegetenv.texi: Likewise.
11186         * doc/posix-functions/fegetround.texi: Likewise.
11187         * doc/posix-functions/feholdexcept.texi: Likewise.
11188         * doc/posix-functions/feraiseexcept.texi: Likewise.
11189         * doc/posix-functions/fesetenv.texi: Likewise.
11190         * doc/posix-functions/fesetround.texi: Likewise.
11191         * doc/posix-functions/fetestexcept.texi: Likewise.
11192         * doc/posix-functions/feupdateenv.texi: Likewise.
11193         * doc/posix-functions/fmax.texi: Likewise.
11194         * doc/posix-functions/fmin.texi: Likewise.
11195         * doc/posix-functions/log2.texi: Likewise.
11196         * doc/posix-functions/modff.texi: Likewise.
11197         * doc/posix-functions/nan.texi: Likewise.
11198         * doc/posix-functions/nanf.texi: Likewise.
11199         * doc/posix-functions/nextafterf.texi: Likewise.
11200         * doc/posix-functions/remquo.texi: Likewise.
11201
11202 2011-10-07  Bruno Haible  <bruno@clisp.org>
11203
11204         modff: Drop assumption about library that defines modff.
11205         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
11206         AC_CHECK_FUNCS.
11207         * modules/modff (Files): Add m4/mathfunc.m4.
11208
11209 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
11210
11211         raise tests: Avoid a GCC warning.
11212         * tests/test-raise.c (handler): Use _Noreturn.
11213
11214 2011-10-07  Bruno Haible  <bruno@clisp.org>
11215
11216         Tests for module 'ldexpf'.
11217         * modules/ldexpf-tests: New file.
11218         * tests/test-ldexpf.c: New file.
11219
11220         New module 'ldexpf'.
11221         * lib/math.in.h (ldexpf): New declaration.
11222         * lib/ldexpf.c: New file.
11223         * m4/ldexpf.m4: New file.
11224         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
11225         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
11226         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
11227         * modules/ldexpf: New file.
11228         * tests/test-math-c++.cc: Check the declaration of ldexpf.
11229         * doc/posix-functions/ldexpf.texi: Mention the new module.
11230
11231 2011-10-06  Bruno Haible  <bruno@clisp.org>
11232
11233         frexpf: Work around problems on IRIX and mingw.
11234         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
11235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
11236         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
11237         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
11238         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
11239         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
11240         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
11241
11242 2011-10-06  Bruno Haible  <bruno@clisp.org>
11243
11244         fabsf: Drop assumption about library that defines fabsf.
11245         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
11246         AC_CHECK_FUNCS.
11247         * modules/fabsf (Files): Add m4/mathfunc.m4.
11248
11249 2011-10-06  Bruno Haible  <bruno@clisp.org>
11250
11251         frexpf: Drop assumption about library that defines frexpf.
11252         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
11253         'int *', 'float *', 'long double *', 'float', 'long double'.
11254         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
11255         AC_CHECK_FUNCS.
11256         * modules/frexpf (Files): Add m4/mathfunc.m4.
11257
11258         Tests for module 'frexpf'.
11259         * modules/frexpf-tests: New file.
11260         * tests/test-frexpf.c: New file.
11261
11262         New module 'frexpf'.
11263         * lib/math.in.h (frexpf): New declaration.
11264         * lib/frexpf.c: New file.
11265         * m4/frexpf.m4: New file.
11266         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
11267         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
11268         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
11269         * modules/frexpf: New file.
11270         * tests/test-math-c++.cc: Check the declaration of frexpf.
11271         * doc/posix-functions/frexpf.texi: Mention the new module.
11272
11273 2011-10-06  Bruno Haible  <bruno@clisp.org>
11274
11275         math: Sort function declarations of math.in.h.
11276         * lib/math.in.h (frexp, logb): Move declarations.
11277
11278 2011-10-05  Bruno Haible  <bruno@clisp.org>
11279
11280         Tests for module 'modff'.
11281         * modules/modff-tests: New file.
11282         * tests/test-modff.c: New file.
11283
11284         New module 'modff'.
11285         * lib/math.in.h (modff): New declaration.
11286         * lib/modff.c: New file.
11287         * m4/modff.m4: New file.
11288         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
11289         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
11290         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
11291         * modules/modff: New file.
11292         * tests/test-math-c++.cc: Check the declaration of modff.
11293         * doc/posix-functions/modff.texi: Mention the new module.
11294
11295         modf tests: Make test sharper.
11296         * tests/test-modf.c (main): Strengthen upper bound.
11297
11298         modf: Use a .m4 file.
11299         * m4/modf.m4: New file.
11300         * modules/modf (Files): Add it.
11301         (configure.ac): Just invoke gl_FUNC_MODF.
11302
11303 2011-10-05  Bruno Haible  <bruno@clisp.org>
11304
11305         Tests for module 'fmodf'.
11306         * modules/fmodf-tests: New file.
11307         * tests/test-fmodf.c: New file.
11308
11309         New module 'fmodf'.
11310         * lib/math.in.h (fmodf): New declaration.
11311         * lib/fmodf.c: New file.
11312         * m4/fmodf.m4: New file.
11313         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
11314         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
11315         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
11316         * modules/fmodf: New file.
11317         * tests/test-math-c++.cc: Check the declaration of fmodf.
11318         * doc/posix-functions/fmodf.texi: Mention the new module.
11319
11320         fmod: Use a .m4 file.
11321         * m4/fmod.m4: New file.
11322         * modules/fmod (Files): Add it.
11323         (configure.ac): Just invoke gl_FUNC_FMOD.
11324
11325 2011-10-05  Bruno Haible  <bruno@clisp.org>
11326
11327         Tests for module 'fabsf'.
11328         * modules/fabsf-tests: New file.
11329         * tests/test-fabsf.c: New file.
11330
11331         New module 'fabsf'.
11332         * lib/math.in.h (fabsf): New declaration.
11333         * lib/fabsf.c: New file.
11334         * m4/fabsf.m4: New file.
11335         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
11336         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
11337         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
11338         * modules/fabsf: New file.
11339         * tests/test-math-c++.cc: Check the declaration of fabsf.
11340         * doc/posix-functions/fabsf.texi: Mention the new module.
11341
11342         fabs: Use a .m4 file.
11343         * m4/fabs.m4: New file.
11344         * modules/fabs (Files): Add it.
11345         (configure.ac): Just invoke gl_FUNC_FABS.
11346
11347 2011-10-05  Jim Meyering  <meyering@redhat.com>
11348
11349         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
11350         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
11351         ls -lL regression introduced in coreutils-8.12, it does so at the
11352         cost of an additional stat call in the common case.  Besides, now
11353         that the kernel change that prompted commit 95f7c57f has been reverted
11354         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
11355         we have no use for commit 95f7c57f, "file-has-acl: use
11356         acl_extended_file_nofollow if available".
11357
11358 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
11359
11360         file-has-acl: revert unintended change in behavior of ls -L
11361         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
11362         derived from...
11363         (file_has_acl): ...code here.  Call it.
11364         This problem was introduced with 2011-07-22 commit 95f7c57f,
11365         "file-has-acl: use acl_extended_file_nofollow if available".
11366         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
11367
11368 2011-10-03  Bruno Haible  <bruno@clisp.org>
11369
11370         poll: Avoid link errors on MSVC.
11371         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
11372         * modules/poll (Depends-on): Add sockets.
11373         (Link): New section.
11374         * NEWS: Mention the change.
11375         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
11376         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
11377         $(LIB_POLL) instead of $(LIBSOCKET).
11378
11379 2011-10-03  Bruno Haible  <bruno@clisp.org>
11380
11381         sys_select tests: Fix link error on MSVC 9.
11382         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
11383         with $(LIB_SELECT) instead of $(LIBSOCKET).
11384
11385 2011-10-03  Bruno Haible  <bruno@clisp.org>
11386
11387         sys_select: Fix compilation error on mingw.
11388         * lib/sys_select.in.h: On native Windows, include <io.h>.
11389
11390 2011-10-03  Bruno Haible  <bruno@clisp.org>
11391
11392         wmemset: Support for MSVC.
11393         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
11394         whether wmemset() exists.
11395
11396 2011-10-03  Bruno Haible  <bruno@clisp.org>
11397
11398         wmemmove: Support for MSVC.
11399         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
11400         whether wmemmove() exists.
11401
11402 2011-10-03  Bruno Haible  <bruno@clisp.org>
11403
11404         wmemcpy: Support for MSVC.
11405         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
11406         whether wmemcpy() exists.
11407
11408 2011-10-03  Bruno Haible  <bruno@clisp.org>
11409
11410         wmemcmp: Support for MSVC.
11411         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
11412         whether wmemcmp() exists.
11413
11414 2011-10-03  Bruno Haible  <bruno@clisp.org>
11415
11416         wmemchr: Support for MSVC.
11417         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
11418         whether wmemchr() exists.
11419
11420 2011-10-03  Bruno Haible  <bruno@clisp.org>
11421
11422         glthread/*, strsignal: Support for MSVC.
11423         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
11424         including <winsock.h> on MSVC 9.
11425         * lib/glthread/lock.h: Likewise.
11426         * lib/glthread/thread.h: Likewise.
11427         * lib/glthread/tls.h: Likewise.
11428         * lib/glthread/yield.h: Likewise.
11429         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
11430         if HAVE_UNISTD_H is false.
11431         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
11432
11433 2011-10-03  Bruno Haible  <bruno@clisp.org>
11434
11435         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
11436         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
11437         Set to 100000.
11438
11439 2011-10-03  Bruno Haible  <bruno@clisp.org>
11440
11441         acl: Fix specification.
11442         * lib/file-has-acl.c (file_has_acl): Fix specification.
11443
11444 2011-10-03  Bruno Haible  <bruno@clisp.org>
11445
11446         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
11447         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
11448         (compute_curr_prefix, shared_library_fullname,
11449         find_shared_library_fullname, get_shared_library_fullname, relocate):
11450         Use it together with PIC && INSTALLDIR.
11451         Reported by <jojelino@gmail.com>
11452         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
11453
11454 2011-10-01  Jim Meyering  <meyering@redhat.com>
11455
11456         maint.mk: adjust a release-related rule not to require use of gzip
11457         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
11458         Instead, check each file in $(DIST_ARCHIVES).  This is better for
11459         projects that build only .tar.xz files.  Also fix an erroneous test.
11460
11461         test-linkat: don't leave behind a temporary file
11462         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
11463         Otherwise, coreutils' "make distcheck" would fail with this:
11464           Only in /c/cu/tests/torture/coreutils/test/\
11465             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
11466           make[2]: *** [my-distcheck] Error 1
11467
11468         float, math: add omitted file
11469         * lib/itold.c: Add file, required for yesterday's float change.
11470
11471 2011-10-01  Bruno Haible  <bruno@clisp.org>
11472
11473         isinf: Fix for OpenBSD/x86.
11474         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
11475         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
11476         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
11477
11478 2011-10-01  Bruno Haible  <bruno@clisp.org>
11479
11480         isfinite: Fix syntax error in configure test.
11481         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
11482
11483         isfinite: Fix typo.
11484         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
11485         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
11486
11487 2011-10-01  Bruno Haible  <bruno@clisp.org>
11488
11489         nonblocking tests: Fix test failure on Linux/IA-64.
11490         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
11491         Set to 270000.
11492
11493 2011-10-01  Bruno Haible  <bruno@clisp.org>
11494
11495         mkfifoat tests: Fix a test failure on mingw.
11496         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
11497         with error ENOSYS.
11498
11499 2011-09-30  Bruno Haible  <bruno@clisp.org>
11500
11501         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
11502         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
11503         'long double'. Set REPLACE_ITOLD.
11504         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
11505         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
11506         * lib/itold.c: New file.
11507         * modules/float (Files): Add lib/itold.c.
11508         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
11509         (Makefile.am): Substitute REPLACE_ITOLD.
11510         * modules/math (Depends-on): Add float.
11511         (Makefile.am): Substitute REPLACE_ITOLD.
11512         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
11513         * doc/posix-headers/math.texi: Likewise.
11514         * doc/posix-functions/logl.texi: Likewise.
11515
11516 2011-09-30  Bruno Haible  <bruno@clisp.org>
11517
11518         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
11519         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
11520         Set to 140000.
11521
11522 2011-09-30  Bruno Haible  <bruno@clisp.org>
11523
11524         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
11525         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
11526         invocation, say "right after AC_PROG_CC_STDC", not "right after
11527         AC_PROG_CC".
11528         Reported by Gary V. Vaughan <gary@gnu.org>.
11529
11530 2011-09-30  Bruno Haible  <bruno@clisp.org>
11531
11532         Centralize C99 requirement.
11533         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
11534         * modules/stdarg (configure.ac-early): Invoke it instead of
11535         AC_PROG_CC_STDC.
11536         Reported by Gary V. Vaughan and Paul Eggert.
11537
11538 2011-09-29  Bruno Haible  <bruno@clisp.org>
11539
11540         float: Fix LDBL_MAX value on Linux/PowerPC.
11541         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
11542         on Linux/PowerPC.
11543         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
11544         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
11545         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
11546         platform.
11547         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
11548
11549 2011-09-29  Bruno Haible  <bruno@clisp.org>
11550
11551         doc: Improve doc about gl_EARLY.
11552         * doc/gnulib-tool.texi (Initial import): Mention where to place an
11553         AC_PROG_CC_STDC invocation.
11554         Reported by Gary V. Vaughan <gary@gnu.org>.
11555
11556 2011-09-28  Bruno Haible  <bruno@clisp.org>
11557
11558         fgetc, fputc, fread, fwrite tests: Fix link error.
11559         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
11560         on non-MSVC platforms.
11561         * tests/test-fputc.c (main): Likewise.
11562         * tests/test-fread.c (main): Likewise.
11563         * tests/test-fwrite.c (main): Likewise.
11564         Reported by Jim Meyering.
11565
11566 2011-09-27  Bruno Haible  <bruno@clisp.org>
11567
11568         fputc, fwrite tests: Avoid test failure on MSVC.
11569         * tests/test-fgetc.c: Include msvc-inval.h.
11570         (main): Invoke gl_msvc_inval_ensure_handler.
11571         * tests/test-fputc.c: Include msvc-inval.h.
11572         (main): Invoke gl_msvc_inval_ensure_handler.
11573         * tests/test-fread.c: Include msvc-inval.h.
11574         (main): Invoke gl_msvc_inval_ensure_handler.
11575         * tests/test-fwrite.c: Include msvc-inval.h.
11576         (main): Invoke gl_msvc_inval_ensure_handler.
11577         * modules/fgetc-tests (Depends-on): Add msvc-inval.
11578         * modules/fputc-tests (Depends-on): Likewise.
11579         * modules/fread-tests (Depends-on): Likewise.
11580         * modules/fwrite-tests (Depends-on): Likewise.
11581
11582 2011-09-27  Bruno Haible  <bruno@clisp.org>
11583
11584         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
11585         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
11586         (raise): Remove older, duplicated declaration.
11587         (_gl_raise_SIGPIPE): New declaration.
11588         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
11589         (rpl_raise): Remove function.
11590         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
11591         a gnulib-defined SIGPIPE here.
11592         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
11593         'sigprocmask' has detected missing signal-blocking and the module
11594         'sigpipe' is enabled.
11595         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11596
11597 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
11598
11599         base64-tests: avoid memory leak
11600         * tests/test-base64.c (main): Plug memory leak.
11601
11602         base32: new module
11603         * modules/base32: New module.
11604         * lib/base32.c: New file.
11605         * lib/base32.h: Likewise.
11606         * m4/base32.m4: Likewise.
11607         * modules/base32-tests: New test.
11608         * tests/test-base32.c: Likewise.
11609         * MODULES.html.sh (Misc): Mention it.
11610
11611 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11612
11613         gnulib: use more-standard license notice wording
11614         * gnulib-tool (func_emit_copyright_notice): When emitting a
11615         license notice into a file, use the standard wording as suggested
11616         by the current information for GNU maintainers, except say "file"
11617         rather than "program".  The new wording gives a license version
11618         number, which addresses an issue raised by Glenn Morris in
11619         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
11620         * m4/onceonly.m4: Use that same wording here, too.
11621
11622         dup2: minor simplification
11623         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
11624         as lib/dup2.c no longer uses 'inline'.
11625
11626 2011-09-25  Bruno Haible  <bruno@clisp.org>
11627
11628         strings: Fix compilation error on MSVC.
11629         * lib/strings.in.h: Include <stddef.h> for size_t.
11630
11631 2011-09-25  Bruno Haible  <bruno@clisp.org>
11632
11633         fflush et al.: Document limitation on MSVC.
11634         * doc/posix-functions/fflush.texi: Document possible crash in handling
11635         mode other than DEFAULT_HANDLING.
11636         * doc/posix-functions/fgetc.texi: Likewise.
11637         * doc/posix-functions/fputc.texi: Likewise.
11638         * doc/posix-functions/fread.texi: Likewise.
11639         * doc/posix-functions/fwrite.texi: Likewise.
11640
11641 2011-09-25  Bruno Haible  <bruno@clisp.org>
11642
11643         msvc-inval: Allow three invalid parameter handling modes.
11644         * lib/msvc-inval.h: Don't include <stdlib.h> here.
11645         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
11646         macros.
11647         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
11648         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
11649         SANE_LIBRARY_HANDLING as a no-op.
11650         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
11651         <stdlib.h>.
11652         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
11653
11654 2011-09-25  Bruno Haible  <bruno@clisp.org>
11655
11656         msvc-inval: Make handler multithread-safe.
11657         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
11658         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
11659         declarations.
11660         (gl_msvc_inval_current): New declaration.
11661         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11662         Operate on the structure returned by gl_msvc_inval_current().
11663         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
11664         Remove varaiables.
11665         (tls_index, tls_initialized): New variables.
11666         (not_per_thread): New variable.
11667         (gl_msvc_inval_current): New function.
11668         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
11669         returned by gl_msvc_inval_current().
11670
11671 2011-09-25  Bruno Haible  <bruno@clisp.org>
11672
11673         msvc-inval: Install handler globally.
11674         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
11675         !_MSC_VER.
11676         (gl_msvc_invalid_parameter_handler): Remove declaration.
11677         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
11678         declarations.
11679         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11680         Install the handler globally, don't uninstall it.
11681         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
11682         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
11683         currently valid, call RaiseException instead.
11684         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
11685         for !_MSC_VER.
11686
11687 2011-09-25  Bruno Haible  <bruno@clisp.org>
11688
11689         strerror_r-posix: Fix for MSVC 9.
11690         * lib/strerror_r.c (local_snprintf): New function.
11691         (snprintf): Define to local_snprintf, not to _snprintf.
11692
11693 2011-09-25  Bruno Haible  <bruno@clisp.org>
11694
11695         ftruncate: Support for MSVC 9.
11696         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
11697         (chsize_nothrow): New function.
11698         (chsize): Redefine as a macro.
11699         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
11700         * modules/ftruncate (Depends-on): Add msvc-inval.
11701
11702 2011-09-25  Bruno Haible  <bruno@clisp.org>
11703
11704         New module 'fstat'.
11705         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
11706         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
11707         * lib/fchdir.c (rpl_fstat): Remove function.
11708         * m4/fstat.m4: New file.
11709         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
11710         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
11711         declared.
11712         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
11713         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
11714         * modules/fstat: New file.
11715         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
11716         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
11717         is set.
11718         * doc/posix-functions/fstat.texi: Mention the new module and the
11719         problem on MSVC.
11720         * NEWS: Mention the change.
11721         * modules/acl (Depends-on): Add fstat.
11722         * modules/chdir-safer (Depends-on): Likewise.
11723         * modules/chown (Depends-on): Likewise.
11724         * modules/copy-file (Depends-on): Likewise.
11725         * modules/fchdir (Depends-on): Likewise.
11726         * modules/fdopendir (Depends-on): Likewise.
11727         * modules/fopen (Depends-on): Likewise.
11728         * modules/fts (Depends-on): Likewise.
11729         * modules/getcwd (Depends-on): Likewise.
11730         * modules/isapipe (Depends-on): Likewise.
11731         * modules/linkat (Depends-on): Likewise.
11732         * modules/lseek (Depends-on): Likewise.
11733         * modules/mkdir-p (Depends-on): Likewise.
11734         * modules/open (Depends-on): Likewise.
11735         * modules/openat (Depends-on): Likewise.
11736         * modules/read-file (Depends-on): Likewise.
11737         * modules/renameat (Depends-on): Likewise.
11738         * modules/utimens (Depends-on): Likewise.
11739
11740 2011-09-25  Bruno Haible  <bruno@clisp.org>
11741
11742         linkat: Fix compilation on MSVC 9.
11743         * lib/linkat.c: Don't include <stdint.h>.
11744
11745 2011-09-25  Bruno Haible  <bruno@clisp.org>
11746
11747         fclose: Support for MSVC 9.
11748         * lib/fclose.c: Include msvc-inval.h.
11749         (fclose_nothrow): New function.
11750         (rpl_fclose): Use it.
11751         * modules/fclose (Depends-on): Add msvc-inval.
11752         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
11753
11754 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11755
11756         dup2: minor simplifications
11757         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
11758         that it's a performance win.
11759         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
11760         ! defined __CYGWIN__)" to "ifdef F_GETFL".
11761
11762 2011-09-24  Jim Meyering  <meyering@redhat.com>
11763
11764         test-futimens: avoid a warning from gcc -Wshadow
11765         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
11766         to avoid a shadowing warning.
11767
11768 2011-09-24  Bruno Haible  <bruno@clisp.org>
11769
11770         fdopen: Support for MSVC 9.
11771         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
11772         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
11773         * lib/fdopen.c: Include msvc-inval.h.
11774         (fdopen_nothrow): New function.
11775         (rpl_fdopen): Use it.
11776         * modules/fdopen (Depends-on): Add msvc-inval.
11777         * modules/fclose-tests (Depends-on): Add fdopen.
11778         * modules/fflush-tests (Depends-on): Likewise.
11779         * modules/fgetc-tests (Depends-on): Likewise.
11780         * modules/fputc-tests (Depends-on): Likewise.
11781         * modules/fread-tests (Depends-on): Likewise.
11782         * modules/freopen-tests (Depends-on): Likewise.
11783         * modules/fseeko-tests (Depends-on): Likewise.
11784         * modules/ftello-tests (Depends-on): Likewise.
11785         * modules/fwrite-tests  (Depends-on): Likewise.
11786         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
11787
11788 2011-09-24  Bruno Haible  <bruno@clisp.org>
11789
11790         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
11791         * modules/fgetc-tests (Depends-on): Add unistd.
11792         * modules/fputc-tests (Depends-on): Likewise.
11793         * modules/fread-tests (Depends-on): Likewise.
11794         * modules/fwrite-tests (Depends-on): Likewise.
11795
11796 2011-09-24  Bruno Haible  <bruno@clisp.org>
11797
11798         dup: Simplify autoconf test.
11799         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
11800         on gl_MSVC_INVAL's result.
11801
11802 2011-09-24  Bruno Haible  <bruno@clisp.org>
11803
11804         Tests for function fwrite().
11805         * modules/fwrite-tests: New file.
11806         * tests/test-fwrite.c: New file.
11807         * modules/stdio-tests (Depends-on): Add fwrite-tests.
11808
11809         Tests for function fread().
11810         * modules/fread-tests: New file.
11811         * tests/test-fread.c: New file.
11812         * modules/stdio-tests (Depends-on): Add fread-tests.
11813
11814         Activate fputc tests.
11815         * modules/stdio-tests (Depends-on): Add fputc-tests.
11816
11817         Enhance fgetc, fputc tests.
11818         * tests/test-fgetc.c (main): Also test the stream's error indicator.
11819         * tests/test-fputc.c (main): Likewise.
11820
11821 2011-09-24  Bruno Haible  <bruno@clisp.org>
11822
11823         write: Support for MSVC 9.
11824         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11825         is not 1.
11826         * lib/write.c (write_nothrow): New function.
11827         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
11828         not 1. Use write_nothrow.
11829         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
11830         invalid parameter handler.
11831         (gl_PREREQ_WRITE): New macro.
11832         * modules/write (Depends-on): Add msvc-inval.
11833         (configure.ac): Invoke gl_PREREQ_WRITE.
11834         * doc/posix-functions/write.texi: Mention the problem on MSVC.
11835
11836 2011-09-24  Bruno Haible  <bruno@clisp.org>
11837
11838         read: Fix last commit.
11839         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
11840
11841 2011-09-24  Bruno Haible  <bruno@clisp.org>
11842
11843         dup2: Fix last commit.
11844         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
11845         (rpl_dup2): Disable fcntl workaround on native Windows.
11846
11847         sigprocmask: Make code safer.
11848         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
11849         section that changes macro definitions for this compilation unit.
11850
11851 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11852
11853         dup2: clarify by coalescing Windows-specific material
11854         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
11855         "msvc-nothrow.h"' to the Windows-specific section, so that the
11856         Emacs source need not contain these include files.
11857         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
11858         Windows-specific fixes into this function rather than just the
11859         nothrow fix, as this shortens and clarifies the code.  Always
11860         define as a function, as that's a bit cleaner than having it be
11861         sometimes a function and sometimes a macro.
11862         (rpl_dup2): Move the Windows-specific stuff out of here and into
11863         ms_windows_dup2.  Don't protect the Haiku-related fix with
11864         "#if !defined __linux__", as the same code also works around
11865         a Linux kernel bug, and it doesn't add any system calls on any
11866         platform.  Add comment about FreeBSD 6.1.
11867
11868         sigprocmask: move #include directive
11869         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
11870         Windows-specific section, so that the Emacs source need not
11871         contain msvc-inval.h.
11872
11873 2011-09-23  Bruno Haible  <bruno@clisp.org>
11874
11875         read: Support for MSVC 9.
11876         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11877         is not 1.
11878         * lib/read.c (read_nothrow): New function.
11879         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
11880         read_nothrow.
11881         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
11882         invalid parameter handler.
11883         (gl_PREREQ_READ): New macro.
11884         * modules/read (Depends-on): Add msvc-inval.
11885         (configure.ac): Invoke gl_PREREQ_READ.
11886         * doc/posix-functions/read.texi: Mention the problem on MSVC.
11887
11888 2011-09-23  Bruno Haible  <bruno@clisp.org>
11889
11890         close: Support for MSVC 9.
11891         * lib/close.c: Include <errno.h>, msvc-inval.h.
11892         (close_nothrow): New function.
11893         (rpl_close): Use it.
11894         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
11895         invalid parameter handler.
11896         * modules/close (Depends-on): Add msvc-inval.
11897         * modules/dup2-tests (Depends-on): Add close.
11898         * modules/dup3-tests (Depends-on): Likewise.
11899         * modules/fcntl-tests (Depends-on): Likewise.
11900         * modules/spawn-pipe-tests (Depends-on): Likewise.
11901         * modules/unistd-safer-tests (Depends-on): Likewise.
11902         * doc/posix-functions/close.texi: Mention the problem on MSVC.
11903
11904 2011-09-23  Bruno Haible  <bruno@clisp.org>
11905
11906         New module 'dup'.
11907         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
11908         Allow replacement.
11909         * lib/dup.c: New file.
11910         * lib/fchdir.c (rpl_dup): Remove function.
11911         * m4/dup.m4: New file.
11912         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
11913         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
11914         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
11915         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
11916         * modules/dup: New file.
11917         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
11918         'dup' module is in use.
11919         * modules/fdopendir (Depends-on): Add dup.
11920         * modules/fdutimensat-tests (Depends-on): Likewise.
11921         * modules/fts (Depends-on): Likewise.
11922         * modules/futimens-tests (Depends-on): Likewise.
11923         * modules/posix_spawnp-tests (Depends-on): Likewise.
11924         * modules/unistd-safer-tests (Depends-on): Likewise.
11925         * modules/utimens-tests (Depends-on): Likewise.
11926         * doc/posix-functions/dup.texi: Mention the new module and the problem
11927         on MSVC.
11928
11929 2011-09-23  Bruno Haible  <bruno@clisp.org>
11930
11931         getdtablesize: Support for MSVC 9.
11932         * lib/getdtablesize.c: Include msvc-inval.h.
11933         (_setmaxstdio_nothrow): New function.
11934         (_setmaxstdio): Redefine it.
11935         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
11936         * modules/getdtablesize (Depends-on): Add msvc-inval.
11937         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
11938
11939 2011-09-23  Bruno Haible  <bruno@clisp.org>
11940
11941         signal-h: Rename from signal.
11942         * modules/signal-h: Renamed from modules/signal.
11943         * modules/pthread_sigmask (Depends-on): Update.
11944         * modules/raise (Depends-on): Likewise.
11945         * modules/sigaction (Depends-on): Likewise.
11946         * modules/sigpipe (Depends-on): Likewise.
11947         * modules/sigprocmask (Depends-on): Likewise.
11948         * modules/sys_select (Depends-on): Likewise.
11949         * modules/signal-h-tests: Renamed from modules/signal-tests.
11950         (Files, Depends-on, Makefile.am): Update.
11951         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
11952         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
11953         (Files, Makefile.am): Update.
11954         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
11955         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
11956         * modules/signal: New placeholder file.
11957         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
11958         * doc/posix-headers/signal.texi: Update.
11959         * NEWS: Mention the change.
11960
11961 2011-09-23  Bruno Haible  <bruno@clisp.org>
11962
11963         sigprocmask: Avoid crashes through signal() on MSVC 9.
11964         * lib/sigprocmask.c: Include msvc-inval.h.
11965         (signal_nothrow): New function.
11966         (signal): Redefine it.
11967         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
11968         * modules/sigprocmask (Depends-on): Add msvc-inval.
11969         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
11970
11971 2011-09-23  Bruno Haible  <bruno@clisp.org>
11972
11973         Tests for module 'raise'.
11974         * modules/raise-tests: New file.
11975         * tests/test-raise.c: New file.
11976
11977         raise: Support for MSVC.
11978         * lib/signal.in.h (raise): New declaration.
11979         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
11980         for native Windows platforms.
11981         * m4/raise.m4: New file.
11982         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
11983         HAVE_RAISE, REPLACE_RAISE.
11984         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
11985         REPLACE_RAISE.
11986         * modules/raise (Status, Notice): Remove fields.
11987         (Files): Add m4/raise.m4.
11988         (Depends-on): Add signal, msvc-inval.
11989         (configure.ac): Use the common idioms.
11990         (Maintainer): Add me.
11991         * tests/test-signal-c++.cc: Check the signature of raise.
11992         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
11993
11994 2011-09-23  Bruno Haible  <bruno@clisp.org>
11995
11996         pipe2: Fix compilation on pre-C99 compilers.
11997         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
11998
11999 2011-09-23  Bruno Haible  <bruno@clisp.org>
12000
12001         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
12002         * lib/msvc-nothrow.h: New file.
12003         * lib/msvc-nothrow.c: New file.
12004         * m4/msvc-nothrow.m4: New file.
12005         * modules/msvc-nothrow: New file.
12006         * lib/dup2.c: Include msvc-nothrow.h.
12007         (rpl_dup2): No need to protect _get_osfhandle call here.
12008         * lib/accept4.c: Include msvc-nothrow.h.
12009         * lib/error.c: Likewise.
12010         * lib/fcntl.c: Likewise.
12011         * lib/lseek.c: Likewise.
12012         * lib/nonblocking.c: Likewise.
12013         * lib/poll.c: Likewise.
12014         * lib/read.c: Likewise.
12015         * lib/select.c: Likewise.
12016         * lib/sockets.h: Likewise.
12017         * lib/sockets.c: Likewise.
12018         * lib/stdio-read.c: Likewise.
12019         * lib/stdio-write.c: Likewise.
12020         * lib/write.c: Likewise.
12021         * lib/w32sock.h: Likewise.
12022         * lib/w32spawn.h: Likewise.
12023         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
12024         * lib/fsync.c: Likewise.
12025         * lib/isapipe.c: Likewise.
12026         * modules/dup2 (Depends-on): Add msvc-nothrow.
12027         * modules/accept4 (Depends-on): Likewise.
12028         * modules/error (Depends-on): Likewise.
12029         * modules/fcntl (Depends-on): Likewise.
12030         * modules/lseek (Depends-on): Likewise.
12031         * modules/nonblocking (Depends-on): Likewise.
12032         * modules/poll (Depends-on): Likewise.
12033         * modules/read (Depends-on): Likewise.
12034         * modules/select (Depends-on): Likewise.
12035         * modules/sockets (Depends-on): Likewise.
12036         * modules/sigpipe (Depends-on): Likewise.
12037         * modules/write (Depends-on): Likewise.
12038         * modules/accept (Depends-on): Likewise.
12039         * modules/bind (Depends-on): Likewise.
12040         * modules/connect (Depends-on): Likewise.
12041         * modules/gethostname (Depends-on): Likewise.
12042         * modules/getpeername (Depends-on): Likewise.
12043         * modules/getsockname (Depends-on): Likewise.
12044         * modules/getsockopt (Depends-on): Likewise.
12045         * modules/ioctl (Depends-on): Likewise.
12046         * modules/listen (Depends-on): Likewise.
12047         * modules/recv (Depends-on): Likewise.
12048         * modules/recvfrom (Depends-on): Likewise.
12049         * modules/send (Depends-on): Likewise.
12050         * modules/sendto (Depends-on): Likewise.
12051         * modules/setsockopt (Depends-on): Likewise.
12052         * modules/shutdown (Depends-on): Likewise.
12053         * modules/socket (Depends-on): Likewise.
12054         * modules/execute (Depends-on): Likewise.
12055         * modules/spawn-pipe (Depends-on): Likewise.
12056         * modules/flock (Depends-on): Likewise.
12057         * modules/fsync (Depends-on): Likewise.
12058         * modules/isapipe (Depends-on): Likewise.
12059         * tests/test-cloexec.c: Include msvc-nothrow.h.
12060         * tests/test-dup-safer.c: Likewise.
12061         * tests/test-dup2.c: Likewise.
12062         * tests/test-dup3.c: Likewise.
12063         * tests/test-fcntl.c: Likewise.
12064         * tests/test-pipe.c: Likewise.
12065         * tests/test-pipe2.c: Likewise.
12066         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
12067         * modules/unistd-safer-tests (Depends-on): Likewise.
12068         * modules/dup2-tests (Depends-on): Likewise.
12069         * modules/dup3-tests (Depends-on): Likewise.
12070         * modules/fcntl-tests (Depends-on): Likewise.
12071         * modules/pipe-posix-tests (Depends-on): Likewise.
12072         * modules/pipe2-tests (Depends-on): Likewise.
12073
12074 2011-09-23  Bruno Haible  <bruno@clisp.org>
12075
12076         dup2: Make code more maintainable.
12077         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
12078         (rpl_dup2): Use it.
12079         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
12080         * modules/dup2 (configure.ac): Invoke it.
12081         Reported by Paul Eggert.
12082
12083 2011-09-23  Bruno Haible  <bruno@clisp.org>
12084
12085         msvc-inval: Fix compilation error.
12086         * lib/msvc-inval.h: Include <excpt.h>.
12087
12088 2011-09-23  Bruno Haible  <bruno@clisp.org>
12089
12090         mkdir: Tweak for MSVC 9.
12091         * lib/sys_stat.in.h: Update comments.
12092         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
12093
12094         Tests for module 'chdir'.
12095         * modules/chdir-tests: New file.
12096         * tests/test-chdir.c: New file.
12097
12098         New module 'chdir'.
12099         * modules/chdir: New file.
12100         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
12101         (chdir): New declaration.
12102         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
12103         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
12104         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
12105         * tests/test-unistd-c++.cc: Check signature of chdir.
12106         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
12107         * modules/chdir-long (Depends-on): Add chdir.
12108         * modules/fchdir (Depends-on): Likewise.
12109         * modules/rename (Depends-on): Likewise.
12110         * modules/savewd (Depends-on): Likewise.
12111
12112         rmdir: Support for mingw, MSVC 9.
12113         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
12114         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
12115
12116         getcwd: Tweak for MSVC 9.
12117         * lib/unistd.in.h: Update comments.
12118         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
12119
12120 2011-09-22  Bruno Haible  <bruno@clisp.org>
12121
12122         strerror_r-posix: Avoid a link error on MSVC.
12123         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
12124         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
12125
12126 2011-09-22  Bruno Haible  <bruno@clisp.org>
12127
12128         select: Avoid link errors on MSVC.
12129         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
12130         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
12131         * modules/pselect (Link): Likewise.
12132         * NEWS: Mention the change.
12133         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
12134         test-select-stdin against $(LIB_SELECT).
12135         * modules/pselect-tests (Makefile.am): Link test-pselect against
12136         $(LIB_SELECT).
12137
12138 2011-09-22  Bruno Haible  <bruno@clisp.org>
12139
12140         select: Avoid compilation error on MSVC.
12141         * lib/select.c: Don't include <stdbool.h>.
12142
12143 2011-09-21  Bruno Haible  <bruno@clisp.org>
12144
12145         Consolidate all uses of PATH_MAX in *.m4 files.
12146         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
12147         macros.
12148         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
12149         and gl_PATHMAX_SNIPPET.
12150         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12151         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12152         * modules/chdir-long (Files): Add m4/pathmax.m4.
12153         * modules/getcwd (Files): Likewise.
12154
12155 2011-09-21  Bruno Haible  <bruno@clisp.org>
12156
12157         ftruncate: Un-deprecate, concentrate on Win32 support.
12158         * modules/ftruncate (Status, Notice): Remove sections.
12159         (Depends-on): Add largefile.
12160         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
12161         non-mingw platforms.
12162         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
12163         include <io.h>.
12164         * modules/perror-tests (Depends-on): Add ftruncate.
12165         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
12166         'ftruncate' module.
12167
12168 2011-09-21  Bruno Haible  <bruno@clisp.org>
12169
12170         Add dependencies to new dirent related modules.
12171         * modules/opendir (Depends-on): Add closedir.
12172         * modules/getcwd (Depends-on): Add opendir, closedir.
12173         * modules/dirent-safer-tests (Depends-on): Likewise.
12174         * modules/fdopendir-tests (Depends-on): Likewise.
12175         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
12176         * modules/renameat-tests (Depends-on): Likewise.
12177
12178 2011-09-21  Bruno Haible  <bruno@clisp.org>
12179
12180         opendir: Avoid compilation error on mingw.
12181         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
12182         * modules/opendir (Depends-on): Add unistd.
12183
12184 2011-09-21  Bruno Haible  <bruno@clisp.org>
12185
12186         ftruncate tests: Avoid a test failure on mingw.
12187         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
12188
12189 2011-09-21  Bruno Haible  <bruno@clisp.org>
12190
12191         select tests: Avoid test failures on OSF/1 5.1 and mingw.
12192         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
12193         native Windows.
12194
12195 2011-09-21  Bruno Haible  <bruno@clisp.org>
12196
12197         New module 'fdopen'.
12198         * lib/stdio.in.h (fdopen): New declaration.
12199         * lib/fdopen.c: New file.
12200         * m4/fdopen.m4: New file.
12201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
12202         REPLACE_FDOPEN.
12203         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
12204         REPLACE_FDOPEN.
12205         * modules/fdopen: New file.
12206         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
12207         * tests/test-stdio-c++.cc: Check signature of fdopen.
12208         * doc/posix-functions/fdopen.texi: Mention the new module.
12209
12210 2011-09-21  Bruno Haible  <bruno@clisp.org>
12211
12212         unlockpt tests: Avoid test failure on NetBSD 5.1.
12213         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
12214         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
12215
12216 2011-09-21  Bruno Haible  <bruno@clisp.org>
12217
12218         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
12219         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
12220         * tests/test-getlogin_r.c (main): Likewise.
12221
12222 2011-09-20  Bruno Haible  <bruno@clisp.org>
12223
12224         time tests: Don't require pid_t.
12225         * doc/posix-headers/time.texi: Revert last change.
12226         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
12227         * tests/test-time.c: Comment out the check for pid_t.
12228
12229 2011-09-20  Bruno Haible  <bruno@clisp.org>
12230
12231         fsync tests: Avoid a test failure on mingw.
12232         * tests/test-fsync.c (main): Allow a failure with EIO.
12233
12234 2011-09-20  Bruno Haible  <bruno@clisp.org>
12235
12236         euidaccess: Update comments.
12237         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
12238
12239 2011-09-20  Bruno Haible  <bruno@clisp.org>
12240
12241         Ensure EBADF returns for socket functions on mingw.
12242         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
12243         descriptor is invalid.
12244         * lib/bind.c (rpl_bind): Likewise.
12245         * lib/connect.c (rpl_connect): Likewise.
12246         * lib/getpeername.c (rpl_getpeername): Likewise.
12247         * lib/getsockname.c (rpl_getsockname): Likewise.
12248         * lib/getsockopt.c (rpl_getsockopt): Likewise.
12249         * lib/listen.c (rpl_listen): Likewise.
12250         * lib/recv.c (rpl_recv): Likewise.
12251         * lib/recvfrom.c (rpl_recvfrom): Likewise.
12252         * lib/send.c (rpl_send): Likewise.
12253         * lib/sendto.c (rpl_sendto): Likewise.
12254         * lib/setsockopt.c (rpl_setsockopt): Likewise.
12255         * lib/shutdown.c (rpl_shutdown): Likewise.
12256
12257 2011-09-20  Bruno Haible  <bruno@clisp.org>
12258
12259         select tests: EBADF tests.
12260         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
12261         test_bad_fd): New functions.
12262         (test_function): Invoke also test_bad_fd.
12263
12264 2011-09-20  Bruno Haible  <bruno@clisp.org>
12265
12266         Tests for module 'posix_spawn_file_actions_addopen.
12267         * modules/posix_spawn_file_actions_addopen-tests: New file.
12268         * tests/test-posix_spawn_file_actions_addopen.c: New file.
12269
12270         Tests for module 'posix_spawn_file_actions_adddup2'.
12271         * modules/posix_spawn_file_actions_adddup2-tests: New file.
12272         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
12273
12274         Tests for module 'posix_spawn_file_actions_addclose'.
12275         * modules/posix_spawn_file_actions_addclose-tests: New file.
12276         * tests/test-posix_spawn_file_actions_addclose.c: New file.
12277
12278 2011-09-20  Bruno Haible  <bruno@clisp.org>
12279
12280         Tests for module 'unlockpt'.
12281         * modules/unlockpt-tests: New file.
12282         * tests/test-unlockpt.c: New file.
12283         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
12284
12285         Tests for module 'grantpt'.
12286         * modules/grantpt-tests: New file.
12287         * tests/test-grantpt.c: New file.
12288         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
12289
12290 2011-09-20  Bruno Haible  <bruno@clisp.org>
12291
12292         freopen tests: EBADF tests.
12293         * tests/test-freopen.c: Include errno.h, unistd.h.
12294         (main): Add tests for EBADF, commented out for the moment.
12295
12296         fclose tests: EBADF tests.
12297         * tests/test-fclose.c (main): Add tests for EBADF.
12298
12299         fflush tests: EBADF tests.
12300         * tests/test-fflush.c: Include errno.h, macros.h.
12301         (main): Add tests for EBADF.
12302
12303         ftello tests: EBADF tests.
12304         * tests/test-ftello4.sh: New file.
12305         * tests/test-ftello4.c: New file.
12306         * modules/ftello-tests (Files): Add them.
12307         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
12308
12309         fseeko tests: EBADF tests.
12310         * tests/test-fseeko4.sh: New file.
12311         * tests/test-fseeko4.c: New file.
12312         * modules/fseeko-tests (Files): Add them.
12313         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
12314
12315         Tests for function fputc().
12316         * modules/fputc-tests: New file.
12317         * tests/test-fputc.c: New file.
12318         * modules/stdio-tests (Depends-on): Add fputc-tests.
12319
12320         Tests for function fgetc().
12321         * modules/fgetc-tests: New file.
12322         * tests/test-fgetc.c: New file.
12323         * modules/stdio-tests (Depends-on): Add fgetc-tests.
12324
12325         Tests for function fdopen().
12326         * modules/fdopen-tests: New file.
12327         * tests/test-fdopen.c: New file.
12328         * modules/stdio-tests (Depends-on): Add fdopen-tests.
12329
12330         Tests for module 'vdprintf'.
12331         * modules/vdprintf-tests: New file.
12332         * tests/test-vdprintf.c: New file.
12333
12334         Tests for module 'dprintf'.
12335         * modules/dprintf-tests: New file.
12336         * tests/test-dprintf.c: New file.
12337
12338 2011-09-20  Bruno Haible  <bruno@clisp.org>
12339
12340         Tests for module 'ioctl'.
12341         * modules/ioctl-tests: New file.
12342         * tests/test-ioctl.c: New file.
12343
12344 2011-09-20  Bruno Haible  <bruno@clisp.org>
12345
12346         fcntl tests: EBADF tests.
12347         * tests/test-fcntl.c (main): Add more tests for EBADF.
12348
12349 2011-09-20  Bruno Haible  <bruno@clisp.org>
12350
12351         utimensat tests: EBADF tests.
12352         * tests/test-utimensat.c (main): Add tests for EBADF.
12353
12354         renameat tests: EBADF tests.
12355         * tests/test-renameat.c (main): Add tests for EBADF.
12356
12357         mkfifoat tests: EBADF tests.
12358         * tests/test-mkfifoat.c (main): Add tests for EBADF.
12359
12360         readlinkat tests: EBADF tests.
12361         * tests/test-readlinkat.c (main): Add tests for EBADF.
12362
12363         symlinkat tests: EBADF tests.
12364         * tests/test-symlinkat.c (main): Add tests for EBADF.
12365
12366         linkat tests: EBADF tests.
12367         * tests/test-linkat.c (main): Add tests for EBADF.
12368
12369         Tests for module 'faccessat'.
12370         * modules/faccessat-tests: New file.
12371         * tests/test-faccessat.c: New file.
12372
12373         fdopendir tests: EBADF tests.
12374         * tests/test-fdopendir.c (main): Add more tests for EBADF.
12375
12376         openat tests: EBADF tests.
12377         * tests/test-fchownat.c (main): Add tests for EBADF.
12378         * tests/test-fstatat.c (main): Likewise.
12379         * tests/test-mkdirat.c (main): Likewise.
12380         * tests/test-openat.c (main): Likewise.
12381         * tests/test-unlinkat.c (main): Likewise.
12382         * tests/test-fchmodat.c: New file.
12383         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
12384         (Makefile.am): Also run 'test-fchmodat'.
12385
12386 2011-09-20  Bruno Haible  <bruno@clisp.org>
12387
12388         utimens, futimens, fdutimensat tests: EBADF tests.
12389         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
12390
12391         Tests for function fstat().
12392         * modules/fstat-tests: New file.
12393         * tests/test-fstat.c: New file.
12394         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
12395
12396 2011-09-20  Bruno Haible  <bruno@clisp.org>
12397
12398         test-ttyname_r tests: EBADF tests.
12399         * tests/test-ttyname_r.c (main): Add tests for EBADF.
12400
12401         Tests for module 'isatty'.
12402         * modules/isatty-tests: New file.
12403         * tests/test-isatty.c: New file.
12404
12405         Tests for module 'write'.
12406         * modules/write-tests: New file.
12407         * tests/test-write.c: New file.
12408
12409         Tests for module 'read'.
12410         * modules/read-tests: New file.
12411         * tests/test-read.c: New file.
12412
12413         pwrite tests: EBADF tests.
12414         * tests/test-pwrite.c (main): Add tests for EBADF.
12415
12416         pread tests: EBADF tests.
12417         * tests/test-pread.c (main): Add tests for EBADF.
12418
12419         lseek tests: EBADF tests.
12420         * tests/test-lseek.c (main): Add more tests for EBADF.
12421
12422         Tests for module 'ftruncate'.
12423         * modules/ftruncate-tests: New file.
12424         * tests/test-ftruncate.sh: New file.
12425         * tests/test-ftruncate.c: New file.
12426
12427         fsync tests: EBADF tests.
12428         * tests/test-fsync.c (main): Add more tests for EBADF.
12429
12430         fdatasync tests: EBADF tests.
12431         * tests/test-fdatasync.c (main): Add more tests for EBADF.
12432
12433         Tests for module 'fchown'.
12434         * modules/fchown-tests: New file.
12435         * tests/test-fchown.c: New file.
12436
12437         Tests for module 'fchmod'.
12438         * modules/fchmod-tests: New file.
12439         * tests/test-fchmod.c: New file.
12440
12441         fchdir tests: EBADF tests.
12442         * tests/test-fchdir.c (main): Add more tests for EBADF.
12443
12444         dup2 tests: EBADF tests.
12445         * tests/test-dup2.c (main): Add more tests for EBADF.
12446
12447         Tests for module 'dup'.
12448         * modules/dup-tests: New file.
12449         * tests/test-dup.c: New file.
12450
12451         Tests for module 'close'.
12452         * modules/close-tests: New file.
12453         * tests/test-close.c: New file.
12454
12455 2011-09-20  Bruno Haible  <bruno@clisp.org>
12456
12457         Tests for module 'shutdown'.
12458         * modules/shutdown-tests: New file.
12459         * tests/test-shutdown.c: New file.
12460
12461         Tests for module 'setsockopt'.
12462         * modules/setsockopt-tests: New file.
12463         * tests/test-setsockopt.c: New file.
12464
12465         Tests for module 'sendto'.
12466         * modules/sendto-tests: New file.
12467         * tests/test-sendto.c: New file.
12468
12469         Tests for module 'send'.
12470         * modules/send-tests: New file.
12471         * tests/test-send.c: New file.
12472
12473         Tests for module 'recvfrom'.
12474         * modules/recvfrom-tests: New file.
12475         * tests/test-recvfrom.c: New file.
12476
12477         Tests for module 'recv'.
12478         * modules/recv-tests: New file.
12479         * tests/test-recv.c: New file.
12480
12481         Tests for module 'listen'.
12482         * modules/listen-tests: New file.
12483         * tests/test-listen.c: New file.
12484
12485         Tests for module 'getsockopt'.
12486         * modules/getsockopt-tests: New file.
12487         * tests/test-getsockopt.c: New file.
12488
12489         Tests for module 'getsockname'.
12490         * modules/getsockname-tests: New file.
12491         * tests/test-getsockname.c: New file.
12492
12493         Tests for module 'getpeername'.
12494         * modules/getpeername-tests: New file.
12495         * tests/test-getpeername.c: New file.
12496
12497         Tests for module 'connect'.
12498         * modules/connect-tests: New file.
12499         * tests/test-connect.c: New file.
12500
12501         Tests for module 'bind'.
12502         * modules/bind-tests: New file.
12503         * tests/test-bind.c: New file.
12504
12505         accept4 tests: Fix for native Windows.
12506         * tests/test-accept4.c: Include sockets.h.
12507         (main): Invoke gl_sockets_startup.
12508         * modules/accept4-tests (Depends-on): Add sockets.
12509
12510         accept tests: Fix for native Windows.
12511         * tests/test-accept.c: Include sockets.h.
12512         (main): Invoke gl_sockets_startup.
12513         * modules/accept-tests (Depends-on): Add sockets.
12514
12515 2011-09-19  Bruno Haible  <bruno@clisp.org>
12516
12517         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
12518         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
12519         do...while(0).
12520         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
12521         Suggested by Paul Eggert.
12522
12523 2011-09-19  Bruno Haible  <bruno@clisp.org>
12524
12525         sched: Ensure pid_t is defined.
12526         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
12527         not define pid_t.
12528         * lib/sched.in.h: Include <sys/types.h>.
12529         * doc/posix-headers/sched.texi: Mention the pid_t problem.
12530         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12531
12532 2011-09-19  Bruno Haible  <bruno@clisp.org>
12533
12534         msvc-inval: Ensure the entire expansion is a single statement.
12535         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
12536         of braces.
12537
12538 2011-09-19  Jim Meyering  <meyering@redhat.com>
12539
12540         tests: use printf, not echo in init.sh's warn_ function
12541         * tests/init.sh (warn_): Use printf, not echo.  The latter would
12542         misbehave when given strings containing a backslash or starting
12543         with e.g., -n.  James Youngman suggested setting IFS.
12544
12545 2011-09-19  Eric Blake  <eblake@redhat.com>
12546
12547         futimens: enhance test
12548         * tests/test-futimens.h (test_futimens): Also check for EBADF on
12549         closed non-negative fd.
12550
12551         date: accept 'hence' as opposite of 'ago'
12552         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
12553         * tests/test-parse-datetime.c (main): Enhance test.
12554         Suggested by Jesse Wilson.
12555
12556 2011-09-19  Jim Meyering  <meyering@redhat.com>
12557
12558         getcwd: don't fail in a deep directory on a system without openat
12559         Before this change, getcwd would fail when called from a directory
12560         of depth PATH_MAX / 3 or greater.  That was due to the fact that
12561         the non-openat implementation used "..", "../..", "../../..", etc.
12562         to access ancestor directories.  With too many, that string would
12563         be longer than PATH_MAX.
12564         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
12565         using gnulib's openat replacement.
12566         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
12567         we're using the replacement function.
12568
12569 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
12570
12571         maint.mk: avoid warnings from perl about missing files
12572         * top/maint.mk (def_sym_regex): Ignore files listed in
12573         $(gl_other_headers_) that do not exist, say because a project
12574         does not use a corresponding module.
12575
12576 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
12577
12578         stat: use pathmax.h only if needed
12579         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
12580         This is better for Emacs, which does not have a mingw port and
12581         therefore can avoid the pathmax module.
12582
12583         utimens: remove dependency on dup2
12584         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
12585         to work around the Linux kernel bug.
12586         * modules/utimens (Depends-on): Remove dup2.
12587
12588 2011-09-18  Bruno Haible  <bruno@clisp.org>
12589
12590         inet_ntop, inet_pton: Look for it also in libresolv.
12591         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
12592         libnsl, search for it in libresolv.
12593         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12594         Needed on Solaris 7.
12595
12596 2011-09-18  Bruno Haible  <bruno@clisp.org>
12597
12598         accept, accept4 tests: Avoid link error on Solaris.
12599         * modules/accept-tests (Makefile.am): Link test-accept against
12600         $(LIBSOCKET).
12601         * modules/accept4-tests (Makefile.am): Link test-accept4 against
12602         $(LIBSOCKET).
12603
12604         accept4: Avoid link error on Solaris.
12605         * modules/accept4 (Link): New section.
12606
12607         socket functions: Avoid link errors on Solaris.
12608         * modules/accept (Depends-on): Add socketlib.
12609         (Link): New section.
12610         * modules/bind (Depends-on): Add socketlib.
12611         (Link): New section.
12612         * modules/connect (Depends-on): Add socketlib.
12613         (Link): New section.
12614         * modules/getpeername (Depends-on): Add socketlib.
12615         (Link): New section.
12616         * modules/getsockname (Depends-on): Add socketlib.
12617         (Link): New section.
12618         * modules/getsockopt (Depends-on): Add socketlib.
12619         (Link): New section.
12620         * modules/listen (Depends-on): Add socketlib.
12621         (Link): New section.
12622         * modules/recv (Depends-on): Add socketlib.
12623         (Link): New section.
12624         * modules/recvfrom (Depends-on): Add socketlib.
12625         (Link): New section.
12626         * modules/send (Depends-on): Add socketlib.
12627         (Link): New section.
12628         * modules/sendto (Depends-on): Add socketlib.
12629         (Link): New section.
12630         * modules/setsockopt (Depends-on): Add socketlib.
12631         (Link): New section.
12632         * modules/shutdown (Depends-on): Add socketlib.
12633         (Link): New section.
12634         * modules/socket (Depends-on): Add socketlib.
12635         (Link): New section.
12636
12637 2011-09-18  Bruno Haible  <bruno@clisp.org>
12638
12639         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
12640         * tests/test-ptsname.c (main): Terminate the test if it takes longer
12641         than 5 seconds.
12642         * modules/ptsname-tests (configure.ac): Test for alarm.
12643
12644 2011-09-18  Bruno Haible  <bruno@clisp.org>
12645
12646         posix_spawn_file_actions_add*: Fix module dependencies.
12647         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
12648         posix_spawn_file_actions_init.
12649         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
12650         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
12651
12652 2011-09-18  Bruno Haible  <bruno@clisp.org>
12653
12654         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
12655         * tests/test-rename.h (test_rename): Allow error code EEXIST.
12656         * tests/test-renameat.c (main): Likewise.
12657
12658 2011-09-18  Bruno Haible  <bruno@clisp.org>
12659
12660         Tests for module 'accept4'.
12661         * modules/accept4-tests: New file.
12662         * tests/test-accept4.c: New file.
12663
12664 2011-09-18  Bruno Haible  <bruno@clisp.org>
12665
12666         Tests for module 'accept'.
12667         * modules/accept-tests: New file.
12668         * tests/test-accept.c: New file.
12669
12670 2011-09-18  Bruno Haible  <bruno@clisp.org>
12671
12672         dup2: Support for MSVC.
12673         * lib/dup2.c: Include msvc-inval.h.
12674         (rpl_dup2): Handle invalid parameter notifications during dup2 and
12675         _get_osfhandle calls.
12676         * modules/dup2 (Depends-on): Add msvc-inval.
12677         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
12678
12679         New module 'msvc-inval'.
12680         * lib/msvc-inval.h: New file.
12681         * lib/msvc-inval.c: New file.
12682         * m4/msvc-inval.m4: New file.
12683         * modules/msvc-inval: New file.
12684
12685 2011-09-17  Bruno Haible  <bruno@clisp.org>
12686
12687         Tests for module 'pclose'.
12688         * modules/pclose-tests: New file.
12689
12690         New module 'pclose'.
12691         * lib/stdio.in.h (pclose): New declaration.
12692         * lib/pclose.c: New file.
12693         * m4/pclose.m4: New file.
12694         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
12695         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
12696         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
12697         * modules/pclose: New file.
12698         * modules/popen-tests (Depends-on): Add pclose.
12699         * modules/popen-safer-tests (Depends-on): Likewise.
12700         * doc/posix-functions/pclose.texi: Mention the new module.
12701
12702 2011-09-17  Bruno Haible  <bruno@clisp.org>
12703
12704         popen: Support for MSVC.
12705         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
12706         * lib/popen.c (popen): Provide alternate definition for native Windows.
12707         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
12708         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
12709         * modules/popen (Depends-on, configure.ac): Update condition.
12710         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
12711         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
12712         fixed.
12713
12714 2011-09-17  Bruno Haible  <bruno@clisp.org>
12715
12716         isnanl, isnand, isnanf: Work around MSVC bug.
12717         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
12718
12719 2011-09-17  Bruno Haible  <bruno@clisp.org>
12720
12721         sys_socket tests: Fix recent mistake.
12722         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
12723
12724 2011-09-17  Bruno Haible  <bruno@clisp.org>
12725
12726         putenv: Support for MSVC.
12727         * modules/putenv (Depends-on): Add environ.
12728         * lib/putenv.c (environ): Disable declaration.
12729         * lib/unistd.in.h: Update comment.
12730
12731 2011-09-17  Bruno Haible  <bruno@clisp.org>
12732
12733         math: Avoid macro redefinition warnings on MSVC.
12734         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
12735         Undefine before redefining.
12736
12737 2011-09-17  Bruno Haible  <bruno@clisp.org>
12738
12739         doc: Mention functions which are declared as macros.
12740         * doc/posix-functions/*[fl].texi: Mention that some functions are
12741         defined as macros with arguments only.
12742
12743 2011-09-17  Bruno Haible  <bruno@clisp.org>
12744
12745         Add dependencies to new dirent related modules.
12746         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
12747         * modules/fts (Depends-on): Likewise.
12748         * modules/glob (Depends-on): Likewise.
12749         * modules/savedir (Depends-on): Likewise.
12750         * modules/scandir (Depends-on): Likewise.
12751         * modules/dirent-safer (Depends-on): Add opendir, closedir.
12752         * modules/fdopendir (Depends-on): Add opendir.
12753
12754 2011-09-17  Bruno Haible  <bruno@clisp.org>
12755
12756         inet_pton: Support for MSVC on Windows Vista or newer.
12757         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
12758         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
12759         HAVE_DECL_INET_PTON is defined.
12760         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12761         On platforms with <winsock2.h>, test whether inet_pton is declared in
12762         <ws2tcpip.h>. If so, arrange to replace it.
12763         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12764         REPLACE_INET_PTON.
12765         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
12766         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
12767         (Depends-on, configure.ac): Update condition.
12768         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
12769
12770 2011-09-17  Bruno Haible  <bruno@clisp.org>
12771
12772         inet_ntop: Support for MSVC on Windows Vista or newer.
12773         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
12774         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
12775         HAVE_DECL_INET_NTOP is defined.
12776         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12777         On platforms with <winsock2.h>, test whether inet_ntop is declared in
12778         <ws2tcpip.h>. If so, arrange to replace it.
12779         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12780         REPLACE_INET_NTOP.
12781         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
12782         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
12783         (Depends-on, configure.ac): Update condition.
12784         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
12785
12786 2011-09-16  Eric Blake  <eblake@redhat.com>
12787
12788         test-fsync: yet another enhancement
12789         * tests/test-fsync.c (main): Also test behavior on read-only text
12790         file.
12791
12792 2011-09-16  Bruno Haible  <bruno@clisp.org>
12793
12794         Enhance fsync, fdatasync tests.
12795         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
12796         * tests/test-fdatasync.c (main): Likewise.
12797
12798 2011-09-16  Bruno Haible  <bruno@clisp.org>
12799
12800         Support for MSVC compiler: Ensure mode_t gets defined.
12801         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
12802         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12803         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12804         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
12805         * tests/test-fcntl-h.c: Check that mode_t is defined.
12806         * tests/test-sys_stat.c: Likewise.
12807         * tests/test-sys_types.c: Likewise.
12808         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
12809         * doc/posix-headers/sys_stat.texi: Likewise.
12810         * doc/posix-headers/sys_types.texi: Likewise.
12811
12812 2011-09-16  Bruno Haible  <bruno@clisp.org>
12813
12814         sys_stat: Support for MSVC.
12815         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
12816         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
12817         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
12818         MSVC.
12819
12820 2011-09-16  Bruno Haible  <bruno@clisp.org>
12821
12822         Support for MSVC compiler: Ensure off_t gets defined.
12823         * lib/unistd.in.h: Include <sys/types.h>.
12824         * tests/test-fcntl-h.c: Check that off_t is defined.
12825         * tests/test-sys_stat.c: Likewise.
12826         * tests/test-sys_types.c: Likewise.
12827
12828 2011-09-16  Eric Blake  <eblake@redhat.com>
12829
12830         fdatasync: port to Solaris
12831         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
12832         * modules/fdatasync (Link): Document it.
12833         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
12834
12835         fdatasync: port to MacOS X 10.7
12836         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
12837         declared.
12838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
12839         * modules/unistd (Makefile.am): Substitute it.
12840         * lib/unistd.in.h (fdatasync): Declare on MacOS.
12841         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
12842
12843         fdatasync: minor improvements
12844         * modules/fdatasync (Depends-on): Add condition for fsync.
12845         * lib/fdatasync.c (fdatasync): Add comment.
12846         * tests/test-unistd-c++.cc: Test fdatasync.
12847
12848         unistd: update refs to newer POSIX
12849         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
12850         Suggested by Bruno Haible.
12851
12852         fdatasync: new module
12853         * modules/fsync (Description): Document difference to fdatasync.
12854         * modules/fdatasync: New module.
12855         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
12856         * lib/fdatasync.c (fdatasync): Likewise.
12857         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
12858         defaults.
12859         * modules/unistd (Makefile.am): Set witnesses.
12860         * lib/unistd.in.h (fdatasync): Declare.
12861         * MODULES.html.sh: Document it.
12862         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
12863         * modules/fdatasync-tests: New test.
12864         * tests/test-fdatasync.c: Likewise.
12865
12866 2011-09-16  Eric Blake  <eblake@redhat.com>
12867
12868         test-fsync: enhance tests
12869         * modules/fsync-tests (Depends-on): Add errno, for mingw.
12870         * tests/test-fsync.c (main): Enhance test.
12871
12872 2011-09-15  Bruno Haible  <bruno@clisp.org>
12873
12874         Support for MSVC compiler: Ensure ssize_t gets defined.
12875         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
12876         * doc/posix-headers/stdio.texi: Likewise.
12877         * modules/stdio (Depends-on): Add ssize_t.
12878         * modules/sys_socket (Depends-on): Likewise.
12879         * modules/sys_types (Depends-on): Likewise.
12880         * modules/sys_uio (Depends-on): Likewise.
12881         * modules/unistd (Depends-on): Likewise.
12882         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
12883         * tests/test-sys_types.c: Check that ssize_t is defined.
12884
12885 2011-09-14  Bruno Haible  <bruno@clisp.org>
12886
12887         Avoid using #, the m4 comment starter character, near brackets.
12888         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
12889         delimiter character in sed expressions.
12890         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12891         Suggested by Eric Blake.
12892
12893         Properly quote AC_CHECK_DECLS' 4th argument.
12894         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
12895         argument.
12896         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12897         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12898         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12899         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12900         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
12901         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
12902         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
12903         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
12904         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
12905         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
12906         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
12907         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12908         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12909         * m4/isinf.m4 (gl_ISINF): Likewise.
12910         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12911         * m4/readutmp.m4 (gl_READUTMP): Likewise.
12912         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12913         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12914         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12915         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12916         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12917         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12918         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
12919         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12920         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12921         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12922         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
12923         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12924         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12925         Reported by Eric Blake.
12926
12927         Properly quote AC_CHECK_DECL's 4th argument.
12928         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
12929         argument.
12930         * m4/argp.m4 (gl_ARGP): Likewise.
12931         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12932         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12933         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12934         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12935         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
12936         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
12937         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
12938         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12939         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12940         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12941         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12942         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12943         Reported by Eric Blake.
12944
12945 2011-09-14  Eric Blake  <eblake@redhat.com>
12946
12947         opendir: avoid compile warning
12948         * lib/opendir.c (includes): Always include errno.h.
12949         Reported by Tatsuro MATSUOKA.
12950
12951 2011-09-14  Jim Meyering  <meyering@redhat.com>
12952
12953         maint.mk: sc_tight_scope: propagate failure from sub-make
12954         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
12955         Reported by Martin von Gagern.
12956
12957 2011-09-13  Bruno Haible  <bruno@clisp.org>
12958
12959         tempname: Support for MSVC.
12960         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
12961         MSVC.
12962         * modules/tempname (Depends-on): Add fcntl-h.
12963
12964 2011-09-13  Bruno Haible  <bruno@clisp.org>
12965
12966         sys_time: Support for MSVC.
12967         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
12968         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
12969         include <winsock2.h>.
12970         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
12971         function declarations that collide with POSIX.
12972         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
12973         (Makefile.am): Substitute HAVE_WINSOCK2_H.
12974
12975 2011-09-13  Bruno Haible  <bruno@clisp.org>
12976
12977         stat: Support for MSVC.
12978         * lib/stat.c: Include pathmax.h.
12979         * modules/stat (Depends-on): Add pathmax.
12980
12981         pathmax: Support for native Windows.
12982         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
12983
12984 2011-09-12  Bruno Haible  <bruno@clisp.org>
12985
12986         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
12987         * lib/dirent.in.h (struct dirent): New type.
12988         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
12989         DT_WHT): New macros.
12990         (DIR): New type.
12991         (opendir, closedir): Declare only if the module 'opendir' is enabled.
12992         (readdir, rewinddir): New declarations.
12993         * lib/dirent-private.h: New file.
12994         * lib/opendir.c: New file.
12995         * lib/readdir.c: New file.
12996         * lib/rewinddir.c: New file.
12997         * lib/closedir.c: New file.
12998         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
12999         * m4/opendir.m4: New file.
13000         * m4/readdir.m4: New file.
13001         * m4/rewinddir.m4: New file.
13002         * m4/closedir.m4: New file.
13003         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
13004         REPLACE_CLOSEDIR here.
13005         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
13006         readdir, rewinddir are declared.
13007         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
13008         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
13009         HAVE_REWINDDIR, HAVE_CLOSEDIR.
13010         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
13011         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
13012         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
13013         * modules/opendir: New file.
13014         * modules/readdir: New file.
13015         * modules/rewinddir: New file.
13016         * modules/closedir: New file.
13017         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
13018         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
13019         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
13020         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
13021         * NEWS: Mention the 'fchdir' change.
13022
13023 2011-09-11  Bruno Haible  <bruno@clisp.org>
13024
13025         asm-underscore.m4: Support for MSVC.
13026         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
13027         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
13028
13029 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
13030
13031         Doc about crypt functions.
13032         * doc/posix-functions/crypt.texi: Expand range of glibc versions
13033         needing for _GNU_SOURCE to get crypt.
13034         * doc/posix-functions/encrypt.texi: Likewise.
13035         * doc/posix-functions/setkey.texi: Likewise.
13036
13037 2011-09-11  Bruno Haible  <bruno@clisp.org>
13038
13039         doc: Update regarding MSVC 9.
13040         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
13041         tested".
13042         * doc/posix-functions/*.texi: Update with info about MSVC 9.
13043         * doc/posix-headers/*.texi: Likewise.
13044         * doc/pastposix-functions/*.texi: Likewise.
13045         * doc/glibc-functions/*.texi: Likewise.
13046         * doc/glibc-headers/*.texi: Likewise.
13047
13048 2011-09-11  Bruno Haible  <bruno@clisp.org>
13049
13050         unistd et al.: Don't assume <unistd.h> exists.
13051         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
13052         does not exist.
13053         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
13054         exist. But include <stdlib.h>.
13055         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
13056         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
13057         symlink() does not exist.
13058         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
13059         include <io.h> instead.
13060         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
13061         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
13062         include <direct.h> instead.
13063         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13064         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13065         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
13066         <io.h> instead.
13067         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
13068         correctly if the system does not have hard links.
13069         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
13070         <direct.h> instead.
13071         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
13072         it when looking for function declarations.
13073         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
13074         <direct.h> and <io.h> instead.
13075         * doc/posix-headers/unistd.texi: More details about MSVC problem.
13076
13077 2011-09-11  Bruno Haible  <bruno@clisp.org>
13078
13079         strcase: Support for MSVC.
13080         * modules/strcase (Status, Notice): Remove obsoletion mark.
13081         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
13082         * doc/posix-functions/strncasecmp.texi: Likewise.
13083
13084         strings: Don't assume <strings.h> exists.
13085         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
13086         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
13087         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
13088         * doc/posix-headers/strings.texi: Mention the MSVC problem.
13089
13090 2011-09-11  Bruno Haible  <bruno@clisp.org>
13091
13092         dirent: Don't assume <dirent.h> exists.
13093         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
13094         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
13095         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
13096         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
13097
13098 2011-09-11  Bruno Haible  <bruno@clisp.org>
13099
13100         Fix wint_t on MSVC.
13101         * lib/wchar.in.h (wint_t): On MSVC, override it.
13102         * lib/wctype.in.h (wint_t): Likewise.
13103         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
13104         MSVC.
13105         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
13106         * doc/posix-headers/wctype.texi: Likewise.
13107
13108 2011-09-11  Bruno Haible  <bruno@clisp.org>
13109
13110         sys_types: Fix typo.
13111         * lib/sys_types.in.h: Fix typo in comment.
13112         Reported by Paul Eggert.
13113
13114         Support for MSVC compiler: Ensure size_t gets defined.
13115         * modules/strings (Depends-on): Add 'sys_types'.
13116         * modules/sys_uio (Depends-on): Likewise.
13117         * lib/sys_uio.in.h: Update comment.
13118
13119         C++ tests for module 'sys_types'.
13120         * modules/sys_types-c++-tests: New file.
13121         * tests/test-sys_types-c++.cc: New file.
13122
13123         Tests for module 'sys_types'.
13124         * modules/sys_types-tests: New file.
13125         * tests/test-sys_types.c: New file.
13126
13127         New module 'sys_types'.
13128         * lib/sys_types.in.h: New file.
13129         * m4/sys_types_h.m4: New file.
13130         * modules/sys_types: New file.
13131         * doc/posix-headers/sys_types.texi: Mention the new module and the
13132         size_t problem on MSVC 9.
13133
13134 2011-09-11  Bruno Haible  <bruno@clisp.org>
13135
13136         Support for MSVC compiler: Avoid division by a literal 0.
13137         * lib/math.in.h (NAN): Define through a function call also on MSVC.
13138         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
13139         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
13140         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
13141         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
13142         * tests/infinity.h: New file.
13143         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
13144         on MSVC.
13145         * tests/test-ceilf1.c: Include infinity.h.
13146         (main): Use Infinityf.
13147         * tests/test-ceil1.c: Include infinity.h.
13148         (main): Use Infinityd.
13149         * tests/test-ceill.c: Include infinity.h.
13150         (main): Use Infinityl.
13151         * tests/test-dprintf-posix.c: Include infinity.h.
13152         (test_function): Use Infinityd.
13153         * tests/test-floorf1.c: Include infinity.h.
13154         (main): Use Infinityf.
13155         * tests/test-floor1.c: Include infinity.h.
13156         (main): Use Infinityd.
13157         * tests/test-floorl.c: Include infinity.h.
13158         (main): Use Infinityl.
13159         * tests/test-fprintf-posix.c: Include infinity.h.
13160         (test_function): Use Infinityd.
13161         * tests/test-frexp.c: Include infinity.h.
13162         (main): Use Infinityd.
13163         * tests/test-frexpl.c: Include infinity.h.
13164         (main): Use Infinityl.
13165         * tests/test-isfinite.c: Include infinity.h.
13166         (test_isfinitef): Use Infinityf.
13167         (test_isfinited): Use Infinityd.
13168         (test_isfinitel): Use Infinityl.
13169         * tests/test-isinf.c: Include infinity.h.
13170         (test_isinff): Use Infinityf.
13171         (test_isinfd): Use Infinityd.
13172         (test_isinfl): Use Infinityl.
13173         * tests/test-isnan.c: Include infinity.h.
13174         (test_float): Use Infinityf.
13175         (test_double): Use Infinityd.
13176         (test_long_double): Use Infinityl.
13177         * tests/test-isnanf.h: Include infinity.h.
13178         (main): Use Infinityf.
13179         * tests/test-isnand.h: Include infinity.h.
13180         (main): Use Infinityd.
13181         * tests/test-isnanl.h: Include infinity.h.
13182         (main): Use Infinityl.
13183         * tests/test-ldexpl.c: Include infinity.h.
13184         (main): Use Infinityl.
13185         * tests/test-printf-posix.h: Include infinity.h.
13186         (test_function): Use Infinityd.
13187         * tests/test-roundf1.c: Include infinity.h.
13188         (main): Use Infinityf.
13189         * tests/test-round1.c: Include infinity.h.
13190         (main): Use Infinityd.
13191         * tests/test-roundl.c: Include infinity.h.
13192         (main): Use Infinityl.
13193         * tests/test-signbit.c: Include infinity.h.
13194         (test_signbitf): Use Infinityf.
13195         (test_signbitd): Use Infinityd.
13196         (test_signbitl): Use Infinityl.
13197         * tests/test-snprintf-posix.h: Include infinity.h.
13198         (test_function): Use Infinityd, Infinityl.
13199         * tests/test-sprintf-posix.h: Include infinity.h.
13200         (test_function): Use Infinityd, Infinityl.
13201         * tests/test-truncf1.c: Include infinity.h.
13202         (main): Use Infinityf.
13203         * tests/test-trunc1.c: Include infinity.h.
13204         (main): Use Infinityd.
13205         * tests/test-truncl.c: Include infinity.h.
13206         (main): Use Infinityl.
13207         * tests/test-vasnprintf-posix.c: Include infinity.h.
13208         (test_function): Use Infinityd, Infinityl.
13209         * tests/test-vasprintf-posix.c: Include infinity.h.
13210         (test_function): Use Infinityd, Infinityl.
13211         * modules/ceilf-tests (Files): Add tests/infinity.h.
13212         * modules/ceil-tests (Files): Likewise.
13213         * modules/ceill-tests (Files): Likewise.
13214         * modules/dprintf-posix-tests (Files): Likewise.
13215         * modules/floorf-tests (Files): Likewise.
13216         * modules/floor-tests (Files): Likewise.
13217         * modules/floorl-tests (Files): Likewise.
13218         * modules/fprintf-posix-tests (Files): Likewise.
13219         * modules/frexp-tests (Files): Likewise.
13220         * modules/frexp-nolibm-tests (Files): Likewise.
13221         * modules/frexpl-tests (Files): Likewise.
13222         * modules/frexpl-nolibm-tests (Files): Likewise.
13223         * modules/isfinite-tests (Files): Likewise.
13224         * modules/isinf-tests (Files): Likewise.
13225         * modules/isnan-tests (Files): Likewise.
13226         * modules/isnanf-tests (Files): Likewise.
13227         * modules/isnanf-nolibm-tests (Files): Likewise.
13228         * modules/isnand-tests (Files): Likewise.
13229         * modules/isnand-nolibm-tests (Files): Likewise.
13230         * modules/isnanl-tests (Files): Likewise.
13231         * modules/isnanl-nolibm-tests (Files): Likewise.
13232         * modules/ldexpl-tests (Files): Likewise.
13233         * modules/printf-posix-tests (Files): Likewise.
13234         * modules/roundf-tests (Files): Likewise.
13235         * modules/round-tests (Files): Likewise.
13236         * modules/roundl-tests (Files): Likewise.
13237         * modules/signbit-tests (Files): Likewise.
13238         * modules/snprintf-posix-tests (Files): Likewise.
13239         * modules/sprintf-posix-tests (Files): Likewise.
13240         * modules/truncf-tests (Files): Likewise.
13241         * modules/trunc-tests (Files): Likewise.
13242         * modules/truncl-tests (Files): Likewise.
13243         * modules/vasnprintf-posix-tests (Files): Likewise.
13244         * modules/vasprintf-posix-tests (Files): Likewise.
13245         * modules/vdprintf-posix-tests (Files): Likewise.
13246         * modules/vfprintf-posix-tests (Files): Likewise.
13247         * modules/vprintf-posix-tests (Files): Likewise.
13248         * modules/vsnprintf-posix-tests (Files): Likewise.
13249         * modules/vsprintf-posix-tests (Files): Likewise.
13250         * modules/xprintf-posix-tests (Files): Likewise.
13251
13252 2011-09-11  Bruno Haible  <bruno@clisp.org>
13253
13254         Ensure pid_t gets defined.
13255         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
13256         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
13257         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13258         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13259         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
13260         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
13261         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13262         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13263         * tests/test-fcntl-h.c: Check that pid_t is defined.
13264         * tests/test-sched.c: Likewise.
13265         * tests/test-termios.c: Likewise.
13266         * tests/test-time.c: Likewise.
13267         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
13268         * doc/posix-headers/signal.texi: Likewise.
13269         * doc/posix-headers/sys_types.texi: Likewise.
13270         * doc/posix-headers/time.texi: Likewise.
13271
13272 2011-09-11  Bruno Haible  <bruno@clisp.org>
13273
13274         acl: Fix compilation on Solaris 10 (older version).
13275         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
13276         of ACE_EVERYONE.
13277         * lib/set-mode-acl.c (qset_acl): Likewise.
13278         Reported by Christian Jullien <eligis@orange.fr>.
13279
13280 2011-09-10  Bruno Haible  <bruno@clisp.org>
13281
13282         iconv, unsetenv: Add support for MSVC compiler.
13283         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
13284         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
13285
13286 2011-09-10  Bruno Haible  <bruno@clisp.org>
13287
13288         *printf: Add support for MSVC compiler.
13289         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
13290         handles the exception caused by the %n directive. When cross-compiling,
13291         guess no on native Windows.
13292         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13293         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
13294         emulate it through vsnprintf.
13295         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
13296         * doc/posix-functions/dprintf.texi: Update documentation regarding
13297         MSVC 9.
13298         * doc/posix-functions/fprintf.texi: Likewise.
13299         * doc/posix-functions/printf.texi: Likewise.
13300         * doc/posix-functions/snprintf.texi: Likewise.
13301         * doc/posix-functions/sprintf.texi: Likewise.
13302         * doc/posix-functions/swprintf.texi: Likewise.
13303         * doc/posix-functions/vdprintf.texi: Likewise.
13304         * doc/posix-functions/vfprintf.texi: Likewise.
13305         * doc/posix-functions/vprintf.texi: Likewise.
13306         * doc/posix-functions/vsnprintf.texi: Likewise.
13307         * doc/posix-functions/vsprintf.texi: Likewise.
13308         * doc/glibc-functions/asprintf.texi: Likewise.
13309         * doc/glibc-functions/obstack_printf.texi: Likewise.
13310         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13311         * doc/glibc-functions/vasprintf.texi: Likewise.
13312
13313 2011-09-10  Bruno Haible  <bruno@clisp.org>
13314
13315         nocrash: Add support for native Windows.
13316         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
13317
13318 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
13319             Bruno Haible  <bruno@clisp.org>
13320
13321         absolute-header, include-next: Add support for MSVC compiler.
13322         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
13323         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
13324         directory separator in #line directives.
13325         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
13326         recognize also backslash as directory separator in #line directives.
13327
13328 2011-09-08  Jim Meyering  <meyering@redhat.com>
13329
13330         maint.mk: mark the post-release commit log with "maint: " prefix
13331         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
13332         one-line commit-log summary.
13333
13334 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
13335             Bruno Haible  <bruno@clisp.org>
13336
13337         Doc about crypt functions.
13338         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
13339         systems.
13340         * doc/posix-functions/encrypt.texi: Likewise.
13341         * doc/posix-functions/setkey.texi: Likewise.
13342
13343 2011-09-08  Simon Josefsson  <simon@josefsson.org>
13344
13345         * lib/gc.h: Fix copyright header.
13346
13347 2011-09-07  Bruno Haible  <bruno@clisp.org>
13348
13349         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
13350         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
13351         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
13352
13353 2011-09-07  Bruno Haible  <bruno@clisp.org>
13354
13355         openat: Work around compilation error with OSF/1 5.1 DTK cc.
13356         * lib/fopen.c: Use different syntax for include of <stdio.h>.
13357         * lib/freopen.c: Likewise.
13358         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
13359         * lib/lstat.c: Likewise.
13360         * lib/stat.c: Likewise.
13361         * lib/open.c: Use different syntax for include of <fcntl.h>.
13362         * lib/openat.c: Include fcntl.h again, explicitly.
13363
13364 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
13365
13366         parse-datetime: document the newly accepted format
13367         * doc/parse-datetime.texi (Combined date and time of day items):
13368         New section.
13369
13370 2011-09-06  Bruno Haible  <bruno@clisp.org>
13371
13372         acl: Fix a test failure on newer Solaris 10 with ZFS.
13373         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
13374         ENOSYS as no ACL.
13375         Reported by Jim Meyering.
13376
13377 2011-09-06  Bruno Haible  <bruno@clisp.org>
13378
13379         acl: Update for AIX >= 5.3 with NFS.
13380         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
13381         ENOSYS as no ACL.
13382
13383         acl: Fix a test failure on AIX >= 5.3 with NFS.
13384         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
13385         as no ACL.
13386
13387 2011-09-06  Bruno Haible  <bruno@clisp.org>
13388
13389         acl: Fix a test failure on IRIX 6.5 with NFS.
13390         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
13391         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
13392         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
13393         * lib/copy-acl.c (qcopy_acl): Likewise.
13394
13395 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
13396
13397         openat: port to AIX 7.1 with large files
13398         AIX 7.1 does a "#define openat open64at" if large files are in use,
13399         so we can't simply #undef openat.  Use the orig_openat trick (similar
13400         to orig_open in lib/open.c) to work around the problem.  Problem
13401         reported by Kevin Brott for GNU tar, in the thread containing
13402         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
13403         * lib/openat.c (__need_system_fcntl_h): Define first.
13404         Include <fcntl.h> and <sys/types.h> before undefining.
13405         (orig_openat) [HAVE_OPENAT]: New inline function.
13406         (openat) [HAVE_OPENAT]: Do not undef.
13407         (rpl_openat): Use orig_openat, not openat.
13408
13409 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13410             Bruno Haible  <bruno@clisp.org>
13411
13412         acl: Avoid errors on NonStop Kernel.
13413         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
13414         ENOTSUP errors.
13415
13416 2011-09-05  Bruno Haible  <bruno@clisp.org>
13417
13418         acl: Clean up Solaris code.
13419         * lib/acl-internal.h: Remove no-op #if.
13420         * lib/file-has-acl.c: Likewise.
13421         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
13422         * lib/copy-acl.c (qcopy_acl): Likewise.
13423
13424 2011-09-05  Bruno Haible  <bruno@clisp.org>
13425
13426         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
13427         binaries built on the original Solaris 10.
13428         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
13429         trivial.
13430
13431 2011-09-05  Bruno Haible  <bruno@clisp.org>
13432
13433         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13434         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
13435         10.
13436         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
13437         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
13438         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
13439         instead of acl_get, facl_get, acl_set, facl_set.
13440
13441 2011-09-05  Bruno Haible  <bruno@clisp.org>
13442
13443         copy-file: Try unit tests on more file systems.
13444         * tests/test-copy-file-1.sh: New file.
13445         * tests/test-copy-file-2.sh: New file.
13446         * modules/copy-file-tests (Files): Add them.
13447         (Makefile.am): Add them to TESTS.
13448
13449         acl: Try unit tests on more file systems.
13450         * tests/test-file-has-acl-1.sh: New file.
13451         * tests/test-file-has-acl-2.sh: New file.
13452         * tests/test-set-mode-acl-1.sh: New file.
13453         * tests/test-set-mode-acl-2.sh: New file.
13454         * tests/test-copy-acl-1.sh: New file.
13455         * tests/test-copy-acl-2.sh: New file.
13456         * modules/acl-tests (Files): Add them.
13457         (Makefile.am): Add them to TESTS.
13458
13459 2011-09-04  Bruno Haible  <bruno@clisp.org>
13460
13461         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13462         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
13463         10.
13464         (OLD_ALLOW, OLD_DENY): New macros.
13465         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
13466         ACE_ACCESS_ALLOWED_ACE_TYPE.
13467         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
13468         ACE_ACCESS_DENIED_ACE_TYPE.
13469         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
13470         (NEW_ACE_EXECUTE): Fix value.
13471         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
13472         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
13473         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
13474         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
13475         NEW_ACE_SYNCHRONIZE): New macros.
13476         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
13477         instead of acl_fromtext, acl_set, facl_set.
13478         Fixes a coreutils/tests/cp/perm failure.
13479
13480 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
13481
13482         openat: test for fstatat (..., 0) bug
13483         Further testing with tar suggests that fstatat (..., 0)
13484         does not work in general, on AIX 7.1; see
13485         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
13486         So, give up entirely on AIX 7.1's fstatat, and fall back on our
13487         replacement fstatat (which is what older AIX releases were using
13488         anyway).
13489         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
13490         use is now changed to orig_fstatat.  This was probably the right
13491         thing to do anyway.
13492         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
13493         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
13494         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
13495         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
13496         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
13497         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
13498         if the bug is found.
13499
13500         openat: test for fstatat (AT_FDCWD, ..., 0) bug
13501         This tests for another fstatat bug on AIX 7.1:
13502         fstatat (AT_FDCWD, ..., 0) does not work.  See
13503         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
13504         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
13505         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
13506         (rpl_fstatat): Adjust so that it works around either (or both)
13507         bugs if present.
13508         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
13509
13510 2011-09-03  Karl Berry  <karl@gnu.org>
13511
13512         * doc/regex.texi (Character Class Operators): Avoid literal ":"
13513         in index entries.
13514
13515 2011-09-02  Bruno Haible  <bruno@clisp.org>
13516
13517         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
13518         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
13519         values of AR, ARFLAGS, RANLIB.
13520         Reported by John W. Eaton <jwe@gnu.org> for Octave.
13521
13522 2011-09-02  Bruno Haible  <bruno@clisp.org>
13523
13524         Find 'ar' program that fits with --host argument.
13525         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
13526
13527 2011-09-02  Bruno Haible  <bruno@clisp.org>
13528
13529         tests: init.sh: Support any non-GNU diff.
13530         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
13531         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
13532         Solaris 8.
13533
13534 2011-09-02  Bruno Haible  <bruno@clisp.org>
13535
13536         tests: init.sh: work also with any non-GNU diff that supports -u
13537         * tests/init.sh: Relax check for diff -u support.
13538         Rather than checking for GNU diff via --version, simply check
13539         for support for -u itself.  Useful at least on OpenBSD 4.9,
13540         AIX 7.1, IRIX 6.5, and Solaris 10.
13541
13542 2011-09-01  Bruno Haible  <bruno@clisp.org>
13543
13544         strtoimax, strtoumax: Document problem on HP-UX 11.
13545         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
13546         * doc/posix-functions/strtoumax.texi: Likewise.
13547
13548 2011-09-01  Bruno Haible  <bruno@clisp.org>
13549
13550         strtoumax: Avoid link error on OSF/1 with DTK cc.
13551         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
13552         defined as a function.
13553         * modules/strtoumax (Depends-on, configure.ac): Test only whether
13554         strtoumax is defined, not whether it is declared.
13555
13556 2011-09-01  Bruno Haible  <bruno@clisp.org>
13557
13558         strtoimax: Avoid link error on OSF/1 with DTK cc.
13559         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
13560         defined as a function.
13561         * modules/strtoimax (Depends-on, configure.ac): Test only whether
13562         strtoimax is defined, not whether it is declared.
13563
13564 2011-09-01  Bruno Haible  <bruno@clisp.org>
13565
13566         imaxdiv: Avoid link error on OSF/1 with DTK cc.
13567         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
13568         as a function.
13569         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
13570         whether it is declared.
13571
13572 2011-09-01  Bruno Haible  <bruno@clisp.org>
13573
13574         imaxabs: Avoid link error on OSF/1 with DTK cc.
13575         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
13576         as a function.
13577         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
13578         whether it is declared.
13579
13580 2011-09-01  Bruno Haible  <bruno@clisp.org>
13581
13582         Tests for module 'strtoumax'.
13583         * modules/strtoumax-tests: New file.
13584         * tests/test-strtoumax.c: New file.
13585
13586         Tests for module 'strtoimax'.
13587         * modules/strtoimax-tests: New file.
13588         * tests/test-strtoimax.c: New file.
13589
13590         Tests for module 'imaxdiv'.
13591         * modules/imaxdiv-tests: New file.
13592         * tests/test-imaxdiv.c: New file.
13593
13594         Tests for module 'imaxabs'.
13595         * modules/imaxabs-tests: New file.
13596         * tests/test-imaxabs.c: New file.
13597
13598 2011-09-01  Bruno Haible  <bruno@clisp.org>
13599
13600         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
13601         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
13602         pthread_create.
13603
13604 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13605
13606         openat: work around AIX 7.1 fstatat issue
13607         This should fix the problem that was not properly fixed
13608         in the previous change, dated 2011-08-30.
13609         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
13610         __need_system_stat_h defined.
13611         (orig_fstatat) [HAVE_FSTATAT]: New function.
13612         (rpl_fstatat): Go back to the old way of doing things,
13613         except call orig_fstatat instead of fstatat.
13614         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
13615         Remove unnecessary check whether fstatat fills in st_size etc.
13616
13617 2011-09-01  Bruno Haible  <bruno@clisp.org>
13618
13619         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
13620         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
13621         just include the system's header.
13622
13623 2011-08-31  Jim Meyering  <meyering@redhat.com>
13624
13625         tests: avoid spurious assertion failure in test-float.c on ppc64
13626         * tests/test-float.c (test_long_double): Comment out an assertion,
13627         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
13628         with gcc-4.4.4.
13629
13630         maint: indent with spaces, not TABs
13631         I need to get in the habit of running gnulib's "make check".
13632         Both of these would have been caught.
13633         * m4/largefile.m4: Indent with spaces, not TABs.
13634         * lib/parse-datetime.y (iso_8601_time): Likewise.
13635         Spotted by Pádraig Brady.
13636
13637         test-parse-datetime.c: accommodate a relatively strict gcc warning
13638         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
13639         to avoid a warning from gcc's -Werror=missing-declarations.
13640         Insert a few spaces-before-funcall-parenthesis.
13641
13642 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
13643
13644         parse-datetime: accept ISO 8601 date and time rep with "T" separator
13645         The parser now accepts ISO 8601 date-time strings with "T" as the
13646         separator.  It has long parsed dates like "2004-02-29 16:21:42"
13647         with a space between the date and time strings.  Now it also parses
13648         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
13649         variants like "2004-02-29T16:21:42.333-07:00"
13650         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
13651         of day representation using the 'T' separator character.
13652         * doc/parse-datetime.texi (General date syntax): replace use of
13653         deprecated --iso-8601 option with --rfc-3339 in example of date
13654         command output formats that can be parsed.
13655         * tests/test-parse-datetime.c (tm_diff): New function, taken from
13656         lib/parse-datetime.y.
13657         (gmt_offset): New function.
13658         (main): Add additional test cases to validate ISO8601 extended
13659         date and time of day parsing.
13660
13661 2011-08-31  Bruno Haible  <bruno@clisp.org>
13662
13663         freopen: Documentation.
13664         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
13665         name.
13666         Reported by Claudio Bley <claudio.bley@gmail.com>.
13667
13668 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
13669
13670         freopen: Don't crash if the filename argument is NULL.
13671         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
13672         NULL.
13673
13674 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
13675
13676         openat: work around AIX 7.1 fstatat bug
13677         Problem reported by Kevin Brott for GNU tar, in the thread containing
13678         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
13679         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
13680         FSTATAT_ST_SIZE_ETC_BROKEN.
13681         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
13682         rpl_fstatat.
13683         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
13684         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
13685         AC_CHECK_FUNCS_ONCE for fstatat.
13686         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
13687         fchmodat, mkdirat, openat and unlinkat.
13688
13689 2011-08-30  Bruno Haible  <bruno@clisp.org>
13690
13691         Avoid endless recursions if config.h includes some header files.
13692         * lib/fopen.c (__need_FILE): Define already before including config.h.
13693         * lib/freopen.c (__need_FILE): Likewise.
13694         * lib/open.c (__need_system_fcntl_h): Likewise.
13695         * lib/stat.c (__need_system_sys_stat_h): Likewise.
13696         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
13697         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
13698
13699 2011-08-25  Karl Berry  <karl@gnu.org>
13700
13701         * config/srclist.txt (ylwrap): new try.
13702         * build-aux/ylwrap: new file.
13703
13704 2011-08-23  Bruno Haible  <bruno@clisp.org>
13705
13706         tmpdir: Use a good default directory on native Windows.
13707         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
13708         (P_tmpdir): Default to _P_tmpdir on native Windows.
13709         (path_search): On native Windows, try the value returned by GetTempPath
13710         before trying P_tmpdir.
13711         * modules/tmpdir (Depends-on): Add pathmax.
13712         Suggested by John Darrington <john@darrington.wattle.id.au>.
13713
13714 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
13715
13716         doc: fix typo in README-release
13717         * top/README-release: Capitalize first word of a sentence.
13718
13719 2011-08-19  Jim Meyering  <meyering@redhat.com>
13720
13721         fts: do not exhaust memory when processing million-entry directories
13722         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
13723         directory would require about 256*N bytes of memory.  Thus, it was
13724         easy to construct a directory too large to be processed by any of
13725         those tools.  With this change, fts' maximum memory utilization is
13726         now limited to around 30MB.
13727         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
13728         (fts_read): When we've processed the final entry (i.e., when
13729         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
13730         using the parent entry to read any remaining entries.  Dispatch
13731         depending on what fts_build returns:
13732         - NULL+stop, aka failure: stop
13733         - NULL otherwise: move up in the dir hierarchy
13734         - non-NULL: handle this new entry
13735         (fts_build): Declare and use new local, continue_readdir.
13736         Prepare to be called from fts_read, when the entries
13737         from a partially-read directory have just been exhausted.
13738         In that case, we'll skip the opendir and instead use the parent's
13739         fts_dirp and derive dir_fd from that.
13740         Finally, in the readdir loop, if we read max_entries entries,
13741         exit the loop ensuring *not* to call closedir.  This is required
13742         so that fts_dirp can be reused on a subsequent call.
13743         Prompted by Ben England's report of memory exhaustion in find
13744         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
13745
13746         maint: fts: move decl of `dp' down into while loop; split a long line
13747         * lib/fts.c (fts_build): No semantic change.
13748
13749         fts: add/use new struct member, fts_dirp
13750         We are about to use this to manage any directory with
13751         too many entries to read all of them into memory at once.
13752         To do that, we'll need to save the DIR* pointer in each
13753         affected FTSENT struct.
13754         * lib/fts_.h: Include <dirent.h>.
13755         (struct FTSENT) [fts_dirp]: New member.
13756         * lib/fts.c (closedir_and_clear): Define.
13757         Use it in place of closedir so that we are sure to
13758         clear the new fts_dirp member when done with it.
13759         (fts_alloc): Initialize the new member.
13760         (fts_lfree): Free, if needed.
13761
13762         maint: fts: give __opendir2 a new parameter and rename
13763         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
13764         than surreptitiously using sole caller's "dir_fd".
13765         (fts_opendir): Rename from __opendir2.
13766
13767         maint: fts.c: remove __opendir2's now-unused parameter, oflag
13768         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
13769
13770         maint: fts.c: correct off-by-one indentation
13771         * lib/fts.c (fts_build): Correct indentation, change style
13772         of a couple of block comments, and bracing style.
13773
13774         maint: fts.c: move __opendir2 #define "up" out of function body
13775         * lib/fts.c (__opendir2): Move "up".  No semantic change.
13776
13777         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
13778         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
13779         out for a long time and besides was useful only on BSD systems.
13780
13781 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13782
13783         regex: port to Stratus OpenVOS
13784         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
13785         define to empty, rather than attempting nonportable optimizations.
13786         Problem reported by Paul Green in:
13787         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
13788         and fix suggested by Eric Blake in:
13789         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
13790
13791 2011-08-17  Eric Blake  <eblake@redhat.com>
13792
13793         getcwd: fix test failures on mingw
13794         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
13795         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
13796         test if long directory cannot be created, and allow mingw errno.
13797
13798         getcwd-lgpl: fix m4 to match relaxed test for BSD
13799         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
13800         (gl_FUNC_GETCWD_SIGNATURE): New macro.
13801         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
13802         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
13803         signature problem.
13804
13805         getcwd: fix compilation on mingw64
13806         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
13807         getcwd.
13808         Reported by Marc-André Lureau.
13809
13810         pipe2: silence compiler warning
13811         * lib/pipe2.c (pipe2): Hide label if it is not used.
13812
13813 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
13814
13815         relocatable-prog: fix link error
13816         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
13817         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
13818         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
13819         into modules/relocatable-lib without noticing that
13820         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
13821         also needs to build relocatable.c.
13822
13823 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13824
13825         getaddrinfo: fix sh typo in gai_strerrorA decl checking
13826         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
13827         shell code: it contained a 'break' that was not in a loop.
13828         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
13829         via a shell-language loop; this may have been true in old Autoconf
13830         versions, but it's not true in Autoconf 2.68.  I found this bug
13831         when testing coreutils git on Solaris 8, whose shell complains
13832         about the syntax error.
13833
13834 2011-08-12  Simon Josefsson  <simon@josefsson.org>
13835
13836         * lib/base64.c: Fix comment to reference RFC 4648.
13837         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
13838         <gvtulder@gmail.com>.
13839
13840 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13841
13842         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
13843
13844         po/Makefile.in.in: fix make -q problem
13845         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
13846         rule, since there's no file named 'check-macro-version' and its
13847         use as a file breaks make -q.
13848         (all): Don't depend on check-macro-version.
13849         (CHECK_MACRO_VERSION): New macro.
13850         (stamp-po): Use it.
13851
13852         configmake: fix make -q problem
13853         * modules/configmake (configmake.h): Update configmake.h's time stamp
13854         even if the file does not change.  Otherwise, 'make -q' fails.
13855         Problem reported by Simon Josefsson in
13856         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
13857
13858 2011-08-11  Jim Meyering  <meyering@redhat.com>
13859
13860         git-version-gen: correct the advice in a comment
13861         * build-aux/git-version-gen: Correct comment.
13862         Don't recommend to list .tarball-version in .gitignore.
13863
13864 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13865
13866         base64: fix off-by-one buffer size bug
13867         Problem and (trivial) fix reported by Gijs van Tulder in
13868         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
13869         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
13870         * tests/test-base64.c (main): Catch the bug.
13871
13872 2011-08-10  Eric Blake  <eblake@redhat.com>
13873
13874         closein: correct comments
13875         * lib/closein.c (close_stdin): Improve comments.
13876
13877 2011-08-09  Bruno Haible  <bruno@clisp.org>
13878
13879         More tests for 'fseeko'.
13880         * tests/test-fseeko3.c: New file, from Eric Blake.
13881         * tests/test-fseeko3.sh: New file.
13882         * modules/fseeko-tests (Files): Add them.
13883         (TESTS): Add test-fseeko3.sh.
13884         (check_PROGRAMS): Add test-fseeko3.
13885
13886 2011-08-09  Eric Blake  <eblake@redhat.com>
13887
13888         fseeko: remove unneeded hack
13889         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
13890
13891         fseeko: fix bug on glibc
13892         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
13893         Reported by John W. Eaton.
13894
13895 2011-08-08  Bruno Haible  <bruno@clisp.org>
13896
13897         unictype/base: Fix interoperability with preinstalled libunistring.
13898         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
13899         Reported by Simon Josefsson.
13900
13901 2011-08-08  Bruno Haible  <bruno@clisp.org>
13902
13903         iswblank: Detect declaration correctly.
13904         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
13905         AC_CHECK_DECLS invocation.
13906
13907 2011-08-08  Bruno Haible  <bruno@clisp.org>
13908
13909         tcgetsid: Detect declaration correctly.
13910         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
13911         AC_CHECK_DECLS invocation.
13912         Reported by Simon Josefsson.
13913
13914 2011-08-08  Eric Blake  <eblake@redhat.com>
13915
13916         largefile: fix typo that regressed large file support
13917         * modules/largefile (configure.ac-early): Fix section name.
13918
13919 2011-08-06  Karl Berry  <karl@gnu.org>
13920
13921         * MODULES.html.sh (func_all_files): _Noreturn is no longer
13922         a separate module.
13923
13924 2011-08-05  Simon Josefsson  <simon@josefsson.org>
13925
13926         openat: Fix warnings and commens when building unlinkat.c on Hurd.
13927         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
13928         get prototype for free.
13929
13930 2011-08-04  Bruno Haible  <bruno@clisp.org>
13931
13932         Tests for module 'pathmax'.
13933         * modules/pathmax-tests: New file.
13934         * tests/test-pathmax.c: New file.
13935
13936         canonicalize-lgpl: Support larger filenames on the Hurd.
13937         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
13938         Reported by Paul Eggert.
13939
13940         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
13941         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
13942         * lib/chdir-long.h: Include pathmax.h.
13943         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
13944         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
13945         (PATH_MAX): Remove code that is done by pathmax.h.
13946         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
13947         * lib/tmpfile.c: Add a comment.
13948         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
13949         * modules/chdir-long (Depends-on): Add pathmax.
13950         * modules/getcwd (Depends-on): Add pathmax.
13951         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
13952         is not defined.
13953         * doc/posix-headers/limits.texi: Mention the pathmax module.
13954         * NEWS: Mention the change.
13955
13956 2011-08-02  Bruno Haible  <bruno@clisp.org>
13957
13958         pthread_sigmask: Actually use results of gl_THREADLIB.
13959         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
13960         gl_THREADLIB, not gl_[]THREADLIB.
13961         Reported by Eric Blake.
13962
13963 2011-08-02  Jim Meyering  <meyering@redhat.com>
13964
13965         maint.mk: relax the default _gl_TS_function_match regexp
13966         * top/maint.mk (_gl_TS_function_match): Don't require at least one
13967         space between function name and "(" in an "extern" declaration.
13968         That would fail to match a decl with no space there: extern void foo();
13969
13970 2011-07-31  Iain Nicol  <iain@thenicols.net>
13971
13972         git-version-gen: document that EXTRA_DIST must include .version
13973         * build-aux/git-version-gen: In the how-to-use comment, document
13974         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
13975         will fail when run from an unpacked distribution tarball.
13976
13977 2011-08-01  Bruno Haible  <bruno@clisp.org>
13978
13979         wctype-h: Fix last change.
13980         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
13981         REPLACE_TOWLOWER to 0.
13982         Reported by Sam Steingold <sds@gnu.org>.
13983
13984 2011-07-31  Bruno Haible  <bruno@clisp.org>
13985
13986         frexpl: Update autoconf test.
13987         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
13988         according to changes of 2011-06-20.
13989
13990 2011-07-31  Bruno Haible  <bruno@clisp.org>
13991
13992         sys_utsname: Add support for Minix.
13993         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
13994         <sys/utsname.h>.
13995         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13996         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
13997
13998 2011-07-31  Bruno Haible  <bruno@clisp.org>
13999
14000         strings: Add support for Minix.
14001         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
14002         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
14003         * doc/posix-headers/strings.texi: Document the Minix problem.
14004
14005 2011-07-31  Bruno Haible  <bruno@clisp.org>
14006
14007         wctype-h: Add support for Minix.
14008         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
14009         REPLACE_TOWLOWER.
14010         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
14011         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
14012         REPLACE_ISWCNTRL.
14013
14014 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
14015
14016         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
14017         This is a performance improvement for 64-bit hosts: it causes the
14018         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
14019
14020 2011-07-31  Bruno Haible  <bruno@clisp.org>
14021
14022         stdioext: Add support for Minix.
14023         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
14024         * lib/fpurge.c (fpurge): Likewise.
14025         * lib/freadahead.c (freadahead): Likewise.
14026         * lib/freadable.c (freadable): Likewise.
14027         * lib/freading.c (freading): Likewise.
14028         * lib/freadptr.c (freadptr): Likewise.
14029         * lib/freadseek.c (freadptrinc): Likewise.
14030         * lib/fseeko.c (rpl_fseeko): Likewise.
14031         * lib/fseterr.c (fseterr): Likewise.
14032         * lib/fwritable.c (fwritable): Likewise.
14033         * lib/fwriting.c (fwriting): Likewise.
14034         * lib/fflush.c (clear_ungetc_buffer): Update comment.
14035         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
14036
14037 2011-07-31  Bruno Haible  <bruno@clisp.org>
14038
14039         errno: Port to Minix.
14040         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
14041         ECONNABORTED are defined.
14042         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
14043         GNULIB_defined_ECONNABORTED): New macros.
14044         * lib/strerror-override.h (strerror_override): Test also
14045         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
14046         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
14047         ECONNABORTED.
14048         * doc/posix-headers/errno.texi: Mention the Minix problem.
14049
14050 2011-07-31  Bruno Haible  <bruno@clisp.org>
14051
14052         Work around declaration collisions on Minix.
14053         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
14054         defined, set REPLACE_MBSINIT.
14055         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
14056         defined, set REPLACE_MBRTOWC.
14057         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
14058         set REPLACE_MBRLEN.
14059         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
14060         defined, set REPLACE_MBSRTOWCS.
14061         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
14062         defined, set REPLACE_WCRTOMB.
14063         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
14064         defined, set REPLACE_WCSRTOMBS.
14065
14066 2011-07-31  Bruno Haible  <bruno@clisp.org>
14067
14068         Add support for Minix with ACK compiler.
14069         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
14070         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
14071         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
14072
14073 2011-07-31  Bruno Haible  <bruno@clisp.org>
14074
14075         Documentation about Minix.
14076         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
14077         * doc/glibc-headers/*.texi: Likewise.
14078         * doc/posix-functions/*.texi: Likewise.
14079         * doc/glibc-functions/*.texi: Likewise.
14080
14081 2011-07-31  Bruno Haible  <bruno@clisp.org>
14082
14083         snippet/warn-on-use: Fix indentation.
14084         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
14085
14086 2011-07-25  Jim Meyering  <meyering@redhat.com>
14087
14088         tests: test-update-copyright.sh: remove unnecessary "rm" commands
14089         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
14090         commands.
14091
14092 2011-07-27  Jim Meyering  <meyering@redhat.com>
14093
14094         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
14095         * top/maint.mk (gl_extract_significant_defines_): Now that
14096         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
14097         gnulib/lib/signal.in.h, and now that we recommend to
14098         define-if-undefined those two symbols in application code,
14099         we must filter them out of the "significant" list.
14100         This avoids a "make syntax-check" failure in coreutils.
14101
14102 2011-07-26  Eric Blake  <eblake@redhat.com>
14103
14104         warnings: add comments about previous patch
14105         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
14106         * m4/include_next.m4: Likewise.
14107         * m4/warn-on-use.m4: Likewise.
14108         * m4/warnings.m4: Likewise, and simplify use.
14109         Suggested by Stefano Lattarini.
14110
14111         include-next, warnings: support older autoconf
14112         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
14113         AS_VAR_PUSHDEF in a way that works with older autoconf.
14114         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
14115         Reported by Daniel P. Berrange.
14116
14117 2011-07-25  Bruno Haible  <bruno@clisp.org>
14118
14119         fseek, ftell: Fix doc.
14120         * doc/posix-functions/fseek.texi: Reword statement about
14121         AC_SYS_LARGEFILE.
14122         * doc/posix-functions/ftell.texi: Likewise.
14123
14124 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14125             Bruno Haible  <bruno@clisp.org>
14126
14127         Add dependencies to the 'largefile' module.
14128         * modules/fopen (Depends-on): Add 'largefile'.
14129         * modules/freopen (Depends-on): Likewise.
14130         * modules/fseeko (Depends-on): Likewise.
14131         * modules/ftello (Depends-on): Likewise.
14132         * modules/glob (Depends-on): Likewise.
14133         * modules/lseek (Depends-on): Likewise.
14134         * modules/lstat (Depends-on): Likewise.
14135         * modules/mkostemp (Depends-on): Likewise.
14136         * modules/mkostemps (Depends-on): Likewise.
14137         * modules/mkstemp (Depends-on): Likewise.
14138         * modules/mkstemps (Depends-on): Likewise.
14139         * modules/open (Depends-on): Likewise.
14140         * modules/openat (Depends-on): Likewise.
14141         * modules/pread (Depends-on): Likewise.
14142         * modules/pwrite (Depends-on): Likewise.
14143         * modules/scandir (Depends-on): Likewise.
14144         * modules/stat (Depends-on): Likewise.
14145         * modules/tmpfile (Depends-on): Likewise.
14146         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
14147         since the containing module now depends on the largefile module.
14148         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
14149         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
14150         off_t is fixed by gnulib.
14151         * doc/posix-functions/freopen.texi: Likewise.
14152         * doc/posix-functions/fseeko.texi: Likewise.
14153         * doc/posix-functions/fstatat.texi: Likewise.
14154         * doc/posix-functions/ftello.texi: Likewise.
14155         * doc/posix-functions/glob.texi: Likewise.
14156         * doc/posix-functions/lseek.texi: Likewise.
14157         * doc/posix-functions/lstat.texi: Likewise.
14158         * doc/posix-functions/mkstemp.texi: Likewise.
14159         * doc/posix-functions/open.texi: Likewise.
14160         * doc/posix-functions/openat.texi: Likewise.
14161         * doc/posix-functions/pread.texi: Likewise.
14162         * doc/posix-functions/pwrite.texi: Likewise.
14163         * doc/posix-functions/scandir.texi: Likewise.
14164         * doc/posix-functions/stat.texi: Likewise.
14165         * doc/posix-functions/tmpfile.texi: Likewise.
14166         * doc/glibc-functions/mkostemp.texi: Likewise.
14167         * doc/glibc-functions/mkostemps.texi: Likewise.
14168         * doc/glibc-functions/mkstemps.texi: Likewise.
14169
14170 2011-07-25  Bruno Haible  <bruno@clisp.org>
14171
14172         fcntl: Move AC_LIBOBJ invocation to module description.
14173         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
14174         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
14175
14176         fcntl: Remove call-in from fchdir.m4.
14177         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
14178         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
14179
14180         dup3: Remove potential call-in from fchdir.m4.
14181         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
14182         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
14183
14184         dup2: Move AC_LIBOBJ invocation to module description.
14185         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
14186         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
14187         Don't invoke AC_LIBOBJ.
14188         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
14189
14190         dup2: Remove call-in from fchdir.m4.
14191         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
14192         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
14193
14194         fclose: Move AC_LIBOBJ invocation to module description.
14195         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
14196         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
14197         to 1.
14198         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
14199
14200         fclose: Remove call-in from close.m4.
14201         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
14202         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
14203
14204         close: Move AC_LIBOBJ invocation to module description.
14205         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
14206         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
14207         1.
14208         * modules/close (configure.ac): Invoke AC_LIBOBJ.
14209
14210         close: Remove call-in from fchdir.m4.
14211         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
14212         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
14213
14214         open: Move AC_LIBOBJ invocation to module description.
14215         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
14216         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
14217         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
14218
14219         open: Remove call-in from fchdir.m4.
14220         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
14221         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
14222
14223         fchdir: Start to remove gl_REPLACE_* idiom.
14224         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
14225         (gl_FUNC_FCHDIR): Invoke it.
14226
14227 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14228
14229         * lib/ftell.c (ftell): Comment out cast.
14230
14231         close: use gl_REPLACE_FCLOSE only if defined
14232         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
14233         is defined.  The close module doesn't depend on the fclose module
14234         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
14235         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
14236         I reproduced the problem with "./gnulib-tool --test close sys_socket".
14237
14238 2011-07-24  Jim Meyering  <meyering@redhat.com>
14239
14240         test-select.h: avoid warning when using gcc's -Wmissing-declarations
14241         * tests/test-select.h (test_function): Declare as "static".
14242
14243 2011-07-24  Bruno Haible  <bruno@clisp.org>
14244
14245         doc: Mention the effects of AC_SYS_LARGEFILE.
14246         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
14247         on this function.
14248         * doc/posix-functions/aio_error.texi: Likewise.
14249         * doc/posix-functions/aio_fsync.texi: Likewise.
14250         * doc/posix-functions/aio_read.texi: Likewise.
14251         * doc/posix-functions/aio_return.texi: Likewise.
14252         * doc/posix-functions/aio_suspend.texi: Likewise.
14253         * doc/posix-functions/aio_write.texi: Likewise.
14254         * doc/posix-functions/fgetpos.texi: Likewise.
14255         * doc/posix-functions/fopen.texi: Likewise.
14256         * doc/posix-functions/freopen.texi: Likewise.
14257         * doc/posix-functions/fsetpos.texi: Likewise.
14258         * doc/posix-functions/fstatvfs.texi: Likewise.
14259         * doc/posix-functions/ftruncate.texi: Likewise.
14260         * doc/posix-functions/ftw.texi: Likewise.
14261         * doc/posix-functions/getrlimit.texi: Likewise.
14262         * doc/posix-functions/glob.texi: Likewise.
14263         * doc/posix-functions/lio_listio.texi: Likewise.
14264         * doc/posix-functions/lockf.texi: Likewise.
14265         * doc/posix-functions/mkstemp.texi: Likewise.
14266         * doc/posix-functions/mmap.texi: Likewise.
14267         * doc/posix-functions/nftw.texi: Likewise.
14268         * doc/posix-functions/openat.texi: Likewise.
14269         * doc/posix-functions/opendir.texi: Likewise.
14270         * doc/posix-functions/posix_fadvise.texi: Likewise.
14271         * doc/posix-functions/posix_fallocate.texi: Likewise.
14272         * doc/posix-functions/pread.texi: Likewise.
14273         * doc/posix-functions/pwrite.texi: Likewise.
14274         * doc/posix-functions/readdir.texi: Likewise.
14275         * doc/posix-functions/readdir_r.texi: Likewise.
14276         * doc/posix-functions/rewinddir.texi: Likewise.
14277         * doc/posix-functions/scandir.texi: Likewise.
14278         * doc/posix-functions/seekdir.texi: Likewise.
14279         * doc/posix-functions/setrlimit.texi: Likewise.
14280         * doc/posix-functions/statvfs.texi: Likewise.
14281         * doc/posix-functions/telldir.texi: Likewise.
14282         * doc/posix-functions/tmpfile.texi: Likewise.
14283         * doc/posix-functions/truncate.texi: Likewise.
14284         * doc/glibc-functions/fallocate.texi: Likewise.
14285         * doc/glibc-functions/fstatfs.texi: Likewise.
14286         * doc/glibc-functions/fts_children.texi: Likewise.
14287         * doc/glibc-functions/fts_read.texi: Likewise.
14288         * doc/glibc-functions/getdirentries.texi: Likewise.
14289         * doc/glibc-functions/mkostemp.texi: Likewise.
14290         * doc/glibc-functions/mkostemps.texi: Likewise.
14291         * doc/glibc-functions/mkstemps.texi: Likewise.
14292         * doc/glibc-functions/preadv.texi: Likewise.
14293         * doc/glibc-functions/pwritev.texi: Likewise.
14294         * doc/glibc-functions/sendfile.texi: Likewise.
14295         * doc/glibc-functions/statfs.texi: Likewise.
14296
14297 2011-07-24  Bruno Haible  <bruno@clisp.org>
14298
14299         doc: Fix typo.
14300         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
14301
14302 2011-07-24  Bruno Haible  <bruno@clisp.org>
14303
14304         doc: Mention fsusage.
14305         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
14306
14307 2011-07-24  Bruno Haible  <bruno@clisp.org>
14308
14309         doc: Mention new glibc headers and functions.
14310         * doc/glibc-headers/gshadow.texi: New file.
14311         * doc/glibc-functions/endsgent.texi: New file.
14312         * doc/glibc-functions/fgetsgent.texi: New file.
14313         * doc/glibc-functions/fgetsgent_r.texi: New file.
14314         * doc/glibc-functions/getsgent.texi: New file.
14315         * doc/glibc-functions/getsgent_r.texi: New file.
14316         * doc/glibc-functions/getsgnam.texi: New file.
14317         * doc/glibc-functions/getsgnam_r.texi: New file.
14318         * doc/glibc-functions/putsgent.texi: New file.
14319         * doc/glibc-functions/setsgent.texi: New file.
14320         * doc/glibc-functions/sgetsgent.texi: New file.
14321         * doc/glibc-functions/sgetsgent_r.texi: New file.
14322         * doc/glibc-functions/malloc_info.texi: New file.
14323         * doc/glibc-functions/preadv.texi: New file.
14324         * doc/glibc-functions/pwritev.texi: New file.
14325         * doc/glibc-functions/register_printf_modifier.texi: New file.
14326         * doc/glibc-functions/register_printf_specifier.texi: New file.
14327         * doc/glibc-functions/register_printf_type.texi: New file.
14328         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
14329         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
14330         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
14331         * doc/glibc-functions/pthread_getname_np.texi: New file.
14332         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
14333         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
14334         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
14335         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
14336         * doc/glibc-functions/pthread_setname_np.texi: New file.
14337         * doc/glibc-functions/pthread_sigqueue.texi: New file.
14338         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
14339         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
14340         * doc/glibc-functions/qsort_r.texi: New file.
14341         * doc/glibc-functions/quick_exit.texi: New file.
14342         * doc/glibc-functions/syncfs.texi: New file.
14343         * doc/gnulib.texi: Include them.
14344         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
14345         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
14346         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
14347         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
14348         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
14349         * doc/glibc-functions/execvpe.texi: Likewise.
14350
14351 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14352
14353         ftell: don't include <unistd.h>
14354         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
14355         guaranteed to define off_t, and the ftell module depends on the
14356         stdio module.
14357
14358         ftell: do not assume wraparound signed arithmetic
14359         * lib/ftell.c: Include <limits.h>.
14360         (ftell): Don't assume wraparound signed arithmetic.
14361
14362 2011-07-24  Bruno Haible  <bruno@clisp.org>
14363
14364         close: No longer depend on module 'fclose'.
14365         * modules/close (Depends-on): Remove fclose.
14366         * NEWS: Mention the change.
14367         Suggested by Sam Steingold <sds@gnu.org>.
14368
14369 2011-07-24  Bruno Haible  <bruno@clisp.org>
14370
14371         fsusage: Enable large volume support on AIX >= 5.2.
14372         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
14373         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
14374         instead of STAT_STATVFS.
14375         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
14376
14377         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
14378         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
14379         f_blocks field only on MacOS X.
14380
14381         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
14382         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
14383         * modules/fsusage (Depends-on): Add largefile.
14384
14385 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14386
14387         * README: Modernize discussion of signed integers.
14388         Assuming overflow wraparound is no longer safe.
14389         Mention ones' complement and signed magnitude.
14390
14391 2011-07-22  Bruno Haible  <bruno@clisp.org>
14392
14393         select tests, pselect tests: Refactor.
14394         * tests/test-select.h: New file, extracted from tests/test-select.c.
14395         (select_fn): New type.
14396         (test, do_select, do_select_nowait, do_select_wait, test_tty,
14397         test_connect_first, test_accept_first, test_pair, test_socket_pair,
14398         test_pipe): Add my_select argument.
14399         (test_function): Renamed from main. Add my_select argument.
14400         * tests/test-select.c: Move most code to tests/test-select.h. Include
14401         test-select.h.
14402         * modules/select-tests (Files): Add tests/test-select.h.
14403         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
14404         (my_select, main): New functions.
14405         * modules/pselect-tests (Files): Add tests/test-select.h,
14406         tests/macros.h, tests/signature.h.
14407         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
14408         (configure.ac): Check for <sys/wait.h>.
14409
14410 2011-07-22  Bruno Haible  <bruno@clisp.org>
14411
14412         sys_select tests: Check the signature of FD_*.
14413         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
14414         signature tests from here...
14415         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
14416         here.
14417         * modules/sys_select-tests (Files): Add tests/signature.h.
14418
14419 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14420
14421         largefile: new module, replacing large-inode
14422         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
14423         * MODULES.html.sh: Add largefile, remove large-inode.
14424         * modules/largefile, m4/largefile.m4: New files.
14425         * modules/large-inode, m4/large-inode.m4: Remove.
14426
14427         fsusage: port to MacOS X 10.7 with 4 TiB file systems
14428         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
14429         implementations that use only 32 bits to count blocks.
14430         On typical hosts with 1024-byte blocks, this fails with file
14431         systems as small as 4 TiB.  Problem reported by Herb Wartens
14432         <http://debbugs.gnu.org/9140> and this should also fix a similar
14433         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
14434
14435         large-inode: New module
14436         * MODULES.html.sh: Add it.
14437         * modules/large-inode, m4/large-inode.m4: New files.
14438
14439         extensions: Enable extensions on MacOS X 10.5 and later.
14440         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
14441
14442 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
14443
14444         file-has-acl: use acl_extended_file_nofollow if available
14445         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
14446         (acl_extended_file): New macro.
14447         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
14448         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
14449
14450 2011-07-21  Bruno Haible  <bruno@clisp.org>
14451
14452         Declare system functions in a way that works with C++.
14453         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
14454         declare fdopendir as extern "C".
14455         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
14456         declare frexpl as extern "C".
14457         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
14458         declare gai_strerror as extern "C".
14459         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
14460         programs, declare gai_strerror as extern "C".
14461         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
14462         declare getlogin_r as extern "C".
14463         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
14464         as extern "C".
14465         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
14466         declare ldexpl as extern "C".
14467         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
14468         as extern "C".
14469         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
14470         program, declare getmntinfo as extern "C".
14471         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
14472         stpncpy as extern "C".
14473         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
14474         program, declare __xpg_strerror_r as extern "C".
14475         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
14476         strndup as extern "C".
14477         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
14478         declare memset and bzero as extern "C".
14479         Reported by Sam Steingold <sds@gnu.org>.
14480
14481 2011-07-12  Jim Meyering  <meyering@redhat.com>
14482
14483         maint.mk: prohibit inclusion of "verify.h" without use
14484         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
14485
14486 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14487
14488         timer-time: A new module to check for timer_settime()
14489         * m4/timer_time.m4: Check for the posix function.
14490         * modules/timer-time: Add the new module.
14491         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
14492         Mention it.
14493
14494 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
14495             Bruno Haible  <bruno@clisp.org>
14496
14497         pthread_sigmask: assume POSIX threads if --avoid=threadlib
14498         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
14499         not defined, assume POSIX threads and look for pthread_sigmask in
14500         $LIBS, without changing $CPPFLAGS.
14501
14502 2011-07-19  Bruno Haible  <bruno@clisp.org>
14503
14504         strstr: Update cross-compilation guess.
14505         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
14506         CPUs, guess no, in view of glibc
14507         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
14508         Suggested by Eric Blake. Reported by Reuben Thomas.
14509
14510 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14511
14512         getopt-gnu: suppress core dumps from detection code
14513         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
14514         to suppress core dumps that may well occur on glibc systems.
14515         * modules/getopt-gnu: Depend on nocrash.
14516
14517 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
14518
14519         pthread_sigmask: ensure usleep is declared
14520         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
14521         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
14522
14523 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
14524
14525         doc: Document NonStop portability issues.
14526         * doc/posix-functions/sigaction.texi (sigaction):
14527         * doc/posix-headers/signal.texi (signal.h):
14528         Document NonStop.  See Joachim Schmitz in
14529         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
14530
14531 2011-07-15  Bruno Haible  <bruno@clisp.org>
14532
14533         ffsl, ffsll: Avoid unportable behaviour.
14534         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
14535
14536 2011-07-15  Bruno Haible  <bruno@clisp.org>
14537
14538         ffs: More tests.
14539         * tests/test-ffs.c (NBITS): New macro.
14540         (main): Add more tests.
14541         * tests/test-ffsl.c (NBITS): New macro.
14542         (main): Add more tests.
14543         * tests/test-ffsll.c (NBITS): New macro.
14544         (main): Add more tests.
14545
14546 2011-07-15  Eric Blake  <eblake@redhat.com>
14547
14548         ffsl, ffsll: new modules
14549         * modules/ffsl: New file.
14550         * modules/ffsll: Likewise.
14551         * m4/ffsl.m4: Likewise.
14552         * m4/ffsll.m4: Likewise.
14553         * lib/ffsl.c: Likewise.
14554         * lib/ffsl.h: Likewise.
14555         * lib/ffsll.c: Likewise.
14556         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
14557         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
14558         * modules/string (Makefile.am): Substitute witnesses.
14559         * lib/strings.in.h (ffsl, ffsll): Declare.
14560         * modules/ffsl-tests: New test file.
14561         * modules/ffsll-tests: Likewise.
14562         * tests/test-ffsl.c: Likewise.
14563         * tests/test-ffsll.c: Likewise.
14564         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14565         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
14566         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
14567
14568         ffs: fix m4 prerequisite
14569         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
14570
14571         ffs: avoid undefined behavior
14572         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
14573         * tests/test-ffs.c (naive, main): Avoid signed shifts.
14574         Reported by Bruno Haible.
14575
14576 2011-07-12  Bruno Haible  <bruno@clisp.org>
14577
14578         pthread_sigmask: Rely on module 'threadlib'.
14579         * modules/pthread_sigmask (Depends-on): Add threadlib.
14580         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
14581         is defined.
14582
14583 2011-07-12  Bruno Haible  <bruno@clisp.org>
14584
14585         regex: Depend on module 'strcase'.
14586         * modules/regex (Depends-on): Add strcase, for strcasecmp().
14587
14588 2011-07-12  Jim Meyering  <meyering@redhat.com>
14589
14590         warn-on-use: fix typo in file name
14591         * modules/snippet/warn-on-use (Files): Correct file name:
14592         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
14593
14594 2011-07-12  Bruno Haible  <bruno@clisp.org>
14595
14596         strings: Document module.
14597         * doc/posix-headers/strings.texi: Mention module 'strings'.
14598
14599 2011-07-12  Bruno Haible  <bruno@clisp.org>
14600
14601         Rename module '_Noreturn' to 'snippet/_Noreturn'.
14602         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
14603         (Files, Makefile.am): Update.
14604         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
14605         * modules/stdlib (Depends-on): Update.
14606
14607 2011-07-12  Bruno Haible  <bruno@clisp.org>
14608
14609         * NEWS: Mention the changes.
14610
14611         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
14612         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
14613         (Files, Makefile.am): Update.
14614         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
14615         * modules/arpa_inet (Depends-on): Update.
14616         * modules/ctype (Depends-on): Update.
14617         * modules/dirent (Depends-on): Update.
14618         * modules/fcntl-h (Depends-on): Update.
14619         * modules/glob (Depends-on): Update.
14620         * modules/iconv-h (Depends-on): Update.
14621         * modules/inttypes-incomplete (Depends-on): Update.
14622         * modules/langinfo (Depends-on): Update.
14623         * modules/locale (Depends-on): Update.
14624         * modules/math (Depends-on): Update.
14625         * modules/netdb (Depends-on): Update.
14626         * modules/poll-h (Depends-on): Update.
14627         * modules/pty (Depends-on): Update.
14628         * modules/search (Depends-on): Update.
14629         * modules/signal (Depends-on): Update.
14630         * modules/spawn (Depends-on): Update.
14631         * modules/stdio (Depends-on): Update.
14632         * modules/stdlib (Depends-on): Update.
14633         * modules/string (Depends-on): Update.
14634         * modules/strings (Depends-on): Update.
14635         * modules/sys_file (Depends-on): Update.
14636         * modules/sys_ioctl (Depends-on): Update.
14637         * modules/sys_select (Depends-on): Update.
14638         * modules/sys_socket (Depends-on): Update.
14639         * modules/sys_stat (Depends-on): Update.
14640         * modules/sys_time (Depends-on): Update.
14641         * modules/sys_times (Depends-on): Update.
14642         * modules/sys_utsname (Depends-on): Update.
14643         * modules/sys_wait (Depends-on): Update.
14644         * modules/termios (Depends-on): Update.
14645         * modules/time (Depends-on): Update.
14646         * modules/unistd (Depends-on): Update.
14647         * modules/wchar (Depends-on): Update.
14648         * modules/wctype-h (Depends-on): Update.
14649         * MODULES.html.sh (Support for building libraries and executables):
14650         Update.
14651
14652         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
14653         * modules/snippet/unused-parameter: Renamed from
14654         modules/unused-parameter.
14655         (Files, Makefile.am): Update.
14656         * build-aux/snippet/unused-parameter.h: Renamed from
14657         build-aux/unused-parameter.h.
14658         * modules/selinux-h (Depends-on): Update.
14659         * modules/unistr/base (Depends-on): Update.
14660         * MODULES.html.sh (Core language properties): Update.
14661
14662         Rename module 'link-warning' to 'snippet/link-warning'.
14663         * modules/snippet/link-warning: Renamed from modules/link-warning.
14664         (Files, Makefile.am): Update.
14665         * build-aux/snippet/link-warning.h: Renamed from
14666         build-aux/link-warning.h.
14667         * MODULES.html.sh (Support for building libraries and executables):
14668         Update.
14669
14670         Rename module 'c++defs' to 'snippet/c++defs'.
14671         * modules/snippet/c++defs: Renamed from modules/c++defs.
14672         (Files, Makefile.am): Update.
14673         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
14674         * modules/arpa_inet (Depends-on): Update.
14675         * modules/ctype (Depends-on): Update.
14676         * modules/dirent (Depends-on): Update.
14677         * modules/fcntl-h (Depends-on): Update.
14678         * modules/glob (Depends-on): Update.
14679         * modules/iconv-h (Depends-on): Update.
14680         * modules/langinfo (Depends-on): Update.
14681         * modules/locale (Depends-on): Update.
14682         * modules/math (Depends-on): Update.
14683         * modules/netdb (Depends-on): Update.
14684         * modules/poll-h (Depends-on): Update.
14685         * modules/pty (Depends-on): Update.
14686         * modules/search (Depends-on): Update.
14687         * modules/signal (Depends-on): Update.
14688         * modules/spawn (Depends-on): Update.
14689         * modules/stdio (Depends-on): Update.
14690         * modules/stdlib (Depends-on): Update.
14691         * modules/string (Depends-on): Update.
14692         * modules/strings (Depends-on): Update.
14693         * modules/sys_ioctl (Depends-on): Update.
14694         * modules/sys_select (Depends-on): Update.
14695         * modules/sys_socket (Depends-on): Update.
14696         * modules/sys_stat (Depends-on): Update.
14697         * modules/sys_time (Depends-on): Update.
14698         * modules/sys_wait (Depends-on): Update.
14699         * modules/termios (Depends-on): Update.
14700         * modules/time (Depends-on): Update.
14701         * modules/unistd (Depends-on): Update.
14702         * modules/wchar (Depends-on): Update.
14703         * modules/wctype-h (Depends-on): Update.
14704
14705         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
14706         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
14707         (Files, Makefile.am): Update.
14708         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
14709         * modules/argv-iter (Depends-on): Update.
14710         * modules/arpa_inet (Depends-on): Update.
14711         * modules/dirent (Depends-on): Update.
14712         * modules/fcntl-h (Depends-on): Update.
14713         * modules/fnmatch (Depends-on): Update.
14714         * modules/getopt-posix (Depends-on): Update.
14715         * modules/glob (Depends-on): Update.
14716         * modules/iconv-h (Depends-on): Update.
14717         * modules/inttypes-incomplete (Depends-on): Update.
14718         * modules/locale (Depends-on): Update.
14719         * modules/math (Depends-on): Update.
14720         * modules/netdb (Depends-on): Update.
14721         * modules/search (Depends-on): Update.
14722         * modules/signal (Depends-on): Update.
14723         * modules/spawn (Depends-on): Update.
14724         * modules/stdio (Depends-on): Update.
14725         * modules/stdlib (Depends-on): Update.
14726         * modules/string (Depends-on): Update.
14727         * modules/strings (Depends-on): Update.
14728         * modules/sys_socket (Depends-on): Update.
14729         * modules/sys_stat (Depends-on): Update.
14730         * modules/sys_time (Depends-on): Update.
14731         * modules/sys_times (Depends-on): Update.
14732         * modules/sys_utsname (Depends-on): Update.
14733         * modules/time (Depends-on): Update.
14734         * modules/unistd (Depends-on): Update.
14735         * modules/wchar (Depends-on): Update.
14736         * MODULES.html.sh (Support for building libraries and executables):
14737         Update.
14738
14739 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14740
14741         Improvements on _Noreturn and related modules.
14742
14743         modules/_Exit-tests: test _Noreturn too
14744         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
14745         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
14746         (main): Use them.
14747
14748         stdnoreturn, stdnoreturn-tests: remove modules
14749         They're not needed here and a bit premature for use elsewhere.  See
14750         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
14751         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
14752         * tests/test-stdnoreturn.c: Remove files.
14753         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
14754         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
14755         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
14756         and using noreturn.
14757         * modules/openat, modules/sigpipe-die, modules/xalloc:
14758         * modules/xmemdup0, modules/xstrtol:
14759         Remove dependency on stdnoreturn.
14760
14761         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
14762         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
14763         Reparenthesize to avoid GCC warning.
14764         Support Microsoft's syntax.
14765         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
14766
14767         _Noreturn-tests: remove module
14768         * modules/_Noreturn-tests: Remove.
14769         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
14770         * tests/test-_Noreturn.c: Remove.
14771         * tests/test-stdnoreturn.c: Merge from the old
14772         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
14773
14774 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14775
14776         _Noreturn, stdnoreturn, and related modules.
14777
14778         * top/maint.mk: Adjust to new noreturn support.
14779         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
14780         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
14781
14782         xalloc: use stdnoreturn.h
14783         * lib/xalloc.h: Include <stdnoreturn.h>.
14784         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14785         * modules/xalloc (Depends-on): Add stdnoreturn.
14786
14787         xstrtol: use stdnoreturn.h
14788         * lib/xstrtol.h: Include <stdnoreturn.h>.
14789         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14790         * modules/xstrtol (Depends-on): Add stdnoreturn.
14791
14792         xmemdup0: use stdnoreturn.h
14793         * lib/xmemdup0.h: Include <stdnoreturn.h>.
14794         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14795         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
14796
14797         sigpipe-die: use stdnoreturn.h
14798         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
14799         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14800         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
14801
14802         openat: use stdnoreturn.h
14803         * lib/openat.h: Include <stdnoreturn.h>.
14804         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14805         * modules/openat (Depends-on): Add stdnoreturn.
14806
14807         * lib/openat-die.c (openat_save_fail): Modernize comment.
14808
14809         * lib/xalloc-die.c (xalloc_die): Modernize comment.
14810
14811         * lib/glthread/thread.h: Modernize comment.
14812
14813         obstack: use _Noreturn
14814         * lib/obstack.c (__attribute__): Remove macro.
14815         (print_and_abort): Use _Noreturn.
14816
14817         c-stack: use _Noreturn
14818         * lib/c-stack.c (die, overflow_handler, segv_handler):
14819         Use _Noreturn rather than __attribute__((noreturn)).
14820
14821         argmatch-tests, exclude_tests: use _Noreturn
14822         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
14823         Remove.
14824         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
14825
14826         stdlib: use _Noreturn
14827         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
14828         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
14829         * modules/stdlib (Depends-on): Add _Noreturn.
14830         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
14831
14832         stdnoreturn-tests: new module
14833         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
14834
14835         stdnoreturn: new module
14836         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
14837         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
14838
14839         _Noreturn-tests: new module
14840         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
14841
14842         _Noreturn: new module
14843         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
14844         New section, mentioning it.
14845         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
14846
14847         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
14848
14849 2011-07-11  Eric Blake  <eblake@redhat.com>
14850
14851         ffs: new module
14852         * modules/ffs: New file.
14853         * m4/ffs.m4: Likewise.
14854         * lib/ffs.c: Likewise.
14855         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
14856         * modules/strings (Makefile.am): Substitute witness.
14857         (Depends-on): Add c++defs.
14858         * lib/strings.in.h (ffs): Declare.
14859         * modules/ffs-tests: New test file.
14860         * tests/test-ffs.c: Test new module.
14861         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14862         * doc/posix-functions/ffs.texi (ffs): Likewise.
14863
14864         regex: avoid compiler warning
14865         * lib/regex.c (includes): Include <strings.h>, for use of
14866         strcasecmp in regcomp.c.
14867         Reported by Joachim Schmitz.
14868
14869 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14870
14871         stdint: respect system's intmax_t if INTMAX_MAX
14872         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
14873         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
14874         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
14875         long but int64_t is long long, and where we will clash with the
14876         system intmax_t if we override it.  See
14877         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
14878         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
14879         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
14880         similarly for UINTMAX_C.
14881
14882 2011-07-08  Bruno Haible  <bruno@clisp.org>
14883
14884         pthread_sigmask tests: Avoid a compiler warning.
14885         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
14886         non-zero.
14887
14888         sigprocmask tests: A better way to avoid a compiler warning.
14889         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
14890         (main): Complain if system() returns non-zero.
14891         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
14892
14893 2011-07-08  Bruno Haible  <bruno@clisp.org>
14894
14895         pthread_sigmask: Work around IRIX bug.
14896         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
14897         bug.
14898         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
14899         there may be unblocked pending signals.
14900         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
14901
14902 2011-07-08  Bruno Haible  <bruno@clisp.org>
14903
14904         pthread_sigmask: Work around Cygwin bug.
14905         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
14906         bug.
14907         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
14908         the system's pthread_sigmask function.
14909         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
14910
14911 2011-07-08  Bruno Haible  <bruno@clisp.org>
14912
14913         pthread_sigmask: Work around bug in single-threaded implementation.
14914         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
14915         FreeBSD, HP-UX, Solaris bug.
14916         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
14917         * lib/pthread_sigmask.c: Include <stddef.h>.
14918         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
14919         the system's pthread_sigmask function.
14920         * modules/pthread_sigmask (configure.ac): Invoke
14921         gl_PREREQ_PTHREAD_SIGMASK.
14922         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
14923         HP-UX, Solaris.
14924
14925 2011-07-08  Eric Blake  <eblake@redhat.com>
14926
14927         test-sigprocmask: avoid compiler warning
14928         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
14929         * tests/test-sigprocmask.c (main): Use it to silence warning.
14930         Reported by Jim Meyering.
14931
14932         test-snprintf: avoid compiler warning
14933         * tests/test-snprintf.c (main): Avoid shadowed declaration.
14934         * tests/test-vsnprintf.c (main): Likewise.
14935         Reported by Jim Meyering.
14936
14937 2011-07-08  Bruno Haible  <bruno@clisp.org>
14938
14939         Tests for module 'pthread_sigmask'.
14940         * modules/pthread_sigmask-tests: New file.
14941         * tests/test-pthread_sigmask1.c: New file, based on
14942         tests/test-sigprocmask.c.
14943         * tests/test-pthread_sigmask2.c: New file.
14944
14945 2011-07-08  Jim Meyering  <meyering@redhat.com>
14946
14947         test-getopt.h: avoid warning about an unused variable
14948         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
14949
14950 2011-07-07  Jim Meyering  <meyering@redhat.com>
14951
14952         maint: reduce list of files exempt from sc_prohibit_leading_TABs
14953         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
14954         now that it no longer contains leading TABs.
14955         Remove unused "url=FIXME" statement.
14956
14957 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14958
14959         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
14960         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14961         When gl_THREADLIB is not in use, assume that the POSIX sematics
14962         are desired.  This is better for Emacs, which uses POSIX semantics
14963         on GNUish and/or POSIXish platforms, and does not use threads at
14964         all otherwise.
14965
14966         pthread_sigmask: fix typo when testing for libraries
14967         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14968         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
14969
14970 2011-07-08  Eric Blake  <eblake@redhat.com>
14971
14972         fts: introduce FTS_NOATIME
14973         * lib/fts_.h (FTS_NOATIME): New bit flag.
14974         (FTS_OPTIONMASK): Adjust.
14975         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
14976         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
14977
14978 2011-07-08  Bruno Haible  <bruno@clisp.org>
14979
14980         Tests for module 'thread'.
14981         * modules/thread-tests: New file.
14982         * tests/test-thread_self.c: New file.
14983         * tests/test-thread_create.cc: New file.
14984
14985 2011-07-08  Bruno Haible  <bruno@clisp.org>
14986
14987         thread: Avoid gcc warnings when using gl_thread_self().
14988         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
14989         'void *'.
14990         (gl_thread_self_pointer): Update.
14991
14992 2011-07-07  Bruno Haible  <bruno@clisp.org>
14993
14994         signal-c++-tests: Check declaration of pthread_sigmask.
14995         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
14996         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
14997         $(LIB_PTHREAD_SIGMASK).
14998
14999 2011-07-07  Bruno Haible  <bruno@clisp.org>
15000
15001         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
15002         * lib/signal.in.h (pthread_sigmask): Override if
15003         REPLACE_PTHREAD_SIGMASK is 1.
15004         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15005         REPLACE_PTHREAD_SIGMASK.
15006         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
15007         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
15008         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
15009         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15010         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
15011
15012 2011-07-07  Bruno Haible  <bruno@clisp.org>
15013
15014         pthread_sigmask: Ensure declaration in <signal.h>.
15015         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
15016         include <pthread.h>.
15017         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
15018         problem.
15019
15020 2011-07-07  Bruno Haible  <bruno@clisp.org>
15021
15022         pthread_sigmask: Document the module.
15023         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
15024
15025 2011-07-07  Bruno Haible  <bruno@clisp.org>
15026
15027         pthread_sigmask: Follow gnulib conventions.
15028         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
15029         gl_PTHREAD_SIGMASK.
15030         * modules/pthread_sigmask (configure.ac): Update.
15031
15032 2011-07-07  Bruno Haible  <bruno@clisp.org>
15033
15034         pthread_sigmask: Make declaration C++ safe.
15035         * lib/signal.in.h: In two special conditions, just do an #include_next.
15036         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15037         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
15038         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15039         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15040         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
15041         not REPLACE_PTHREAD_MASK.
15042         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
15043         not REPLACE_PTHREAD_MASK.
15044         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15045
15046 2011-07-07  Bruno Haible  <bruno@clisp.org>
15047
15048         pthread_sigmask: Fix return value.
15049         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
15050         * lib/pthread_sigmask.c: New file.
15051         * modules/pthread_sigmask (Files): Add it.
15052         (configure.ac): Invoke AC_LIBOBJ.
15053
15054 2011-07-07  Eric Blake  <eblake@redhat.com>
15055
15056         getopt: more portable argv creation
15057         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
15058         const, use char arrays rather than strings.
15059         Suggested by Paul Eggert.
15060
15061 2011-07-07  Bruno Haible  <bruno@clisp.org>
15062
15063         Tests for module 'sigprocmask'.
15064         * modules/sigprocmask-tests: New file.
15065         * tests/test-sigprocmask.c: New file.
15066
15067 2011-07-07  Bruno Haible  <bruno@clisp.org>
15068
15069         float tests: Tweak.
15070         * tests/test-float.c (main): Tweak skip message.
15071
15072 2011-07-07  Eric Blake  <eblake@redhat.com>
15073
15074         getopt: avoid compiler warning during configure
15075         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
15076         assigning string literals to non-const pointer.
15077
15078         getopt-gnu: avoid crash in glibc getopt
15079         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
15080         * tests/test-getopt.h (test_getopt): Enhance test.
15081         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15082         * doc/posix-functions/getopt.texi (getopt): Document it.
15083         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15084         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15085         Likewise.
15086
15087 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15088
15089         getopt: handle W; without long options in getopt [BZ #12922]
15090         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
15091         but no long options are defined, just return 'W'.
15092
15093 2011-07-07  Bruno Haible  <bruno@clisp.org>
15094
15095         Avoid literal tabs.
15096         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
15097         variable containing a tab instead of a literal tab.
15098         Reported by Jim Meyering.
15099
15100 2011-07-07  Bruno Haible  <bruno@clisp.org>
15101
15102         Comments.
15103         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
15104
15105 2011-07-06  Bruno Haible  <bruno@clisp.org>
15106
15107         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
15108         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
15109         <winsock2.h>.
15110         (rpl_fd_isset, FD_ISSET): New definitions, copied from
15111         lib/sys_socket.in.h.
15112         (close, gethostname): Hide declarations from <winsock2.h>.
15113         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15114         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
15115         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
15116         (select): Don't override if gnulib's <sys/select.h> was already
15117         included.
15118         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15119         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15120         setsockopt, shutdown, select): Tweak indentation.
15121
15122 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15123
15124         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
15125         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
15126         in an application that does not use the sys_select module.
15127
15128 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
15129
15130         poll: do not return 0 on timeout=-1
15131         * lib/poll.c: Loop with yield if no events occurred.
15132
15133 2011-07-06  Eric Blake  <eblake@redhat.com>
15134
15135         pthread_sigmask: always replace when not using pthread
15136         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
15137         replacement when using some threading other than pthread.  Fix
15138         logic bug.
15139
15140 2011-07-06  Bruno Haible  <bruno@clisp.org>
15141
15142         Comments.
15143         * m4/printf.m4: Update comments about mingw.
15144
15145 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15146
15147         sys_select: define sigset_t more portably
15148         * lib/sys_select.in.h: Always include <sys/types.h>, since
15149         we now need sigset_t and mingw defines it there.
15150         Include <signal.h> before split inclusion guard, to avoid
15151         mishaps on Solaris, whose <signal.h> eventually includes us.
15152         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
15153         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
15154         which come from ...
15155         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15156         gl_CHECK_TYPE_SIGSET_T.
15157         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
15158         does the real work.
15159         * modules/sys_select (Depends-on): Add 'signal'.
15160
15161         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
15162         Suggested by Bruno Haible.
15163
15164         pselect: Use pthread_sigmask, not sigprocmask.
15165         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
15166         multithreaded apps better than sigprocmask does.
15167         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
15168         sigprocmask directly.
15169
15170 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15171
15172         * lib/pselect.c (pselect): Use plain name, without "rpl_".
15173         Don't #undef,  since we don't need any underlying pselect.
15174         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
15175         (Depends-on): Add select.
15176         (Link): Add $(LIBSOCKET).
15177         These changes suggested by Bruno Haible.
15178
15179         pselect: document better
15180         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15181         * doc/posix-functions/pselect.texi (pselect): Document new module.
15182
15183         pthread_sigmask: new module
15184         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15185         * doc/posix-functions/pthread_sigmask.texi: Document new module.
15186         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
15187         This is done only as a macro; I don't know how well that'll
15188         work for C++.  Move <sys/types.h> include before the include_next,
15189         to avoid mishap on Solaris.
15190         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
15191         * modules/signal (Makefile.am): Substitute the check's results.
15192         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
15193
15194         test-pselect: new module
15195         * modules/pselect-tests, tests/test-pselect.c: New files.
15196         * tests/test-select.c, tests/test-sys_select-c++.cc:
15197         If TEST_PSELECT is defined, test pselect instead of testing select.
15198
15199         * tests/test-sys_select.c (sigset_t): Test for it, too.
15200         Suggested by Bruno Haible.
15201
15202 2011-07-05  Eric Blake  <eblake@redhat.com>
15203
15204         snprintf: guarantee %1$d, for libintl
15205         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
15206         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
15207         * doc/posix-functions/snprintf.texi (snprintf): Update.
15208         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15209         * tests/test-snprintf.c (main): Enhance test.
15210         * tests/test-vsnprintf.c (main): Likewise.
15211
15212 2011-07-05  Jim Meyering  <meyering@redhat.com>
15213
15214         maint: exempt stdio-read.c and stdio-write.c from the cppi check
15215         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
15216         per Bruno's request, to accommodate this idiom (no space after "#")
15217         even when the function is inside an #if block:
15218         char *
15219         gets (char *s)
15220         #undef gets
15221         {
15222           ...
15223         }
15224
15225 2011-07-04  Jim Meyering  <meyering@redhat.com>
15226
15227         maint: indent with spaces, not TABs, and add a rule to check this
15228         * tests/test-userspec.c: Indent with spaces, not TABs.
15229         * tests/test-argp.c: Likewise.
15230         * tests/test-c-stack2.sh: Likewise.
15231         * tests/test-parse-duration.sh: Likewise
15232         * m4/strtod.m4: Likewise.
15233         * m4/alloca.m4: Likewise.
15234         * m4/pselect.m4: Likewise.
15235         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
15236
15237 2011-07-03  Jim Meyering  <meyering@redhat.com>
15238
15239         maint.mk: correct omissions in prohibit_argmatch_without_use check
15240         This rule would mistakenly report that argmatch.h is included without
15241         use even when both the argmatch and invalid_arg macro were used.
15242         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
15243         of argmatch and invalid_arg.
15244
15245 2011-07-03  Bruno Haible  <bruno@clisp.org>
15246
15247         Comments about EINTR.
15248         * lib/safe-read.h: Explain the purpose of this module.
15249         * lib/safe-write.h: Likewise.
15250         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
15251         module.
15252         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
15253         module.
15254         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15255
15256 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15257
15258         xnanosleep: Rewrite to use new dtotimespec module.
15259         It has the conversion code that used to be in xnanosleep.
15260         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
15261         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
15262         (TIME_T_MAX): Remove.
15263         (xnanosleep): Rewrite in terms of dtotimespec.
15264         * modules/xnanosleep (Depends-on): Add dtotimespec.
15265         Remove intprops, stdbool.
15266
15267         timespec-add, timespec-sub: new modules
15268         * lib/timespec.h (timespec_add, timespec_sub): New decls.
15269         * lib/timespec-add.c, lib/timespec-sub.c:
15270         * modules/timespec-add, modules/timespec-sub: New files.
15271
15272         dtotimespec: new module
15273         * lib/timespec.h (dtotimespec): New decl.
15274         * lib/dtotimespec.c, modules/dtotimespec: New files.
15275
15276         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
15277
15278         pselect: new module
15279         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
15280         (pselect): New decls.
15281         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
15282         since the standard pselect decl uses 'restrict'.
15283         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
15284         HAVE_PSELECT, REPLACE_PSELECT.
15285         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
15286         HAVE_PSELECT, REPLACE_PSELECT.
15287         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
15288
15289         sys_select: don't depend on sys_socket
15290         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
15291         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
15292         This fix works on GNU and GNU-like platforms, but has not been tested
15293         on native Windows.
15294         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
15295         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
15296         gl_HEADER_SYS_SOCKET.
15297         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
15298         gl_PREREQ_SYS_H_WINSOCK2.
15299
15300 2011-06-29  Eric Blake  <eblake@redhat.com>
15301
15302         pipe2: fix C89 compile problem
15303         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
15304         Reported by Bruno Haible.
15305
15306         pipe, pipe2: don't corrupt fd on error
15307         * lib/pipe.c (pipe): Leave fd unchanged on error.
15308         * lib/pipe2.c (pipe2): Likewise.
15309         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
15310         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15311
15312 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
15313
15314         mmap-anon: do not use regular expressions inadvertently
15315         * m4/mmap-anon.m4: Remove trailing period from strings sought
15316         in the output.
15317
15318 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
15319
15320         nanosleep: fix integer overflow problem
15321         * lib/nanosleep.c (my_usleep): Don't assume signed integer
15322         arithmetic wraps around on overflow.
15323
15324         nanosleep: simplify carrying
15325         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
15326         first call to the underyling nanosleep, not for the last one.
15327         This doesn't fix any bugs, but it simplifies the computation of
15328         the remaining delay.  Found while auditing integer overflow issues.
15329
15330         dup2: remove test for existence of fcntl
15331         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
15332         "#if HAVE_FCNTL", in the configure-time test program.
15333         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
15334         and therefore speeds up "configure" a bit.  Found while
15335         adding the dup2 module to Emacs.
15336
15337 2011-06-24  Eric Blake  <eblake@redhat.com>
15338
15339         maint.mk: enhance useless header checks
15340         * top/maint.mk (_sc_header_without_use): Check both include
15341         styles.
15342         (sc_prohibit_assert_without_use)
15343         (sc_prohibit_close_stream_without_use)
15344         (sc_prohibit_getopt_without_use)
15345         (sc_prohibit_quotearg_without_use)
15346         (sc_prohibit_quote_without_use)
15347         (sc_prohibit_long_options_without_use)
15348         (sc_prohibit_inttostr_without_use)
15349         (sc_prohibit_ignore_value_without_use)
15350         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
15351         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
15352         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
15353         (sc_prohibit_hash_pjw_without_use)
15354         (sc_prohibit_safe_read_without_use)
15355         (sc_prohibit_argmatch_without_use)
15356         (sc_prohibit_canonicalize_without_use)
15357         (sc_prohibit_root_dev_ino_without_use)
15358         (sc_prohibit_openat_without_use)
15359         (sc_prohibit_c_ctype_without_use)
15360         (sc_prohibit_signal_without_use)
15361         (sc_prohibit_stdio--_without_use)
15362         (sc_prohibit_stdio-safer_without_use)
15363         (sc_prohibit_strings_without_use)
15364         (sc_prohibit_intprops_without_use)
15365         (sc_prohibit_stddef_without_use)
15366         (sc_prohibit_xfreopen_without_use): Update clients.
15367
15368 2011-06-24  Jim Meyering  <meyering@redhat.com>
15369
15370         syntax-check: keep one maint.mk rule in sync with its header
15371         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
15372         of the bug Eric has just fixed, with today's commit 25e4c2ec.
15373         I prefer to avoid temporary files here, so use <(...), but that
15374         is not supported by /bin/sh, so...
15375         (SHELL): Define to /bin/bash.
15376
15377 2011-06-24  Eric Blake  <eblake@redhat.com>
15378
15379         maint.mk: update sc_prohibit_intprops_without_use
15380         * top/maint.mk (_intprops_names): Match recent changes.
15381
15382 2011-06-24  Bruno Haible  <bruno@clisp.org>
15383
15384         strerror-override: No-op tweak.
15385         * lib/strerror-override.h (strerror_override): Reorder conditions,
15386         for consistency with lib/strerror-override.c.
15387
15388 2011-06-23  Eric Blake  <eblake@redhat.com>
15389
15390         maint.mk: test further PATH_MAX issues
15391         * top/maint.mk (sc_prohibit_path_max_array): Rename...
15392         (sc_prohibit_path_max_allocation): ...and also test alloca.
15393         Suggested by Jim Meyering.
15394
15395 2011-06-22  Eric Blake  <eblake@redhat.com>
15396
15397         maint.mk: add syntax-check to avoid char[PATH_MAX]
15398         * top/maint.mk (sc_prohibit_path_max_array): New rule.
15399
15400         stat: be robust to PATH_MAX definition
15401         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
15402         * modules/stat (Depends-on): Add verify.
15403
15404         link: work around IRIX bug
15405         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
15406         * lib/link.c (rpl_link): Work around it.
15407         * tests/test-link.h (test_link): Enhance test.
15408         * doc/posix-functions/link.texi (link): Document the bug.
15409
15410         getopt: silence clang warning
15411         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
15412         dereference.
15413         Reported by Gustavo Martin Domato.
15414
15415 2011-06-22  Jim Meyering  <meyering@redhat.com>
15416
15417         bootstrap: do not insert a blank line into each .gitignore file
15418         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
15419
15420 2011-06-21  Eric Blake  <eblake@redhat.com>
15421
15422         perror: test for output mismatch
15423         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
15424         perror on IRIX.
15425
15426         strerror_r: fix OpenBSD behavior on out-of-range
15427         * lib/strerror_r.c (strerror_r): Always use maximal string.
15428         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15429
15430         strerror_r: fix OpenBSD behavior on 0
15431         * lib/strerror-override.c (strerror_override): Also override 0
15432         when needed.
15433         * lib/strerror-override.h (strerror_override): Likewise.
15434         * lib/strerror.c (strerror): Simplify, now that 0 override is done
15435         earlier.
15436         * lib/strerror_r.c (strerror_r): Likewise.
15437         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
15438         behavior...
15439         (gl_FUNC_STRERROR_0): ...into new macro.
15440         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
15441         is overridden.
15442         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
15443         * modules/strerror-override (Files): Add strerror.m4.
15444         (configure.ac): Also provide override for 0 when needed.
15445         * doc/posix-functions/strerror.texi (strerror): Document this.
15446         * doc/posix-functions/perror.texi (perror): Likewise.
15447
15448         perror: adjust array size
15449         * modules/perror (Depends-on): Add strerror-override.
15450         * lib/perror.c (perror): Use it to avoid magic number.
15451
15452         strerror-override: reduce size
15453         * lib/strerror-override.c (strerror_override): Use fewer lines.
15454
15455 2011-06-20  Bruno Haible  <bruno@clisp.org>
15456
15457         pathmax: Ensure correct value for PATH_MAX on HP-UX.
15458         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
15459
15460 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
15461
15462         alloca: port to compilers that can optimize like GCC 4.6.0
15463         * lib/alloca.c (find_stack_direction): New signature, taken from
15464         Autoconf git.  This works with GCC 4.6.0.  This code should never
15465         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
15466         be used with other compilers that optimize as well as GCC 4.6.0 does.
15467         (alloca): Adjust to new signature.
15468         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
15469         New macro, which patches Autoconf in a similar way.
15470
15471         c-stack: stop worrying about stack direction
15472         * lib/c-stack.c (find_stack_direction): Remove.
15473         (segv_handler): Don't worry about stack direction growth, as it's
15474         too much of a pain to configure this correctly, given how compilers
15475         are optimizing-away our stack-growth detection code.  Instead, assume
15476         that any access to just before or just after the stack is OK.
15477         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
15478         Don't require AC_FUNC_ALLOCA; no longer needed.
15479
15480 2011-06-20  Eric Blake  <eblake@redhat.com>
15481
15482         test-stat: don't allocate PATH_MAX bytes
15483         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
15484         PATH_MAX-sized buffer.
15485         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
15486         * modules/stat-tests (Depends-on): Likewise.
15487         * tests/test-fstatat.c (includes): Drop pathmax.h.
15488         * tests/test-stat.c (includes): Likewise.
15489         Reported by Bruno Haible.
15490
15491 2011-06-20  Bruno Haible  <bruno@clisp.org>
15492
15493         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
15494         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
15495         * lib/float.c: New file.
15496         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
15497         REPLACE_FLOAT_LDBL.
15498         * modules/float (Files): Add lib/float.c.
15499         (configure.ac): Invoke AC_LIBOBJ.
15500         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
15501
15502 2011-06-20  Bruno Haible  <bruno@clisp.org>
15503
15504         Tests for module 'float'.
15505         * modules/float-tests: New file.
15506         * tests/test-float.c: New file.
15507
15508 2011-06-19  Bruno Haible  <bruno@clisp.org>
15509
15510         isinf: Coding style.
15511         * lib/isinf.c: Use GNU coding style.
15512
15513 2011-06-19  Bruno Haible  <bruno@clisp.org>
15514
15515         linkat test: Avoid test failure on AIX 7.1.
15516         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
15517         * tests/test-link.h (test_link): Likewise.
15518
15519 2011-06-19  Bruno Haible  <bruno@clisp.org>
15520
15521         pread test: Avoid test failure on OpenBSD 4.9.
15522         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
15523
15524 2011-06-19  Bruno Haible  <bruno@clisp.org>
15525
15526         sprintf-posix: Fix test failure on AIX 7.1.
15527         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
15528         * doc/posix-functions/dprintf.texi: Mention limited precision problem
15529         on AIX.
15530         * doc/posix-functions/fprintf.texi: Likewise.
15531         * doc/posix-functions/printf.texi: Likewise.
15532         * doc/posix-functions/snprintf.texi: Likewise.
15533         * doc/posix-functions/sprintf.texi: Likewise.
15534         * doc/posix-functions/vdprintf.texi: Likewise.
15535         * doc/posix-functions/vfprintf.texi: Likewise.
15536         * doc/posix-functions/vprintf.texi: Likewise.
15537         * doc/posix-functions/vsnprintf.texi: Likewise.
15538         * doc/posix-functions/vsprintf.texi: Likewise.
15539
15540 2011-06-19  Bruno Haible  <bruno@clisp.org>
15541
15542         roundl-ieee: Fix test failure on AIX 7.1.
15543         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
15544         * doc/posix-functions/roundl.texi: Mention problem with negative
15545         arguments.
15546
15547 2011-06-19  Bruno Haible  <bruno@clisp.org>
15548
15549         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15550         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
15551         * doc/posix-functions/round.texi: Mention problem with negative
15552         arguments.
15553         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
15554
15555 2011-06-19  Bruno Haible  <bruno@clisp.org>
15556
15557         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15558         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
15559         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
15560         * doc/posix-functions/roundf.texi: Mention problem with negative
15561         arguments.
15562         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
15563
15564 2011-06-19  Bruno Haible  <bruno@clisp.org>
15565
15566         ceilf-ieee: Work around bug on MacOS X 10.5.
15567         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
15568
15569         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
15570         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
15571         IEEE compliant, avoid compiler optimizations.
15572         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15573         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15574         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15575         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15576         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15577         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15578         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15579         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15580         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15581         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15582
15583 2011-06-19  Bruno Haible  <bruno@clisp.org>
15584
15585         ceilf-ieee: Work around bug on AIX 7.1.
15586         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
15587         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
15588
15589 2011-06-19  Bruno Haible  <bruno@clisp.org>
15590
15591         ceil-ieee: Work around bug on AIX 7.1.
15592         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
15593         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
15594
15595 2011-06-18  Bruno Haible  <bruno@clisp.org>
15596
15597         fsync test: Avoid test failure on MacOS X and AIX.
15598         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
15599         EINVAL.
15600
15601 2011-06-18  Bruno Haible  <bruno@clisp.org>
15602
15603         openat, fdopendir tests: Fix link errors.
15604         * modules/openat-tests (Depends-on): Add progname.
15605         * modules/fdopendir-tests (Depends-on): Likewise.
15606         * tests/test-fchownat.c: Include progname.h.
15607         (main): Call set_program_name.
15608         * tests/test-fstatat.c: Include progname.h.
15609         (main): Call set_program_name.
15610         * tests/test-mkdirat.c: Include progname.h.
15611         (main): Call set_program_name.
15612         * tests/test-openat.c: Include progname.h.
15613         (main): Call set_program_name.
15614         * tests/test-unlinkat.c: Include progname.h.
15615         (main): Call set_program_name.
15616         * tests/test-fdopendir.c: Include progname.h.
15617         (main): Call set_program_name.
15618
15619 2011-06-18  Bruno Haible  <bruno@clisp.org>
15620
15621         Doc update.
15622         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
15623         HP-UX.
15624         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
15625
15626 2011-06-18  Bruno Haible  <bruno@clisp.org>
15627
15628         getcwd tests: Avoid compilation error on HP-UX 11.31.
15629         * modules/getcwd-tests (Depends-on): Add pathmax.
15630         * tests/test-getcwd.c: Include pathmax.h.
15631
15632 2011-06-18  Bruno Haible  <bruno@clisp.org>
15633
15634         isfinite, isinf: Fix link error on AIX 6 and 7.
15635         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
15636         needed, also test the macro with a 'float' argument.
15637         * m4/isinf.m4 (gl_ISINF): Likewise.
15638
15639 2011-06-18  Bruno Haible  <bruno@clisp.org>
15640
15641         getloadavg: Don't clobber LIBS. Regression from previous commit.
15642         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
15643         AC_CHECK_LIB from here...
15644         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
15645         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
15646         gl_func_getloadavg_done.
15647         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15648
15649 2011-06-18  Bruno Haible  <bruno@clisp.org>
15650
15651         clean-temp: Improve documentation.
15652         * lib/clean-temp.h: Explain better how to use this module.
15653         Reported by John Darrington <john@darrington.wattle.id.au>.
15654
15655 2011-06-17  Bruno Haible  <bruno@clisp.org>
15656
15657         pread, pwrite: Avoid cc warning on AIX.
15658         * lib/unistd.in.h (pread): Undefine before defining as a macro.
15659         (pwrite): Likewise.
15660
15661 2011-06-17  Bruno Haible  <bruno@clisp.org>
15662
15663         spawn-pipe tests: Fix link error.
15664         * tests/test-spawn-pipe-child.c: Undefine fprintf.
15665         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15666
15667 2011-06-17  Bruno Haible  <bruno@clisp.org>
15668
15669         Tests: Remove unnecessary dependency.
15670         * modules/canonicalize-tests (Depends-on): Remove progname.
15671         * modules/chown-tests (Depends-on): Likewise.
15672         * modules/dirname-tests (Depends-on): Likewise.
15673         * modules/fdopendir-tests (Depends-on): Likewise.
15674         * modules/fdutimensat-tests (Depends-on): Likewise.
15675         * modules/hash-tests (Depends-on): Likewise.
15676         * modules/lchown-tests (Depends-on): Likewise.
15677         * modules/linkat-tests (Depends-on): Likewise.
15678         * modules/renameat-tests (Depends-on): Likewise.
15679         * modules/spawn-pipe-tests (Depends-on): Likewise.
15680         * modules/utimensat-tests (Depends-on): Likewise.
15681
15682 2011-06-17  Bruno Haible  <bruno@clisp.org>
15683
15684         spawn-pipe tests: Fix link error.
15685         * tests/test-spawn-pipe-child.c: Undefine fflush.
15686
15687 2011-06-17  Bruno Haible  <bruno@clisp.org>
15688
15689         Fix tests link errors.
15690         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
15691         * modules/chown-tests (Makefile.am): Don't link test-chown with
15692         LIBINTL.
15693         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
15694         LIBINTL.
15695         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
15696         LIBINTL.
15697         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
15698         LIBINTL.
15699
15700 2011-06-16  Bruno Haible  <bruno@clisp.org>
15701
15702         crypto/gc-sha1: Fix recent regression.
15703         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
15704         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
15705
15706         crypto/gc-md5: Fix recent regression.
15707         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
15708
15709         crypto/gc-md4: Fix recent regression.
15710         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
15711         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
15712
15713         crypto/gc-arctwo: Fix recent regression.
15714         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
15715         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
15716
15717         crypto/gc-rijndael: Fix recent regression.
15718         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
15719         (configure.ac): Invoke AC_LIBOBJ here.
15720         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
15721         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15722
15723         crypto/gc-hmac-sha1: Fix recent regression.
15724         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
15725         (configure.ac): Invoke AC_LIBOBJ here.
15726         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
15727         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15728
15729         crypto/gc-hmac-md5: Fix recent regression.
15730         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
15731         (configure.ac): Invoke AC_LIBOBJ here.
15732         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
15733         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15734
15735         crypto/gc-des: Fix recent regression.
15736         * modules/crypto/gc-des (Files): Remove m4/des.m4.
15737         (configure.ac): Invoke AC_LIBOBJ here.
15738         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
15739         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15740
15741         crypto/gc-arcfour: Fix recent regression.
15742         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
15743         (configure.ac): Invoke AC_LIBOBJ here.
15744         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
15745         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15746
15747 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
15748
15749         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
15750         After the 2011-05-21 change, this macro requires
15751         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
15752         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15753
15754 2011-06-16  Bruno Haible  <bruno@clisp.org>
15755
15756         fprintftime: Move AC_LIBOBJ invocations to module description.
15757         * m4/fprintftime.m4: Remove file.
15758         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
15759         (configure.ac): Remove gl_FPRINTFTIME call.
15760         (Makefile.am): Augment lib_SOURCES.
15761         Reported by Jim Meyering.
15762
15763 2011-06-16  Bruno Haible  <bruno@clisp.org>
15764
15765         tmpfile-safer: Finish 2011-05-23 commit.
15766         * m4/stdio-safer.m4: Really remove file.
15767         Reported by Jim Meyering.
15768
15769 2011-06-16  Bruno Haible  <bruno@clisp.org>
15770
15771         syntax-check: Fix typo.
15772         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
15773         printf-posix.m4.
15774         Reported by Jim Meyering.
15775
15776 2011-06-13  Jim Meyering  <meyering@redhat.com>
15777
15778         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
15779         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
15780
15781 2011-05-23  Bruno Haible  <bruno@clisp.org>
15782
15783         yesno: Move AC_LIBOBJ invocations to module description.
15784         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
15785         * modules/yesno (Makefile.am): Augment lib_SOURCES.
15786
15787 2011-05-23  Bruno Haible  <bruno@clisp.org>
15788
15789         xstrtol: Move AC_LIBOBJ invocations to module description.
15790         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
15791         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
15792
15793 2011-05-23  Bruno Haible  <bruno@clisp.org>
15794
15795         xstrtold: Move AC_LIBOBJ invocations to module description.
15796         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
15797         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
15798
15799 2011-05-23  Bruno Haible  <bruno@clisp.org>
15800
15801         xstrtod: Move AC_LIBOBJ invocations to module description.
15802         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
15803         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
15804
15805 2011-05-23  Bruno Haible  <bruno@clisp.org>
15806
15807         xnanosleep: Move AC_LIBOBJ invocations to module description.
15808         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
15809         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
15810
15811 2011-05-23  Bruno Haible  <bruno@clisp.org>
15812
15813         xgetcwd: Move AC_LIBOBJ invocations to module description.
15814         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
15815         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
15816
15817 2011-05-23  Bruno Haible  <bruno@clisp.org>
15818
15819         xalloc: Move AC_LIBOBJ invocations to module description.
15820         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
15821         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
15822
15823 2011-05-23  Bruno Haible  <bruno@clisp.org>
15824
15825         write-any-file: Move AC_LIBOBJ invocations to module description.
15826         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
15827         invocation.
15828         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
15829
15830 2011-05-23  Bruno Haible  <bruno@clisp.org>
15831
15832         utimens: Move AC_LIBOBJ invocations to module description.
15833         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
15834         * modules/utimens (Makefile.am): Augment lib_SOURCES.
15835
15836 2011-05-23  Bruno Haible  <bruno@clisp.org>
15837
15838         utimecmp: Move AC_LIBOBJ invocations to module description.
15839         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
15840         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
15841
15842 2011-05-23  Bruno Haible  <bruno@clisp.org>
15843
15844         userspec: Move AC_LIBOBJ invocations to module description.
15845         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
15846         * modules/userspec (Makefile.am): Augment lib_SOURCES.
15847
15848 2011-05-23  Bruno Haible  <bruno@clisp.org>
15849
15850         unlinkdir: Move AC_LIBOBJ invocations to module description.
15851         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
15852         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
15853
15854 2011-05-23  Bruno Haible  <bruno@clisp.org>
15855
15856         unistd-safer: Move AC_LIBOBJ invocations to module description.
15857         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
15858         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
15859
15860 2011-05-23  Bruno Haible  <bruno@clisp.org>
15861
15862         tempname: Move AC_LIBOBJ invocations to module description.
15863         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
15864         * modules/tempname (Makefile.am): Augment lib_SOURCES.
15865
15866 2011-05-23  Bruno Haible  <bruno@clisp.org>
15867
15868         strftime: Move AC_LIBOBJ invocations to module description.
15869         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
15870         * modules/strftime (Makefile.am): Augment lib_SOURCES.
15871
15872 2011-05-23  Bruno Haible  <bruno@clisp.org>
15873
15874         stdlib-safer: Move AC_LIBOBJ invocations to module description.
15875         * m4/stdlib-safer.m4: Remove file.
15876         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
15877         (configure.ac): Remove gl_STDLIB_SAFER call.
15878         (Makefile.am): Augment lib_SOURCES.
15879
15880 2011-05-23  Bruno Haible  <bruno@clisp.org>
15881
15882         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
15883         * m4/stdio-safer.m4: Remove file.
15884         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
15885         (configure.ac): Remove gl_TMPFILE_SAFER call.
15886         (Makefile.am): Augment lib_SOURCES.
15887
15888 2011-05-23  Bruno Haible  <bruno@clisp.org>
15889
15890         popen-safer: Move AC_LIBOBJ invocations to module description.
15891         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
15892         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
15893         (configure.ac): Remove gl_POPEN_SAFER call.
15894         (Makefile.am): Augment lib_SOURCES.
15895
15896 2011-05-23  Bruno Haible  <bruno@clisp.org>
15897
15898         freopen-safer: Move AC_LIBOBJ invocations to module description.
15899         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
15900         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
15901         (configure.ac): Remove gl_FREOPEN_SAFER call.
15902         (Makefile.am): Augment lib_SOURCES.
15903
15904 2011-05-23  Bruno Haible  <bruno@clisp.org>
15905
15906         fopen-safer: Move AC_LIBOBJ invocations to module description.
15907         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
15908         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
15909         (configure.ac): Remove gl_FOPEN_SAFER call.
15910         (Makefile.am): Augment lib_SOURCES.
15911
15912 2011-05-23  Bruno Haible  <bruno@clisp.org>
15913
15914         crypto/sha512: Move AC_LIBOBJ invocations to module description.
15915         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
15916         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
15917
15918 2011-05-23  Bruno Haible  <bruno@clisp.org>
15919
15920         crypto/sha256: Move AC_LIBOBJ invocations to module description.
15921         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
15922         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
15923
15924 2011-05-23  Bruno Haible  <bruno@clisp.org>
15925
15926         crypto/sha1: Move AC_LIBOBJ invocations to module description.
15927         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
15928         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
15929
15930 2011-05-23  Bruno Haible  <bruno@clisp.org>
15931
15932         settime: Move AC_LIBOBJ invocations to module description.
15933         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
15934         * modules/settime (Makefile.am): Augment lib_SOURCES.
15935
15936 2011-05-23  Bruno Haible  <bruno@clisp.org>
15937
15938         savedir: Move AC_LIBOBJ invocations to module description.
15939         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
15940         * modules/savedir (Makefile.am): Augment lib_SOURCES.
15941
15942 2011-05-23  Bruno Haible  <bruno@clisp.org>
15943
15944         save-cwd: Move AC_LIBOBJ invocations to module description.
15945         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
15946         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
15947
15948 2011-05-23  Bruno Haible  <bruno@clisp.org>
15949
15950         same: Move AC_LIBOBJ invocations to module description.
15951         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
15952         * modules/same (Makefile.am): Augment lib_SOURCES.
15953
15954 2011-05-23  Bruno Haible  <bruno@clisp.org>
15955
15956         safe-write: Move AC_LIBOBJ invocations to module description.
15957         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
15958         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
15959         instead of gl_SAFE_WRITE.
15960         (Makefile.am): Augment lib_SOURCES.
15961
15962 2011-05-23  Bruno Haible  <bruno@clisp.org>
15963
15964         safe-read: Move AC_LIBOBJ invocations to module description.
15965         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
15966         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
15967         of gl_SAFE_READ.
15968         (Makefile.am): Augment lib_SOURCES.
15969
15970 2011-05-23  Bruno Haible  <bruno@clisp.org>
15971
15972         safe-alloc: Move AC_LIBOBJ invocations to module description.
15973         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
15974         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
15975
15976 2011-05-23  Bruno Haible  <bruno@clisp.org>
15977
15978         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
15979         * m4/rijndael.m4: Remove file.
15980         * modules/crypto/rijndael (Files): Remove it.
15981         (configure.ac): Remove gl_RIJNDAEL call.
15982         (Makefile.am): Augment lib_SOURCES.
15983
15984 2011-05-23  Bruno Haible  <bruno@clisp.org>
15985
15986         readtokens: Move AC_LIBOBJ invocations to module description.
15987         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
15988         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
15989
15990 2011-05-23  Bruno Haible  <bruno@clisp.org>
15991
15992         read-file: Move AC_LIBOBJ invocations to module description.
15993         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
15994         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
15995         of gl_FUNC_READ_FILE.
15996         (Makefile.am): Augment lib_SOURCES.
15997
15998 2011-05-23  Bruno Haible  <bruno@clisp.org>
15999
16000         quotearg: Move AC_LIBOBJ invocations to module description.
16001         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
16002         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
16003
16004 2011-05-23  Bruno Haible  <bruno@clisp.org>
16005
16006         quote: Move AC_LIBOBJ invocations to module description.
16007         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
16008         * modules/quote (Makefile.am): Augment lib_SOURCES.
16009
16010 2011-05-23  Bruno Haible  <bruno@clisp.org>
16011
16012         posixver: Move AC_LIBOBJ invocations to module description.
16013         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
16014         * modules/posixver (Makefile.am): Augment lib_SOURCES.
16015
16016 2011-05-23  Bruno Haible  <bruno@clisp.org>
16017
16018         posixtm: Move AC_LIBOBJ invocations to module description.
16019         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
16020         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
16021
16022 2011-05-23  Bruno Haible  <bruno@clisp.org>
16023
16024         physmem: Move AC_LIBOBJ invocations to module description.
16025         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
16026         * modules/physmem (Makefile.am): Augment lib_SOURCES.
16027
16028 2011-05-23  Bruno Haible  <bruno@clisp.org>
16029
16030         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
16031         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
16032         invocation.
16033         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
16034
16035 2011-05-23  Bruno Haible  <bruno@clisp.org>
16036
16037         mpsort: Move AC_LIBOBJ invocations to module description.
16038         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
16039         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
16040
16041 2011-05-23  Bruno Haible  <bruno@clisp.org>
16042
16043         modechange: Move AC_LIBOBJ invocations to module description.
16044         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
16045         * modules/modechange (Makefile.am): Augment lib_SOURCES.
16046
16047 2011-05-23  Bruno Haible  <bruno@clisp.org>
16048
16049         mkdir-p: Move AC_LIBOBJ invocations to module description.
16050         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
16051         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
16052
16053 2011-05-23  Bruno Haible  <bruno@clisp.org>
16054
16055         mkancesdirs: Move AC_LIBOBJ invocations to module description.
16056         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
16057         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
16058
16059 2011-05-23  Bruno Haible  <bruno@clisp.org>
16060
16061         mgetgroups: Move AC_LIBOBJ invocations to module description.
16062         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
16063         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
16064
16065 2011-05-23  Bruno Haible  <bruno@clisp.org>
16066
16067         memxor: Move AC_LIBOBJ invocations to module description.
16068         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
16069         * modules/memxor (Makefile.am): Augment lib_SOURCES.
16070
16071 2011-05-23  Bruno Haible  <bruno@clisp.org>
16072
16073         memcoll: Move AC_LIBOBJ invocations to module description.
16074         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
16075         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
16076
16077 2011-05-23  Bruno Haible  <bruno@clisp.org>
16078
16079         memcasecmp: Move AC_LIBOBJ invocations to module description.
16080         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
16081         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
16082
16083 2011-05-23  Bruno Haible  <bruno@clisp.org>
16084
16085         crypto/md5: Move AC_LIBOBJ invocations to module description.
16086         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
16087         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
16088
16089 2011-05-23  Bruno Haible  <bruno@clisp.org>
16090
16091         crypto/md4: Move AC_LIBOBJ invocations to module description.
16092         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
16093         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
16094
16095 2011-05-23  Bruno Haible  <bruno@clisp.org>
16096
16097         crypto/md2: Move AC_LIBOBJ invocations to module description.
16098         * m4/md2.m4: Remove file.
16099         * modules/crypto/md2 (Files): Remove it.
16100         (configure.ac): Remove gl_MD2 call.
16101         (Makefile.am): Augment lib_SOURCES.
16102
16103 2011-05-23  Bruno Haible  <bruno@clisp.org>
16104
16105         long-options: Move AC_LIBOBJ invocations to module description.
16106         * m4/long-options.m4: Remove file.
16107         * modules/long-options (Files): Remove it.
16108         (configure.ac): Remove gl_LONG_OPTIONS call.
16109         (Makefile.am): Augment lib_SOURCES.
16110
16111 2011-05-23  Bruno Haible  <bruno@clisp.org>
16112
16113         i-ring: Move AC_LIBOBJ invocations to module description.
16114         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
16115         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
16116
16117 2011-05-23  Bruno Haible  <bruno@clisp.org>
16118
16119         idcache: Move AC_LIBOBJ invocations to module description.
16120         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
16121         * modules/idcache (Makefile.am): Augment lib_SOURCES.
16122
16123 2011-05-23  Bruno Haible  <bruno@clisp.org>
16124
16125         human: Move AC_LIBOBJ invocations to module description.
16126         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
16127         * modules/human (Makefile.am): Augment lib_SOURCES.
16128
16129 2011-05-23  Bruno Haible  <bruno@clisp.org>
16130
16131         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
16132         * m4/hmac-sha1.m4: Remove file.
16133         * modules/crypto/hmac-sha1 (Files): Remove it.
16134         (configure.ac): Remove gl_HMAC_SHA1 call.
16135         (Makefile.am): Augment lib_SOURCES.
16136
16137 2011-05-23  Bruno Haible  <bruno@clisp.org>
16138
16139         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
16140         * m4/hmac-md5.m4: Remove file.
16141         * modules/crypto/hmac-md5 (Files): Remove it.
16142         (configure.ac): Remove gl_HMAC_MD5 call.
16143         (Makefile.am): Augment lib_SOURCES.
16144
16145 2011-05-23  Bruno Haible  <bruno@clisp.org>
16146
16147         hash: Move AC_LIBOBJ invocations to module description.
16148         * m4/hash.m4: Remove file.
16149         * modules/hash (Files): Remove it.
16150         (configure.ac): Remove gl_HASH call.
16151         (Makefile.am): Augment lib_SOURCES.
16152
16153 2011-05-23  Bruno Haible  <bruno@clisp.org>
16154
16155         hard-locale: Move AC_LIBOBJ invocations to module description.
16156         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
16157         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
16158
16159 2011-05-23  Bruno Haible  <bruno@clisp.org>
16160
16161         getugroups: Move AC_LIBOBJ invocations to module description.
16162         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
16163         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
16164
16165 2011-05-23  Bruno Haible  <bruno@clisp.org>
16166
16167         gettime: Move AC_LIBOBJ invocations to module description.
16168         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
16169         * modules/gettime (Makefile.am): Augment lib_SOURCES.
16170
16171 2011-05-23  Bruno Haible  <bruno@clisp.org>
16172
16173         getndelim2: Move AC_LIBOBJ invocations to module description.
16174         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
16175         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
16176
16177 2011-05-23  Bruno Haible  <bruno@clisp.org>
16178
16179         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
16180         * m4/gc-pbkdf2-sha1.m4: Remove file.
16181         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
16182         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
16183         (Makefile.am): Augment lib_SOURCES.
16184
16185 2011-05-23  Bruno Haible  <bruno@clisp.org>
16186
16187         fts: Move AC_LIBOBJ invocations to module description.
16188         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
16189         * modules/fts (configure.ac): ... to here.
16190
16191 2011-05-23  Bruno Haible  <bruno@clisp.org>
16192
16193         file-type: Move AC_LIBOBJ invocations to module description.
16194         * m4/file-type.m4: Remove file.
16195         * modules/file-type (Files): Remove it.
16196         (configure.ac): Remove gl_FILE_TYPE call.
16197         (Makefile.am): Augment lib_SOURCES.
16198
16199 2011-05-23  Bruno Haible  <bruno@clisp.org>
16200
16201         filenamecat*: Respect rules for use of AC_LIBOBJ.
16202         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
16203         Remove AC_LIBOBJ invocation.
16204         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
16205         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
16206
16207 2011-05-23  Bruno Haible  <bruno@clisp.org>
16208
16209         filemode: Move AC_LIBOBJ invocations to module description.
16210         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
16211         * modules/filemode (Makefile.am): Augment lib_SOURCES.
16212
16213 2011-05-23  Bruno Haible  <bruno@clisp.org>
16214
16215         openat-safer: Move AC_LIBOBJ invocations to module description.
16216         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
16217         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
16218
16219 2011-05-23  Bruno Haible  <bruno@clisp.org>
16220
16221         fcntl-safer: Move AC_LIBOBJ invocations to module description.
16222         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
16223         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
16224
16225 2011-05-23  Bruno Haible  <bruno@clisp.org>
16226
16227         exclude: Move AC_LIBOBJ invocations to module description.
16228         * m4/exclude.m4: Remove file.
16229         * modules/exclude (Files): Remove it.
16230         (configure.ac): Remove gl_EXCLUDE call.
16231         (Makefile.am): Augment lib_SOURCES.
16232
16233 2011-05-23  Bruno Haible  <bruno@clisp.org>
16234
16235         dirname*: Respect rules for use of AC_LIBOBJ.
16236         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
16237         invocations.
16238         * modules/dirname (Makefile.am): Augment lib_SOURCES.
16239         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
16240
16241 2011-05-23  Bruno Haible  <bruno@clisp.org>
16242
16243         dirent-safer: Move AC_LIBOBJ invocations to module description.
16244         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
16245         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
16246
16247 2011-05-23  Bruno Haible  <bruno@clisp.org>
16248
16249         crypto/des: Move AC_LIBOBJ invocations to module description.
16250         * m4/des.m4: Remove file.
16251         * modules/crypto/des (Files): Remove it.
16252         (configure.ac): Remove gl_DES call.
16253         (Makefile.am): Augment lib_SOURCES.
16254
16255 2011-05-23  Bruno Haible  <bruno@clisp.org>
16256
16257         cycle-check: Move AC_LIBOBJ invocations to module description.
16258         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
16259         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
16260
16261 2011-05-23  Bruno Haible  <bruno@clisp.org>
16262
16263         c-strtold: Move AC_LIBOBJ invocations to module description.
16264         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
16265         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
16266
16267 2011-05-23  Bruno Haible  <bruno@clisp.org>
16268
16269         c-strtod: Move AC_LIBOBJ invocations to module description.
16270         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
16271         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
16272
16273 2011-05-23  Bruno Haible  <bruno@clisp.org>
16274
16275         crc: Move AC_LIBOBJ invocations to module description.
16276         * m4/crc.m4: Remove file.
16277         * modules/crc (Files): Remove it.
16278         (configure.ac): Remove gl_CRC call.
16279         (Makefile.am): Augment lib_SOURCES.
16280
16281 2011-05-23  Bruno Haible  <bruno@clisp.org>
16282
16283         close-stream: Move AC_LIBOBJ invocations to module description.
16284         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
16285         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
16286
16287 2011-05-23  Bruno Haible  <bruno@clisp.org>
16288
16289         closeout: Move AC_LIBOBJ invocations to module description.
16290         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
16291         * modules/closeout (Makefile.am): Augment lib_SOURCES.
16292
16293 2011-05-23  Bruno Haible  <bruno@clisp.org>
16294
16295         closein: Move AC_LIBOBJ invocations to module description.
16296         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
16297         * modules/closein (Makefile.am): Augment lib_SOURCES.
16298
16299 2011-05-23  Bruno Haible  <bruno@clisp.org>
16300
16301         cloexec: Move AC_LIBOBJ invocations to module description.
16302         * m4/cloexec.m4: Remove file.
16303         * modules/cloexec (Files): Remove it.
16304         (configure.ac): Remove gl_CLOEXEC call.
16305         (Makefile.am): Augment lib_SOURCES.
16306
16307 2011-05-23  Bruno Haible  <bruno@clisp.org>
16308
16309         check-version: Move AC_LIBOBJ invocations to module description.
16310         * m4/check-version.m4: Remove file.
16311         * modules/check-version (Files): Remove it.
16312         (configure.ac): Remove gl_CHECK_VERSION call.
16313         (Makefile.am): Augment lib_SOURCES.
16314
16315 2011-05-23  Bruno Haible  <bruno@clisp.org>
16316
16317         chdir-safer: Move AC_LIBOBJ invocations to module description.
16318         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
16319         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
16320
16321 2011-05-23  Bruno Haible  <bruno@clisp.org>
16322
16323         canonicalize: Move AC_LIBOBJ invocations to module description.
16324         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
16325         AC_LIBOBJ invocation.
16326         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
16327
16328 2011-05-23  Bruno Haible  <bruno@clisp.org>
16329
16330         canon-host: Move AC_LIBOBJ invocations to module description.
16331         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
16332         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
16333         instead of gl_CANON_HOST.
16334         (Makefile.am): Augment lib_SOURCES.
16335
16336 2011-05-23  Bruno Haible  <bruno@clisp.org>
16337
16338         backupfile: Move AC_LIBOBJ invocations to module description.
16339         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
16340         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
16341
16342 2011-05-23  Bruno Haible  <bruno@clisp.org>
16343
16344         argmatch: Move AC_LIBOBJ invocations to module description.
16345         * m4/argmatch.m4: Remove file.
16346         * modules/argmatch (Files): Remove it.
16347         (configure.ac): Remove gl_ARGMATCH call.
16348         (Makefile.am): Augment lib_SOURCES.
16349
16350 2011-05-23  Bruno Haible  <bruno@clisp.org>
16351
16352         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
16353         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
16354         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
16355
16356 2011-05-23  Bruno Haible  <bruno@clisp.org>
16357
16358         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
16359         * m4/arcfour.m4: Remove file.
16360         * modules/crypto/arcfour (Files): Remove it.
16361         (configure.ac): Remove gl_ARCFOUR call.
16362         (Makefile.am): Augment lib_SOURCES.
16363
16364 2011-05-22  Bruno Haible  <bruno@clisp.org>
16365
16366         write: Move AC_LIBOBJ invocations to module description.
16367         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
16368         * modules/write (configure.ac): ... to here.
16369
16370 2011-05-22  Bruno Haible  <bruno@clisp.org>
16371
16372         wmemset: Move AC_LIBOBJ invocations to module description.
16373         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
16374         here...
16375         * modules/wmemset (configure.ac): ... to here.
16376
16377 2011-05-22  Bruno Haible  <bruno@clisp.org>
16378
16379         wmemmove: Move AC_LIBOBJ invocations to module description.
16380         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
16381         here...
16382         * modules/wmemmove (configure.ac): ... to here.
16383
16384 2011-05-22  Bruno Haible  <bruno@clisp.org>
16385
16386         wmemcpy: Move AC_LIBOBJ invocations to module description.
16387         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
16388         here...
16389         * modules/wmemcpy (configure.ac): ... to here.
16390
16391 2011-05-22  Bruno Haible  <bruno@clisp.org>
16392
16393         wmemcmp: Move AC_LIBOBJ invocations to module description.
16394         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
16395         here...
16396         * modules/wmemcmp (configure.ac): ... to here.
16397
16398 2011-05-22  Bruno Haible  <bruno@clisp.org>
16399
16400         wmemchr: Move AC_LIBOBJ invocations to module description.
16401         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
16402         here...
16403         * modules/wmemchr (configure.ac): ... to here.
16404
16405 2011-05-22  Bruno Haible  <bruno@clisp.org>
16406
16407         wcswidth: Move AC_LIBOBJ invocations to module description.
16408         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
16409         here...
16410         * modules/wcswidth (configure.ac): ... to here.
16411
16412 2011-05-22  Bruno Haible  <bruno@clisp.org>
16413
16414         wcwidth: Respect rules for use of AC_LIBOBJ.
16415         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
16416         invocation from here...
16417         * modules/wcwidth (configure.ac): ... to here.
16418         (Depends-on): Update conditions.
16419
16420 2011-05-22  Bruno Haible  <bruno@clisp.org>
16421
16422         wctype: Move AC_LIBOBJ invocations to module description.
16423         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
16424         invocation from here...
16425         * modules/wctype (configure.ac): ... to here.
16426         (Depends-on): Update conditions.
16427
16428 2011-05-22  Bruno Haible  <bruno@clisp.org>
16429
16430         wctrans: Move AC_LIBOBJ invocations to module description.
16431         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
16432         invocation from here...
16433         * modules/wctrans (configure.ac): ... to here.
16434
16435 2011-05-22  Bruno Haible  <bruno@clisp.org>
16436
16437         wctomb: Move AC_LIBOBJ invocations to module description.
16438         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
16439         invocations from here...
16440         * modules/wctomb (configure.ac): ... to here.
16441
16442 2011-05-22  Bruno Haible  <bruno@clisp.org>
16443
16444         wctob: Move AC_LIBOBJ invocations to module description.
16445         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
16446         gl_PREREQ_WCTOB invocations from here...
16447         * modules/wctob (configure.ac): ... to here.
16448         (Depends-on): Update conditions.
16449
16450 2011-05-22  Bruno Haible  <bruno@clisp.org>
16451
16452         wcsxfrm: Move AC_LIBOBJ invocations to module description.
16453         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
16454         here...
16455         * modules/wcsxfrm (configure.ac): ... to here.
16456
16457 2011-05-22  Bruno Haible  <bruno@clisp.org>
16458
16459         wcstok: Move AC_LIBOBJ invocations to module description.
16460         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
16461         * modules/wcstok (configure.ac): ... to here.
16462
16463 2011-05-22  Bruno Haible  <bruno@clisp.org>
16464
16465         wcsstr: Move AC_LIBOBJ invocations to module description.
16466         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
16467         * modules/wcsstr (configure.ac): ... to here.
16468
16469 2011-05-22  Bruno Haible  <bruno@clisp.org>
16470
16471         wcsspn: Move AC_LIBOBJ invocations to module description.
16472         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
16473         * modules/wcsspn (configure.ac): ... to here.
16474
16475 2011-05-22  Bruno Haible  <bruno@clisp.org>
16476
16477         wcsrtombs: Move AC_LIBOBJ invocations to module description.
16478         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
16479         gl_PREREQ_WCSRTOMBS invocations from here...
16480         * modules/wcsrtombs (configure.ac): ... to here.
16481
16482 2011-05-22  Bruno Haible  <bruno@clisp.org>
16483
16484         wcsrchr: Move AC_LIBOBJ invocations to module description.
16485         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
16486         here...
16487         * modules/wcsrchr (configure.ac): ... to here.
16488
16489 2011-05-22  Bruno Haible  <bruno@clisp.org>
16490
16491         wcspbrk: Move AC_LIBOBJ invocations to module description.
16492         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
16493         here...
16494         * modules/wcspbrk (configure.ac): ... to here.
16495
16496 2011-05-22  Bruno Haible  <bruno@clisp.org>
16497
16498         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
16499         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
16500         gl_PREREQ_WCSNRTOMBS invocations from here...
16501         * modules/wcsnrtombs (configure.ac): ... to here.
16502
16503 2011-05-22  Bruno Haible  <bruno@clisp.org>
16504
16505         wcsnlen: Move AC_LIBOBJ invocations to module description.
16506         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
16507         here...
16508         * modules/wcsnlen (configure.ac): ... to here.
16509
16510 2011-05-22  Bruno Haible  <bruno@clisp.org>
16511
16512         wcsncpy: Move AC_LIBOBJ invocations to module description.
16513         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
16514         here...
16515         * modules/wcsncpy (configure.ac): ... to here.
16516
16517 2011-05-22  Bruno Haible  <bruno@clisp.org>
16518
16519         wcsncmp: Move AC_LIBOBJ invocations to module description.
16520         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
16521         here...
16522         * modules/wcsncmp (configure.ac): ... to here.
16523
16524 2011-05-22  Bruno Haible  <bruno@clisp.org>
16525
16526         wcsncat: Move AC_LIBOBJ invocations to module description.
16527         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
16528         here...
16529         * modules/wcsncat (configure.ac): ... to here.
16530
16531 2011-05-22  Bruno Haible  <bruno@clisp.org>
16532
16533         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
16534         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
16535         from here...
16536         * modules/wcsncasecmp (configure.ac): ... to here.
16537
16538 2011-05-22  Bruno Haible  <bruno@clisp.org>
16539
16540         wcslen: Move AC_LIBOBJ invocations to module description.
16541         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
16542         * modules/wcslen (configure.ac): ... to here.
16543
16544 2011-05-22  Bruno Haible  <bruno@clisp.org>
16545
16546         wcsdup: Move AC_LIBOBJ invocations to module description.
16547         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
16548         * modules/wcsdup (configure.ac): ... to here.
16549
16550 2011-05-22  Bruno Haible  <bruno@clisp.org>
16551
16552         wcscspn: Move AC_LIBOBJ invocations to module description.
16553         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
16554         here...
16555         * modules/wcscspn (configure.ac): ... to here.
16556
16557 2011-05-22  Bruno Haible  <bruno@clisp.org>
16558
16559         wcscpy: Move AC_LIBOBJ invocations to module description.
16560         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
16561         * modules/wcscpy (configure.ac): ... to here.
16562
16563 2011-05-22  Bruno Haible  <bruno@clisp.org>
16564
16565         wcscoll: Move AC_LIBOBJ invocations to module description.
16566         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
16567         here...
16568         * modules/wcscoll (configure.ac): ... to here.
16569
16570 2011-05-22  Bruno Haible  <bruno@clisp.org>
16571
16572         wcscmp: Move AC_LIBOBJ invocations to module description.
16573         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
16574         * modules/wcscmp (configure.ac): ... to here.
16575
16576 2011-05-22  Bruno Haible  <bruno@clisp.org>
16577
16578         wcschr: Move AC_LIBOBJ invocations to module description.
16579         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
16580         * modules/wcschr (configure.ac): ... to here.
16581
16582 2011-05-22  Bruno Haible  <bruno@clisp.org>
16583
16584         wcscat: Move AC_LIBOBJ invocations to module description.
16585         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
16586         * modules/wcscat (configure.ac): ... to here.
16587
16588 2011-05-22  Bruno Haible  <bruno@clisp.org>
16589
16590         wcscasecmp: Move AC_LIBOBJ invocations to module description.
16591         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
16592         here...
16593         * modules/wcscasecmp (configure.ac): ... to here.
16594
16595 2011-05-22  Bruno Haible  <bruno@clisp.org>
16596
16597         wcrtomb: Move AC_LIBOBJ invocations to module description.
16598         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
16599         invocations from here...
16600         * modules/wcrtomb (configure.ac): ... to here.
16601
16602 2011-05-22  Bruno Haible  <bruno@clisp.org>
16603
16604         wcpncpy: Move AC_LIBOBJ invocations to module description.
16605         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
16606         here...
16607         * modules/wcpncpy (configure.ac): ... to here.
16608
16609 2011-05-22  Bruno Haible  <bruno@clisp.org>
16610
16611         wcpcpy: Move AC_LIBOBJ invocations to module description.
16612         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
16613         * modules/wcpcpy (configure.ac): ... to here.
16614
16615 2011-05-22  Bruno Haible  <bruno@clisp.org>
16616
16617         waitpid: Move AC_LIBOBJ invocations to module description.
16618         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
16619         invocation from here...
16620         * modules/waitpid (configure.ac): ... to here.
16621
16622 2011-05-22  Bruno Haible  <bruno@clisp.org>
16623
16624         utimensat: Move AC_LIBOBJ invocations to module description.
16625         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
16626         here...
16627         * modules/utimensat (configure.ac): ... to here.
16628
16629 2011-05-22  Bruno Haible  <bruno@clisp.org>
16630
16631         usleep: Move AC_LIBOBJ invocations to module description.
16632         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
16633         here...
16634         * modules/usleep (configure.ac): ... to here.
16635
16636 2011-05-22  Bruno Haible  <bruno@clisp.org>
16637
16638         unlockpt: Move AC_LIBOBJ invocations to module description.
16639         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
16640         gl_PREREQ_UNLOCKPT invocations from here...
16641         * modules/unlockpt (configure.ac): ... to here.
16642
16643 2011-05-22  Bruno Haible  <bruno@clisp.org>
16644
16645         unlink: Respect rules for use of AC_LIBOBJ.
16646         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
16647         * modules/unlink (configure.ac): ... to here.
16648
16649 2011-05-22  Bruno Haible  <bruno@clisp.org>
16650
16651         uname: Move AC_LIBOBJ invocations to module description.
16652         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
16653         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
16654         here...
16655         * modules/uname (configure.ac): ... to here.
16656
16657 2011-05-22  Bruno Haible  <bruno@clisp.org>
16658
16659         ttyname_r: Move AC_LIBOBJ invocations to module description.
16660         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
16661         gl_PREREQ_TTYNAME_R invocations from here...
16662         * modules/ttyname_r (configure.ac): ... to here.
16663
16664 2011-05-22  Bruno Haible  <bruno@clisp.org>
16665
16666         tsearch: Move AC_LIBOBJ invocations to module description.
16667         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
16668         invocations from here...
16669         * modules/tsearch (configure.ac): ... to here.
16670
16671 2011-05-22  Bruno Haible  <bruno@clisp.org>
16672
16673         towctrans: Move AC_LIBOBJ invocations to module description.
16674         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
16675         AC_LIBOBJ invocation from here...
16676         * modules/towctrans (configure.ac): ... to here.
16677
16678 2011-05-22  Bruno Haible  <bruno@clisp.org>
16679
16680         tmpfile: Move AC_LIBOBJ invocations to module description.
16681         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
16682         invocations from here...
16683         * modules/tmpfile (configure.ac): ... to here.
16684
16685 2011-05-22  Bruno Haible  <bruno@clisp.org>
16686
16687         times: Move AC_LIBOBJ invocations to module description.
16688         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
16689         * modules/times (configure.ac): ... to here.
16690
16691 2011-05-22  Bruno Haible  <bruno@clisp.org>
16692
16693         time_r: Move AC_LIBOBJ invocations to module description.
16694         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
16695         invocations from here...
16696         * modules/time_r (configure.ac): ... to here.
16697
16698 2011-05-22  Bruno Haible  <bruno@clisp.org>
16699
16700         timegm: Move AC_LIBOBJ invocations to module description.
16701         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
16702         invocations from here...
16703         * modules/timegm (configure.ac): ... to here.
16704
16705 2011-05-22  Bruno Haible  <bruno@clisp.org>
16706
16707         tcgetsid: Move AC_LIBOBJ invocations to module description.
16708         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
16709         and gl_PREREQ_TCGETSID invocations from here...
16710         * modules/tcgetsid (configure.ac): ... to here.
16711         (Depends-on): Update conditions.
16712
16713 2011-05-22  Bruno Haible  <bruno@clisp.org>
16714
16715         symlinkat: Move AC_LIBOBJ invocations to module description.
16716         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
16717         here...
16718         * modules/symlinkat (configure.ac): ... to here.
16719
16720 2011-05-22  Bruno Haible  <bruno@clisp.org>
16721
16722         symlink: Move AC_LIBOBJ invocations to module description.
16723         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
16724         here...
16725         * modules/symlink (configure.ac): ... to here.
16726
16727 2011-05-22  Bruno Haible  <bruno@clisp.org>
16728
16729         strverscmp: Move AC_LIBOBJ invocations to module description.
16730         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
16731         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
16732         from here...
16733         * modules/strverscmp (configure.ac): ... to here.
16734
16735 2011-05-22  Bruno Haible  <bruno@clisp.org>
16736
16737         strtok_r: Move AC_LIBOBJ invocations to module description.
16738         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
16739         and gl_PREREQ_STRTOK_R invocations from here...
16740         * modules/strtok_r (configure.ac): ... to here.
16741         (Depends-on): Update conditions.
16742
16743 2011-05-22  Bruno Haible  <bruno@clisp.org>
16744
16745         strtoumax: Move AC_LIBOBJ invocations to module description.
16746         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
16747         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
16748         from here...
16749         * modules/strtoumax (configure.ac): ... to here.
16750
16751 2011-05-22  Bruno Haible  <bruno@clisp.org>
16752
16753         strtoimax: Move AC_LIBOBJ invocations to module description.
16754         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
16755         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
16756         from here...
16757         * modules/strtoimax (configure.ac): ... to here.
16758
16759 2011-05-22  Bruno Haible  <bruno@clisp.org>
16760
16761         strtoull: Move AC_LIBOBJ invocations to module description.
16762         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
16763         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
16764         from here...
16765         * modules/strtoull (configure.ac): ... to here.
16766
16767 2011-05-22  Bruno Haible  <bruno@clisp.org>
16768
16769         strtoll: Move AC_LIBOBJ invocations to module description.
16770         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
16771         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
16772         here...
16773         * modules/strtoll (configure.ac): ... to here.
16774
16775 2011-05-22  Bruno Haible  <bruno@clisp.org>
16776
16777         strtoul: Move AC_LIBOBJ invocations to module description.
16778         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
16779         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16780         * modules/strtoul (configure.ac): ... to here.
16781
16782 2011-05-22  Bruno Haible  <bruno@clisp.org>
16783
16784         strtol: Move AC_LIBOBJ invocations to module description.
16785         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
16786         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16787         * modules/strtol (configure.ac): ... to here.
16788
16789 2011-05-22  Bruno Haible  <bruno@clisp.org>
16790
16791         strtod: Move AC_LIBOBJ invocations to module description.
16792         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
16793         invocations from here...
16794         * modules/strtod (configure.ac): ... to here.
16795
16796 2011-05-22  Bruno Haible  <bruno@clisp.org>
16797
16798         strstr*: Move AC_LIBOBJ invocations to module description.
16799         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
16800         invocations from here...
16801         * modules/strstr-simple (configure.ac): ... to here.
16802         * modules/strstr (configure.ac): ... and here.
16803
16804 2011-05-22  Bruno Haible  <bruno@clisp.org>
16805
16806         strsignal: Move AC_LIBOBJ invocations to module description.
16807         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
16808         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
16809         * modules/strsignal (configure.ac): ... to here.
16810         (Depends-on): Update conditions.
16811
16812 2011-05-22  Bruno Haible  <bruno@clisp.org>
16813
16814         strsep: Move AC_LIBOBJ invocations to module description.
16815         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
16816         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
16817         here...
16818         * modules/strsep (configure.ac): ... to here.
16819
16820 2011-05-22  Bruno Haible  <bruno@clisp.org>
16821
16822         strptime: Move AC_LIBOBJ invocations to module description.
16823         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
16824         gl_PREREQ_STRPTIME invocations from here...
16825         * modules/strptime (configure.ac): ... to here.
16826
16827 2011-05-22  Bruno Haible  <bruno@clisp.org>
16828
16829         strpbrk: Move AC_LIBOBJ invocations to module description.
16830         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
16831         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
16832         here...
16833         * modules/strpbrk (configure.ac): ... to here.
16834
16835 2011-05-22  Bruno Haible  <bruno@clisp.org>
16836
16837         strnlen: Move AC_LIBOBJ invocations to module description.
16838         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
16839         invocations from here...
16840         * modules/strnlen (configure.ac): ... to here.
16841
16842 2011-05-22  Bruno Haible  <bruno@clisp.org>
16843
16844         strndup: Move AC_LIBOBJ invocations to module description.
16845         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
16846         invocations from here...
16847         * modules/strndup (configure.ac): ... to here.
16848         (Depends-on): Update conditions.
16849
16850 2011-05-22  Bruno Haible  <bruno@clisp.org>
16851
16852         strncat: Move AC_LIBOBJ invocations to module description.
16853         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
16854         invocations from here...
16855         * modules/strncat (configure.ac): ... to here.
16856
16857 2011-05-22  Bruno Haible  <bruno@clisp.org>
16858
16859         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
16860         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
16861         invocations from here...
16862         * modules/strdup (configure.ac): ... to here.
16863         * modules/strdup-posix (configure.ac): ... and here.
16864
16865 2011-05-22  Bruno Haible  <bruno@clisp.org>
16866
16867         strcspn: Move AC_LIBOBJ invocations to module description.
16868         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
16869         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
16870         here...
16871         * modules/strcspn (configure.ac): ... to here.
16872
16873 2011-05-22  Bruno Haible  <bruno@clisp.org>
16874
16875         strchrnul: Move AC_LIBOBJ invocations to module description.
16876         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
16877         gl_PREREQ_STRCHRNUL invocations from here...
16878         * modules/strchrnul (configure.ac): ... to here.
16879
16880 2011-05-22  Bruno Haible  <bruno@clisp.org>
16881
16882         strcasestr*: Move AC_LIBOBJ invocations to module description.
16883         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
16884         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
16885         * modules/strcasestr-simple (configure.ac): ... to here.
16886         * modules/strcasestr (configure.ac): ... and here.
16887
16888 2011-05-22  Bruno Haible  <bruno@clisp.org>
16889
16890         strcase: Move AC_LIBOBJ invocations to module description.
16891         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
16892         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
16893         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
16894         gl_PREREQ_STRNCASECMP invocations from here...
16895         * modules/strcase (configure.ac): ... to here.
16896
16897 2011-05-22  Bruno Haible  <bruno@clisp.org>
16898
16899         stpncpy: Move AC_LIBOBJ invocations to module description.
16900         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
16901         here...
16902         * modules/stpncpy (configure.ac): ... to here.
16903
16904 2011-05-22  Bruno Haible  <bruno@clisp.org>
16905
16906         stpcpy: Move AC_LIBOBJ invocations to module description.
16907         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
16908         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
16909         here...
16910         * modules/stpcpy (configure.ac): ... to here.
16911
16912 2011-05-21  Bruno Haible  <bruno@clisp.org>
16913
16914         stat: Move AC_LIBOBJ invocations to module description.
16915         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
16916         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
16917         here...
16918         * modules/stat (configure.ac): ... to here.
16919
16920 2011-05-21  Bruno Haible  <bruno@clisp.org>
16921
16922         sleep: Move AC_LIBOBJ invocations to module description.
16923         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
16924         * modules/sleep (configure.ac): ... to here.
16925
16926 2011-05-21  Bruno Haible  <bruno@clisp.org>
16927
16928         signbit: Move AC_LIBOBJ invocations to module description.
16929         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
16930         * modules/signbit (configure.ac): ... to here.
16931
16932 2011-05-21  Bruno Haible  <bruno@clisp.org>
16933
16934         sigprocmask: Move AC_LIBOBJ invocations to module description.
16935         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
16936         gl_PREREQ_SIGPROMASK invocations from here...
16937         * modules/sigprocmask (configure.ac): ... to here.
16938
16939 2011-05-21  Bruno Haible  <bruno@clisp.org>
16940
16941         sigaction: Move AC_LIBOBJ invocations to module description.
16942         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
16943         gl_PREREQ_SIGACTION invocations from here...
16944         * modules/sigaction (configure.ac): ... to here.
16945
16946 2011-05-21  Bruno Haible  <bruno@clisp.org>
16947
16948         sig2str: Move AC_LIBOBJ invocations to module description.
16949         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
16950         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
16951         here...
16952         * modules/sig2str (configure.ac): ... to here.
16953
16954 2011-05-21  Bruno Haible  <bruno@clisp.org>
16955
16956         setlocale: Move AC_LIBOBJ invocations to module description.
16957         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
16958         gl_PREREQ_SETLOCALE invocations from here...
16959         * modules/setlocale (configure.ac): ... to here.
16960
16961 2011-05-21  Bruno Haible  <bruno@clisp.org>
16962
16963         unsetenv: Move AC_LIBOBJ invocations to module description.
16964         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
16965         and gl_PREREQ_UNSETENV invocations from here...
16966         * modules/unsetenv (configure.ac): ... to here.
16967         (Depends-on): Update.
16968
16969 2011-05-21  Bruno Haible  <bruno@clisp.org>
16970
16971         setenv: Move AC_LIBOBJ invocations to module description.
16972         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
16973         here...
16974         * modules/setenv (configure.ac): ... to here.
16975
16976 2011-05-21  Bruno Haible  <bruno@clisp.org>
16977
16978         selinux-h: Move AC_LIBOBJ invocations to module description.
16979         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
16980         AC_LIBOBJ invocation from here...
16981         * modules/selinux-h (configure.ac): ... to here.
16982
16983 2011-05-21  Bruno Haible  <bruno@clisp.org>
16984
16985         select: Respect rules for use of AC_LIBOBJ.
16986         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
16987         here...
16988         * modules/select (configure.ac): ... to here.
16989
16990 2011-05-21  Bruno Haible  <bruno@clisp.org>
16991
16992         scandir: Move AC_LIBOBJ invocations to module description.
16993         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
16994         invocations from here...
16995         * modules/scandir (configure.ac): ... to here.
16996
16997 2011-05-21  Bruno Haible  <bruno@clisp.org>
16998
16999         rpmatch: Move AC_LIBOBJ invocations to module description.
17000         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
17001         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
17002         here...
17003         * modules/rpmatch (configure.ac): ... to here.
17004
17005 2011-05-21  Bruno Haible  <bruno@clisp.org>
17006
17007         rmdir: Respect rules for use of AC_LIBOBJ.
17008         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
17009         * modules/rmdir (configure.ac): ... to here.
17010
17011 2011-05-21  Bruno Haible  <bruno@clisp.org>
17012
17013         renameat: Move AC_LIBOBJ invocations to module description.
17014         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
17015         here...
17016         * modules/renameat (configure.ac): ... to here.
17017
17018 2011-05-21  Bruno Haible  <bruno@clisp.org>
17019
17020         rename: Respect rules for use of AC_LIBOBJ.
17021         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
17022         here...
17023         * modules/rename (configure.ac): ... to here.
17024
17025 2011-05-21  Bruno Haible  <bruno@clisp.org>
17026
17027         remove: Move AC_LIBOBJ invocations to module description.
17028         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
17029         here...
17030         * modules/remove (configure.ac): ... to here.
17031
17032 2011-05-21  Bruno Haible  <bruno@clisp.org>
17033
17034         relocatable-lib: Move AC_LIBOBJ invocations to module description.
17035         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
17036         macro.
17037         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
17038         * modules/relocatable-lib (configure.ac): ... to here.
17039         * modules/relocatable-prog-wrapper (configure.ac): Invoke
17040         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
17041
17042 2011-05-21  Bruno Haible  <bruno@clisp.org>
17043
17044         relocatable-prog: Move AC_LIBOBJ invocations to module description.
17045         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
17046         here...
17047         * modules/relocatable-prog (configure.ac): ... to here.
17048
17049 2011-05-21  Bruno Haible  <bruno@clisp.org>
17050
17051         regex: Move AC_LIBOBJ invocations to module description.
17052         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
17053         invocations from here...
17054         * modules/regex (configure.ac): ... to here.
17055
17056 2011-05-21  Bruno Haible  <bruno@clisp.org>
17057
17058         realloc-*: Move AC_LIBOBJ invocations to module description.
17059         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
17060         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
17061         AC_LIBOBJ invocations from here...
17062         * modules/realloc-gnu (configure.ac): ... to here.
17063         * modules/realloc-posix (configure.ac): ... and here.
17064
17065 2011-05-21  Bruno Haible  <bruno@clisp.org>
17066
17067         readutmp: Move AC_LIBOBJ invocations to module description.
17068         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
17069         * modules/readutmp (configure.ac): ... to here.
17070
17071 2011-05-21  Bruno Haible  <bruno@clisp.org>
17072
17073         readlinkat: Move AC_LIBOBJ invocations to module description.
17074         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
17075         here...
17076         * modules/readlinkat (configure.ac): ... to here.
17077
17078 2011-05-21  Bruno Haible  <bruno@clisp.org>
17079
17080         readlink: Move AC_LIBOBJ invocations to module description.
17081         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
17082         gl_PREREQ_READLINK invocations from here...
17083         * modules/readlink (configure.ac): ... to here.
17084
17085 2011-05-21  Bruno Haible  <bruno@clisp.org>
17086
17087         readline: Move AC_LIBOBJ invocations to module description.
17088         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
17089         gl_PREREQ_READLINE invocations from here...
17090         * modules/readline (configure.ac): ... to here.
17091
17092 2011-05-21  Bruno Haible  <bruno@clisp.org>
17093
17094         read: Move AC_LIBOBJ invocations to module description.
17095         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
17096         * modules/read (configure.ac): ... to here.
17097
17098 2011-05-21  Bruno Haible  <bruno@clisp.org>
17099
17100         rawmemchr: Move AC_LIBOBJ invocations to module description.
17101         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
17102         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
17103         from here...
17104         * modules/rawmemchr (configure.ac): ... to here.
17105
17106 2011-05-21  Bruno Haible  <bruno@clisp.org>
17107
17108         random_r: Move AC_LIBOBJ invocations to module description.
17109         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
17110         gl_PREREQ_RANDOM_R invocations from here...
17111         * modules/random_r (configure.ac): ... to here.
17112
17113 2011-05-21  Bruno Haible  <bruno@clisp.org>
17114
17115         pwrite: Move AC_LIBOBJ invocations to module description.
17116         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
17117         * modules/pwrite (configure.ac): ... to here.
17118
17119 2011-05-21  Bruno Haible  <bruno@clisp.org>
17120
17121         putenv: Move AC_LIBOBJ invocations to module description.
17122         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
17123         * modules/putenv (configure.ac): ... to here.
17124
17125 2011-05-21  Bruno Haible  <bruno@clisp.org>
17126
17127         login_tty: Move AC_LIBOBJ invocations to module description.
17128         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
17129         * modules/login_tty (configure.ac): ... to here.
17130
17131 2011-05-21  Bruno Haible  <bruno@clisp.org>
17132
17133         openpty: Move AC_LIBOBJ invocations to module description.
17134         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
17135         * modules/openpty (configure.ac): ... to here.
17136
17137 2011-05-21  Bruno Haible  <bruno@clisp.org>
17138
17139         forkpty: Move AC_LIBOBJ invocations to module description.
17140         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
17141         * modules/forkpty (configure.ac): ... to here.
17142
17143 2011-05-21  Bruno Haible  <bruno@clisp.org>
17144
17145         ptsname: Move AC_LIBOBJ invocations to module description.
17146         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
17147         invocations from here...
17148         * modules/ptsname (configure.ac): ... to here.
17149
17150 2011-05-21  Bruno Haible  <bruno@clisp.org>
17151
17152         pread: Move AC_LIBOBJ invocations to module description.
17153         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
17154         * modules/pread (configure.ac): ... to here.
17155
17156 2011-05-21  Bruno Haible  <bruno@clisp.org>
17157
17158         posix_spawn*: Move AC_LIBOBJ invocations to module description.
17159         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
17160         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
17161         * modules/posix_spawn (configure.ac): ... to here.
17162         * modules/posix_spawnp (configure.ac): ... and here.
17163
17164 2011-05-21  Bruno Haible  <bruno@clisp.org>
17165
17166         popen: Move AC_LIBOBJ invocations to module description.
17167         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
17168         invocations from here...
17169         * modules/popen (configure.ac): ... to here.
17170
17171 2011-05-21  Bruno Haible  <bruno@clisp.org>
17172
17173         poll: Move AC_LIBOBJ invocations to module description.
17174         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
17175         invocations from here...
17176         * modules/poll (configure.ac): ... to here.
17177
17178 2011-05-21  Bruno Haible  <bruno@clisp.org>
17179
17180         pipe-posix: Move AC_LIBOBJ invocations to module description.
17181         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
17182         * modules/pipe-posix (configure.ac): ... to here.
17183
17184 2011-05-21  Bruno Haible  <bruno@clisp.org>
17185
17186         openat: Respect rules for use of AC_LIBOBJ.
17187         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
17188         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17189         * modules/openat (configure.ac): ... to here.
17190
17191 2011-05-21  Bruno Haible  <bruno@clisp.org>
17192
17193         obstack-printf*: Move AC_LIBOBJ invocations to module description.
17194         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
17195         invocation from here...
17196         * modules/obstack-printf (configure.ac): ... to here.
17197         * modules/obstack-printf-posix (configure.ac): ... and here.
17198
17199 2011-05-21  Bruno Haible  <bruno@clisp.org>
17200
17201         nl_langinfo: Move AC_LIBOBJ invocations to module description.
17202         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
17203         from here...
17204         * modules/nl_langinfo (configure.ac): ... to here.
17205
17206 2011-05-21  Bruno Haible  <bruno@clisp.org>
17207
17208         nanosleep: Move AC_LIBOBJ invocations to module description.
17209         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
17210         gl_PREREQ_NANOSLEEP invocations from here...
17211         * modules/nanosleep (configure.ac): ... to here.
17212
17213 2011-05-21  Bruno Haible  <bruno@clisp.org>
17214
17215         mountlist: Move AC_LIBOBJ invocations to module description.
17216         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
17217         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
17218         * modules/mountlist (configure.ac): ... to here.
17219
17220 2011-05-21  Bruno Haible  <bruno@clisp.org>
17221
17222         mktime: Respect rules for use of AC_LIBOBJ.
17223         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
17224         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
17225         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
17226         (gl_FUNC_MKTIME_INTERNAL): ... and here...
17227         * modules/mktime (configure.ac): ... to here.
17228         * modules/mktime-internal (configure.ac): ... and here.
17229         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
17230
17231 2011-05-21  Bruno Haible  <bruno@clisp.org>
17232
17233         mkstemps: Move AC_LIBOBJ invocations to module description.
17234         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
17235         here...
17236         * modules/mkstemps (configure.ac): ... to here.
17237
17238 2011-05-21  Bruno Haible  <bruno@clisp.org>
17239
17240         mkstemp: Move AC_LIBOBJ invocations to module description.
17241         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
17242         gl_PREREQ_MKSTEMP invocations from here...
17243         * modules/mkstemp (configure.ac): ... to here.
17244
17245 2011-05-21  Bruno Haible  <bruno@clisp.org>
17246
17247         mkostemps: Move AC_LIBOBJ invocations to module description.
17248         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
17249         here...
17250         * modules/mkostemps (configure.ac): ... to here.
17251
17252 2011-05-21  Bruno Haible  <bruno@clisp.org>
17253
17254         mkostemp: Move AC_LIBOBJ invocations to module description.
17255         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
17256         gl_PREREQ_MKOSTEMP invocations from here...
17257         * modules/mkostemp (configure.ac): ... to here.
17258
17259 2011-05-21  Bruno Haible  <bruno@clisp.org>
17260
17261         mknod: Move AC_LIBOBJ invocations to module description.
17262         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
17263         * modules/mknod (configure.ac): ... to here.
17264
17265 2011-05-21  Bruno Haible  <bruno@clisp.org>
17266
17267         mkfifoat: Move AC_LIBOBJ invocations to module description.
17268         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
17269         here...
17270         * modules/mkfifoat (configure.ac): ... to here.
17271
17272 2011-05-21  Bruno Haible  <bruno@clisp.org>
17273
17274         mkfifo: Respect rules for use of AC_LIBOBJ.
17275         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
17276         here...
17277         * modules/mkfifo (configure.ac): ... to here.
17278
17279 2011-05-21  Bruno Haible  <bruno@clisp.org>
17280
17281         mkdtemp: Move AC_LIBOBJ invocations to module description.
17282         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
17283         invocations from here...
17284         * modules/mkdtemp (configure.ac): ... to here.
17285
17286 2011-05-21  Bruno Haible  <bruno@clisp.org>
17287
17288         mkdir: Move AC_LIBOBJ invocations to module description.
17289         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
17290         * modules/mkdir (configure.ac): ... to here.
17291
17292 2011-05-21  Bruno Haible  <bruno@clisp.org>
17293
17294         memset: Move AC_LIBOBJ invocations to module description.
17295         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
17296         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
17297         here...
17298         * modules/memset (configure.ac): ... to here.
17299
17300 2011-05-21  Bruno Haible  <bruno@clisp.org>
17301
17302         memrchr: Move AC_LIBOBJ invocations to module description.
17303         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
17304         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
17305         here...
17306         * modules/memrchr (configure.ac): ... to here.
17307
17308 2011-05-21  Bruno Haible  <bruno@clisp.org>
17309
17310         mempcpy: Move AC_LIBOBJ invocations to module description.
17311         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
17312         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
17313         here...
17314         * modules/mempcpy (configure.ac): ... to here.
17315
17316 2011-05-21  Bruno Haible  <bruno@clisp.org>
17317
17318         memmove: Move AC_LIBOBJ invocations to module description.
17319         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
17320         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
17321         here...
17322         * modules/memmove (configure.ac): ... to here.
17323
17324 2011-05-21  Bruno Haible  <bruno@clisp.org>
17325
17326         memmem*: Move AC_LIBOBJ invocations to module description.
17327         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
17328         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
17329         here...
17330         (gl_FUNC_MEMMEM): ... and here...
17331         * modules/memmem-simple (configure.ac): ... to here.
17332         * modules/memmem (configure.ac): ... and here.
17333
17334 2011-05-21  Bruno Haible  <bruno@clisp.org>
17335
17336         memcpy: Move AC_LIBOBJ invocations to module description.
17337         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
17338         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
17339         here...
17340         * modules/memcpy (configure.ac): ... to here.
17341
17342 2011-05-21  Bruno Haible  <bruno@clisp.org>
17343
17344         memcmp: Simplify autoconf macro.
17345         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
17346         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
17347         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
17348
17349 2011-05-21  Bruno Haible  <bruno@clisp.org>
17350
17351         memcmp: Move AC_LIBOBJ invocations to module description.
17352         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
17353         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
17354         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
17355         * modules/memcmp (configure.ac): ... to here.
17356         (Depends-on): Update conditions.
17357
17358 2011-05-21  Bruno Haible  <bruno@clisp.org>
17359
17360         memchr: Respect rules for use of AC_LIBOBJ.
17361         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
17362         invocations from here...
17363         * modules/memchr (configure.ac): ... to here.
17364
17365 2011-05-21  Bruno Haible  <bruno@clisp.org>
17366
17367         mbtowc: Move AC_LIBOBJ invocations to module description.
17368         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
17369         invocations from here...
17370         * modules/mbtowc (configure.ac): ... to here.
17371
17372 2011-05-21  Bruno Haible  <bruno@clisp.org>
17373
17374         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
17375         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
17376         gl_PREREQ_MBSRTOWCS invocations from here...
17377         * modules/mbsrtowcs (configure.ac): ... to here.
17378
17379 2011-05-21  Bruno Haible  <bruno@clisp.org>
17380
17381         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
17382         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
17383         gl_PREREQ_MBSNRTOWCS invocations from here...
17384         * modules/mbsnrtowcs (configure.ac): ... to here.
17385
17386 2011-05-21  Bruno Haible  <bruno@clisp.org>
17387
17388         mbsinit: Move AC_LIBOBJ invocations to module description.
17389         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
17390         invocations from here...
17391         * modules/mbsinit (configure.ac): ... to here.
17392
17393 2011-05-21  Bruno Haible  <bruno@clisp.org>
17394
17395         mbrlen: Move AC_LIBOBJ invocations to module description.
17396         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
17397         invocations from here...
17398         * modules/mbrlen (configure.ac): ... to here.
17399
17400 2011-05-21  Bruno Haible  <bruno@clisp.org>
17401
17402         mbrtowc: Respect rules for use of AC_LIBOBJ.
17403         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
17404         invocations from here...
17405         * modules/mbrtowc (configure.ac): ... to here.
17406
17407 2011-05-21  Bruno Haible  <bruno@clisp.org>
17408
17409         malloc-*: Move AC_LIBOBJ invocations to module description.
17410         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
17411         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
17412         AC_LIBOBJ invocations from here...
17413         * modules/malloc-gnu (configure.ac): ... to here.
17414         * modules/malloc-posix (configure.ac): ... and here.
17415
17416 2011-05-21  Bruno Haible  <bruno@clisp.org>
17417
17418         lstat, openat: Respect rules for use of AC_LIBOBJ.
17419         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
17420         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
17421         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
17422         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
17423         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
17424         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
17425         here.
17426         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
17427
17428 2011-05-21  Bruno Haible  <bruno@clisp.org>
17429
17430         lseek: Move AC_LIBOBJ invocations to module description.
17431         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
17432         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17433         * modules/lseek (configure.ac): ... to here.
17434
17435 2011-05-21  Bruno Haible  <bruno@clisp.org>
17436
17437         linkat: Move AC_LIBOBJ invocations to module description.
17438         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
17439         here...
17440         * modules/linkat (configure.ac): ... to here.
17441
17442 2011-05-21  Bruno Haible  <bruno@clisp.org>
17443
17444         link: Respect rules for use of AC_LIBOBJ.
17445         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
17446         * modules/link (configure.ac): ... to here.
17447
17448 2011-05-21  Bruno Haible  <bruno@clisp.org>
17449
17450         lchown: Move AC_LIBOBJ invocations to module description.
17451         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17452         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17453         * modules/lchown (configure.ac): ... to here.
17454
17455 2011-05-21  Bruno Haible  <bruno@clisp.org>
17456
17457         iswctype: Move AC_LIBOBJ invocations to module description.
17458         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
17459         here...
17460         * modules/iswctype (configure.ac): ... to here.
17461
17462 2011-05-21  Bruno Haible  <bruno@clisp.org>
17463
17464         iswblank: Move AC_LIBOBJ invocations to module description.
17465         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
17466         here...
17467         * modules/iswblank (configure.ac): ... to here.
17468
17469 2011-05-21  Bruno Haible  <bruno@clisp.org>
17470
17471         atanl: Move AC_LIBOBJ invocations to module description.
17472         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
17473         * modules/atanl (configure.ac): ... to here.
17474
17475 2011-05-21  Bruno Haible  <bruno@clisp.org>
17476
17477         acosl: Move AC_LIBOBJ invocations to module description.
17478         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
17479         * modules/acosl (configure.ac): ... to here.
17480
17481 2011-05-21  Bruno Haible  <bruno@clisp.org>
17482
17483         asinl: Respect rules for use of AC_LIBOBJ.
17484         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
17485         * modules/asinl (configure.ac): ... to here.
17486
17487 2011-05-21  Bruno Haible  <bruno@clisp.org>
17488
17489         tanl: Move AC_LIBOBJ invocations to module description.
17490         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
17491         * modules/tanl (configure.ac): ... to here.
17492
17493 2011-05-21  Bruno Haible  <bruno@clisp.org>
17494
17495         cosl: Move AC_LIBOBJ invocations to module description.
17496         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
17497         * modules/cosl (configure.ac): ... to here.
17498
17499 2011-05-21  Bruno Haible  <bruno@clisp.org>
17500
17501         sinl: Move AC_LIBOBJ invocations to module description.
17502         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
17503         * modules/sinl (configure.ac): ... to here.
17504
17505 2011-05-21  Bruno Haible  <bruno@clisp.org>
17506
17507         logl: Move AC_LIBOBJ invocations to module description.
17508         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
17509         * modules/logl (configure.ac): ... to here.
17510
17511 2011-05-21  Bruno Haible  <bruno@clisp.org>
17512
17513         expl: Move AC_LIBOBJ invocations to module description.
17514         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
17515         * modules/expl (configure.ac): ... to here.
17516
17517 2011-05-21  Bruno Haible  <bruno@clisp.org>
17518
17519         roundl: Move AC_LIBOBJ invocations to module description.
17520         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
17521         * modules/roundl (configure.ac): ... to here.
17522
17523 2011-05-21  Bruno Haible  <bruno@clisp.org>
17524
17525         round: Move AC_LIBOBJ invocations to module description.
17526         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
17527         * modules/round (configure.ac): ... to here.
17528
17529 2011-05-21  Bruno Haible  <bruno@clisp.org>
17530
17531         roundf: Move AC_LIBOBJ invocations to module description.
17532         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
17533         * modules/roundf (configure.ac): ... to here.
17534
17535 2011-05-21  Bruno Haible  <bruno@clisp.org>
17536
17537         truncl: Move AC_LIBOBJ invocations to module description.
17538         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
17539         * modules/truncl (configure.ac): ... to here.
17540
17541 2011-05-21  Bruno Haible  <bruno@clisp.org>
17542
17543         trunc: Move AC_LIBOBJ invocations to module description.
17544         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
17545         * modules/trunc (configure.ac): ... to here.
17546
17547 2011-05-21  Bruno Haible  <bruno@clisp.org>
17548
17549         truncf: Move AC_LIBOBJ invocations to module description.
17550         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
17551         * modules/truncf (configure.ac): ... to here.
17552
17553 2011-05-21  Bruno Haible  <bruno@clisp.org>
17554
17555         ceill: Move AC_LIBOBJ invocations to module description.
17556         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
17557         * modules/ceill (configure.ac): ... to here.
17558
17559 2011-05-21  Bruno Haible  <bruno@clisp.org>
17560
17561         ceil: Move AC_LIBOBJ invocations to module description.
17562         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
17563         * modules/ceil (configure.ac): ... to here.
17564
17565 2011-05-21  Bruno Haible  <bruno@clisp.org>
17566
17567         ceilf: Move AC_LIBOBJ invocations to module description.
17568         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
17569         * modules/ceilf (configure.ac): ... to here.
17570
17571 2011-05-21  Bruno Haible  <bruno@clisp.org>
17572
17573         floorl: Respect rules for use of AC_LIBOBJ.
17574         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
17575         * modules/floorl (configure.ac): ... to here.
17576
17577 2011-05-21  Bruno Haible  <bruno@clisp.org>
17578
17579         floor: Respect rules for use of AC_LIBOBJ.
17580         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
17581         * modules/floor (configure.ac): ... to here.
17582
17583 2011-05-21  Bruno Haible  <bruno@clisp.org>
17584
17585         floorf: Move AC_LIBOBJ invocations to module description.
17586         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
17587         * modules/floorf (configure.ac): ... to here.
17588
17589 2011-05-20  Bruno Haible  <bruno@clisp.org>
17590
17591         sqrtl: Respect rules for use of AC_LIBOBJ.
17592         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
17593         * modules/sqrtl (configure.ac): ... to here.
17594
17595 2011-05-20  Bruno Haible  <bruno@clisp.org>
17596
17597         ldexpl: Respect rules for use of AC_LIBOBJ.
17598         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
17599         * modules/ldexpl (configure.ac): ... to here.
17600
17601 2011-05-20  Bruno Haible  <bruno@clisp.org>
17602
17603         frexpl*: Respect rules for use of AC_LIBOBJ.
17604         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
17605         invocation from here...
17606         * modules/frexpl (configure.ac): ... to here.
17607         * modules/frexpl-nolibm (configure.ac): ... and here.
17608
17609 2011-05-20  Bruno Haible  <bruno@clisp.org>
17610
17611         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
17612         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
17613         invocation from here...
17614         * modules/frexp (configure.ac): ... to here.
17615         * modules/frexp-nolibm (configure.ac): ... and here.
17616
17617 2011-05-20  Bruno Haible  <bruno@clisp.org>
17618
17619         isnan: Respect rules for use of AC_LIBOBJ.
17620         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
17621         invocations here.
17622         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
17623         REPLACE_ISNAN.
17624         * modules/isnand (configure.ac): Likewise.
17625         * modules/isnanl (configure.ac): Likewise.
17626
17627 2011-05-20  Bruno Haible  <bruno@clisp.org>
17628
17629         isnanl*: Respect rules for use of AC_LIBOBJ.
17630         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
17631         invocation from here...
17632         * modules/isnanl (configure.ac): ... to here.
17633         * modules/isnanl-nolibm (configure.ac): ... and here.
17634
17635 2011-05-20  Bruno Haible  <bruno@clisp.org>
17636
17637         isnand*: Move AC_LIBOBJ invocations to module description.
17638         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
17639         invocation from here...
17640         * modules/isnand (configure.ac): ... to here.
17641         * modules/isnand-nolibm (configure.ac): ... and here.
17642
17643 2011-05-20  Bruno Haible  <bruno@clisp.org>
17644
17645         isnanf*: Move AC_LIBOBJ invocations to module description.
17646         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
17647         invocation from here...
17648         * modules/isnanf (configure.ac): ... to here.
17649         * modules/isnanf-nolibm (configure.ac): ... and here.
17650
17651 2011-05-20  Bruno Haible  <bruno@clisp.org>
17652
17653         isnan*: Separate the AC_LIBOBJ invocations.
17654         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
17655         AC_LIBOBJ invocation.
17656         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
17657         here.
17658         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
17659         AC_LIBOBJ invocation.
17660         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
17661         here.
17662         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
17663         AC_LIBOBJ invocation.
17664         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
17665         here.
17666         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
17667
17668 2011-05-08  Bruno Haible  <bruno@clisp.org>
17669
17670         isinf: Move AC_LIBOBJ invocations to module description.
17671         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
17672         * modules/isinf (configure.ac): ... to here.
17673
17674 2011-05-08  Bruno Haible  <bruno@clisp.org>
17675
17676         isfinite: Move AC_LIBOBJ invocations to module description.
17677         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
17678         * modules/isfinite (configure.ac): ... to here.
17679
17680 2011-05-08  Bruno Haible  <bruno@clisp.org>
17681
17682         isblank: Move AC_LIBOBJ invocations to module description.
17683         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
17684         here...
17685         * modules/isblank (configure.ac): ... to here.
17686
17687 2011-05-08  Bruno Haible  <bruno@clisp.org>
17688
17689         isapipe: Move AC_LIBOBJ invocations to module description.
17690         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
17691         gl_PREREQ_ISAPIPE invocations from here...
17692         * modules/isapipe (configure.ac): ... to here.
17693         (Depends-on): Update condition.
17694
17695 2011-05-08  Bruno Haible  <bruno@clisp.org>
17696
17697         ioctl: Move AC_LIBOBJ invocations to module description.
17698         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
17699         invocations from here...
17700         * modules/ioctl (configure.ac): ... to here.
17701         (Depends-on): Update condition.
17702
17703 2011-05-08  Bruno Haible  <bruno@clisp.org>
17704
17705         imaxdiv: Move AC_LIBOBJ invocations to module description.
17706         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
17707         invocations from here...
17708         * modules/imaxdiv (configure.ac): ... to here.
17709
17710 2011-05-08  Bruno Haible  <bruno@clisp.org>
17711
17712         imaxabs: Move AC_LIBOBJ invocations to module description.
17713         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
17714         invocations from here...
17715         * modules/imaxabs (configure.ac): ... to here.
17716
17717 2011-05-08  Bruno Haible  <bruno@clisp.org>
17718
17719         getaddrinfo: Move AC_LIBOBJ invocations to module description.
17720         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
17721         AC_LIBOBJ invocations from here...
17722         * modules/getaddrinfo (configure.ac): ... to here.
17723         (Depends-on): Add conditions.
17724
17725 2011-05-08  Bruno Haible  <bruno@clisp.org>
17726
17727         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17728         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
17729         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17730         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
17731         (gl_PREREQ_INET_PTON): ... from here.
17732         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
17733         gl_PREREQ_INET_PTON here.
17734         (Depends-on): Update condition.
17735
17736 2011-05-08  Bruno Haible  <bruno@clisp.org>
17737
17738         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17739         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
17740         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17741         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
17742         (gl_PREREQ_INET_NTOP): ... from here.
17743         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
17744         gl_PREREQ_INET_NTOP here.
17745         (Depends-on): Update condition.
17746
17747 2011-05-08  Bruno Haible  <bruno@clisp.org>
17748
17749         iconv_open: Move AC_LIBOBJ invocations to module description.
17750         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
17751         AC_LIBOBJ invocations from here...
17752         * modules/iconv_open (configure.ac): ... to here.
17753
17754 2011-05-08  Bruno Haible  <bruno@clisp.org>
17755
17756         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
17757         If module 'iconv_open' is among the main modules and module
17758         'iconv_open-utf' is among the tests dependencies, then
17759         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
17760         return the special iconv_t values. Therefore iconv() and iconv_close()
17761         must support these special iconv_t values, already in lib, not only in
17762         tests.
17763         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
17764         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
17765         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
17766         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
17767         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
17768         (Depends-on): Add the dependencies of iconv_open-utf.
17769         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
17770         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
17771         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
17772
17773 2011-05-08  Bruno Haible  <bruno@clisp.org>
17774
17775         group-member: Move AC_LIBOBJ invocations to module description.
17776         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
17777         gl_PREREQ_GROUP_MEMBER invocations from here...
17778         * modules/group-member (configure.ac): ... to here.
17779
17780 2011-05-08  Bruno Haible  <bruno@clisp.org>
17781
17782         grantpt: Move AC_LIBOBJ invocations to module description.
17783         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
17784         invocations from here...
17785         * modules/grantpt (configure.ac): ... to here.
17786
17787 2011-05-08  Bruno Haible  <bruno@clisp.org>
17788
17789         glob: Move AC_LIBOBJ invocations to module description.
17790         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
17791         from here...
17792         * modules/glob (configure.ac): ... to here.
17793
17794 2011-05-08  Bruno Haible  <bruno@clisp.org>
17795
17796         getusershell: Move AC_LIBOBJ invocations to module description.
17797         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
17798         Move AC_LIBOBJ invocation from here...
17799         * modules/getusershell (configure.ac): ... to here.
17800         (Depends-on): Update condition.
17801
17802 2011-05-08  Bruno Haible  <bruno@clisp.org>
17803
17804         gettimeofday: Move AC_LIBOBJ invocations to module description.
17805         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17806         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
17807         gl_PREREQ_GETTIMEOFDAY invocations from here...
17808         * modules/gettimeofday (configure.ac): ... to here.
17809
17810 2011-05-08  Bruno Haible  <bruno@clisp.org>
17811
17812         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
17813         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
17814         just gl_FUNC_TZSET.
17815         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
17816         (gl_FUNC_TZSET_CLOBBER): Remove actions.
17817         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
17818         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
17819
17820 2011-05-08  Bruno Haible  <bruno@clisp.org>
17821
17822         getsubopt: Move AC_LIBOBJ invocations to module description.
17823         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
17824         gl_PREREQ_GETSUBOPT invocations from here...
17825         * modules/getsubopt (configure.ac): ... to here.
17826
17827 2011-05-08  Bruno Haible  <bruno@clisp.org>
17828
17829         getpass-gnu: Move AC_LIBOBJ invocations to module description.
17830         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
17831         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
17832         * modules/getpass-gnu (configure.ac): ... to here.
17833
17834 2011-05-08  Bruno Haible  <bruno@clisp.org>
17835
17836         getpass: Move AC_LIBOBJ invocations to module description.
17837         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
17838         gl_PREREQ_GETPASS invocations from here...
17839         * modules/getpass (configure.ac): ... to here.
17840
17841 2011-05-08  Bruno Haible  <bruno@clisp.org>
17842
17843         getpagesize: Move AC_LIBOBJ invocations to module description.
17844         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
17845         from here...
17846         * modules/getpagesize (configure.ac): ... to here.
17847
17848 2011-05-08  Bruno Haible  <bruno@clisp.org>
17849
17850         getopt: Move AC_LIBOBJ invocations to module description.
17851         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
17852         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
17853         invocations from here...
17854         * modules/getopt-gnu (configure.ac): ... to here.
17855         * modules/getopt-posix (configure.ac): ... and here.
17856         (Depends-on): Update condition.
17857
17858 2011-05-08  Bruno Haible  <bruno@clisp.org>
17859
17860         getopt, argp: Respect rules for use of AC_LIBOBJ.
17861         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
17862         (gl_REPLACE_GETOPT_ALWAYS): New macro.
17863         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
17864         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
17865
17866 2011-05-08  Bruno Haible  <bruno@clisp.org>
17867
17868         getlogin_r: Move AC_LIBOBJ invocations to module description.
17869         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
17870         gl_PREREQ_GETLOGIN_R invocations from here...
17871         * modules/getlogin_r (configure.ac): ... to here.
17872
17873 2011-05-08  Bruno Haible  <bruno@clisp.org>
17874
17875         getlogin: Move AC_LIBOBJ invocations to module description.
17876         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
17877         here...
17878         * modules/getlogin (configure.ac): ... to here.
17879
17880 2011-05-08  Bruno Haible  <bruno@clisp.org>
17881
17882         getloadavg: Move AC_LIBOBJ invocations to module description.
17883         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
17884         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
17885         * modules/getloadavg (configure.ac): ... to here.
17886
17887 2011-05-08  Bruno Haible  <bruno@clisp.org>
17888
17889         gethrxtime: Move AC_LIBOBJ invocations to module description.
17890         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
17891         LIB_GETHRXTIME from here...
17892         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
17893         invocations from here...
17894         * modules/gethrxtime (configure.ac): ... to here.
17895
17896 2011-05-08  Bruno Haible  <bruno@clisp.org>
17897
17898         gethostname: Move AC_LIBOBJ invocations to module description.
17899         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
17900         gl_PREREQ_GETHOSTNAME invocations from here...
17901         * modules/gethostname (configure.ac): ... to here.
17902
17903 2011-05-08  Bruno Haible  <bruno@clisp.org>
17904
17905         getgroups: Move AC_LIBOBJ invocations to module description.
17906         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
17907         here...
17908         * modules/getgroups (configure.ac): ... to here.
17909
17910 2011-05-08  Bruno Haible  <bruno@clisp.org>
17911
17912         getdtablesize: Move AC_LIBOBJ invocations to module description.
17913         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
17914         invocation from here...
17915         * modules/getdtablesize (configure.ac): ... to here.
17916
17917 2011-05-08  Bruno Haible  <bruno@clisp.org>
17918
17919         getdomainname: Move AC_LIBOBJ invocations to module description.
17920         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
17921         gl_PREREQ_GETDOMAINNAME invocations from here...
17922         * modules/getdomainname (configure.ac): ... to here.
17923
17924 2011-05-08  Bruno Haible  <bruno@clisp.org>
17925
17926         getline: Move AC_LIBOBJ invocations to module description.
17927         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
17928         invocations from here...
17929         * modules/getline (configure.ac): ... to here.
17930
17931 2011-05-08  Bruno Haible  <bruno@clisp.org>
17932
17933         getline: Simplify.
17934         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
17935         It's already handled through the module dependency.
17936
17937 2011-05-08  Bruno Haible  <bruno@clisp.org>
17938
17939         getdelim: Move AC_LIBOBJ invocations to module description.
17940         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
17941         and gl_PREREQ_GETDELIM invocations from here...
17942         * modules/getdelim (configure.ac): ... to here.
17943         (Depends-on): Fix condition.
17944
17945 2011-05-08  Bruno Haible  <bruno@clisp.org>
17946
17947         getcwd: Move AC_LIBOBJ invocations to module description.
17948         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
17949         invocations from here...
17950         * modules/getcwd (configure.ac): ... to here.
17951
17952 2011-05-08  Bruno Haible  <bruno@clisp.org>
17953
17954         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
17955         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
17956         here...
17957         * modules/getcwd-lgpl (configure.ac): ... to here.
17958
17959 2011-05-07  Bruno Haible  <bruno@clisp.org>
17960
17961         crypto/gc: Move AC_LIBOBJ invocations to module description.
17962         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
17963         * modules/crypto/gc (configure.ac): ... to here.
17964
17965 2011-05-07  Bruno Haible  <bruno@clisp.org>
17966
17967         fwriting: Move AC_LIBOBJ invocations to module description.
17968         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
17969         here...
17970         * modules/fwriting (configure.ac): ... to here.
17971
17972 2011-05-07  Bruno Haible  <bruno@clisp.org>
17973
17974         fwritable: Move AC_LIBOBJ invocations to module description.
17975         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
17976         here...
17977         * modules/fwritable (configure.ac): ... to here.
17978
17979 2011-05-07  Bruno Haible  <bruno@clisp.org>
17980
17981         futimens: Move AC_LIBOBJ invocations to module description.
17982         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
17983         here...
17984         * modules/futimens (configure.ac): ... to here.
17985
17986 2011-05-07  Bruno Haible  <bruno@clisp.org>
17987
17988         ftruncate: Move AC_LIBOBJ invocations to module description.
17989         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
17990         gl_PREREQ_FTRUNCATE invocations from here...
17991         * modules/ftruncate (configure.ac): ... to here.
17992
17993 2011-05-07  Bruno Haible  <bruno@clisp.org>
17994
17995         fsync: Move AC_LIBOBJ invocations to module description.
17996         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
17997         invocations from here...
17998         * modules/fsync (configure.ac): ... to here.
17999
18000 2011-05-07  Bruno Haible  <bruno@clisp.org>
18001
18002         fsusage: Move AC_LIBOBJ invocations to module description.
18003         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
18004         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
18005         * modules/fsusage (configure.ac): ... to here.
18006
18007 2011-05-07  Bruno Haible  <bruno@clisp.org>
18008
18009         freopen: Move AC_LIBOBJ invocations to module description.
18010         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
18011         invocations from here...
18012         * modules/freopen (configure.ac): ... to here.
18013
18014 2011-05-07  Bruno Haible  <bruno@clisp.org>
18015
18016         free: Move AC_LIBOBJ invocations to module description.
18017         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
18018         invocations from here...
18019         * modules/free (configure.ac): ... to here.
18020
18021 2011-05-07  Bruno Haible  <bruno@clisp.org>
18022
18023         freadable: Move AC_LIBOBJ invocations to module description.
18024         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
18025         here...
18026         * modules/freadable (configure.ac): ... to here.
18027
18028 2011-05-07  Bruno Haible  <bruno@clisp.org>
18029
18030         fpurge: Move AC_LIBOBJ invocations to module description.
18031         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
18032         invocations from here...
18033         * modules/fpurge (configure.ac): ... to here.
18034
18035 2011-05-07  Bruno Haible  <bruno@clisp.org>
18036
18037         fpending: Move AC_LIBOBJ invocations to module description.
18038         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
18039         gl_FUNC_FPENDING.
18040         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
18041         invocations from here...
18042         * modules/fpending (configure.ac): ... to here.
18043
18044 2011-05-07  Bruno Haible  <bruno@clisp.org>
18045
18046         fopen: Move AC_LIBOBJ invocations to module description.
18047         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
18048         invocations from here...
18049         * modules/fopen (configure.ac): ... to here.
18050
18051 2011-05-07  Bruno Haible  <bruno@clisp.org>
18052
18053         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
18054         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
18055         gl_FUNC_FNMATCH_POSIX.
18056         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
18057         invocations from here...
18058         * modules/fnmatch (configure.ac): ... to here.
18059         * modules/fnmatch-gnu (configure.ac): ... and here.
18060
18061 2011-05-07  Bruno Haible  <bruno@clisp.org>
18062
18063         flock: Move AC_LIBOBJ invocations to module description.
18064         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
18065         invocations from here...
18066         * modules/flock (configure.ac): ... to here.
18067
18068 2011-05-07  Bruno Haible  <bruno@clisp.org>
18069
18070         fileblocks: Move AC_LIBOBJ invocations to module description.
18071         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
18072         gl_PREREQ_FILEBLOCKS invocations from here...
18073         * modules/fileblocks (configure.ac): ... to here.
18074
18075 2011-05-06  Bruno Haible  <bruno@clisp.org>
18076
18077         fflush: Move AC_LIBOBJ invocations to module description.
18078         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
18079         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
18080         invocations from here...
18081         * modules/fflush (configure.ac): ... to here.
18082
18083 2011-05-06  Bruno Haible  <bruno@clisp.org>
18084
18085         fdopendir: Move AC_LIBOBJ invocations to module description.
18086         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
18087         here...
18088         * modules/fdopendir (configure.ac): ... to here.
18089         (Depends-on): Improve conditions.
18090
18091 2011-05-06  Bruno Haible  <bruno@clisp.org>
18092
18093         _Exit: Move AC_LIBOBJ invocations to module description.
18094         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
18095         invocations from here...
18096         * modules/_Exit (configure.ac): ... to here.
18097
18098 2011-05-21  Bruno Haible  <bruno@clisp.org>
18099
18100         euidaccess: Respect rules for use of AC_LIBOBJ.
18101         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18102         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
18103         from here...
18104         * modules/euidaccess (configure.ac): ... to here.
18105
18106 2011-05-06  Bruno Haible  <bruno@clisp.org>
18107
18108         error: Move AC_LIBOBJ invocations to module description.
18109         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
18110         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
18111         invocations from here...
18112         * modules/error (configure.ac): ... to here.
18113
18114 2011-05-06  Bruno Haible  <bruno@clisp.org>
18115
18116         duplocale: Move AC_LIBOBJ invocations to module description.
18117         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
18118         gl_PREREQ_DUPLOCALE invocations from here...
18119         * modules/duplocale (configure.ac): ... to here.
18120
18121 2011-05-05  Bruno Haible  <bruno@clisp.org>
18122
18123         dirfd: Move AC_LIBOBJ invocations to module description.
18124         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
18125         gl_FUNC_DIRFD.
18126         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
18127         here...
18128         * modules/dirfd (configure.ac): ... to here.
18129         (Depends-on): Fix condition.
18130
18131 2011-05-05  Bruno Haible  <bruno@clisp.org>
18132
18133         chown: Respect rules for use of AC_LIBOBJ.
18134         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
18135         * modules/chown (configure.ac): ... to here.
18136
18137 2011-05-05  Bruno Haible  <bruno@clisp.org>
18138
18139         chdir-long: Move AC_LIBOBJ invocations to module description.
18140         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
18141         gl_PREREQ_CHDIR_LONG invocations from here...
18142         * modules/chdir-long (configure.ac): ... to here.
18143
18144 2011-05-05  Bruno Haible  <bruno@clisp.org>
18145
18146         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
18147         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
18148         from here...
18149         * modules/canonicalize-lgpl (configure.ac): ... to here.
18150
18151 2011-05-05  Bruno Haible  <bruno@clisp.org>
18152
18153         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
18154         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
18155         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
18156         REPLACE_CALLOC.
18157         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
18158         * modules/calloc-gnu (configure.ac): Likewise.
18159
18160 2011-05-05  Bruno Haible  <bruno@clisp.org>
18161
18162         btowc: Move AC_LIBOBJ invocations to module description.
18163         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
18164         invocations from here...
18165         * modules/btowc (configure.ac): ... to here.
18166
18167 2011-05-21  Bruno Haible  <bruno@clisp.org>
18168
18169         atexit: Move AC_LIBOBJ invocations to module description.
18170         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
18171         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
18172         here...
18173         * modules/atexit (configure.ac): ... to here.
18174
18175 2011-05-05  Bruno Haible  <bruno@clisp.org>
18176
18177         atoll: Move AC_LIBOBJ invocations to module description.
18178         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
18179         invocations from here...
18180         * modules/atoll (configure.ac): ... to here.
18181
18182 2011-05-05  Bruno Haible  <bruno@clisp.org>
18183
18184         argz: Move AC_LIBOBJ invocations to module description.
18185         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
18186         * modules/argz (configure.ac): ... to here.
18187
18188 2011-05-05  Bruno Haible  <bruno@clisp.org>
18189
18190         alphasort: Move AC_LIBOBJ invocations to module description.
18191         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
18192         gl_PREREQ_ALPHASORT invocations from here...
18193         * modules/alphasort (configure.ac): ... to here.
18194
18195 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18196
18197         verify: new macro verify_expr; verify_true deprecated
18198         * NEWS: Mention this.
18199         * doc/verify.texi (Compile-time Assertions): Document this.
18200         * lib/verify.h (verify_true): Deprecate.
18201         (verify_expr): New macro.
18202         * tests/test-verify.c (function): Test verify_expr.
18203
18204 2011-06-14  Jim Meyering  <meyering@redhat.com>
18205
18206         init.sh: give more portable redirection-related advice in a comment
18207         * tests/init.sh (stderr_fileno_): Update the advice in comments.
18208         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
18209         for lots of discussion.  Stefano Lattarini suggested the solution
18210         of putting "9>&2" after the command.  Reported by Bruno Haible.
18211
18212 2011-06-13  Bruno Haible  <bruno@clisp.org>
18213
18214         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
18215         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
18216         'none'.
18217
18218 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
18219
18220         ftoastr: use strtof only if HAVE_STRTOF
18221         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
18222         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
18223         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
18224         * modules/ftoastr (configure.ac): Check for strtof.
18225
18226 2011-06-13  Bruno Haible  <bruno@clisp.org>
18227
18228         gnulib-tool: Addendum to 2011-06-08 commit.
18229         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
18230         and --witness-c-macro have been given, augment AM_CPPFLAGS.
18231
18232 2011-06-13  Bruno Haible  <bruno@clisp.org>
18233
18234         fseeko: Provide a non-inline replacement of fseek().
18235         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
18236         * modules/fseeko (Depends-on): Add fseek.
18237         * modules/fseek (License): Change to LGPLv2+.
18238
18239 2011-06-13  Bruno Haible  <bruno@clisp.org>
18240
18241         ftello: Provide a non-inline replacement of ftell().
18242         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
18243         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
18244         not have ftello() (such as on mingw).
18245         * modules/ftello (Depends-on): Add ftell.
18246         * modules/ftell (License): Change to LGPLv2+.
18247
18248 2011-05-07  Bruno Haible  <bruno@clisp.org>
18249
18250         ftell: Move AC_LIBOBJ invocations to module description.
18251         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
18252         * modules/ftell (configure.ac): ... to here.
18253
18254 2011-05-07  Bruno Haible  <bruno@clisp.org>
18255
18256         ftello: Respect rules for use of AC_LIBOBJ.
18257         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
18258         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
18259         here...
18260         * modules/ftello (configure.ac): ... to here.
18261
18262 2011-05-07  Bruno Haible  <bruno@clisp.org>
18263
18264         fseeko: Simplify.
18265         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
18266         (gl_FUNC_FSEEKO): Inline it here.
18267
18268 2011-05-07  Bruno Haible  <bruno@clisp.org>
18269
18270         fseek: Move AC_LIBOBJ invocations to module description.
18271         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
18272         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18273         * modules/fseek (configure.ac): ... to here.
18274
18275 2011-05-07  Bruno Haible  <bruno@clisp.org>
18276
18277         fseek: Respect rules for use of AC_LIBOBJ.
18278         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
18279         here...
18280         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
18281
18282 2011-05-07  Bruno Haible  <bruno@clisp.org>
18283
18284         fseeko: Respect rules for use of AC_LIBOBJ.
18285         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
18286         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
18287         here...
18288         * modules/fseeko (configure.ac): ... to here.
18289
18290 2011-06-13  Bruno Haible  <bruno@clisp.org>
18291
18292         gnulib-tool: Allow comments in the 'Depends-on' section.
18293         * doc/gnulib.texi (Module description): Mention comment syntax in the
18294         Depends-on section.
18295         * gnulib-tool (func_get_dependencies): Filter out comment lines.
18296
18297 2011-06-13  Bruno Haible  <bruno@clisp.org>
18298
18299         file-set.h: guard __attibute__ use, now that it's not always defined
18300         * lib/file-set.h (record_file): Use __attribute__ only with compiler
18301         versions that support it.  This fixes a coreutils build failure with
18302         the vendor cc on HP-UX 11.31.
18303
18304 2011-06-12  Bruno Haible  <bruno@clisp.org>
18305
18306         acl: Add support for HP-UX >= 11.11 JFS ACLs.
18307         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
18308         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
18309         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
18310         (acl, aclsort): New declarations.
18311         (aclv_nontrivial): New declaration.
18312         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
18313         (file_has_acl): Read also the second kind of HP-UX ACLs.
18314         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
18315         kind of HP-UX ACLs if the first kind fails.
18316         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
18317         second kind of HP-UX ACLs.
18318         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
18319         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
18320         agree.
18321         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18322         hpuxjfs.
18323         Handle hpuxjfs.
18324         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18325         hpuxjfs.
18326         Handle hpuxjfs.
18327         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18328         (func_test_same_acls): Use both lsacl and getacl.
18329         Handle hpuxjfs.
18330         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18331         (func_test_same_acls): Use both lsacl and getacl.
18332         Handle hpuxjfs.
18333
18334 2011-06-12  Bruno Haible  <bruno@clisp.org>
18335
18336         acl: Complete the 2010-08-10 fix.
18337         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
18338         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
18339         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
18340         explicitly.
18341         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
18342         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
18343
18344 2011-06-12  Bruno Haible  <bruno@clisp.org>
18345
18346         spawn-pipe tests: Comments.
18347         * tests/test-spawn-pipe-child.c (main): Update comment.
18348         Reported by James Youngman <jay@gnu.org>.
18349
18350 2011-06-11  James Youngman  <jay@gnu.org>
18351
18352         New module 'stat-size'.
18353         * modules/stat-size: New module.  Provides macros for accessing
18354         file size information in instances of struct stat.  Depends on the
18355         fileblocks module because it calls st_blocks.
18356         * lib/stat-size.h: New file, adapted from coreutils' system.h.
18357         * doc/gnulib.texi: Include stat-size.texi.
18358         * doc/stat-size.texi: Documentation for this module.
18359         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
18360         * m4/fileblocks.m4: Mention that stat-size depends on the call to
18361         AC_STRUCT_ST_BLOCKS.
18362
18363 2011-06-09  Bruno Haible  <bruno@clisp.org>
18364
18365         thread: Support pthreads-win32.
18366         * lib/glthread/thread.h (gl_thread_self): Define differently on
18367         pthreads-win32.
18368         (gl_null_thread): New declaration.
18369         (gl_thread_self_pointer): New macro.
18370         * lib/glthread/thread.c (gl_null_thread): New constant.
18371         * tests/test-lock.c: Use gl_thread_self_pointer instead of
18372         gl_thread_self.
18373         * tests/test-tls.c: Likewise.
18374         Suggested by Paul Eggert. Reported by Eric Blake.
18375
18376 2011-06-09  Bruno Haible  <bruno@clisp.org>
18377
18378         thread: Fix confusion between NULL and 0.
18379         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
18380         Reported by Paul Eggert.
18381
18382 2011-06-09  Bruno Haible  <bruno@clisp.org>
18383
18384         spawn-pipe tests: Avoid test failure on HP-UX 11.
18385         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
18386         is closed.
18387
18388 2011-06-09  Bruno Haible  <bruno@clisp.org>
18389
18390         acl tests: Fix compilation error on HP-UX 11.
18391         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
18392
18393 2011-06-09  Bruno Haible  <bruno@clisp.org>
18394
18395         rmdir: Avoid test failure on HP-UX 10.20.
18396         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
18397         EEXIST.
18398
18399 2011-06-08  Eric Blake  <eblake@redhat.com>
18400
18401         perror: fix test on mingw
18402         * modules/perror-tests (Depends-on): Add dup2.
18403
18404         strerror_r-posix: fix on MacOS
18405         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
18406         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
18407         logic bug.
18408         * lib/strerror_r.c (strerror_r): Fix the bug.
18409         * lib/strerror.c (strerror): Likewise.
18410         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
18411         problem.
18412         * doc/posix-functions/strerror.texi (strerror): Likewise.
18413         * doc/posix-functions/perror.texi (perror): Likewise.
18414         * tests/test-strerror.c (main): Enhance test.
18415         * tests/test-strerror_r.c (main): Likewise.
18416
18417 2011-06-08  Bruno Haible  <bruno@clisp.org>
18418
18419         gnulib-tool: Better isolation between different gnulib-tool invocations.
18420         * gnulib-tool: New option --witness-c-macro.
18421         (witness_c_macro): New variable.
18422         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
18423         AM_CPPFLAGS define it as a C macro.
18424         (func_emit_tests_Makefile_am): Likewise.
18425         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
18426         read it from there.
18427         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
18428         m4_define, not AC_DEFUN.
18429         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
18430         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
18431         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
18432         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
18433         s|...|...|, to substitute the values of the GNULIB_* module indicator
18434         variables.
18435         * modules/dirent (Makefile.am): Likewise.
18436         * modules/fcntl-h (Makefile.am): Likewise.
18437         * modules/iconv-h (Makefile.am): Likewise.
18438         * modules/langinfo (Makefile.am): Likewise.
18439         * modules/locale (Makefile.am): Likewise.
18440         * modules/math (Makefile.am): Likewise.
18441         * modules/netdb (Makefile.am): Likewise.
18442         * modules/poll-h (Makefile.am): Likewise.
18443         * modules/pty (Makefile.am): Likewise.
18444         * modules/search (Makefile.am): Likewise.
18445         * modules/signal (Makefile.am): Likewise.
18446         * modules/spawn (Makefile.am): Likewise.
18447         * modules/stdio (Makefile.am): Likewise.
18448         * modules/stdlib (Makefile.am): Likewise.
18449         * modules/string (Makefile.am): Likewise.
18450         * modules/sys_ioctl (Makefile.am): Likewise.
18451         * modules/sys_select (Makefile.am): Likewise.
18452         * modules/sys_socket (Makefile.am): Likewise.
18453         * modules/sys_stat (Makefile.am): Likewise.
18454         * modules/sys_times (Makefile.am): Likewise.
18455         * modules/sys_utsname (Makefile.am): Likewise.
18456         * modules/sys_wait (Makefile.am): Likewise.
18457         * modules/termios (Makefile.am): Likewise.
18458         * modules/time (Makefile.am): Likewise.
18459         * modules/unistd (Makefile.am): Likewise.
18460         * modules/wchar (Makefile.am): Likewise.
18461
18462 2011-06-08  Eric Blake  <eblake@redhat.com>
18463
18464         strerror: simplify replacement
18465         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
18466         * modules/strerror (configure.ac): No prereqs needed here...
18467         * modules/strerror-override (configure.ac): ...but this needs it.
18468         (Files): Add file for needed prereq macro.
18469
18470 2011-06-08  Bruno Haible  <bruno@clisp.org>
18471
18472         strerror_r-posix: Tweaks.
18473         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
18474         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
18475         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
18476         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
18477         (gl_FUNC_STRERROR_R): ... to here.
18478         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
18479
18480 2011-06-07  Eric Blake  <eblake@redhat.com>
18481
18482         perror: document fixed bugs
18483         * doc/posix-functions/perror.texi (perror): Document recent
18484         patches.
18485
18486 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
18487
18488         stat-time: get_stat_birthtime failure is better-defined
18489         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
18490         return a timestamp whose tv_sec and tv_nsec values are both -1.
18491         Previously, the spec said only that the tv_nsec value was negative.
18492         This upward-compatible change simplifies GNU tar a bit.
18493
18494 2011-06-07  Eric Blake  <eblake@redhat.com>
18495
18496         strerror_r-posix: work around cygwin 1.7.9
18497         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
18498         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
18499         bug without replacing strerror_r.
18500         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
18501         strerror_r is buggy, but without requiring strerror_r compilation.
18502         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
18503
18504         test-perror: relax test to ignore cygwin bug
18505         * tests/test-perror2.c (main): Relax test on requiring detection
18506         of stream errors, and use unbuffered stream.
18507         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
18508         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
18509         * doc/posix-functions/fputc.texi (fputc): Likewise.
18510         * doc/posix-functions/fputs.texi (fputs): Likewise.
18511         * doc/posix-functions/fputws.texi (fputws): Likewise.
18512         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
18513         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
18514         * doc/posix-functions/getopt.texi (getopt): Likewise.
18515         * doc/posix-functions/perror.texi (perror): Likewise.
18516         * doc/posix-functions/printf.texi (printf): Likewise.
18517         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
18518         * doc/posix-functions/psignal.texi (psignal): Likewise.
18519         * doc/posix-functions/putc.texi (putc): Likewise.
18520         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
18521         Likewise.
18522         * doc/posix-functions/putchar.texi (putchar): Likewise.
18523         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
18524         Likewise.
18525         * doc/posix-functions/puts.texi (puts): Likewise.
18526         * doc/posix-functions/putwc.texi (putwc): Likewise.
18527         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
18528         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
18529         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18530         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
18531         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18532         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
18533         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18534         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
18535
18536 2011-05-22  Bruno Haible  <bruno@clisp.org>
18537
18538         strerror: Move AC_LIBOBJ invocations to module description.
18539         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
18540         gl_PREREQ_STRERROR invocations from here...
18541         * modules/strerror (configure.ac): ... to here.
18542
18543 2011-05-21  Bruno Haible  <bruno@clisp.org>
18544
18545         perror: Use common idiom.
18546         * modules/perror (configure.ac): Reorder statements.
18547
18548 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18549
18550         tests: fix usage message in 'mktempd_'
18551         * tests/init.sh (mktempd_): In the usage message, use literal
18552         'mktempd_', not '$ME' (which is even undefined), as the name of
18553         the subroutine.
18554
18555 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18556
18557         tests init: new function 'fatal_', for hard errors
18558         Before this patch, the only way offered by tests/init.sh to
18559         properly signal a hard error was the `framework_failure_'
18560         function.  But the error message issued by that function,
18561         as its name would suggest, refers to a set-up failure in the
18562         testsuite, while hard errors can obviously also be due to
18563         other reasons.  The best way to fix this inconsistency is to
18564         introduce a new function with a more general error message.
18565         * tests/init.sh (fatal_): New function.
18566
18567 2011-06-06  Eric Blake  <eblake@redhat.com>
18568
18569         canonicalize-lgpl: use common idiom
18570         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
18571         over newer POSIX -Rf.
18572         Reported by Bruno Haible.
18573
18574         canonicalize-lgpl: work around AIX realpath bug
18575         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
18576         * doc/posix-functions/realpath.texi (realpath): Document it.
18577         Reported by Bruno Haible.
18578
18579         strerror: work around FreeBSD bug
18580         * lib/strerror.c (strerror): Special case 0.
18581         Reported by Bruno Haible.
18582
18583         strerror-override: avoid bloating errno module
18584         * modules/errno (Files, configure.ac): Move replacement strings...
18585         * modules/strerror-override: ...to new module.
18586         * modules/strerror (Depends-on): Add strerror-override.
18587         * modules/strerror_r-posix (Depends-on): Likewise.
18588         * MODULES.html.sh: Document new module.
18589         Reported by Bruno Haible.
18590
18591 2011-06-06  Bruno Haible  <bruno@clisp.org>
18592
18593         spawn-pipe tests: Rename program.
18594         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
18595         * tests/test-spawn-pipe-child.c: Update comment.
18596         * tests/test-spawn-pipe.sh: Update.
18597         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
18598
18599         spawn-pipe tests: Link the child program only against libc.
18600         * tests/test-spawn-pipe-child.c: New file, extracted from
18601         tests/test-spawn-pipe.c.
18602         (main): Expect only one argument.
18603         (is_open): New function, copied from tests/test-pipe.c.
18604         * tests/test-spawn-pipe.c: Don't include <errno.h>.
18605         (child_main): Remove function.
18606         (test_pipe): Pass only one argument to the child program.
18607         (main): Remove child process code. Expect the child program's name as
18608         first argument.
18609         * tests/test-spawn-pipe.sh: Pass the child program's name as first
18610         argument.
18611         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
18612         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
18613         test-spawn-pipe-child against no libraries.
18614
18615 2011-06-06  Bruno Haible  <bruno@clisp.org>
18616
18617         careadlinkat: Avoid mismatch between ssize_t and int.
18618         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
18619         * lib/careadlinkat.c (careadlinkatcwd): Define always.
18620
18621 2011-06-06  Jim Meyering  <meyering@redhat.com>
18622
18623         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
18624         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
18625         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
18626
18627 2011-06-05  Bruno Haible  <bruno@clisp.org>
18628
18629         ansi-c++-opt: Interoperability with libtool.
18630         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
18631         set the variable to "no", not to ":".
18632         * NEWS: Mention the change.
18633
18634 2011-06-05  Bruno Haible  <bruno@clisp.org>
18635
18636         acl: Fix test failure on AIX 7.
18637         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
18638         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
18639
18640 2011-06-05  Bruno Haible  <bruno@clisp.org>
18641
18642         pipe-filter-ii: Fix test failure on AIX and IRIX.
18643         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
18644         with EAGAIN, retry with a smaller buffer size.
18645
18646 2011-06-05  Bruno Haible  <bruno@clisp.org>
18647
18648         localename: Fix link dependencies.
18649         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
18650         * modules/localename-tests (Makefile.am): Link test-localename with
18651         $(LIBTHREAD).
18652
18653 2011-06-05  Bruno Haible  <bruno@clisp.org>
18654
18655         error: Avoid gcc warning.
18656         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
18657
18658 2011-06-05  Bruno Haible  <bruno@clisp.org>
18659
18660         unsetenv: Avoid gcc warning.
18661         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
18662
18663 2011-06-05  Bruno Haible  <bruno@clisp.org>
18664
18665         setenv: Avoid gcc warning.
18666         * lib/setenv.c (setenv): Provide declaration if system lacks it.
18667
18668 2011-06-05  Bruno Haible  <bruno@clisp.org>
18669
18670         sys_select: Ensure memset is declared also on AIX 7.
18671         * lib/sys_select.in.h: Include <string.h> also on AIX.
18672         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
18673         self-contained also on AIX 7.1.
18674
18675 2011-06-04  Jim Meyering  <meyering@redhat.com>
18676
18677         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
18678         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
18679         function name, "error".
18680         (_gl_translatable_diag_func_re): New configurable variable.
18681
18682 2011-06-04  Bruno Haible  <bruno@clisp.org>
18683
18684         getopt: Avoid gcc warning.
18685         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
18686
18687 2011-06-04  Bruno Haible  <bruno@clisp.org>
18688
18689         strerror_r: Fix comments.
18690         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
18691         commit.
18692
18693 2011-06-04  Bruno Haible  <bruno@clisp.org>
18694
18695         perror: Fix compilation error.
18696         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
18697         Undefine fprintf, not sprintf.
18698         * modules/perror (Depends-on): Remove intprops, verify.
18699
18700 2011-06-04  Bruno Haible  <bruno@clisp.org>
18701
18702         setlocale: Enable replacement on Cygwin 1.5.
18703         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
18704         Cygwin 1.5.x.
18705         * doc/posix-functions/setlocale.texi: Mention that the problem with the
18706         LC_CTYPE category also exists on Cygwin 1.5.x.
18707
18708 2011-06-04  Bruno Haible  <bruno@clisp.org>
18709
18710         strerror-override: Don't disable symbol renamings.
18711         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
18712         * lib/strerror-override.c: Include config.h.
18713         (strerror_override): Don't undefine.
18714
18715 2011-06-03  Bruno Haible  <bruno@clisp.org>
18716
18717         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
18718         * lib/localename.h: Update copyright header.
18719         * lib/localename.c: Likewise.
18720         * lib/relocatable.h: Likewise.
18721         * lib/relocatable.c: Likewise.
18722
18723 2011-06-02  Bruno Haible  <bruno@clisp.org>
18724
18725         doc: Fix a module name.
18726         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
18727
18728 2011-06-02  Bruno Haible  <bruno@clisp.org>
18729
18730         pipe2: Remove dependency on 'nonblocking' module.
18731         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
18732         O_NONBLOCK is defined by gnulib.
18733         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
18734         is zero.
18735         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
18736         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
18737         defined by gnulib.
18738         (get_nonblocking_flag): New function.
18739         (main): Test O_NONBLOCK flag only if it is nonzero.
18740         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
18741
18742 2011-06-03  Jim Meyering  <meyering@redhat.com>
18743
18744         maint: three new prohibit-header-without-use rules
18745         Prohibit use of cloexec.h, posixver.h, same.h without use.
18746         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
18747         (sc_prohibit_posixver_without_use): Likewise.
18748         (sc_prohibit_same_without_use): Likewise.
18749
18750 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18751
18752         allocator: 'die' routine is now given requested size
18753         * lib/allocator.h (struct allocator.die): New size arg.
18754         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
18755         If the actual problem is an ssize_t limitation, not a size_t or
18756         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
18757
18758 2011-06-01  Eric Blake  <eblake@redhat.com>
18759
18760         strerror: drop strerror_r dependency
18761         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
18762         * lib/strerror-override.c (strerror_override): ...to new file.
18763         * lib/strerror-override.h: Add prototype.
18764         * lib/strerror-impl.h: Delete.
18765         * lib/strerror.c (strerror): New implementation.
18766         * modules/errno (Files): Add new files.
18767         (configure.ac): Compile new file as appropriate.
18768         * modules/strerror (Files): Drop unused file.
18769         (Depends-on): Drop strerror_r-posix.
18770         * MODULES.html.sh: Document strerror_r-posix.
18771         Requested by Sam Steingold.
18772
18773         perror: call strerror_r directly
18774         * modules/perror (Files): Drop strerror-impl.h.
18775         * lib/perror.c (perror): Use our own stack buffer, rather than
18776         calling a wrapper that uses static storage.
18777         * doc/posix-functions/perror.texi (perror): Document a limitation
18778         of our replacement.
18779
18780         strerror_r: fix includes for FreeBSD
18781         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
18782         since we use abort on some platforms.
18783         Reported by Matthias Bolte.
18784
18785 2011-05-31  Bruno Haible  <bruno@clisp.org>
18786
18787         Fix link errors in tests: openat-die uses gettext-h.
18788         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
18789         against $(LIBINTL).
18790         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
18791         against $(LIBINTL).
18792         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
18793         $(LIBINTL).
18794         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
18795         against $(LIBINTL).
18796         * modules/linkat-tests (Makefile.am): Link test-linkat against
18797         $(LIBINTL).
18798         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
18799         $(LIBINTL).
18800         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
18801         against $(LIBINTL).
18802         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
18803         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
18804         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
18805         $(LIBINTL).
18806         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
18807         $(LIBINTL).
18808         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
18809         $(LIBINTL).
18810         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18811
18812 2011-05-31  Bruno Haible  <bruno@clisp.org>
18813
18814         Fix link errors in tests: wait-process uses gettext-h.
18815         * modules/nonblocking-pipe-tests (Makefile.am): Set
18816         test_nonblocking_pipe_main_LDADD.
18817         * modules/nonblocking-socket-tests (Makefile.am): Link
18818         test-nonblocking-socket-main against $(LIBINTL).
18819         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18820
18821 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18822
18823         assert-h: work around 'verify' incompatibility
18824         * lib/verify.h: Use @...@ directives, not ifdef.
18825         * modules/assert-h (assert.h): Implement the directives.
18826         (assert.h): Substitute the symbol-prefix more consistently.
18827
18828 2011-05-29  Jim Meyering  <meyering@redhat.com>
18829
18830         trim: remove three superfluous assignments
18831         * lib/trim.c (trim2): Remove three superfluous assignments
18832         and correct brace positioning.
18833
18834 2011-05-29  Bruno Haible  <bruno@clisp.org>
18835
18836         wctype-h: Avoid namespace pollution on Solaris 2.6.
18837         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
18838         identifiers.
18839         * doc/posix-headers/wctype.texi: Mention the problem.
18840         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18841
18842 2011-05-28  Jim Meyering  <meyering@redhat.com>
18843
18844         parse-datetime.y: accommodate -Wstrict-overflow
18845         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
18846         placate -Wstrict-overflow.
18847
18848         trim: avoid a warning from -O2 -Wstrict-overflow
18849         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
18850
18851 2011-05-29  Bruno Haible  <bruno@clisp.org>
18852
18853         gnulib-tool: Fix bug in yesterday's commit.
18854         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
18855         twice.
18856
18857 2011-05-29  Bruno Haible  <bruno@clisp.org>
18858
18859         Allow multiple gnulib generated include files to be combined.
18860         * gnulib-tool (func_compute_include_guard_prefix): New function.
18861         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
18862         ${gl_include_guard_prefix} references.
18863         (func_import, func_create_testdir): Invoke
18864         func_compute_include_guard_prefix.
18865         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
18866         * lib/ctype.in.h: Likewise.
18867         * lib/dirent.in.h: Likewise.
18868         * lib/errno.in.h: Likewise.
18869         * lib/fcntl.in.h: Likewise.
18870         * lib/float.in.h: Likewise.
18871         * lib/getopt.in.h: Likewise.
18872         * lib/iconv.in.h: Likewise.
18873         * lib/langinfo.in.h: Likewise.
18874         * lib/locale.in.h: Likewise.
18875         * lib/math.in.h: Likewise.
18876         * lib/netdb.in.h: Likewise.
18877         * lib/netinet_in.in.h: Likewise.
18878         * lib/poll.in.h: Likewise.
18879         * lib/pthread.in.h: Likewise.
18880         * lib/pty.in.h: Likewise.
18881         * lib/sched.in.h: Likewise.
18882         * lib/se-selinux.in.h: Likewise.
18883         * lib/search.in.h: Likewise.
18884         * lib/signal.in.h: Likewise.
18885         * lib/spawn.in.h: Likewise.
18886         * lib/stdarg.in.h: Likewise.
18887         * lib/stddef.in.h: Likewise.
18888         * lib/stdint.in.h: Likewise.
18889         * lib/stdio.in.h: Likewise.
18890         * lib/stdlib.in.h: Likewise.
18891         * lib/string.in.h: Likewise.
18892         * lib/strings.in.h: Likewise.
18893         * lib/sys_file.in.h: Likewise.
18894         * lib/sys_ioctl.in.h: Likewise.
18895         * lib/sys_select.in.h: Likewise.
18896         * lib/sys_socket.in.h: Likewise.
18897         * lib/sys_stat.in.h: Likewise.
18898         * lib/sys_time.in.h: Likewise.
18899         * lib/sys_times.in.h: Likewise.
18900         * lib/sys_uio.in.h: Likewise.
18901         * lib/sys_utsname.in.h: Likewise.
18902         * lib/sys_wait.in.h: Likewise.
18903         * lib/sysexits.in.h: Likewise.
18904         * lib/termios.in.h: Likewise.
18905         * lib/time.in.h: Likewise.
18906         * lib/unistd.in.h: Likewise.
18907         * lib/wchar.in.h: Likewise.
18908         * lib/wctype.in.h: Likewise.
18909         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
18910         * modules/ctype (Makefile.am): Likewise.
18911         * modules/dirent (Makefile.am): Likewise.
18912         * modules/errno (Makefile.am): Likewise.
18913         * modules/fcntl-h (Makefile.am): Likewise.
18914         * modules/float (Makefile.am): Likewise.
18915         * modules/getopt-posix (Makefile.am): Likewise.
18916         * modules/iconv-h (Makefile.am): Likewise.
18917         * modules/langinfo (Makefile.am): Likewise.
18918         * modules/locale (Makefile.am): Likewise.
18919         * modules/math (Makefile.am): Likewise.
18920         * modules/netdb (Makefile.am): Likewise.
18921         * modules/netinet_in (Makefile.am): Likewise.
18922         * modules/poll-h (Makefile.am): Likewise.
18923         * modules/pthread (Makefile.am): Likewise.
18924         * modules/pty (Makefile.am): Likewise.
18925         * modules/sched (Makefile.am): Likewise.
18926         * modules/search (Makefile.am): Likewise.
18927         * modules/selinux-h (Makefile.am): Likewise.
18928         * modules/signal (Makefile.am): Likewise.
18929         * modules/spawn (Makefile.am): Likewise.
18930         * modules/stdarg (Makefile.am): Likewise.
18931         * modules/stddef (Makefile.am): Likewise.
18932         * modules/stdint (Makefile.am): Likewise.
18933         * modules/stdio (Makefile.am): Likewise.
18934         * modules/stdlib (Makefile.am): Likewise.
18935         * modules/string (Makefile.am): Likewise.
18936         * modules/strings (Makefile.am): Likewise.
18937         * modules/sys_file (Makefile.am): Likewise.
18938         * modules/sys_ioctl (Makefile.am): Likewise.
18939         * modules/sys_select (Makefile.am): Likewise.
18940         * modules/sys_socket (Makefile.am): Likewise.
18941         * modules/sys_stat (Makefile.am): Likewise.
18942         * modules/sys_time (Makefile.am): Likewise.
18943         * modules/sys_times (Makefile.am): Likewise.
18944         * modules/sys_uio (Makefile.am): Likewise.
18945         * modules/sys_utsname (Makefile.am): Likewise.
18946         * modules/sys_wait (Makefile.am): Likewise.
18947         * modules/sysexits (Makefile.am): Likewise.
18948         * modules/termios (Makefile.am): Likewise.
18949         * modules/time (Makefile.am): Likewise.
18950         * modules/unistd (Makefile.am): Likewise.
18951         * modules/wchar (Makefile.am): Likewise.
18952         * modules/wctype-h (Makefile.am): Likewise.
18953         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
18954
18955 2011-05-29  Bruno Haible  <bruno@clisp.org>
18956
18957         assert-h: Allow multiple gnulib generated replacements to coexist.
18958         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
18959
18960 2011-05-29  Bruno Haible  <bruno@clisp.org>
18961
18962         argp: Allow coexistence with strerror_r-posix module.
18963         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
18964         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
18965         by gnulib's <string.h> replacement), assume it has the POSIX signature,
18966         not the glibc signature.
18967
18968 2011-05-28  Bruno Haible  <bruno@clisp.org>
18969
18970         gnulib-tool: Alternative structure of testdirs, similar to --import.
18971         * gnulib-tool: New option --single-configure.
18972         (func_usage): Document it.
18973         (single_configure): New variable.
18974         (func_modules_transitive_closure_separately,
18975         func_modules_transitive_closure_separately,
18976         func_determine_use_libtests, func_modules_add_dummy_separately,
18977         func_modules_to_filelist_separately): New functions, extracted from
18978         func_import.
18979         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
18980         (func_import): Use the new functions.
18981         (func_create_testdir): Set final_modules. Handle $single_configure =
18982         true case.
18983
18984 2011-05-28  Bruno Haible  <bruno@clisp.org>
18985
18986         getloadavg: Remove an unreliable safety check.
18987         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
18988         getloadavg.c is in place.
18989         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
18990         Reported by Sam Steingold <sds@gnu.org>.
18991
18992 2011-05-28  Bruno Haible  <bruno@clisp.org>
18993
18994         doc: Cleanup yet another file produced by texinfo.tex.
18995         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
18996
18997 2011-05-28  Bruno Haible  <bruno@clisp.org>
18998
18999         Finish the conditional dependencies mechanism.
19000         * gnulib-tool: New option --no-conditional-dependencies.
19001         (func_usage): Document it. Don't mark --conditional-dependencies as
19002         experimental.
19003         (cond_dependencies): The possible values can now be true, false, empty.
19004         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
19005         (func_import): Store setting in gnulib-cache.m4 and read it from there.
19006         * doc/gnulib-tool.texi (Conditional dependencies): New section.
19007
19008 2011-05-28  Bruno Haible  <bruno@clisp.org>
19009
19010         doc: Use a recent texinfo.tex.
19011         * doc/Makefile (tex_opts): New variable.
19012         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
19013
19014 2011-05-28  Jim Meyering  <meyering@redhat.com>
19015
19016         intprops.h: adjust comment to match code change
19017         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
19018         only once, it *may* have side effects.  Also fix an unrelated typo.
19019         (_GL_INT_SIGNED): Likewise.
19020
19021 2011-05-26  Simon Josefsson  <simon@josefsson.org>
19022
19023         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
19024
19025 2011-05-26  Bruno Haible  <bruno@clisp.org>
19026
19027         mbsrchr: Avoid collision with system function on Interix.
19028         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
19029         Reported by Markus Duft <mduft@gentoo.org>.
19030
19031 2011-05-15  James Youngman  <jay@gnu.org>
19032
19033         getopt: for ambiguous options, enumerate the possibilities.
19034         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
19035         the ambiguous options when an ambiguous prefix is given. This was
19036         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
19037         glibc change was
19038         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
19039
19040 2011-05-25  Eric Blake  <eblake@redhat.com>
19041
19042         getcwd: work around mingw bug
19043         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
19044         * doc/posix-functions/getcwd.texi (getcwd): Document it.
19045         Reported by Matthias Bolte.
19046
19047 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
19048
19049         test-intprops: disable -Wtype-limits diagnostics
19050         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
19051         diagnostics.  Otherwise, the integer overflow macros generate many
19052         diagnostics.  Reported by Jim Meyering in
19053         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19054
19055         intprops: shorten, to pacify gcc -Woverlength-strings
19056         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
19057         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
19058         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
19059         likely to run afoul of C compiler limits for string constant lengths.
19060         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19061
19062 2011-05-24  Eric Blake  <eblake@redhat.com>
19063
19064         docs: document recently fixed glibc printf bug
19065         * doc/posix-functions/fprintf.texi (fprintf): Document it.
19066         * doc/posix-functions/printf.texi (printf): Likewise.
19067         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19068         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19069
19070         closein-tests: convert to init.sh
19071         * modules/closein-tests (Files): Add init.sh
19072         * tests/test-closein.sh Use it.
19073
19074         yesno-tests: convert to init.sh
19075         * modules/yesno-tests (Files): Add init.sh.
19076         * tests/test-yesno.sh: Use it.
19077
19078         atexit-tests: ensure reliable exit status
19079         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
19080         Reported by Bruno Haible.
19081
19082 2011-05-24  Bruno Haible  <bruno@clisp.org>
19083
19084         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
19085         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
19086         gl_PREREQ_STRERROR_R invocations from here...
19087         * modules/strerror_r-posix (configure.ac): ... to here.
19088
19089 2011-05-24  Eric Blake  <eblake@redhat.com>
19090
19091         strerror_r: fix missing header
19092         * lib/strerror_r.c: Avoid compiler warning about snprintf.
19093
19094         strerror_r: fix AIX test failures
19095         * lib/strerror_r.c (strerror_r): Convert silent truncation to
19096         ERANGE failure.
19097
19098         strerror_r: fix Solaris test failures
19099         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
19100         failures.
19101         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19102
19103         strerror_r: enforce POSIX recommendations
19104         * lib/strerror_r.c (safe_copy): New helper method.
19105         (strerror_r): Guarantee a non-empty string.
19106         * tests/test-strerror_r.c (main): Enhance tests to incorporate
19107         recent POSIX rulings and to match our strerror guarantees.
19108         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19109
19110 2011-05-24  Jim Meyering  <meyering@redhat.com>
19111
19112         test-perror2.c: avoid warning about unused variable
19113         * tests/test-perror2.c (main): Remove declaration of unused "fp".
19114
19115 2011-05-24  Eric Blake  <eblake@redhat.com>
19116
19117         perror: avoid spurious test failure on HP-UX
19118         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
19119
19120         tests: fix logic bug in init.sh
19121         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
19122         shell.
19123
19124 2011-05-24  Jim Meyering  <meyering@redhat.com>
19125
19126         utimensat: do not reference an out-of-scope buffer
19127         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
19128         declared in an inner scope, yet "times" would be dereferenced outside
19129         the scope in which "ts" was valid.
19130         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
19131         of ts[2] "out/up", so that the use of aliased "times" (via
19132         "times = ts;") does not end up referencing an out-of-scope "ts"
19133
19134         opendir-safer.c: don't clobber errno; don't close negative FD
19135         * lib/opendir-safer.c (opendir_safer):
19136         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
19137         file descriptor, and more importantly, don't clobber the
19138         offending errno value with EINVAL.  Before, upon failure
19139         of dup_safer, we would pass the negative file descriptor to
19140         fdopendir, which would clobber errno.
19141
19142 2011-05-23  Bruno Haible  <bruno@clisp.org>
19143
19144         idcache: Fix module description.
19145         * modules/idcache (Include): Set to "idcache.h".
19146
19147 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19148
19149         gnulib-tool: fix portability problem with MacOS sed
19150         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
19151         before the "}".  Problem reported by Leo in
19152         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
19153         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
19154         sed_extract_condition1, sed_extract_condition2.
19155
19156 2011-05-23  Bruno Haible  <bruno@clisp.org>
19157
19158         hash: Simplify autoconf macro.
19159         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
19160
19161 2011-05-23  Bruno Haible  <bruno@clisp.org>
19162
19163         getugroups: Fix module description.
19164         * modules/getugroups (Include): Set to "getugroups.h".
19165
19166 2011-05-23  Bruno Haible  <bruno@clisp.org>
19167
19168         linkat: Simplify autoconf macro.
19169         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
19170
19171 2011-05-23  Bruno Haible  <bruno@clisp.org>
19172             Eric Blake  <eblake@redhat.com>
19173
19174         linkat, renameat: Update dependencies.
19175         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
19176         * modules/linkat (Depends-on): Likewise. Remove also readlink,
19177         symlinkat.
19178
19179 2011-05-23  Jim Meyering  <meyering@redhat.com>
19180
19181         maint.mk: more tight_scope improvements
19182         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
19183         (_gl_TS_headers): Define only in if-0'd block.
19184         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
19185         sometimes we must *not* use it.  Adjust uses accordingly.
19186         (sc_tight_scope): Use much simpler grep-based test to determine
19187         whether we skip this rule.
19188
19189         maint.mk: generalize/improve the tight-scope rule
19190         * top/maint.mk: Emit a warning when the test is skipped.
19191         (_gl_TS_dir): Add $(srcdir)/ prefix.
19192         (_gl_TS_function_match): Simplify, rather than trying
19193         to enumerate common types.  Otherwise, it would fail to match an
19194         "extern unsigned char const *" declaration in idutils.
19195         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
19196         a way to support use of that type of macro.
19197         (_gl_TS_var_match): Simplify regexp.
19198         (_gl_TS_obj_files): New configurable variable.
19199         (_gl_TS_headers): Likewise.
19200
19201 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19202
19203         verify: fix bug when gnulib <assert.h> is also included
19204         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
19205         is defined, not if _GL_STATIC_ASSERT_H is not defined.
19206         Perhaps there's a better way, but this fixes the immediate problem.
19207         Problem reported by Bruno Haible in
19208         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
19209
19210 2011-05-22  Bruno Haible  <bruno@clisp.org>
19211
19212         xgetcwd: Simplify autoconf macro.
19213         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
19214
19215 2011-05-22  Bruno Haible  <bruno@clisp.org>
19216
19217         New module 'mktime-internal'.
19218         * modules/mktime-internal: New file.
19219         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
19220         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
19221         mktime_internal as a C macro if libc has __mktime_internal.
19222         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
19223         conditions.
19224         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
19225
19226 2011-05-22  Bruno Haible  <bruno@clisp.org>
19227
19228         timegm: Correct mktime replacement statements.
19229         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
19230         defining mktime as a C macro. This completes a 2009-07-28 commit.
19231
19232 2011-05-22  Bruno Haible  <bruno@clisp.org>
19233
19234         timegm: Simplify autoconf macro.
19235         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
19236
19237 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19238
19239         clock-time: change to LGPLv2+.
19240         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
19241         BSD-like but we have no mark for that; this is good enough for now.
19242
19243 2011-05-21  Bruno Haible  <bruno@clisp.org>
19244
19245         strerror_r: Fix comments.
19246         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
19247
19248 2011-05-21  Bruno Haible  <bruno@clisp.org>
19249
19250         relocatable-prog-wrapper: Fix possible link error.
19251         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
19252         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
19253         (gl_FUNC_SETENV): ... to here.
19254         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
19255         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
19256
19257 2011-05-21  Bruno Haible  <bruno@clisp.org>
19258
19259         relocatable-prog-wrapper: Assume strerror() exists.
19260         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
19261         m4/strerror.m4.
19262         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
19263         * lib/relocwrapper.c: Remove mention of strerror module.
19264         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
19265         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
19266         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
19267         C macro.
19268
19269 2011-05-21  Bruno Haible  <bruno@clisp.org>
19270
19271         select: Simplify replacement idiom.
19272         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
19273         Win32 platforms.
19274         * lib/sys_select.in.h (select): Simplify accordingly.
19275         * modules/select (Depends-on): Likewise.
19276
19277 2011-05-21  Bruno Haible  <bruno@clisp.org>
19278
19279         mkdir-p: Simplify autoconf macro.
19280         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
19281         gl_FUNC_LCHOWN.
19282
19283 2011-05-21  Eric Blake  <eblake@redhat.com>
19284
19285         strerror_r: avoid clobbering strerror on cygwin
19286         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
19287         fall back instead to sys_errlist.
19288         * modules/strerror (configure.ac): Add witness.
19289         * tests/test-strerror_r.c (main): Enhance test.
19290         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19291         * tests/test-perror2.c (main): Free memory before exit.
19292
19293 2011-05-21  Bruno Haible  <bruno@clisp.org>
19294
19295         mkdtemp: Use gnulib naming conventions.
19296         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
19297         * modules/mkdtemp (configure.ac): Update.
19298
19299 2011-05-20  Eric Blake  <eblake@redhat.com>
19300
19301         strerror_r: avoid corrupting errno on Solaris
19302         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
19303         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19304
19305         strerror_r: avoid compiler warning
19306         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
19307
19308         strerror_r: simplify AIX code
19309         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
19310
19311         test-perror: avoid spurious failure on FreeBSD
19312         * modules/perror-tests (Depends-on): Add strerror, now that
19313         strerror_r no longer pulls it in.
19314
19315 2011-05-20  Bruno Haible  <bruno@clisp.org>
19316
19317         strerror_r-posix: Remove unused dependencies.
19318         * modules/strerror_r-posix (Depends-on): Remove strerror.
19319         Reported by Eric Blake.
19320
19321 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19322
19323         intprops: remove assumption about A|B representation
19324         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
19325         is a valid integer if both A and B are.  Although this is true for
19326         all known practical hosts, the C standard doesn't guarantee it,
19327         and the code need not assume it.  Also, this change may work around
19328         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
19329         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
19330
19331 2011-05-20  Eric Blake  <eblake@redhat.com>
19332
19333         perror: work around FreeBSD bug
19334         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
19335         is broken.  Move AC_LIBOBJ...
19336         * modules/perror (configure.ac): Here.
19337         * doc/posix-functions/perror.texi (perror): Document this.
19338         * tests/test-perror2.c (main): Enhance test.
19339
19340         test-perror: check for strerror interactions
19341         * tests/macros.h (STREQ): Add macro.
19342         * modules/perror-tests (Files): Add second test.
19343         * tests/test-perror2.c (main): New file.
19344         * doc/posix-functions/perror.texi (perror): Document glibc bug.
19345
19346         test-perror: rewrite to use init script
19347         * modules/perror-tests (Files): Add init.sh.
19348         * tests/test-perror.sh: Use temporary directory.
19349
19350 2011-05-20  Jim Meyering  <meyering@redhat.com>
19351
19352         maint: replace misused "a" with "an"
19353         * doc/intprops.texi: "a integer"
19354         * doc/regex.texi: "a explanation"
19355         * lib/alignof.h: "a object"
19356         * lib/argmatch.h: "a explanation"
19357         * lib/argp-help.c: "a option" and "a OPTION_DOC"
19358         * lib/stdint.in.h: "a integer"
19359         * lib/userspec.c: "a owner"
19360         * doc/gnulib.texi: Fix "a idea", and reword.
19361
19362 2011-05-19  Jim Meyering  <meyering@redhat.com>
19363
19364         maint: correct misuse of "a" and "an"
19365         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
19366         * lib/argp-help.c: "an docum...": s/an/a/
19367         * lib/argp-parse.c: "An vector": s/An/A/
19368         * lib/execute.c: "an native": s/an/a/
19369         * lib/spawn-pipe.c: Likewise.
19370         * lib/gc.h: "an Gc_rc": s/an/a/
19371         * lib/unigbrk.in.h: "an grapheme": s/an/a/
19372         * lib/fts.c: "an stat.st_dev": s/an/a/
19373
19374 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19375
19376         intprops-tests: work around HP-UX 11.23 cc bug with constants
19377         * tests/test-intprops.c (VERIFY): New macro.
19378         (main): Use it, instead of verify, to work around the compiler bug; see
19379         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19380
19381         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
19382         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
19383         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
19384         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
19385         (_GL_REMAINDER_OVERFLOW): Use it.
19386
19387         intprops-tests: revert unsigned part of previous change
19388         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
19389         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
19390         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
19391         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
19392
19393 2011-05-19  Bruno Haible  <bruno@clisp.org>
19394
19395         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
19396         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
19397         strerror_r() returned without filling the buffer.
19398         Reported by Eric Blake.
19399
19400 2011-05-19  Eric Blake  <eblake@redhat.com>
19401
19402         strerror_r: guarantee unchanged errno
19403         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
19404         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
19405         failure.
19406         * tests/test-strerror_r.c (main): Enhance test.
19407
19408 2011-05-19  Bruno Haible  <bruno@clisp.org>
19409
19410         strerror_r: Reorder #if blocks.
19411         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
19412         for consistency with the previous commit.
19413
19414 2011-05-19  Bruno Haible  <bruno@clisp.org>
19415
19416         perror: Avoid clobbering the strerror buffer when possible.
19417         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
19418         * lib/strerror.c: Include it.
19419         * modules/strerror (Files): Add lib/strerror-impl.h.
19420         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
19421         (my_strerror): New function, defined through lib/strerror-impl.h.
19422         (perror): Use it instead of strerror.
19423         * modules/perror (Files): Add lib/strerror-impl.h.
19424         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
19425
19426 2011-05-19  Eric Blake  <eblake@redhat.com>
19427
19428         strerror_r: fix on newer cygwin
19429         * lib/strerror_r.c (strerror_r): Cygwin now has
19430         __xpg_strerror_r, use it.
19431
19432 2011-05-19  Bruno Haible  <bruno@clisp.org>
19433
19434         strerror_r: Avoid clobbering the strerror buffer when possible.
19435         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
19436         (sys_nerr, sys_errlist): New declarations.
19437         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
19438         HP-UX, native Win32, IRIX, and 32-bit Solaris.
19439         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
19440
19441 2011-05-19  Bruno Haible  <bruno@clisp.org>
19442
19443         strerror_r: Fix test failure on mingw.
19444         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
19445         EXTEND_STRERROR_R.
19446         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
19447         macros from errno.in.h instead.
19448
19449 2011-05-19  Eric Blake  <eblake@redhat.com>
19450
19451         strerror: relax test for Solaris
19452         * tests/test-strerror.c (main): Permit Solaris behavior.
19453         * tests/test-strerror_r.c (main): Likewise.
19454
19455         strerror: enforce POSIX ruling on strerror(0)
19456         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
19457         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19458         * lib/strerror_r.c (rpl_strerror_r): Work around it.
19459         * doc/posix-functions/strerror.texi (strerror): Document it.
19460         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
19461         * tests/test-strerror.c (main): Strengthen test.
19462         * tests/test-strerror_r.c (main): Likewise.
19463
19464 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19465
19466         intprop-tests: port to older and more-pedantic compilers
19467         * modules/intprops-tests (Files): Add tests/macros.h.
19468         * tests/test-intprops.c: Include macros.h.
19469         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
19470         it's no longer documented to expand to an integer constant expression.
19471         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
19472         argument is floating point, as it's no longer documented to expand
19473         to an integer constant expression in that case.
19474         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
19475         compiler bugs reported by Bruno Haible.  See
19476         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19477         (U0, U1): New constants, to work around the same bugs.  Also,
19478         in tests, use e.g., "(unsigned int) 39" rather than "39u".
19479
19480         intprops: work around C compiler bugs
19481         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
19482         bug in Sun C 5.11 2010/08/13 and other compilers; see
19483         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19484
19485         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
19486         * doc/intprops.texi (Integer Type Determination): Fix
19487         documentation for TYPE_IS_INTEGER: it returns an constant
19488         expression, not an integer constant expression.  Fix doc for
19489         TYPE_SIGNED: it returns an integer constant expression only if its
19490         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
19491         hardly worth documented that way....)
19492
19493 2011-05-18  Bruno Haible  <bruno@clisp.org>
19494
19495         strerror_r: Avoid clobbering the strerror buffer when possible.
19496         * lib/strerror_r.c (strerror_r): Merge the three implementations.
19497         Handle gnulib defined errno values here. When strerror() returns NULL
19498         or an empty string, return EINVAL.
19499         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
19500         gnulib defined errno values here.
19501         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
19502
19503 2011-05-18  Eric Blake  <eblake@redhat.com>
19504
19505         fnmatch: avoid compiler warning
19506         * lib/fnmatch_loop.c (FCT): Use correct type.
19507         Reported by Matthias Bolte.
19508
19509 2011-05-13  Jim Meyering  <meyering@redhat.com>
19510
19511         maint.mk: three new prohibit_<HDR>_without_use rules
19512         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
19513         (sc_prohibit_stdio-safer_without_use): Likewise.
19514         (sc_prohibit_xfreopen_without_use): Likewise.
19515
19516 2011-05-17  Jim Meyering  <meyering@redhat.com>
19517
19518         announce-gen: fail if the NEWS delta is empty
19519         If there's nothing noteworthy in NEWS, then either you forgot
19520         or you shouldn't be releasing.
19521         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
19522
19523 2011-05-17  Pádraig Brady <P@draigBrady.com>
19524
19525         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
19526         reserved symbols starting with double underscore from the check.
19527
19528 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
19529
19530         intprops: add doc
19531         * doc/intprops.texi: New file, documenting intprops.
19532         * doc/gnulib.texi (Particular Modules): Include it.
19533
19534         verify: add doc to gnulib manual and fix example
19535         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
19536         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
19537         (Compile-time Assertions): Fix example so it can't overflow.
19538
19539 2011-05-17  Jim Meyering  <meyering@redhat.com>
19540
19541         warnings.m4: don't usurp save_CPPFLAGS variable name
19542         * m4/warnings.m4: Prefix local temporary variable name with gl_.
19543
19544         doc: fix typo
19545         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
19546
19547 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19548             Bruno Haible  <bruno@clisp.org>
19549
19550         doc: Tweak recent change.
19551         * README (Portability guidelines): Tweak new text.
19552         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
19553         Interix 6.1.
19554
19555 2011-05-16  Eric Blake  <eblake@redhat.com>
19556
19557         inttypes: avoid autoconf warning
19558         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
19559         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19560
19561 2011-05-16  Sam Steingold <sds@gnu.org>
19562         and Eric Blake  <eblake@redhat.com>
19563
19564         vc-list-files: accept multiple directory operands
19565         * build-aux/vc-list-files: Iterate over all remaining operands.
19566
19567 2011-05-16  Bruno Haible  <bruno@clisp.org>
19568
19569         Fix confusion regarding deprecated modules.
19570         * modules/calloc (Status, Notice): Mark module as deprecated, not
19571         obsolete.
19572         * modules/fnmatch-posix (Status, Notice): Likewise.
19573         * modules/getdate (Status, Notice): Likewise.
19574         * modules/getopt (Status, Notice): Likewise.
19575         * modules/malloc (Status, Notice): Likewise.
19576         * modules/pipe (Status, Notice): Likewise.
19577         * modules/realloc (Status, Notice): Likewise.
19578         * modules/rename-dest-slash (Status, Notice): Likewise.
19579         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
19580         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
19581         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
19582         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
19583         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
19584
19585 2011-05-16  Bruno Haible  <bruno@clisp.org>
19586
19587         doc: List the target platforms.
19588         * doc/gnulib-intro.texi (Target Platforms): New section.
19589         * doc/gnulib.texi (Introduction): Update menu.
19590         * README (Portability guidelines): Refer to the new section. Update
19591         statement about oldest supported environment. Remove rationale why
19592         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
19593         unportable C89 function.
19594         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
19595         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
19596
19597 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19598
19599         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
19600
19601 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
19602
19603         intprops-tests: new module
19604         * modules/intprops-tests, tests/test-intprops.c: New files.
19605
19606         intprops: add safe, portable integer overflow checking
19607         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
19608         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
19609         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
19610         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
19611         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
19612         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
19613         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
19614         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
19615         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
19616         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
19617         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
19618
19619 2011-05-12  James Youngman  <jay@gnu.org>
19620
19621         Add a test for glibc's Bugzilla bug #12378.
19622         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
19623         doesn't allow the literal matching of a lone "[" (which is
19624         required by POSIX).
19625         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
19626
19627 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19628
19629         Sync glibc change fixing Bugzilla bug #12378.
19630         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
19631         beginning and fall back to matching as normal character if the
19632         string ends before the matching ']' is found.  This is what POSIX
19633         requires.
19634
19635 2011-05-13  Eric Blake  <eblake@redhat.com>
19636
19637         getcwd-lgpl: relax test for FreeBSD
19638         * doc/posix-functions/getcwd.texi (getcwd): Document portability
19639         issue.
19640         * tests/test-getcwd-lgpl.c (main): Relax test.
19641         Reported by Matthias Bolte.
19642
19643 2011-05-11  Eric Blake  <eblake@redhat.com>
19644
19645         test-fflush: silence compiler warning
19646         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
19647
19648 2011-05-11  Bruno Haible  <bruno@clisp.org>
19649
19650         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
19651         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
19652         * modules/canonicalize (Depends-on): Add 'nocrash'.
19653         * modules/canonicalize-lgpl (Depends-on): Likewise.
19654         * doc/posix-functions/realpath.texi: Update platforms list.
19655         Reported by Ryan Schmidt <ryandesign@macports.org>.
19656
19657 2011-05-11  Bruno Haible  <bruno@clisp.org>
19658
19659         group-member: Declare function in <unistd.h>.
19660         * lib/unistd.in.h (group_member): New declaration.
19661         * lib/group-member.h: Remove file.
19662         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
19663         * tests/test-unistd-c++.cc: Check signature of group_member.
19664         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
19665         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
19666         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
19667         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
19668         HAVE_GROUP_MEMBER.
19669         * modules/group-member (Files): Remove lib/group-member.h.
19670         (Depends-on): Add unistd. Specify conditions.
19671         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19672         (Include): Change to <unistd.h>.
19673         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
19674         HAVE_GROUP_MEMBER.
19675         * NEWS: Mention the change.
19676         * lib/euidaccess.c: Don't include group-member.h.
19677
19678 2011-05-11  Bruno Haible  <bruno@clisp.org>
19679
19680         group-member: Document module.
19681         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
19682         module.
19683
19684 2011-05-11  Bruno Haible  <bruno@clisp.org>
19685
19686         fclose: Fix mistake earlier today.
19687         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
19688
19689 2011-05-11  Eric Blake  <eblake@redhat.com>
19690
19691         fclose: preserve fflush errors
19692         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
19693         Reported by Jim Meyering.
19694
19695         bootstrap: support a prereq of 'rpcgen -' on RHEL5
19696         * build-aux/bootstrap (check_versions): When no specific version
19697         is required, merely check that the app produces an exit status
19698         that indicates its existence.
19699
19700         maint.mk: drop redundant check
19701         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
19702         the same but better.
19703
19704 2011-05-11  Bruno Haible  <bruno@clisp.org>
19705
19706         fclose: Fix possible link error.
19707         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
19708         unregister_shadow_fd. Improve comments.
19709         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
19710         Eric Blake.
19711
19712 2011-05-11  Jim Meyering  <meyering@redhat.com>
19713
19714         maint.mk: improve "can not" detection and generalize rule name
19715         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
19716         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
19717         Use the same technique as in sc_prohibit_doubled_word, so that
19718         we recognize "can not" also when the words are separated by a newline.
19719         Suggested by Eric Blake.
19720         (perl_filename_lineno_text_): Define.  Factored out of...
19721         (prohibit_doubled_word_): ...here.  Use the new definition.
19722         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
19723         (prohibit_undesirable_word_seq_RE_): New overridable variable.
19724         (ignore_undesirable_word_sequence_RE_): New overridable variable.
19725
19726 2011-05-10  Eric Blake  <eblake@redhat.com>
19727
19728         fclose: avoid double close race when possible
19729         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
19730         all but WINDOWS_SOCKETS.
19731
19732 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
19733
19734         openat: correct new comment
19735         * lib/openat-proc.c (openat_proc_name): Correct the comment.
19736
19737 2011-05-10  Jim Meyering  <meyering@redhat.com>
19738
19739         openat: add comments
19740         * lib/openat-proc.c (openat_proc_name): Add comments,
19741         mostly from Eric Blake.
19742
19743 2011-05-09  Eric Blake  <eblake@redhat.com>
19744
19745         openat: reduce syscalls in first probe of /proc
19746         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
19747         be a directory.  Simplify the probe for .. bugs.
19748         * modules/openat (Depends-on): Drop same-inode.
19749         Reported by Bastien ROUCARIES.
19750
19751 2011-05-09  Jim Meyering  <meyering@redhat.com>
19752
19753         maint.mk: change semantics/name of tight_scope variables
19754         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
19755         Rename variables to align with semantics that make them more useful.
19756
19757         maint.mk: tweak new rule's name not to impinge
19758         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
19759         (sc_tight_scope): Use new rule name rather than $@-0.
19760
19761         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
19762         * top/maint.mk (sc_tight_scope): New rule.
19763         (sc_tight_scope-0): New rule, ifdef'd out.
19764         (_gl_TS_dir): Default.
19765         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
19766         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
19767
19768 2011-05-09  Simon Josefsson  <simon@josefsson.org>
19769
19770         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
19771         Haible <bruno@clisp.org>.
19772
19773 2011-05-08  Bruno Haible  <bruno@clisp.org>
19774
19775         Comments.
19776         * m4/isnanf.m4: Add comment.
19777         * m4/isnanl.m4: Likewise.
19778
19779 2011-05-08  Bruno Haible  <bruno@clisp.org>
19780
19781         glob: Remove obsolete macro.
19782         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
19783
19784 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19785
19786         intprops: Sun C 5.11 supports __typeof__
19787         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
19788         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
19789         which is new.
19790         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
19791
19792         intprops: switch to usual gnulib indenting and naming
19793         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
19794         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
19795
19796         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
19797
19798 2011-05-08  Jim Meyering  <meyering@redhat.com>
19799
19800         maint.mk: suppress "Entering/Leaving directory" diag in announcement
19801         * top/maint.mk (release-prep): Use make's --no-print-directory
19802         option when generating the announcement.  This eliminates the
19803         pesky "make[2]: Entering/Leaving directory" diagnostics in the
19804         generated announcement template.
19805
19806 2011-05-08  Bruno Haible  <bruno@clisp.org>
19807
19808         tzset: Fix gettimeofday wrapper on Solaris 2.6.
19809         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
19810         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
19811
19812 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19813
19814         ignore-value, verify: Omit include files from lib_SOURCES.
19815         * modules/ignore-value, modules/verify (Makefile.am):
19816         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
19817         that leads Automake to duplicate use of am__objects_... variables
19818         in Makefile.in.  See
19819         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
19820
19821 2011-05-07  Bruno Haible  <bruno@clisp.org>
19822
19823         fclose: Simplify autoconf macro.
19824         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
19825         defined.
19826
19827 2011-05-07  Bruno Haible  <bruno@clisp.org>
19828
19829         canonicalize-lgpl: Fix autoconf macro ordering bug.
19830         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
19831         gl_STDLIB_H_DEFAULTS.
19832
19833 2011-05-06  Eric Blake  <eblake@redhat.com>
19834
19835         maintainer-makefile: make sc_po_check easier to tune
19836         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
19837         to probe for strings, such as an alternate location for gnulib.
19838
19839         fclose: guarantee behavior on seekable stdin
19840         * modules/fclose (Depends-on): Add fflush.
19841         * doc/posix-functions/fclose.texi (fclose): Document this.
19842         * tests/test-fclose.c (main): Make test for this unconditional.
19843
19844 2011-05-06  Bruno Haible  <bruno@clisp.org>
19845
19846         fflush, fpurge: Relicense under LGPLv2+.
19847         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
19848         * modules/fpurge (License): Likewise.
19849         With permission from Eric Blake and Jim Meyering.
19850         Suggested by Eric Blake.
19851
19852 2011-05-06  Karl Berry  <karl@gnu.org>
19853
19854         * MODULES.html.sh (func_all_modules): remove exit.
19855
19856 2011-05-06  Jim Meyering  <meyering@redhat.com>
19857
19858         maint.mk: use info-gnu@ as the default only for a stable release
19859         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
19860         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
19861         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
19862         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
19863
19864 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19865
19866         assert-h: new module, which supports C1X-style static_assert
19867         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
19868         * lib/verify.h: Revamp so that this can be copied into assert.h,
19869         while retaining the ability to use it standalone as before.
19870         Rename private identifiers so as not to encroach on the
19871         standard C namespace, since this is now used by assert.h.
19872         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
19873         the old verify_true.
19874         (_GL_VERIFY_TRUE): New macro, with much of the contents of
19875         the old verify_true.  Use _GL_VERIFY_TYPE.
19876         (_GL_VERIFY): New macro, with much of the contents of the old verify.
19877         (static_assert): New macro, if _GL_STATIC_ASSERT_H
19878         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
19879         defined when this file is copied into the replacement assert.h.
19880         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
19881         and _Static_assert is not built in.
19882         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
19883         defined, and use the new macros mentioned above.
19884         * doc/posix-headers/assert.texi: Document this.
19885
19886 2011-05-05  Bruno Haible  <bruno@clisp.org>
19887
19888         fclose, fflush: Respect rules for use of AC_LIBOBJ.
19889         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
19890         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
19891         gl_REPLACE_FCLOSE here.
19892         * modules/fflush (Depends-on): Remove fclose.
19893         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
19894         combination with module 'fclose'.
19895
19896 2011-05-05  Bruno Haible  <bruno@clisp.org>
19897
19898         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
19899         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
19900         gl_FUNC_FFLUSH.
19901         (gl_FUNC_FFLUSH): Use it.
19902         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
19903         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
19904         gl_REPLACE_FSEEKO here.
19905
19906 2011-05-05  Bruno Haible  <bruno@clisp.org>
19907
19908         tzset: Relicense under LGPL.
19909         * modules/tzset (License): Change to LGPL.
19910         No agreement needed; it's a no-op.
19911
19912         strtoimax, strtoumax: Relicense under LGPL.
19913         * modules/strtoimax (License): Change to LGPL.
19914         * modules/strtoumax (License): Likewise.
19915         With permission from Jim Meyering, Paul Eggert:
19916         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
19917         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
19918
19919         getgroups: Relicense under LGPL.
19920         * modules/getgroups (License): Change to LGPL.
19921         With permission from Jim Meyering, Paul Eggert, Eric Blake:
19922         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19923         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19924         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19925
19926         nanosleep: Relicense under LGPL.
19927         * modules/nanosleep (License): Change to LGPL.
19928         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
19929         Haible:
19930         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19931         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19932         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19933         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19934
19935         futimens: Relicense under LGPL.
19936         * modules/futimens (License): Change to LGPL.
19937         With permission from Eric Blake:
19938         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19939
19940         fflush: Relicense under LGPL.
19941         * modules/fflush (License): Change to LGPL.
19942         With permission from Eric Blake, Bruno Haible, Jim Meyering:
19943         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19944         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19945         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
19946
19947         tmpfile: Relicense under LGPL.
19948         * modules/tmpfile (License): Change to LGPL.
19949         With permission from Ben Pfaff:
19950         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19951
19952         isfinite: Relicense under LGPL.
19953         * modules/isfinite (License): Change to LGPL.
19954         With permission from Ben Pfaff, Bruno Haible:
19955         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
19957
19958         acosl..tanl: Relicense under LGPL.
19959         * modules/acosl (License): Change to LGPL.
19960         * modules/asinl (License): Likewise.
19961         * modules/atanl (License): Likewise.
19962         * modules/cosl (License): Likewise.
19963         * modules/expl (License): Likewise.
19964         * modules/logl (License): Likewise.
19965         * modules/sinl (License): Likewise.
19966         * modules/sqrtl (License): Likewise.
19967         * modules/tanl (License): Likewise.
19968         Source code originally from glibc and Paolo Bonzini. Agreements:
19969         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
19970         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
19971
19972 2011-05-05  Bruno Haible  <bruno@clisp.org>
19973
19974         signal: Define sighandler_t.
19975         * lib/signal.in.h (sighandler_t): New type.
19976         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
19977         whether sighandler_t is defined.
19978         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
19979         * modules/signal (Depends-on): Add extensions.
19980         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
19981         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
19982         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
19983
19984 2011-05-05  Eric Blake  <eblake@redhat.com>
19985
19986         maint: remove useless REPLACE_*_H macros
19987         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
19988         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19989         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19990         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
19991         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19992         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19993         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
19994         * m4/btowc.m4: Update callers.
19995         * m4/dirfd.m4: Likewise.
19996         * m4/duplocale.m4: Likewise.
19997         * m4/fchdir.m4: Likewise.
19998         * m4/fdopendir.m4: Likewise.
19999         * m4/inet_ntop.m4: Likewise.
20000         * m4/inet_pton.m4: Likewise.
20001         * m4/ioctl.m4: Likewise.
20002         * m4/mbrlen.m4: Likewise.
20003         * m4/mbrtowc.m4: Likewise.
20004         * m4/mbsinit.m4: Likewise.
20005         * m4/mbsnrtowcs.m4: Likewise.
20006         * m4/mbsrtowcs.m4: Likewise.
20007         * m4/poll.m4: Likewise.
20008         * m4/setlocale.m4: Likewise.
20009         * m4/wcrtomb.m4: Likewise.
20010         * m4/wcsnrtombs.m4: Likewise.
20011         * m4/wcsrtombs.m4: Likewise.
20012         * m4/wctob.m4: Likewise.
20013         * m4/wcwidth.m4: Likewise.
20014         * modules/posix_spawn: Likewise.
20015         * modules/posix_spawn_file_actions_addclose: Likewise.
20016         * modules/posix_spawn_file_actions_adddup2: Likewise.
20017         * modules/posix_spawn_file_actions_addopen: Likewise.
20018         * modules/posix_spawn_file_actions_destroy: Likewise.
20019         * modules/posix_spawn_file_actions_init: Likewise.
20020         * modules/posix_spawnattr_destroy: Likewise.
20021         * modules/posix_spawnattr_getflags: Likewise.
20022         * modules/posix_spawnattr_getpgroup: Likewise.
20023         * modules/posix_spawnattr_getschedparam: Likewise.
20024         * modules/posix_spawnattr_getschedpolicy: Likewise.
20025         * modules/posix_spawnattr_getsigdefault: Likewise.
20026         * modules/posix_spawnattr_getsigmask: Likewise.
20027         * modules/posix_spawnattr_init: Likewise.
20028         * modules/posix_spawnattr_setflags: Likewise.
20029         * modules/posix_spawnattr_setpgroup: Likewise.
20030         * modules/posix_spawnattr_setschedparam: Likewise.
20031         * modules/posix_spawnattr_setschedpolicy: Likewise.
20032         * modules/posix_spawnattr_setsigdefault: Likewise.
20033         * modules/posix_spawnattr_setsigmask: Likewise.
20034         * modules/posix_spawnp: Likewise.
20035
20036 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
20037
20038         Add option to do-release-commit-and-tag to specify branch.
20039         * build-aux/do-release-commit-and-tag: Add --branch.
20040
20041 2011-05-03  Bruno Haible  <bruno@clisp.org>
20042
20043         Avoid unnecessary compilation units, through conditional dependencies.
20044         * modules/accept (Depends-on): Add conditions to the dependencies.
20045         * modules/acosl (Depends-on): Likewise.
20046         * modules/argz (Depends-on): Likewise.
20047         * modules/asinl (Depends-on): Likewise.
20048         * modules/atanl (Depends-on): Likewise.
20049         * modules/atoll (Depends-on): Likewise.
20050         * modules/bind (Depends-on): Likewise.
20051         * modules/btowc (Depends-on): Likewise.
20052         * modules/canonicalize-lgpl (Depends-on): Likewise.
20053         * modules/ceil (Depends-on): Likewise.
20054         * modules/ceilf (Depends-on): Likewise.
20055         * modules/ceill (Depends-on): Likewise.
20056         * modules/chdir-long (Depends-on): Likewise.
20057         * modules/chown (Depends-on): Likewise.
20058         * modules/close (Depends-on): Likewise.
20059         * modules/connect (Depends-on): Likewise.
20060         * modules/cosl (Depends-on): Likewise.
20061         * modules/dirfd (Depends-on): Likewise.
20062         * modules/dprintf (Depends-on): Likewise.
20063         * modules/dprintf-posix (Depends-on): Likewise.
20064         * modules/error (Depends-on): Likewise.
20065         * modules/euidaccess (Depends-on): Likewise.
20066         * modules/expl (Depends-on): Likewise.
20067         * modules/faccessat (Depends-on): Likewise.
20068         * modules/fchdir (Depends-on): Likewise.
20069         * modules/fclose (Depends-on): Likewise.
20070         * modules/fcntl (Depends-on): Likewise.
20071         * modules/fdopendir (Depends-on): Likewise.
20072         * modules/fflush (Depends-on): Likewise.
20073         * modules/floor (Depends-on): Likewise.
20074         * modules/floorf (Depends-on): Likewise.
20075         * modules/floorl (Depends-on): Likewise.
20076         * modules/fnmatch (Depends-on): Likewise.
20077         * modules/fopen (Depends-on): Likewise.
20078         * modules/fprintf-posix (Depends-on): Likewise.
20079         * modules/frexp (Depends-on): Likewise.
20080         * modules/frexp-nolibm (Depends-on): Likewise.
20081         * modules/frexpl (Depends-on): Likewise.
20082         * modules/frexpl-nolibm (Depends-on): Likewise.
20083         * modules/fseek (Depends-on): Likewise.
20084         * modules/fsusage (Depends-on): Likewise.
20085         * modules/ftell (Depends-on): Likewise.
20086         * modules/ftello (Depends-on): Likewise.
20087         * modules/futimens (Depends-on): Likewise.
20088         * modules/getcwd (Depends-on): Likewise.
20089         * modules/getcwd-lgpl (Depends-on): Likewise.
20090         * modules/getdelim (Depends-on): Likewise.
20091         * modules/getdomainname (Depends-on): Likewise.
20092         * modules/getgroups (Depends-on): Likewise.
20093         * modules/gethostname (Depends-on): Likewise.
20094         * modules/getline (Depends-on): Likewise.
20095         * modules/getlogin_r (Depends-on): Likewise.
20096         * modules/getopt-posix (Depends-on): Likewise.
20097         * modules/getpeername (Depends-on): Likewise.
20098         * modules/getsockname (Depends-on): Likewise.
20099         * modules/getsockopt (Depends-on): Likewise.
20100         * modules/getsubopt (Depends-on): Likewise.
20101         * modules/getusershell (Depends-on): Likewise.
20102         * modules/glob (Depends-on): Likewise.
20103         * modules/grantpt (Depends-on): Likewise.
20104         * modules/iconv_open (Depends-on): Likewise.
20105         * modules/iconv_open-utf (Depends-on): Likewise.
20106         * modules/inet_ntop (Depends-on): Likewise.
20107         * modules/inet_pton (Depends-on): Likewise.
20108         * modules/ioctl (Depends-on): Likewise.
20109         * modules/isapipe (Depends-on): Likewise.
20110         * modules/isfinite (Depends-on): Likewise.
20111         * modules/isinf (Depends-on): Likewise.
20112         * modules/lchown (Depends-on): Likewise.
20113         * modules/ldexpl (Depends-on): Likewise.
20114         * modules/link (Depends-on): Likewise.
20115         * modules/linkat (Depends-on): Likewise.
20116         * modules/listen (Depends-on): Likewise.
20117         * modules/logl (Depends-on): Likewise.
20118         * modules/lstat (Depends-on): Likewise.
20119         * modules/mbrlen (Depends-on): Likewise.
20120         * modules/mbrtowc (Depends-on): Likewise.
20121         * modules/mbsinit (Depends-on): Likewise.
20122         * modules/mbsnrtowcs (Depends-on): Likewise.
20123         * modules/mbsrtowcs (Depends-on): Likewise.
20124         * modules/mbtowc (Depends-on): Likewise.
20125         * modules/memcmp (Depends-on): Likewise.
20126         * modules/mkdir (Depends-on): Likewise.
20127         * modules/mkdtemp (Depends-on): Likewise.
20128         * modules/mkfifo (Depends-on): Likewise.
20129         * modules/mkfifoat (Depends-on): Likewise.
20130         * modules/mknod (Depends-on): Likewise.
20131         * modules/mkostemp (Depends-on): Likewise.
20132         * modules/mkostemps (Depends-on): Likewise.
20133         * modules/mkstemp (Depends-on): Likewise.
20134         * modules/mkstemps (Depends-on): Likewise.
20135         * modules/mktime (Depends-on): Likewise.
20136         * modules/nanosleep (Depends-on): Likewise.
20137         * modules/open (Depends-on): Likewise.
20138         * modules/openat (Depends-on): Likewise.
20139         * modules/perror (Depends-on): Likewise.
20140         * modules/poll (Depends-on): Likewise.
20141         * modules/popen (Depends-on): Likewise.
20142         * modules/posix_spawn (Depends-on): Likewise.
20143         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
20144         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20145         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20146         * modules/posix_spawnp (Depends-on): Likewise.
20147         * modules/pread (Depends-on): Likewise.
20148         * modules/printf-posix (Depends-on): Likewise.
20149         * modules/ptsname (Depends-on): Likewise.
20150         * modules/putenv (Depends-on): Likewise.
20151         * modules/pwrite (Depends-on): Likewise.
20152         * modules/readline (Depends-on): Likewise.
20153         * modules/readlink (Depends-on): Likewise.
20154         * modules/readlinkat (Depends-on): Likewise.
20155         * modules/recv (Depends-on): Likewise.
20156         * modules/recvfrom (Depends-on): Likewise.
20157         * modules/regex (Depends-on): Likewise.
20158         * modules/remove (Depends-on): Likewise.
20159         * modules/rename (Depends-on): Likewise.
20160         * modules/renameat (Depends-on): Likewise.
20161         * modules/rmdir (Depends-on): Likewise.
20162         * modules/round (Depends-on): Likewise.
20163         * modules/roundf (Depends-on): Likewise.
20164         * modules/roundl (Depends-on): Likewise.
20165         * modules/rpmatch (Depends-on): Likewise.
20166         * modules/select (Depends-on): Likewise.
20167         * modules/send (Depends-on): Likewise.
20168         * modules/sendto (Depends-on): Likewise.
20169         * modules/setenv (Depends-on): Likewise.
20170         * modules/setlocale (Depends-on): Likewise.
20171         * modules/setsockopt (Depends-on): Likewise.
20172         * modules/shutdown (Depends-on): Likewise.
20173         * modules/sigaction (Depends-on): Likewise.
20174         * modules/signbit (Depends-on): Likewise.
20175         * modules/sigprocmask (Depends-on): Likewise.
20176         * modules/sinl (Depends-on): Likewise.
20177         * modules/sleep (Depends-on): Likewise.
20178         * modules/snprintf (Depends-on): Likewise.
20179         * modules/snprintf-posix (Depends-on): Likewise.
20180         * modules/socket (Depends-on): Likewise.
20181         * modules/sprintf-posix (Depends-on): Likewise.
20182         * modules/sqrtl (Depends-on): Likewise.
20183         * modules/stat (Depends-on): Likewise.
20184         * modules/strchrnul (Depends-on): Likewise.
20185         * modules/strdup-posix (Depends-on): Likewise.
20186         * modules/strerror (Depends-on): Likewise.
20187         * modules/strerror_r-posix (Depends-on): Likewise.
20188         * modules/strndup (Depends-on): Likewise.
20189         * modules/strnlen (Depends-on): Likewise.
20190         * modules/strptime (Depends-on): Likewise.
20191         * modules/strsep (Depends-on): Likewise.
20192         * modules/strsignal (Depends-on): Likewise.
20193         * modules/strstr-simple (Depends-on): Likewise.
20194         * modules/strtod (Depends-on): Likewise.
20195         * modules/strtoimax (Depends-on): Likewise.
20196         * modules/strtok_r (Depends-on): Likewise.
20197         * modules/strtoumax (Depends-on): Likewise.
20198         * modules/symlink (Depends-on): Likewise.
20199         * modules/symlinkat (Depends-on): Likewise.
20200         * modules/tanl (Depends-on): Likewise.
20201         * modules/tcgetsid (Depends-on): Likewise.
20202         * modules/tmpfile (Depends-on): Likewise.
20203         * modules/trunc (Depends-on): Likewise.
20204         * modules/truncf (Depends-on): Likewise.
20205         * modules/truncl (Depends-on): Likewise.
20206         * modules/uname (Depends-on): Likewise.
20207         * modules/unlink (Depends-on): Likewise.
20208         * modules/unlockpt (Depends-on): Likewise.
20209         * modules/unsetenv (Depends-on): Likewise.
20210         * modules/usleep (Depends-on): Likewise.
20211         * modules/utimensat (Depends-on): Likewise.
20212         * modules/vasprintf (Depends-on): Likewise.
20213         * modules/vdprintf (Depends-on): Likewise.
20214         * modules/vdprintf-posix (Depends-on): Likewise.
20215         * modules/vfprintf-posix (Depends-on): Likewise.
20216         * modules/vprintf-posix (Depends-on): Likewise.
20217         * modules/vsnprintf (Depends-on): Likewise.
20218         * modules/vsnprintf-posix (Depends-on): Likewise.
20219         * modules/vsprintf-posix (Depends-on): Likewise.
20220         * modules/wcrtomb (Depends-on): Likewise.
20221         * modules/wcscasecmp (Depends-on): Likewise.
20222         * modules/wcscspn (Depends-on): Likewise.
20223         * modules/wcsdup (Depends-on): Likewise.
20224         * modules/wcsncasecmp (Depends-on): Likewise.
20225         * modules/wcsnrtombs (Depends-on): Likewise.
20226         * modules/wcspbrk (Depends-on): Likewise.
20227         * modules/wcsrtombs (Depends-on): Likewise.
20228         * modules/wcsspn (Depends-on): Likewise.
20229         * modules/wcsstr (Depends-on): Likewise.
20230         * modules/wcstok (Depends-on): Likewise.
20231         * modules/wcswidth (Depends-on): Likewise.
20232         * modules/wctob (Depends-on): Likewise.
20233         * modules/wctomb (Depends-on): Likewise.
20234         * modules/wctype (Depends-on): Likewise.
20235         * modules/wcwidth (Depends-on): Likewise.
20236         * modules/write (Depends-on): Likewise.
20237
20238 2011-05-03  Bruno Haible  <bruno@clisp.org>
20239
20240         Support for conditional dependencies.
20241         * doc/gnulib.texi (Module description): Document the syntax of
20242         conditional dependencies.
20243         * gnulib-tool: New option --conditional-dependencies.
20244         (func_usage): Document it.
20245         (cond_dependencies): New variable.
20246         (func_get_automake_snippet_conditional,
20247         func_get_automake_snippet_unconditional): New functions, extracted from
20248         func_get_automake_snippet.
20249         (func_get_automake_snippet): Use them.
20250         (sed_first_32_chars): New variable.
20251         (func_module_shellfunc_name): New function.
20252         (func_module_shellvar_name): New function.
20253         (func_module_conditional_name): New function.
20254         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
20255         func_cond_module_condition): New functions.
20256         (func_modules_transitive_closure): Add support for conditional
20257         dependencies.
20258         (func_emit_lib_Makefile_am): For a conditional module, enclose the
20259         conditional automake snippet in an automake conditional.
20260         (func_emit_autoconf_snippets): Emit shell functions that contain the
20261         code for conditional modules.
20262         (func_import, func_create_testdir): Update specification.
20263
20264 2011-05-03  Eric Blake  <eblake@redhat.com>
20265
20266         test-getaddrinfo: report error information
20267         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
20268
20269 2011-05-03  Jim Meyering  <meyering@redhat.com>
20270
20271         bootstrap: avoid build failure when $GZIP is set
20272         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
20273         program name.  If defined at all, it is supposed to list gzip options.
20274         Reported by Alan Curry in http://debbugs.gnu.org/8609
20275
20276 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
20277
20278         readme-release: new module with release instructions
20279         * modules/readme-release: New module.
20280         * top/README-release: New file, from coreutils, grep, diffutils.
20281         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20282
20283 2011-05-02  Eric Blake  <eblake@redhat.com>
20284
20285         fflush: also replace fclose when fixing fflush
20286         * modules/fflush (Depends-on): Add fclose.
20287         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
20288         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
20289         memstreams with no backing fd.
20290         * doc/posix-functions/fclose.texi (fclose): Document the use of
20291         fflush module to fix the bug.
20292         * tests/test-fclose.c (main): Relax test when fclose is used in
20293         isolation.
20294
20295         fclose: add some tests
20296         * modules/fclose-tests: New test module.
20297         * tests/test-fclose.c: New file.
20298         * doc/posix-functions/fclose.texi (fclose): Document the bug.
20299
20300         fclose: reduced dependencies
20301         * modules/fclose (Depends-on): Switch from fflush/fseeko to
20302         simpler lseek.
20303         * lib/fclose.c (rpl_fclose): Likewise.
20304         Reported by Simon Josefsson.
20305
20306         exit: drop remaining clients
20307         * modules/argmatch (Depends-on): Replace exit with stdlib.
20308         * modules/copy-file (Depends-on): Likewise.
20309         * modules/execute (Depends-on): Likewise.
20310         * modules/exitfail (Depends-on): Likewise.
20311         * modules/obstack (Depends-on): Likewise.
20312         * modules/pagealign_alloc (Depends-on): Likewise.
20313         * modules/pipe-filter-gi (Depends-on): Likewise.
20314         * modules/pipe-filter-ii (Depends-on): Likewise.
20315         * modules/savewd (Depends-on): Likewise.
20316         * modules/spawn-pipe (Depends-on): Likewise.
20317         * modules/wait-process (Depends-on): Likewise.
20318         * modules/xsetenv (Depends-on): Likewise.
20319         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
20320         * modules/git-merge-changelog (Depends-on): Likewise.
20321         * modules/long-options (Depends-on): Likewise.
20322         * modules/pt_chown (Depends-on): Likewise.
20323         * modules/sysexits (Depends-on): Likewise.
20324
20325         freading: relax license from LGPLv3+ to LGPLv2+
20326         * modules/freading (License): Relax LGPL version.
20327
20328 2011-05-02  Bruno Haible  <bruno@clisp.org>
20329
20330         fchdir: Remove unused dependencies.
20331         * modules/fchdir (Depends-on): Remove include_next.
20332
20333 2011-05-02  Bruno Haible  <bruno@clisp.org>
20334
20335         gnulib-tool: Refactor.
20336         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
20337         from func_emit_autoconf_snippets.
20338         (func_emit_autoconf_snippets): Use it.
20339
20340 2011-05-02  Simon Josefsson  <simon@josefsson.org>
20341
20342         * NEWS: Document removal of 'exit'.
20343         * modules/exit: Remove file.
20344
20345 2011-05-01  Bruno Haible  <bruno@clisp.org>
20346
20347         Update DEPENDENCIES.
20348         * DEPENDENCIES (gettext): Recommend the newest release.
20349         Reported by Simon Josefsson.
20350
20351 2011-05-01  Bruno Haible  <bruno@clisp.org>
20352
20353         gnulib-tool: Reduce code duplication.
20354         * gnulib-tool (func_emit_autoconf_snippets): New function.
20355         (func_import, func_create_testdir): Use it.
20356
20357 2011-04-30  Eric Blake  <eblake@redhat.com>
20358
20359         fclose: don't fail on non-seekable input stream
20360         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
20361         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
20362         since fflush is allowed to fail in that case.
20363
20364 2011-04-30  Bruno Haible  <bruno@clisp.org>
20365
20366         dup3: cleanup
20367         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
20368
20369 2011-04-30  Bruno Haible  <bruno@clisp.org>
20370
20371         netdb: Make it work in C++ mode.
20372         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
20373         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
20374         module.
20375         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
20376         gl_MODULE_INDICATOR_FOR_TESTS.
20377         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
20378         * modules/netdb-c++-tests: New file.
20379         * tests/test-netdb-c++.cc: New file.
20380
20381 2011-04-30  Bruno Haible  <bruno@clisp.org>
20382
20383         New modules 'vfscanf', 'vscanf'.
20384         * modules/vfscanf: New file.
20385         * modules/vscanf: New file.
20386         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
20387         here.
20388         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
20389         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
20390
20391 2011-04-30  Bruno Haible  <bruno@clisp.org>
20392
20393         passfd: Add comments.
20394         * lib/passfd.c: Add comments about platforms.
20395
20396 2011-04-30  Bruno Haible  <bruno@clisp.org>
20397
20398         sys_uio: Make <sys/uio.h> self-contained.
20399         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
20400         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
20401
20402 2011-04-30  Bruno Haible  <bruno@clisp.org>
20403
20404         sys_socket: Ensure 'struct iovec' definition.
20405         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
20406         <sys/socket.h>.
20407         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
20408
20409 2011-04-30  Bruno Haible  <bruno@clisp.org>
20410
20411         sys_uio: Protect definition of 'struct iovec'.
20412         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
20413         it as a C struct.
20414
20415 2011-04-30  Bruno Haible  <bruno@clisp.org>
20416
20417         manywarnings: fix indentation
20418         * m4/manywarnings.m4: Indent by 2 spaces consistently.
20419
20420 2011-04-30  Pádraig Brady <P@draigBrady.com>
20421
20422         manywarnings: add -Wno-missing-field-initializers if needed.
20423         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
20424         option if it's needed to allow initialization with { 0, }
20425
20426 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
20427
20428         announce-gen: cosmetic improvement
20429         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
20430
20431 2011-04-29  Jim Meyering  <meyering@redhat.com>
20432
20433         vc-list-files: indent with spaces, not TABs
20434         * build-aux/vc-list-files: Convert leading TABs to spaces,
20435         to match the style of most other files in gnulib.
20436
20437         announce-gen: indent with spaces, not TABs
20438         * build-aux/announce-gen: Convert all TABs to spaces, to match
20439         the style of most other files in gnulib.
20440
20441 2011-04-29  Eric Blake  <eblake@redhat.com>
20442
20443         quotearg: avoid uninitialized variable use
20444         * lib/quotearg.c (quoting_options_from_style): Initialize
20445         remaining fields, and ensure that custom styles are only used via
20446         quoting_options rather than quoting_style.
20447
20448 2011-04-29  Jim Meyering  <meyering@redhat.com>
20449
20450         maint.mk: remove unused VC-tag variable
20451         * top/maint.mk (VC-tag): Remove unused variable.
20452
20453 2011-04-29  Bruno Haible  <bruno@clisp.org>
20454
20455         netdb: fix gai_strerror replacements
20456         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
20457         * modules/netdb: Substitute it.
20458
20459 2011-04-29  Jim Meyering  <meyering@redhat.com>
20460
20461         test-getcwd.c: avoid new set-but-not-used warning
20462         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
20463         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
20464         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
20465         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
20466
20467         test-hash.c: avoid a new shadowing warning
20468         * tests/test-hash.c (main): Don't shadow "dup".
20469
20470 2011-04-28  Eric Blake  <eblake@redhat.com>
20471
20472         getaddrinfo: fix gai_strerror signature
20473         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
20474         and work around mingw with UNICODE defined.
20475         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
20476         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
20477         * modules/netdb (Makefile.am): Substitute it.
20478         * lib/netdb.in.h (gai_strerror): Declare replacement.
20479         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
20480         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
20481         the fix.
20482
20483         getsockopt: avoid compiler warning
20484         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
20485         Reported by Matthias Bolte.
20486
20487         tests: drop unused link dependency
20488         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
20489         * modules/dirent-safer-tests (Makefile.am): Likewise.
20490         * modules/fdopendir-tests (Makefile.am): Likewise.
20491         * modules/mkfifoat-tests (Makefile.am): Likewise.
20492         * modules/openat-safer-tests (Makefile.am): Likewise.
20493         * modules/openat-tests (Makefile.am): Likewise.
20494         * modules/readlinkat-tests (Makefile.am): Likewise.
20495         * modules/symlinkat-tests (Makefile.am): Likewise.
20496         * modules/linkat-tests (Makefile.am): Likewise.
20497         (Depends-on): Switch to filenamecat-lgpl.
20498         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
20499         LIBINTL.
20500         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
20501         * tests/test-linkat.c (main): Don't require xalloc.
20502
20503         hash, mgetgroups: drop xalloc dependency
20504         * lib/hash.c (includes): Adjust includes.
20505         * lib/mgetgroups.c (includes): Likewise.
20506         (xgetgroups): Move...
20507         * lib/xgetgroups.c: ...to new file.
20508         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
20509         * modules/xgetgroups: New file, split from...
20510         * modules/mgetgroups: ...here.
20511         (Depends-on): Add xalloc-oversized.
20512         * modules/hash (Depends-on): Likewise.
20513         * modules/hash-tests (Depends-on): Drop xalloc.
20514         (test_hash_LDADD): Drop unused library.
20515         * tests/test-hash.c (main): Break xalloc dependency.
20516         (includes): Drop unused include.
20517
20518         xalloc-oversized: new module
20519         * modules/xalloc-oversized: New module.
20520         * modules/xalloc (Depends-on): Add it.
20521         * lib/xalloc.h (xalloc_oversized): Move...
20522         * lib/xalloc-oversized.h: ...into new file.
20523
20524         utimecmp: drop dependency on xmalloc
20525         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
20526         due to memory pressure.
20527         * modules/utimecmp (Depends-on): Drop xalloc.
20528
20529 2011-04-27  Eric Blake  <eblake@redhat.com>
20530
20531         getcwd: fix mingw bugs
20532         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
20533         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
20534         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
20535
20536 2011-04-27  Bruno Haible  <bruno@clisp.org>
20537
20538         mkstemps: Ensure declaration on MacOS X 10.5.
20539         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
20540         * doc/glibc-functions/mkstemps.texi: Document header file problem on
20541         MacOS X.
20542
20543 2011-04-27  Bruno Haible  <bruno@clisp.org>
20544
20545         mkstemp: More documentation.
20546         * doc/posix-functions/mkstemp.texi: Document header file problem on
20547         MacOS X.
20548
20549 2011-04-27  Bruno Haible  <bruno@clisp.org>
20550
20551         mkstemp: Tweak configure message when cross-compiling.
20552         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
20553         result as a guess.
20554
20555 2011-04-27  Bruno Haible  <bruno@clisp.org>
20556
20557         clean-temp: Clarify what it does.
20558         * lib/clean-temp.h: Add more comments.
20559         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
20560         module.
20561         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
20562         * doc/glibc-functions/mkstemps.texi: Likewise.
20563         * doc/glibc-functions/mkostemps.texi: Likewise.
20564
20565 2011-04-27  Eric Blake  <eblake@redhat.com>
20566
20567         fchdir: avoid extra chdir and fix test
20568         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
20569         getcwd-lgpl.
20570         * lib/fchdir.c (get_name): Any absolute name will do; it does not
20571         have to be canonical.
20572         (canonicalize_file_name): Drop unused macro.
20573         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
20574
20575         filenamecat-lgpl: fix licence
20576         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
20577         when it was first created.
20578
20579         linkat, renameat: add missing dependency
20580         * modules/linkat (Depends-on): Require getcwd-lgpl.
20581         * modules/renameat (Depends-on): Likewise.
20582
20583         tests: reduce dependencies
20584         * tests/test-linkat.c (main): Use lighter-weight getcwd.
20585         * tests/test-renameat.c (main): Likewise.
20586         * modules/linkat-tests (Depends-on): Relax dependency.
20587         * modules/renameat-tests (Depends-on): Likewise.
20588         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
20589         dependency explicit.
20590
20591         save-cwd: reduce default dependency
20592         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
20593         * lib/save-cwd.c: Update comments.
20594         * NEWS: Document the semantic change.
20595
20596         getcwd: enhance tests
20597         * tests/test-getcwd-lgpl.c: New file, taken from...
20598         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
20599         repeat long path stress tests from m4 probe.
20600         * modules/getcwd-lgpl-tests: New module.
20601         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
20602         * m4/getcwd-abort-bug.m4: Update comment.
20603         * m4/getcwd-path-max.m4: Likewise.
20604
20605         getcwd-lgpl: new module
20606         * modules/getcwd-lgpl: New module.
20607         * lib/getcwd-lgpl.c: New file.
20608         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20609         * MODULES.html.sh (lacking POSIX:2008): Likewise.
20610         * modules/getcwd (configure.ac): Set C witness.
20611         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
20612
20613         getcwd: tweak comments
20614         * m4/getcwd-abort-bug.m4: Fix comments.
20615         * m4/getcwd-path-max.m4: Likewise.
20616         * m4/getcwd.m4: Likewise.
20617
20618 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20619         and Eric Blake  <eblake@redhat.com>
20620
20621         mkstemp: replace if system version uses wrong permissions
20622         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
20623         read/write mode bits set in file created by mkstemp.
20624         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
20625
20626 2011-04-27  Eric Blake  <eblake@redhat.com>
20627
20628         passfd: avoid compiler warning
20629         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
20630         Reported by Laine Stump.
20631
20632 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
20633
20634         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
20635         required by the NetBSD (and perhaps other 4.4BSD derived) join.
20636
20637 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20638         and Eric Blake  <eblake@redhat.com>
20639
20640         mkstemp: mention clean-temp module
20641         * lib/mkstemp.c: Add comment.
20642         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
20643
20644 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20645
20646         inttypes: also provide default values for 32-bit tests
20647         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
20648         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
20649
20650 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20651
20652         strtoumax: remove dependency on strtoimax
20653         This is like the strtoull change of yesterday.
20654         * modules/strtoumax (Files): Add lib/strtoimax.c.
20655         (Depends-on): Remove strtoimax and add verify.
20656
20657         inttypes-incomplete: new module
20658         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
20659         all but the PRI* and SCN* parts of gl_INTTYPES_H.
20660         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
20661         of gl_INTTYPES_H.
20662         (gl_INTTYPES_H): Rewrite in terms of these new macros.
20663         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
20664         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
20665         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
20666         * modules/strtoumax, modules/xstrtol (Depends-on):
20667         Depend on inttypes-incomplete, not inttypes.
20668         * modules/inttypes-incomplete: New module, containing the contents
20669         of the old modules/inttypes module, except that the Files: section
20670         omits m4/inttypes-pri.m4, and the configure.ac section invokes
20671         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
20672         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
20673         (Depends-on): Depend only on inttypes-incomplete.
20674         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
20675
20676         inttypes: omit now-redundant strtoimax and strtoumax work
20677         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
20678         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
20679
20680         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
20681         This supports apps that need pointers to strtoimax and strtoumax,
20682         and ports to HP-UX 11.00 64.bit, which has macros that expand to
20683         nonexistent functions.  See
20684         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
20685         et seq.
20686         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
20687         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
20688         a macro.
20689         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20690
20691 2011-04-25  Simon Josefsson  <simon@josefsson.org>
20692
20693         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
20694
20695 2011-04-25  Bruno Haible  <bruno@clisp.org>
20696
20697         strtol, strtoul: Mark modules as obsolete.
20698         * modules/strtol (Status, Notice): New sections.
20699         * modules/strtoul (Status, Notice): New sections.
20700
20701 2011-04-25  Bruno Haible  <bruno@clisp.org>
20702
20703         strtod: Remove check for strtod, unless supporting old platforms.
20704         * modules/strtod-obsolete: New file.
20705         * m4/strtod-obsolete.m4: New file.
20706         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
20707         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
20708         * modules/strtod (Depends-on): Add strtod-obsolete.
20709         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
20710
20711 2011-04-25  Bruno Haible  <bruno@clisp.org>
20712
20713         strcase: Make module obsolete.
20714         * modules/strcase (Status, Notice): New sections.
20715
20716 2011-04-25  Bruno Haible  <bruno@clisp.org>
20717
20718         dup2: Remove check for dup2, unless supporting old obsolete platforms.
20719         * modules/dup2-obsolete: New file.
20720         * m4/dup2-obsolete.m4: New file.
20721         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
20722         gl_FUNC_DUP2_OBSOLETE is not also defined.
20723         * modules/dup2 (Depends-on): Add dup2-obsolete.
20724         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
20725
20726 2011-04-25  Bruno Haible  <bruno@clisp.org>
20727
20728         strnlen: Avoid memchr related link error on old obsolete platforms.
20729         * modules/memchr-obsolete: New file.
20730         * m4/memchr-obsolete.m4: New file.
20731         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
20732         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
20733         * modules/memchr (Depends-on): Add memchr-obsolete.
20734         * modules/strnlen (Depends-on): Likewise.
20735         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
20736
20737 2011-04-25  Jim Meyering  <meyering@redhat.com>
20738
20739         maint.mk: makefile_at_at_check extend and clean up
20740         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
20741         in addition to */Makefile.am.
20742         Exempt legitimate uses of @VAR@ notation, e.g.,
20743         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
20744         Remove obsolete coreutils-specific comment.
20745         Prompted by discussion here:
20746         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
20747
20748 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
20749
20750         strtoul: remove dependency on strtol
20751         This is so that 'configure' need not check for strtol merely because
20752         the application needs strtoul.
20753         * modules/strtoul (Files): Add lib/strtol.c.
20754         (Depends-on): Remove strtol.
20755
20756         strtoull: remove dependency on strtoul
20757         This is like the strtoll change.
20758         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
20759         (Depends-on): Remove strtoul.
20760
20761         strtoll: remove dependency on strtol
20762         This is so that 'configure' need not check for strtol merely because
20763         the application needs strtoll.
20764         * modules/strtoll (Files): Add lib/strtol.c.
20765         (Depends-on): Remove strtol.
20766
20767 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20768
20769         inttypes: Move some configure check to module 'imaxdiv'.
20770         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
20771         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
20772         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
20773
20774 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20775
20776         inttypes: Move some configure check to module 'imaxabs'.
20777         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
20778         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
20779         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
20780
20781 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20782
20783         inttypes: Remove configure tests that are not needed since 2009-12-31.
20784         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
20785         gl_cv_header_working_inttypes_h.
20786
20787 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20788
20789         * modules/strnlen (Depends-on): Remove memchr.
20790         The strnlen implementation doesn't need the memchr module's fixes; see
20791         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
20792
20793         strtol: remove dependency on wchar
20794         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
20795         * modules/strtol (Depends-on): Remove wchar.
20796
20797 2011-04-21  Eric Blake  <eblake@redhat.com>
20798
20799         passfd: fix test regression on Linux
20800         * modules/passfd-tests (configure.ac): Correct socketpair check.
20801
20802         passfd: speed up configure and drop unused code
20803         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
20804         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
20805         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
20806         Instead of probing at configure for unix_scm_rights_bsd44_way,
20807         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
20808         check to a struct member probe.
20809         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
20810         (sendfd, recvfd): Update preprocessor checks.
20811         * modules/passfd (Files): Reflect rename, and drop unused file.
20812         (Depends-on): Drop unused dependency.
20813
20814         passfd: allow compilation on mingw
20815         * modules/sys_socket (Depends-on): Add sys_uio.
20816         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
20817         iovec and a minimal struct msghdr.
20818         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
20819         * tests/test-sys_socket.c (main): Enhance test.
20820         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
20821         guaranteed to provide what we need.
20822         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
20823         * modules/passfd-tests (Depends-on): Add sys_wait.
20824         * tests/test-passfd.c (main): Skip test on mingw, for now.
20825         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
20826         partial 'struct msghdr' implementation.
20827
20828         sys_uio: new module
20829         * modules/sys_uio: New module.
20830         * modules/sys_uio-tests: Likewise.
20831         * lib/sys_uio.in.h: New file.
20832         * m4/sys_uio_h.m4: Likewise.
20833         * tests/test-sys_uio.c: Likewise.
20834         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
20835         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
20836
20837 2011-04-20  Jim Meyering  <meyering@redhat.com>
20838
20839         useless-if-before-free: avoid false-positive
20840         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
20841         disjunct so that it too requires a terminating ";".  Without that,
20842         this script would identify as useless one statement from gcc that
20843         was not:
20844           if (aligned_ptr)
20845             free (((void **) aligned_ptr) [-1]);
20846
20847 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
20848
20849         doc: update users.txt.
20850         * users.txt: Add barcode.
20851
20852 2011-04-19  Bruno Haible  <bruno@clisp.org>
20853
20854         ioctl: Remove link dependency on native Windows.
20855         * lib/fd-hook.h: Renamed from lib/close-hook.h.
20856         (gl_close_fn, gl_ioctl_fn): New types.
20857         (struct fd_hook): Renamed from struct close_hook. Change type of
20858         private_close_fn field. Add private_ioctl_fn field.
20859         (close_hook_fn): Add parameter for primary close method.
20860         (execute_close_hooks, execute_all_close_hooks): Likewise.
20861         (ioctl_hook_fn): New type.
20862         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
20863         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20864         argument.
20865         (unregister_fd_hook): Renamed from unregister_close_hook.
20866         * lib/fd-hook.c: Renamed from lib/close-hook.c.
20867         Don't include <unistd.h>.
20868         (close): Remove undef.
20869         (anchor): Update.
20870         (execute_close_hooks): Add argument for primary close method.
20871         (execute_all_close_hooks): Likewise.
20872         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
20873         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20874         argument. Allow each argument to be NULL.
20875         (unregister_fd_hook): Renamed from unregister_close_hook.
20876         * lib/close.c (rpl_close): Pass 'close' function pointer to
20877         execute_all_close_hooks.
20878         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
20879         (primary_ioctl): New function.
20880         (ioctl): Don't call ioctlsocket here. Instead, call
20881         execute_all_ioctl_hooks.
20882         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
20883         close method.
20884         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
20885         (fd_sockets_hook): Renamed from close_sockets_hook.
20886         (gl_sockets_startup, gl_sockets_cleanup): Update.
20887         * modules/fd-hook: Renamed from modules/close-hook. Update.
20888         * modules/close (Depends-on): Add fd-hook, remove close-hook.
20889         * modules/sockets (Depends-on): Likewise.
20890         * modules/ioctl (Depends-on): Add fd-hook.
20891         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
20892         GNULIB_SOCKET.
20893
20894 2011-04-19  Bruno Haible  <bruno@clisp.org>
20895
20896         Move the support of O_NONBLOCK in open() to the 'open' module.
20897         * modules/nonblocking (Depends-on): Remove 'open'.
20898         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
20899         gl_cv_have_open_O_NONBLOCK.
20900         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
20901         O_NONBLOCK support.
20902         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
20903
20904 2011-04-17  Bruno Haible  <bruno@clisp.org>
20905
20906         pipe2: Simplify code.
20907         * lib/pipe2.c (pipe2): Reduce code duplication.
20908
20909 2011-04-17  Bruno Haible  <bruno@clisp.org>
20910
20911         nonblocking: Add comment.
20912         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
20913
20914 2011-04-17  Bruno Haible  <bruno@clisp.org>
20915
20916         nonblocking: Add tests for sockets.
20917         * tests/test-nonblocking-socket.sh: New file.
20918         * tests/test-nonblocking-socket-main.c: New file.
20919         * tests/test-nonblocking-socket-child.c: New file.
20920         * tests/test-nonblocking-socket.h: New file.
20921         * tests/socket-server.h: New file.
20922         * tests/socket-client.h: New file.
20923         * modules/nonblocking-socket-tests: New file.
20924         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
20925
20926 2011-04-17  Bruno Haible  <bruno@clisp.org>
20927
20928         nonblocking: Add tests for pipes.
20929         * tests/test-nonblocking-pipe.sh: New file.
20930         * tests/test-nonblocking-pipe-main.c: New file.
20931         * tests/test-nonblocking-pipe-child.c: New file.
20932         * tests/test-nonblocking-pipe.h: New file.
20933         * tests/test-nonblocking-writer.h: New file.
20934         * tests/test-nonblocking-reader.h: New file.
20935         * tests/test-nonblocking-misc.h: New file.
20936         * modules/nonblocking-pipe-tests: New file.
20937         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
20938
20939 2011-04-16  Bruno Haible  <bruno@clisp.org>
20940
20941         gettext: Clarify the needed programmer actions.
20942         * modules/gettext (Notice): New field.
20943         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
20944
20945 2011-04-16  Bruno Haible  <bruno@clisp.org>
20946
20947         strchrnul: Tweak last commit.
20948         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
20949         bug.
20950         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
20951         as in _GL_FUNCDECL_SYS.
20952         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
20953         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
20954
20955 2011-04-15  Eric Blake  <eblake@redhat.com>
20956
20957         strchrnul: work around cygwin bug
20958         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
20959         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
20960         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
20961         * modules/string (Makefile.am): Substitute it.
20962         * lib/string.in.h (strchrnul): Use it.
20963
20964 2011-04-15  Bruno Haible  <bruno@clisp.org>
20965
20966         Don't require lib/stdio-write.c when only module 'stdio' is used.
20967         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
20968         invocation.
20969         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
20970
20971 2011-04-14  Bruno Haible  <bruno@clisp.org>
20972
20973         Support non-blocking pipe I/O in read() on native Windows.
20974         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
20975         (read): New declaration.
20976         * lib/read.c: New file.
20977         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
20978         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
20979         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
20980         vscanf): New declarations.
20981         * lib/stdio-read.c: New file.
20982         * m4/read.m4: New file.
20983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
20984         REPLACE_READ.
20985         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
20986         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20987         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
20988         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
20989         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
20990         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20991         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20992         * modules/read: New file.
20993         * modules/nonblocking (Files): Add lib/stdio-read.c.
20994         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
20995         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
20996         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20997         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20998         * modules/pread (Depends-on): Add read.
20999         * modules/safe-read (Depends-on): Likewise.
21000         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
21001         gets, scanf, vfscanf, vscanf): Verify signatures.
21002         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
21003         problem with non-blocking pipes.
21004         * doc/posix-functions/fgetc.texi: Likewise.
21005         * doc/posix-functions/fgets.texi: Likewise.
21006         * doc/posix-functions/fread.texi: Likewise.
21007         * doc/posix-functions/fscanf.texi: Likewise.
21008         * doc/posix-functions/getc.texi: Likewise.
21009         * doc/posix-functions/getchar.texi: Likewise.
21010         * doc/posix-functions/gets.texi: Likewise.
21011         * doc/posix-functions/scanf.texi: Likewise.
21012         * doc/posix-functions/vfscanf.texi: Likewise.
21013         * doc/posix-functions/vscanf.texi: Likewise.
21014
21015 2011-04-14  Bruno Haible  <bruno@clisp.org>
21016
21017         Support non-blocking pipe I/O in write() on native Windows.
21018         * lib/write.c (rpl_write): Split a write request that failed merely
21019         because the byte count was larger than the pipe buffer's size.
21020         * doc/posix-functions/write.texi: Mention the problem with large byte
21021         counts.
21022
21023 2011-04-14  Bruno Haible  <bruno@clisp.org>
21024
21025         wchar: Ensure that wchar_t gets defined on uClibc.
21026         * lib/wchar.in.h: On uClibc, include <stddef.h>.
21027         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
21028
21029 2011-04-13  Bruno Haible  <bruno@clisp.org>
21030
21031         safe-write, full-read: Avoid unnecessary compilation units.
21032         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
21033         (Depends-on): Remove safe-read. Add ssize_t.
21034         * modules/full-read (Files): Add lib/full-write.c.
21035         (Depends-on): Add full-write.
21036
21037 2011-04-13  Bruno Haible  <bruno@clisp.org>
21038
21039         Support non-blocking pipe I/O and SIGPIPE in pwrite().
21040         * modules/pwrite (Depends-on): Add 'write'.
21041
21042 2011-04-13  Bruno Haible  <bruno@clisp.org>
21043
21044         Support non-blocking pipe I/O in write() on native Windows.
21045         * lib/unistd.in.h (write): Enable replacement also if
21046         GNULIB_UNISTD_H_NONBLOCKING is 1.
21047         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
21048         (rpl_write): When failing to write on a non-blocking pipe, change
21049         errno from ENOSPC to EAGAIN.
21050         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
21051         putchar, puts, vfprintf, vprintf): Enable replacement also if
21052         GNULIB_STDIO_H_NONBLOCKING is 1.
21053         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
21054         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
21055         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
21056         CALL_WITH_SIGPIPE_EMULATION.
21057         (CALL_WITH_SIGPIPE_EMULATION): Use them.
21058         * m4/nonblocking.m4: New file.
21059         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
21060         for non-blocking I/O support.
21061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21062         GNULIB_UNISTD_H_NONBLOCKING.
21063         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
21064         required for non-blocking I/O support.
21065         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
21066         * modules/nonblocking (Files): Add m4/nonblocking.m4,
21067         lib/stdio-write.c, m4/asm-underscore.m4.
21068         (Depends-on): Add stdio, unistd.
21069         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
21070         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
21071         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
21072         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
21073         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
21074         problem with non-blocking pipes.
21075         * doc/posix-functions/fputc.texi: Likewise.
21076         * doc/posix-functions/fputs.texi: Likewise.
21077         * doc/posix-functions/fwrite.texi: Likewise.
21078         * doc/posix-functions/printf.texi: Likewise.
21079         * doc/posix-functions/putc.texi: Likewise.
21080         * doc/posix-functions/putchar.texi: Likewise.
21081         * doc/posix-functions/puts.texi: Likewise.
21082         * doc/posix-functions/vfprintf.texi: Likewise.
21083         * doc/posix-functions/vprintf.texi: Likewise.
21084         * doc/posix-functions/write.texi: Likewise.
21085
21086 2011-04-10  Jim Meyering  <meyering@redhat.com>
21087
21088         maint.mk: prohibit doubled words
21089         Detect them also when they're separated by a newline.
21090         There are 3 ways to customize it:
21091           - disable the test on a per file basis, as usual with rules using
21092             $(VC_LIST_EXCEPT)
21093           - replace the default doubled-word-selecting regexp (affects all files)
21094           - ignore a particular file-vs-doubled-word match
21095         I nearly used that last one to ignore the "is is" match in
21096         coreutils' NEWS file, since the text was "ls -is is ..."
21097         To do that, I would have added this line to cfg.mk:
21098           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
21099         but it would have ignored any "is is" match in NEWS.
21100         Low probability, but still...
21101         Instead, I changed the text, slightly:
21102           -  ls -is is now consistent with ls -lis in ignoring values returned
21103           +  "ls -is" is now consistent with ls -lis in ignoring values returned
21104         * top/maint.mk (prohibit_double_word_RE_): Provide default.
21105         (prohibit_doubled_word_): Define.
21106         (sc_prohibit_doubled_word): New rule.
21107         (sc_prohibit_the_the): Remove.  Subsumed by the above.
21108
21109 2011-04-10  Jim Meyering  <meyering@redhat.com>
21110
21111         maint: fix doubled-word typo in comment
21112         * m4/gethostname.m4: s/is is/it is/
21113         * m4/getdomainname.m4: Likewise.
21114
21115 2011-04-10  Jim Meyering  <meyering@redhat.com>
21116
21117         maint: remove doubled word: s/it it/it/
21118         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
21119
21120 2011-04-10  Jim Meyering  <meyering@redhat.com>
21121
21122         maint.mk: remove useless semicolon and backslash
21123         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
21124         semicolon and backslash.
21125
21126 2011-04-10  Bruno Haible  <bruno@clisp.org>
21127
21128         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
21129         * modules/stdint-tests (Depends-on): Add wchar.
21130
21131 2011-04-10  Jim Meyering  <meyering@redhat.com>
21132
21133         maint: remove doubled words in comments, e.g., s/a a/a/
21134         * lib/strptime.c (day_of_the_week): s/the the/the/
21135         * tests/test-chown.h (test_chown): s/a a/a/
21136
21137         test-chown.h: correct a cast
21138         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
21139         when the destination is a stat.st_gid.
21140
21141 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
21142
21143         getaddrinfo: Fix test for sa_len member.
21144         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
21145         include <sys/types.h> before <sys/socket.h>.
21146
21147 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21148
21149         maint: change "can not" to "cannot"
21150         * doc/posix-functions/iconv.texi (iconv): This one crossed line
21151         boundaries.
21152
21153 2011-04-09  Jim Meyering  <meyering@redhat.com>
21154
21155         maint: change "a a" to "a"
21156         * tests/test-lchown.h (test_lchown): s/a a/a/
21157
21158         maint.mk: prohibit \<the the\>
21159         * top/maint.mk (sc_prohibit_the_the): New rule.
21160
21161         maint: fix "the the" in comment
21162         * lib/count-one-bits.h: s/the the/the/
21163
21164         maint: change "can not" to "cannot"
21165         But do not change the occurrences in maintain.texi or in
21166         build-aux/po/Makefile.in.in, which I presume comes from gettext.
21167         * doc/gnulib-tool.texi: s/can not/cannot/
21168         * doc/posix-functions/accept.texi (accept): Likewise.
21169         * doc/posix-functions/socket.texi (socket): Likewise.
21170         * lib/mbrtowc.c: Likewise.
21171
21172         maint.mk: prohibit use of "can not"
21173         * top/maint.mk (sc_prohibit_can_not): New rule.
21174         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
21175
21176 2011-04-09  Bruno Haible  <bruno@clisp.org>
21177
21178         careadlinkat: Guard against misuse of careadlinkatcwd.
21179         * lib/careadlinkat.c: Include <stdlib.h>.
21180         (careadlinkatcwd): Check that the fd argument is as expected.
21181
21182 2011-04-09  Bruno Haible  <bruno@clisp.org>
21183
21184         careadlinkat: Use common coding style.
21185         * lib/careadlinkat.c: Move gnulib includes after system includes.
21186
21187 2011-04-09  Bruno Haible  <bruno@clisp.org>
21188
21189         careadlinkat: Clarify specification.
21190         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
21191         (careadlinkatcwd): Add comment.
21192         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
21193
21194 2011-04-09  Bruno Haible  <bruno@clisp.org>
21195
21196         areadlinkat: Avoid link error on many platforms.
21197         * modules/areadlinkat (Depends-on): Add areadlink.
21198
21199 2011-04-09  Bruno Haible  <bruno@clisp.org>
21200
21201         allocator, careadlinkat: Fix double-inclusion guard.
21202         * lib/allocator.h: Fix double-inclusion guard.
21203         * lib/careadlinkat.h: Likewise.
21204
21205 2011-04-09  Bruno Haible  <bruno@clisp.org>
21206
21207         relocatable-prog-wrapper: Update after module 'areadlink' changed.
21208         * lib/relocwrapper.c: Update dependencies hierarchy.
21209         * build-aux/install-reloc: Update list of files to be compiled.
21210         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
21211         lib/allocator.[hc].
21212
21213 2011-04-08  Eric Blake  <eblake@redhat.com>
21214
21215         strftime: silence gnulib-tool warning
21216         * modules/strftime-tests (Depends-on): Drop automatic dependency.
21217
21218 2011-04-08  Bruno Haible  <bruno@clisp.org>
21219
21220         verify: Fix syntax error with GCC 4.6 in C++ mode.
21221         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
21222         (HAVE_STATIC_ASSERT): New macro.
21223         (verify_true, verify): Use 'static_assert' if it is supported and
21224         '_Static_assert' is not supported.
21225
21226 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
21227
21228         allocator: New module.
21229         * modules/allocator, lib/allocator.c: New files.
21230         * lib/allocator.h (stdlib_allocator): New decl.
21231         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
21232         Remove.  Do not include <stdlib.h>.
21233         (careadlinkat): Use stdlib_allocator instead of rolling our own.
21234         * modules/careadlinkat (Files): Remove lib/allocator.h.
21235         (Depends-on): Add allocator.
21236
21237         stdlib: let modules use system malloc, realloc
21238         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
21239         if !_GL_USE_STDLIB_ALLOC.
21240         (malloc, realloc): Limit this change to a smaller scope.
21241
21242         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
21243         (malloc, realloc): Don't #undef; no longer needed.
21244         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21245         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21246         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21247         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21248         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21249         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21250         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21251         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21252
21253         careadlinkat: rename members to avoid problem
21254         * lib/allocator.h (struct allocator): Rename members from
21255         malloc/realloc to allocate/reallocate, to avoid problems if malloc
21256         and realloc are #define'd.  Reported by Eric Blake in
21257         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
21258         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
21259
21260 2011-04-08  Eric Blake  <eblake@redhat.com>
21261
21262         nonblocking: reduce dependency
21263         * tests/test-nonblocking.c: Only test sockets when in use.
21264         * modules/nonblocking-tests (Depends-on): Drop socket.
21265         (Makefile.am): Link even if sockets are not present.
21266         * modules/pipe2-tests (Makefile.am): Likewise.
21267         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
21268
21269         pipe2: fix O_NONBLOCK support on mingw
21270         * modules/pipe2 (Depends-on): Add nonblocking.
21271         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
21272         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
21273         * tests/test-nonblocking.c (main): Likewise.
21274         * modules/pipe2-tests (Makefile.am): Avoid link failure.
21275
21276         fcntl-h: fix O_ACCMODE on cygwin
21277         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
21278         * lib/fcntl.in.h (O_ACCMODE): Fix it.
21279
21280         pipe-filter: drop O_NONBLOCK workarounds
21281         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
21282         * modules/pipe-filter-ii (Depends-on): Likewise.
21283         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
21284
21285         nonblocking: provide O_NONBLOCK for mingw
21286         * modules/nonblocking (Depends-on): Add open.
21287         (configure.ac): Set new witness macro.
21288         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
21289         * modules/fcntl-h (Makefile.am): Substitute it.
21290         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
21291         nonblocking module is in use.
21292         * lib/nonblocking.c: Adjust portability test.
21293         * lib/open.c (open): Don't let native open see gnulib flag.
21294         * tests/test-fcntl-h.c (main): Enhance test.
21295         * tests/test-open.h (test_open): Likewise.
21296         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
21297
21298         careadlinkat: fix compilation error on mingw
21299         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
21300         within struct allocator.
21301
21302 2011-04-06  Eric Blake  <eblake@redhat.com>
21303
21304         binary-io: relicense under LGPLv2+
21305         * modules/binary-io (License): Relax to LGPLv2+.
21306         Requested for libvirt, and required by pipe2.
21307
21308 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
21309
21310         verify: use _Static_assert if available
21311         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
21312         (verify_true, verify): Use it if available.  This generates better
21313         diagnostics with GCC 4.6.0 and later.
21314
21315 2011-04-05  Bruno Haible  <bruno@clisp.org>
21316
21317         Remove leftover generated .h files after config.status changed.
21318
21319         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
21320         GL_GENERATE_ALLOCA_H.
21321         * modules/alloca-opt (Makefile.am): Remove alloca.h if
21322         GL_GENERATE_ALLOCA_H evaluates to false.
21323
21324         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
21325         GL_GENERATE_ARGZ_H.
21326         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
21327         evaluates to false.
21328
21329         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
21330         GL_GENERATE_BYTESWAP_H.
21331         * modules/byteswap (Makefile.am): Remove byteswap.h if
21332         GL_GENERATE_BYTESWAP_H evaluates to false.
21333
21334         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
21335         GL_GENERATE_ERRNO_H.
21336         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
21337         evaluates to false.
21338
21339         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
21340         GL_GENERATE_FLOAT_H.
21341         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
21342         evaluates to false.
21343
21344         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
21345         GL_GENERATE_FNMATCH_H.
21346         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
21347         GL_GENERATE_FNMATCH_H evaluates to false.
21348
21349         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
21350         GL_GENERATE_GLOB_H.
21351         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
21352         evaluates to false.
21353
21354         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
21355         automake conditional GL_GENERATE_ICONV_H.
21356         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
21357         evaluates to false.
21358
21359         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
21360         GL_GENERATE_NETINET_IN_H.
21361         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
21362         GL_GENERATE_NETINET_IN_H evaluates to false.
21363
21364         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
21365         conditional GL_GENERATE_PTHREAD_H.
21366         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
21367         * modules/pthread (Makefile.am): Remove pthread.h if
21368         GL_GENERATE_PTHREAD_H evaluates to false.
21369
21370         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
21371         GL_GENERATE_SCHED_H.
21372         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
21373         evaluates to false.
21374
21375         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
21376         conditional GL_GENERATE_SELINUX_CONTEXT_H.
21377         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
21378         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
21379
21380         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
21381         GL_GENERATE_STDARG_H.
21382         * modules/stdarg (Makefile.am): Remove stdarg.h if
21383         GL_GENERATE_STDARG_H evaluates to false.
21384
21385         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
21386         GL_GENERATE_STDBOOL_H.
21387         * modules/stdbool (Makefile.am): Remove stdbool.h if
21388         GL_GENERATE_STDBOOL_H evaluates to false.
21389
21390         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
21391         conditional GL_GENERATE_STDDEF_H.
21392         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
21393         * modules/stddef (Makefile.am): Remove stddef.h if
21394         GL_GENERATE_STDDEF_H evaluates to false.
21395
21396         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
21397         GL_GENERATE_STDINT_H.
21398         * modules/stdint (Makefile.am): Remove stdint.h if
21399         GL_GENERATE_STDINT_H evaluates to false.
21400
21401         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
21402         GL_GENERATE_SYSEXITS_H.
21403         * modules/sysexits (Makefile.am): Remove sysexits.h if
21404         GL_GENERATE_SYSEXITS_H evaluates to false.
21405
21406         Reported by Karl Berry and Ralf Wildenhues.
21407
21408 2011-04-05  Bruno Haible  <bruno@clisp.org>
21409
21410         Ensure to rebuild generated .h files when config.status has changed.
21411         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
21412         config.status.
21413         * modules/ctype (Makefile.am): Likewise.
21414         * modules/dirent (Makefile.am): Likewise.
21415         * modules/errno (Makefile.am): Likewise.
21416         * modules/fcntl-h (Makefile.am): Likewise.
21417         * modules/float (Makefile.am): Likewise.
21418         * modules/getopt-posix (Makefile.am): Likewise.
21419         * modules/glob (Makefile.am): Likewise.
21420         * modules/iconv-h (Makefile.am): Likewise.
21421         * modules/inttypes (Makefile.am): Likewise.
21422         * modules/langinfo (Makefile.am): Likewise.
21423         * modules/locale (Makefile.am): Likewise.
21424         * modules/math (Makefile.am): Likewise.
21425         * modules/netdb (Makefile.am): Likewise.
21426         * modules/netinet_in (Makefile.am): Likewise.
21427         * modules/poll-h (Makefile.am): Likewise.
21428         * modules/pthread (Makefile.am): Likewise.
21429         * modules/pty (Makefile.am): Likewise.
21430         * modules/sched (Makefile.am): Likewise.
21431         * modules/search (Makefile.am): Likewise.
21432         * modules/selinux-h (Makefile.am): Likewise.
21433         * modules/signal (Makefile.am): Likewise.
21434         * modules/spawn (Makefile.am): Likewise.
21435         * modules/stdarg (Makefile.am): Likewise.
21436         * modules/stdbool (Makefile.am): Likewise.
21437         * modules/stddef (Makefile.am): Likewise.
21438         * modules/stdint (Makefile.am): Likewise.
21439         * modules/stdio (Makefile.am): Likewise.
21440         * modules/stdlib (Makefile.am): Likewise.
21441         * modules/string (Makefile.am): Likewise.
21442         * modules/strings (Makefile.am): Likewise.
21443         * modules/sys_file (Makefile.am): Likewise.
21444         * modules/sys_ioctl (Makefile.am): Likewise.
21445         * modules/sys_select (Makefile.am): Likewise.
21446         * modules/sys_socket (Makefile.am): Likewise.
21447         * modules/sys_stat (Makefile.am): Likewise.
21448         * modules/sys_time (Makefile.am): Likewise.
21449         * modules/sys_times (Makefile.am): Likewise.
21450         * modules/sys_utsname (Makefile.am): Likewise.
21451         * modules/sys_wait (Makefile.am): Likewise.
21452         * modules/sysexits (Makefile.am): Likewise.
21453         * modules/termios (Makefile.am): Likewise.
21454         * modules/time (Makefile.am): Likewise.
21455         * modules/unistd (Makefile.am): Likewise.
21456         * modules/wchar (Makefile.am): Likewise.
21457         * modules/wctype-h (Makefile.am): Likewise.
21458         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
21459
21460 2011-04-05  Bruno Haible  <bruno@clisp.org>
21461
21462         pipe2: Relicense under LGPLv2+.
21463         * modules/pipe2 (License): Change to LGPLv2+.
21464         Requested by Eric Blake, for libvirt.
21465
21466 2011-04-05  Bruce Korb  <bkorb@gnu.org>
21467
21468         bootstrap: compute gnulib_extra_files after updating build_aux
21469         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
21470         change build_aux or also supply gnulib_extra_files.  Handle correctly.
21471
21472 2011-04-05  Eric Blake  <eblake@redhat.com>
21473
21474         bootstrap: preserve git whitelist item sorting
21475         * build-aux/bootstrap (sort_patterns): New function.
21476         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
21477
21478 2011-04-05  Simon Josefsson  <simon@josefsson.org>
21479
21480         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
21481         sc_space_tab check.
21482
21483 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
21484
21485         areadlink, areadlinkat: rewrite in terms of careadlinkat
21486         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
21487         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
21488         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
21489         (malloc, realloc): Remove #undefs.
21490         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
21491         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
21492         readlink, ssize_t, stdint, unistd.
21493         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
21494         areadlink, stdint.
21495
21496         careadlinkat: new module
21497         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
21498         * modules/careadlinkat: New files, written by me with
21499         a review and feedback from Ben Pfaff in
21500         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
21501
21502 2011-04-01  Bruno Haible  <bruno@clisp.org>
21503
21504         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
21505         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
21506         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
21507         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
21508         Reported by Bruce Korb <bruce.korb@gmail.com>.
21509
21510 2011-04-01  Bruno Haible  <bruno@clisp.org>
21511
21512         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
21513         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
21514         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
21515         * modules/wcpcpy (Depends-on): Add extensions.
21516         * modules/wcpncpy (Depends-on): Likewise.
21517         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
21518         systems.
21519         * doc/posix-functions/wcpncpy.texi: Likewise.
21520         * doc/posix-functions/wcwidth.texi: Likewise.
21521
21522 2011-03-31  Eric Blake  <eblake@redhat.com>
21523
21524         nonblocking: fix mingw test failures
21525         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
21526         non-blocking flag on regular file.
21527         (get_nonblocking_flag): Set errno on invalid fd.
21528         * tests/test-nonblocking.c (main): Avoid test failure on
21529         directories if fchdir is not active.
21530         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
21531
21532 2011-03-31  Bruno Haible  <bruno@clisp.org>
21533
21534         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
21535         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
21536         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
21537         Reported by Simon Josefsson <simon@josefsson.org>.
21538
21539 2011-03-31  Bruno Haible  <bruno@clisp.org>
21540         and Eric Blake  <eblake@redhat.com>
21541
21542         nonblocking: new module
21543         * modules/nonblocking: New module.
21544         * modules/nonblocking-tests: Likewise.
21545         * lib/nonblocking.h: New file.
21546         * lib/nonblocking.c: Likewise.
21547         * tests/test-nonblocking.c: New test.
21548         * lib/ioctl.c (ioctl) [mingw]: Update comment.
21549
21550 2011-03-30  Bruno Haible  <bruno@clisp.org>
21551
21552         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
21553         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
21554         instead of 'printf' format for GCC >= 4.4.
21555         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
21556         (fprintf, printf, vfprintf, vprintf): Declare with
21557         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
21558         the system's vfprintf() function.
21559         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
21560
21561 2011-03-30  Eric Blake  <eblake@redhat.com>
21562
21563         passfd: fix scoping bug
21564         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
21565         before sendmsg/recvmsg.
21566
21567         passfd: standardize coding conventions
21568         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
21569         can be learned at compile time.
21570         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
21571         ifdefs.
21572         (sendfd, recvfd): Follow gnulib code conventions.
21573
21574         passfd: fix incorrect sendmsg arguments
21575         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
21576         incorrect msg_controllen value.
21577         * modules/passfd-tests (Depends-on): Check for alarm.
21578         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
21579         Reported by Bastien ROUCARIES.
21580
21581 2011-03-30  Bruno Haible  <bruno@clisp.org>
21582
21583         c-strcasestr: Relicense under LGPLv2+.
21584         * modules/c-strcasestr (License): Change to LGPLv2+.
21585         Requested by Eric Blake, for libvirt.
21586
21587 2011-03-30  Simon Josefsson  <simon@josefsson.org>
21588
21589         * users.txt: Add libidn2.  Fix libtasn1 link.
21590
21591 2011-03-30  Jim Meyering  <meyering@redhat.com>
21592
21593         tests: readlink* ("",... fails with EINVAL on newer kernels
21594         readlink and readlinkat have typically failed with ENOENT for
21595         the invalid, empty file name,  "".  However, with the advent
21596         of linux-2.6.39, they fail with EINVAL.
21597         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
21598         when operating on the empty file name.
21599         * tests/test-readlink.h (test_readlink): Likewise.
21600
21601 2011-03-29  Bruno Haible  <bruno@clisp.org>
21602
21603         Relicense some modules under LGPLv2+, for libidn2.
21604         * modules/array-mergesort (License): Change to LGPLv2+.
21605         * modules/c-strcaseeq (License): Likewise.
21606         * modules/striconveh (License): Likewise.
21607         * modules/striconveha (License): Likewise.
21608         * modules/uniconv/base (License): Likewise.
21609         * modules/uniconv/u8-conv-from-enc (License): Likewise.
21610         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
21611         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
21612         * modules/unictype/base (License): Likewise.
21613         * modules/unictype/bidiclass-of (License): Likewise.
21614         * modules/unictype/category-M (License): Likewise.
21615         * modules/unictype/category-none (License): Likewise.
21616         * modules/unictype/category-of (License): Likewise.
21617         * modules/unictype/category-test (License): Likewise.
21618         * modules/unictype/category-test-withtable (License): Likewise.
21619         * modules/unictype/combining-class (License): Likewise.
21620         * modules/unictype/joiningtype-of (License): Likewise.
21621         * modules/unictype/scripts (License): Likewise.
21622         * modules/uninorm/base (License): Likewise.
21623         * modules/uninorm/canonical-decomposition (License): Likewise.
21624         * modules/uninorm/composition (License): Likewise.
21625         * modules/uninorm/decompose-internal (License): Likewise.
21626         * modules/uninorm/decomposition-table (License): Likewise.
21627         * modules/uninorm/nfc (License): Likewise.
21628         * modules/uninorm/nfd (License): Likewise.
21629         * modules/uninorm/u32-normalize (License): Likewise.
21630         * modules/unistr/base (License): Likewise.
21631         * modules/unistr/u32-cpy (License): Likewise.
21632         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
21633         * modules/unistr/u32-to-u8 (License): Likewise.
21634         * modules/unistr/u32-uctomb (License): Likewise.
21635         * modules/unistr/u8-check (License): Likewise.
21636         * modules/unistr/u8-mblen (License): Likewise.
21637         * modules/unistr/u8-mbtouc (License): Likewise.
21638         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
21639         * modules/unistr/u8-mbtoucr (License): Likewise.
21640         * modules/unistr/u8-prev (License): Likewise.
21641         * modules/unistr/u8-strlen (License): Likewise.
21642         * modules/unistr/u8-to-u32 (License): Likewise.
21643         * modules/unistr/u8-uctomb (License): Likewise.
21644         * modules/unitypes (License): Likewise.
21645         Requested by Simon Josefsson.
21646
21647 2011-03-29  Simon Josefsson  <simon@josefsson.org>
21648
21649         lib-symbol-visibility: Add a notice.
21650         * modules/lib-symbol-visibility (Notice): New field.
21651
21652 2011-03-29  Bruno Haible  <bruno@clisp.org>
21653
21654         getaddrinfo: Doc fix.
21655         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
21656         section "fixed in Gnulib".
21657
21658 2011-03-28  Simon Josefsson  <simon@josefsson.org>
21659
21660         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
21661         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
21662
21663 2011-03-26  Bruno Haible  <bruno@clisp.org>
21664
21665         unictype/property-byname: Reduce the number of load-time relocations.
21666         * lib/unictype/pr_byname.c: Include <stdlib.h>.
21667         (UC_PROPERTY_INDEX_*): New enumeration values.
21668         (uc_property_byname): Convert an index from the lookup table to an
21669         uc_property_t.
21670         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
21671         values.
21672
21673 2011-03-26  Bruno Haible  <bruno@clisp.org>
21674
21675         unictype/property-byname: Allow omitted word separators and aliases.
21676         * lib/unictype/pr_byname.gperf: Add property names without word
21677         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
21678         for 'space'.
21679
21680 2011-03-26  Bruno Haible  <bruno@clisp.org>
21681
21682         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
21683         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
21684         also hyphens to space.
21685         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
21686         without spaces.
21687         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
21688
21689 2011-03-26  Bruno Haible  <bruno@clisp.org>
21690
21691         unictype/joiningtype-byname: Recognize long names as well.
21692         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
21693         a long name.
21694         * lib/unictype/joiningtype_byname.c: Include <string.h>,
21695         unictype/joiningtype_byname.h.
21696         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
21697         * lib/unictype/joiningtype_byname.gperf: New file.
21698         * modules/unictype/joiningtype-byname (Files): Add
21699         lib/unictype/joiningtype_byname.gperf.
21700         (Depends-on): Add gperf.
21701         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
21702         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
21703         long names.
21704
21705         Tests for module 'unictype/joiningtype-longname'.
21706         * modules/unictype/joiningtype-longname-tests: New file.
21707         * tests/unictype/test-joiningtype_longname.c: New file.
21708
21709         New module 'unictype/joiningtype-longname'.
21710         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
21711         * lib/unictype/joiningtype_longname.c: New file.
21712         * modules/unictype/joiningtype-longname: New file.
21713         * modules/unictype/joiningtype-all (Depends-on): Add
21714         unictype/joiningtype-longname.
21715
21716 2011-03-26  Bruno Haible  <bruno@clisp.org>
21717
21718         unictype/bidiclass-byname: Recognize long names as well.
21719         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
21720         name.
21721         * lib/unictype/bidi_byname.c: Include <string.h>,
21722         unictype/bidi_byname.h.
21723         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
21724         * lib/unictype/bidi_byname.gperf: New file.
21725         * modules/unictype/bidiclass-byname (Files): Add
21726         lib/unictype/bidi_byname.gperf.
21727         (Depends-on): Add gperf.
21728         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
21729         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
21730         long names.
21731
21732         Tests for module 'unictype/bidiclass-longname'.
21733         * modules/unictype/bidiclass-longname-tests: New file.
21734         * tests/unictype/test-bidi_longname.c: New file.
21735
21736         New module 'unictype/bidiclass-longname'.
21737         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
21738         * lib/unictype/bidi_longname.c: New file.
21739         * modules/unictype/bidiclass-longname: New file.
21740         * modules/unictype/bidiclass-all (Depends-on): Add
21741         unictype/bidiclass-longname.
21742
21743 2011-03-26  Bruno Haible  <bruno@clisp.org>
21744
21745         unictype/bidi*: Rename modules.
21746         * modules/unictype/bidiclass-all: Renamed from
21747         modules/unictype/bidicategory-all.
21748         * modules/unictype/bidiclass-name: Renamed from
21749         modules/unictype/bidiclass-name.
21750         (Description): Update.
21751         * modules/unictype/bidiclass-name-tests: Renamed from
21752         modules/unictype/bidicategory-name-tests.
21753         * modules/unictype/bidiclass-byname: Renamed from
21754         modules/unictype/bidicategory-byname.
21755         (Description): Update.
21756         * modules/unictype/bidiclass-byname-tests: Renamed from
21757         modules/unictype/bidicategory-byname-tests.
21758         * modules/unictype/bidiclass-of: Renamed from
21759         modules/unictype/bidicategory-of.
21760         (Description): Update.
21761         * modules/unictype/bidiclass-of-tests: Renamed from
21762         modules/unictype/bidicategory-of-tests.
21763         * modules/unictype/bidiclass-test: Renamed from
21764         modules/unictype/bidicategory-test.
21765         (Description): Update.
21766         * modules/unictype/bidiclass-test-tests: Renamed from
21767         modules/unictype/bidicategory-test-tests.
21768         * modules/unictype/bidicategory-all: New file, a simple redirection.
21769         * modules/unictype/bidicategory-name: Likewise.
21770         * modules/unictype/bidicategory-byname: Likewise.
21771         * modules/unictype/bidicategory-of: Likewise.
21772         * modules/unictype/bidicategory-test: Likewise.
21773         * modules/unictype/property-bidi-* (Dependencies): Update.
21774         * lib/unictype/bidi_*.c: Update comment.
21775
21776 2011-03-26  Bruno Haible  <bruno@clisp.org>
21777
21778         unictype/bidi*: Rename functions, part 2.
21779         * modules/unictype/bidicategory-name (configure.ac): Update required
21780         libunistring version.
21781         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
21782
21783 2011-03-25  Bruno Haible  <bruno@clisp.org>
21784
21785         New module 'unictype/combining-class-all'.
21786         * modules/unictype/combining-class-all: New file.
21787
21788         Tests for module 'unictype/combining-class-byname'.
21789         * modules/unictype/combining-class-byname-tests: New file.
21790         * tests/unictype/test-combiningclass_byname.c: New file.
21791
21792         New module 'unictype/combining-class-byname'.
21793         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
21794         * lib/unictype/combiningclass_byname.c: New file.
21795         * lib/unictype/combiningclass_byname.gperf: New file.
21796         * modules/unictype/combining-class-byname: New file.
21797
21798         Tests for module 'unictype/combining-class-longname'.
21799         * modules/unictype/combining-class-longname-tests: New file.
21800         * tests/unictype/test-combiningclass_longname.c: New file.
21801
21802         New module 'unictype/combining-class-longname'.
21803         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
21804         * lib/unictype/combiningclass_longname.c: New file.
21805         * modules/unictype/combining-class-longname: New file.
21806
21807         Tests for module 'unictype/combining-class-name'.
21808         * modules/unictype/combining-class-name-tests: New file.
21809         * tests/unictype/test-combiningclass_name.c: New file.
21810
21811         New module 'unictype/combining-class-name'.
21812         * lib/unictype.in.h (uc_combining_class_name): New declaration.
21813         * lib/unictype/combiningclass_name.c: New file.
21814         * modules/unictype/combining-class-name: New file.
21815
21816 2011-03-25  Bruno Haible  <bruno@clisp.org>
21817
21818         unictype/combining-class: Rename source files.
21819         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
21820         of unictype/combining.h.
21821         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
21822         Update.
21823         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
21824         * modules/unictype/combining-class (Description): Fix.
21825         (Files, Makefile.am): Update.
21826         * tests/unictype/test-combiningclass.c: Renamed from
21827         tests/unictype/test-combining.c.
21828         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
21829
21830 2011-03-25  Bruno Haible  <bruno@clisp.org>
21831
21832         unictype: Update list of canonical combining classes.
21833         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
21834
21835 2011-03-25  Bruno Haible  <bruno@clisp.org>
21836
21837         unictype/category-byname: Recognize long names as well.
21838         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
21839         a long name.
21840         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
21841         unictype/categ_byname.h.
21842         (UC_CATEGORY_INDEX_*): New enumeration values.
21843         (uc_general_category_byname): Use uc_general_category_lookup and
21844         convert from index to value.
21845         * lib/unictype/categ_byname.gperf: New file.
21846         * modules/unictype/category-byname (Files): Add
21847         lib/unictype/categ_byname.gperf.
21848         (Depends-on): Add gperf.
21849         (Makefile.am): Add rule for generating unictype/categ_byname.h.
21850         * tests/unictype/test-categ_byname.c (main): Test the recognition of
21851         long names.
21852
21853         Tests for module 'unictype/category-longname'.
21854         * modules/unictype/category-longname-tests: New file.
21855         * tests/unictype/test-categ_longname.c: New file.
21856
21857         New module 'unictype/category-longname'.
21858         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
21859         * lib/unictype/categ_longname.c: New file.
21860         * modules/unictype/category-longname: New file.
21861         * modules/unictype/category-all (Depends-on): Add it.
21862
21863 2011-03-25  Bruno Haible  <bruno@clisp.org>
21864
21865         Tests for module 'unictype/category-LC'.
21866         * modules/unictype/category-LC-tests: New file.
21867         * tests/unictype/test-categ_LC.c: New file, automatically generated.
21868
21869         New module 'unictype/category-LC'.
21870         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
21871         (UC_CATEGORY_LC): New declaration.
21872         (UC_CASED_LETTER): New macro.
21873         * lib/gen-uni-tables.c (is_category_LC): New function.
21874         (output_categories): Also handle category LC.
21875         (UC_CATEGORY_MASK_LC): New enumeration value.
21876         (general_category_byname): Also handle category LC.
21877         * lib/unictype/categ_LC.c: New file.
21878         * lib/unictype/categ_LC.h: New file, automatically generated.
21879         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
21880         category LC.
21881         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
21882         * modules/unictype/category-LC: New file.
21883         * modules/unictype/category-byname (Depends-on): Add
21884         unictype/category-LC.
21885         * modules/unictype/category-all (Depends-on): Likewise.
21886
21887 2011-03-25  Eric Blake  <eblake@redhat.com>
21888
21889         xmalloc: revert yesterday's regression
21890         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
21891         realloc's underlying behavior (allowing allocation of zero-size
21892         objects, especially if malloc-gnu is also in use).
21893
21894 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
21895
21896         maint.mk: add missing version to VC-tag
21897         * top/maint.mk: git tag was missing actual tag name; add it.
21898
21899         valgrind: do leak checking, and exit with code 1 on error (not 0)
21900         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
21901         to VALGRIND.
21902
21903 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
21904
21905         posix-modules: say what it does.
21906         * posix-modules: Add a line to the --help output saying what it does.
21907
21908 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
21909
21910         xmalloc: Do not leak if underlying realloc is C99 compatible.
21911         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
21912         This avoids a leak on C99-based systems.  See
21913         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
21914
21915 2011-03-24  Eric Blake  <eblake@redhat.com>
21916
21917         realloc: document portability problem
21918         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
21919         passing 0 size to realloc.
21920
21921 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
21922
21923         doc: update users.txt
21924         * users.txt: Add cvsps, tmpwatch
21925
21926 2011-03-23  Matt Rice  <ratmice@gmail.com>
21927
21928         doc: update users.txt
21929         * users.txt: Add gdb.
21930
21931 2011-03-23  Jim Meyering  <meyering@redhat.com>
21932
21933         doc: update users.txt
21934         Looking through matches up to the following URL (there are still
21935         several more pages), I found several projects that use gnulib:
21936         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
21937         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
21938         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
21939
21940 2011-03-22  Bruno Haible  <bruno@clisp.org>
21941
21942         unictype/bidi*: Rename functions.
21943         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
21944         uc_bidi_class, uc_is_bidi_class): New declarations.
21945         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
21946         uc_bidi_category_byname.
21947         (uc_bidi_category_byname): New function.
21948         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
21949         u_bidi_category_name.
21950         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
21951         (uc_bidi_category_name): New function.
21952         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
21953         uc_bidi_category.
21954         (uc_bidi_category): New function.
21955         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
21956         uc_is_bidi_category. Invoke uc_bidi_class.
21957         (uc_is_bidi_category): New function.
21958         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
21959         instead of uc_bidi_category_byname.
21960         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
21961         instead of uc_bidi_category_name.
21962         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
21963         uc_bidi_category.
21964         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
21965         instead of uc_is_bidi_category.
21966
21967 2011-03-21  Bruno Haible  <bruno@clisp.org>
21968
21969         New module 'unictype/joininggroup-all'.
21970         * modules/unictype/joininggroup-all: New file.
21971
21972         Tests for module 'unictype/joininggroup-of'.
21973         * modules/unictype/joininggroup-of-tests: New file.
21974         * tests/unictype/test-joininggroup_of.c: New file.
21975         * tests/unictype/test-joininggroup_of.h: New file, automatically
21976         generated by gen-uni-tables.
21977
21978         New module 'unictype/joininggroup-of'.
21979         * modules/unictype/joininggroup-of: New file.
21980         * lib/unictype/joininggroup_of.c: New file.
21981         * lib/unictype/joininggroup_of.h: New file, automatically generated by
21982         gen-uni-tables.
21983
21984         Tests for module 'unictype/joininggroup-byname'.
21985         * modules/unictype/joininggroup-byname-tests: New file.
21986         * tests/unictype/test-joininggroup_byname.c: New file.
21987
21988         New module 'unictype/joininggroup-byname'.
21989         * modules/unictype/joininggroup-byname: New file.
21990         * lib/unictype/joininggroup_byname.c: New file.
21991         * lib/unictype/joininggroup_byname.gperf: New file.
21992
21993         Tests for module 'unictype/joininggroup-name'.
21994         * modules/unictype/joininggroup-name-tests: New file.
21995         * tests/unictype/test-joininggroup_name.c: New file.
21996
21997         New module 'unictype/joininggroup-name'.
21998         * modules/unictype/joininggroup-name: New file.
21999         * lib/unictype/joininggroup_name.c: New file.
22000         * lib/unictype/joininggroup_name.h: New file.
22001
22002         New module 'unictype/joiningtype-all'.
22003         * modules/unictype/joiningtype-all: New file.
22004
22005         Tests for module 'unictype/joiningtype-of'.
22006         * modules/unictype/joiningtype-of-tests: New file.
22007         * tests/unictype/test-joiningtype_of.c: New file.
22008         * tests/unictype/test-joiningtype_of.h: New file, automatically
22009         generated by gen-uni-tables.
22010
22011         New module 'unictype/joiningtype-of'.
22012         * modules/unictype/joiningtype-of: New file.
22013         * lib/unictype/joiningtype_of.c: New file.
22014         * lib/unictype/joiningtype_of.h: New file, automatically generated by
22015         gen-uni-tables.
22016
22017         Tests for module 'unictype/joiningtype-byname'.
22018         * modules/unictype/joiningtype-byname-tests: New file.
22019         * tests/unictype/test-joiningtype_byname.c: New file.
22020
22021         New module 'unictype/joiningtype-byname'.
22022         * modules/unictype/joiningtype-byname: New file.
22023         * lib/unictype/joiningtype_byname.c: New file.
22024
22025         Tests for module 'unictype/joiningtype-name'.
22026         * modules/unictype/joiningtype-name-tests: New file.
22027         * tests/unictype/test-joiningtype_name.c: New file.
22028
22029         New module 'unictype/joiningtype-name'.
22030         * modules/unictype/joiningtype-name: New file.
22031         * lib/unictype/joiningtype_name.c: New file.
22032
22033         unictype: Add support for Arabic shaping properties.
22034         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
22035         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
22036         declarations.
22037         (UC_JOINING_GROUP_*): New enumeration values.
22038         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
22039         declarations.
22040         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
22041         (unicode_joining_type): New variable.
22042         (UC_JOINING_GROUP_*): New enumeration values.
22043         (unicode_joining_group): New variable.
22044         (fill_arabicshaping, joining_type_as_c_identifier,
22045         output_joining_type_test, output_joining_type,
22046         joining_group_as_c_identifier, output_joining_group_test,
22047         output_joining_group): New functions.
22048         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
22049         fill_arabicshaping and output_joining_type_test, output_joining_type,
22050         output_joining_group_test, output_joining_group.
22051         Reported by Simon Josefsson.
22052
22053 2011-03-21  Jim Meyering  <meyering@redhat.com>
22054
22055         strftime: fix a bug in yesterday's change
22056         * lib/strftime.c (add): Accommodate width's initial value of -1.
22057         Otherwise, nstrftime would copy uninitialized data into
22058         the result buffer.
22059
22060 2011-03-21  Jim Meyering  <meyering@redhat.com>
22061
22062         tests: add strftime-tests module
22063         * tests/test-strftime.c: New file.
22064         * modules/strftime-tests: New module.
22065
22066 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22067
22068         strftime: don't assume a byte count fits in 'int'
22069         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
22070         found this problem by static analysis, using gcc -Wstrict-overflow
22071         (GCC 4.5.2, x86-64).  This reported an optimization that depended
22072         on an integer overflow having undefined behavior, but it turns out
22073         that the argument is a size, which might not fit in 'int' anyway,
22074
22075 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22076
22077         stdio: don't require ignore_value around fwrite
22078
22079         This patch works around libc bug 11959
22080         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
22081         Without this patch, applications must often write
22082         ignore_value (fwrite (...)) even though the ignore_value is
22083         not helpful here.  It's common to write many objects, using
22084         fwrite/printf/etc., and then use ferror to detect output error.
22085
22086         I considered making this patch optional, but decided against it,
22087         because libc is obviously being inconsistent here: there is no
22088         reason libc should insist that user code must inspect fwrite
22089         return's value without also insisting that it inspect printf's,
22090         putchar's, etc.  If user code wants to have a strict style where
22091         all these functions' values are checked (so that ferror need not
22092         be checked), we could add support for that style in a new gnulib
22093         module, but in the meantime it's better to be consistent and to
22094         support common usage.
22095
22096         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
22097         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
22098         that we are compiling in checking mode, and if not C++, and
22099         if not already wrapping fwrite for some other reason.
22100         (fwrite): #define to rpl_fwrite if the latter is defined.
22101
22102 2011-03-20  Bruno Haible  <bruno@clisp.org>
22103
22104         verror: Fix compilation error introduced on 2011-02-13.
22105         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
22106         instead of __attribute__.
22107         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22108
22109 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22110             Bruno Haible  <bruno@clisp.org>
22111
22112         socklen: do not depend on sys_socket
22113         While trying to modify Emacs to use gnulib's socklen module,
22114         I discovered a circular dependency: socklen depends on sys_socket
22115         and vice versa.  Emacs can use socklen, but it does not need
22116         sys_socket because it has its own substitute for sys/socket.h.
22117         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
22118         gl_TYPE_SOCKLEN_T.
22119         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
22120         gl_PREREQ_SYS_H_SOCKET.
22121         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
22122         gl_PREREQ_SYS_H_SOCKET.
22123         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
22124         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
22125         * modules/socklen (Depends-on): Do not depend on sys_socket.
22126         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
22127
22128 2011-03-20  Jim Meyering  <meyering@redhat.com>
22129
22130         maint.mk: sort file names *after* new transformation
22131         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
22132         prefix would have led to an unwarranted failure in GNU parted.
22133         Sort after that transformation.
22134
22135 2011-03-19  Jim Meyering  <meyering@redhat.com>
22136
22137         maint.mk: fix po-file syntax-check rule
22138         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
22139         Patch by Bruno Haible.
22140
22141 2011-03-19  Bruno Haible  <bruno@clisp.org>
22142
22143         socklen: Update comment.
22144         * m4/socklen.m4: Update comment about platforms.
22145
22146 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22147             Bruno Haible  <bruno@clisp.org>
22148
22149         inet_ntop, inet_pton: Simplify.
22150         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
22151         documented to provide socklen_t and we already depend on sys_socket.
22152         * modules/inet_pton (Depends-on): Likewise.
22153         * lib/arpa_inet.in.h: Adjust comment.
22154
22155 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22156             Bruno Haible  <bruno@clisp.org>
22157
22158         netdb: Simplify.
22159         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
22160         documented to provide socklen_t and we already depend on sys_socket.
22161         * lib/netdb.in.h: Adjust comment.
22162
22163 2011-03-19  Bruno Haible  <bruno@clisp.org>
22164
22165         sys_socket, netdb: Document problem with socklen_t.
22166         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
22167         platforms.
22168         * doc/posix-headers/netdb.texi: Likewise.
22169
22170 2011-03-18  Eric Blake  <eblake@redhat.com>
22171
22172         maint.mk: let po check work in VPATH build
22173         * top/maint.mk (po_file): Allow cfg.mk override.
22174         (sc_po_check): Allow VPATH use.
22175         Reported by Jiri Denemark.
22176
22177 2011-03-16  Jim Meyering  <meyering@redhat.com>
22178
22179         maint.mk: allow fine-grained syntax-check exclusion via Make variables
22180         Before, you would have had to create one .x-sc_ file per rule in order
22181         to exempt offending files.  Now, you may instead use a Make variable --
22182         usually defined in cfg.mk -- whose name identifies the affected rule.
22183         * top/maint.mk (_sc_excl): Define.
22184         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
22185         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
22186
22187 2011-03-13  Bruno Haible  <bruno@clisp.org>
22188
22189         ignore-value tests: Avoid warnings.
22190         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
22191         empty for gcc < 3.4.
22192
22193 2011-03-13  Bruno Haible  <bruno@clisp.org>
22194
22195         passfd: Fix link error on Solaris.
22196         * modules/passfd (Description): Correct.
22197         (Depends-on): Add socketlib.
22198         (Link): New section.
22199         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
22200
22201 2011-03-13  Bruno Haible  <bruno@clisp.org>
22202
22203         passfd: Fix link error on AIX 5.2.
22204         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
22205
22206 2011-03-13  Bruno Haible  <bruno@clisp.org>
22207
22208         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
22209         * lib/sys_socket.in.h: Include <stddef.h>.
22210         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
22211         CMSG_FIRSTHDR. Remove unused variable.
22212
22213 2011-03-13  Bruno Haible  <bruno@clisp.org>
22214
22215         passfd: Fix compilation error on OpenBSD.
22216         * lib/passfd.c: Include <sys/uio.h>.
22217
22218 2011-03-13  Bruno Haible  <bruno@clisp.org>
22219
22220         passfd test: Fix warnings.
22221         * tests/test-passfd.c: Include <sys/wait.h>.
22222         (main): Fix typo.
22223
22224 2011-03-13  Bruno Haible  <bruno@clisp.org>
22225
22226         passfd module, part 4, tweaks.
22227         * tests/test-passfd.c: Reorder includes.
22228         (main): Fix perror and printf calls.
22229
22230 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22231
22232         passfd module, part 4.
22233         * modules/passfd-tests: New file.
22234         * tests/test-passfd.c: New file.
22235
22236 2011-03-13  Jim Meyering  <meyering@redhat.com>
22237
22238         Makefile: rely on GNU make; derive syntax-check rule names
22239         Rather than requiring that each sc_ rule be listed as a dependent
22240         of "check", use features of GNU make to derive the list.
22241         * Makefile (syntax-check-rules): Define.
22242         (check): Depend on the new variable, not the hard-coded list.
22243
22244 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
22245             Bruno Haible  <bruno@clisp.org>
22246
22247         passfd module, part 3.
22248         * lib/passfd.h (recvfd): Add a flags argument.
22249         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
22250         (recvfd): Add a flags argument.
22251         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
22252         exists.
22253         * modules/passfd (Depends-on): Add cloexec.
22254         Suggested by Eric Blake.
22255
22256 2011-03-13  Bruno Haible  <bruno@clisp.org>
22257
22258         passfd module, part 2, tweaks.
22259         * modules/passfd (Files): Reorder.
22260         (Depends-on): Remove errno.
22261         (Include): Remove <sys/socket.h>, <sys/un.h>.
22262         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
22263         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
22264         specification header. Include <sys/socket.h> always. Don't include
22265         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
22266         (sendfd): Clarify that it sets errno when it fails.
22267         (recvfd): Fix specification.
22268
22269 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22270
22271         passfd module, part 2.
22272         * modules/passfd: New file.
22273         * lib/passfd.h: New file.
22274         * lib/passfd.c: New file.
22275
22276 2011-03-12  Bruno Haible  <bruno@clisp.org>
22277
22278         wcswidth, mbswidth: Avoid integer overflow.
22279         * lib/wcswidth.c: Include <limits.h>.
22280         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
22281         * lib/mbswidth.c: Include <limits.h>.
22282         (mbsnwidth): Avoid 'int' overflow.
22283         Reported by Jim Meyering.
22284
22285 2011-03-12  Bruno Haible  <bruno@clisp.org>
22286
22287         futimens, utimensat: Avoid endless recursion on Solaris 10.
22288         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
22289         Solaris.
22290         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
22291         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
22292
22293 2011-03-11  Jim Meyering  <meyering@redhat.com>
22294
22295         maint.mk: relax a regexp to accommodate other formatting styles
22296         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
22297         between "ngettext" and the following "(".
22298
22299 2011-03-11  Pádraig Brady <P@draigBrady.com>
22300
22301         maint.mk: suppress a false positive warning
22302         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
22303         diagnostics are marked with ngettext.
22304
22305 2011-03-10  Eric Blake  <eblake@redhat.com>
22306
22307         wchar: add explicit dependencies, for Tru64
22308         * modules/mbmemcasecoll (Depends-on): Add wchar.
22309         * modules/mbtowc (Depends-on): Likewise.
22310         * modules/vasnprintf (Depends-on): Likewise.
22311         * modules/unistdio/u-printf-args (Depends-on): Likewise.
22312         * modules/wctomb (Depends-on): Likewise.
22313         Reported by Peter O'Gorman.
22314
22315 2011-03-08  Bruno Haible  <bruno@clisp.org>
22316
22317         passfd module, part 1, tweaks.
22318         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
22319         Improve indentation. Improve AC_MSG_CHECKING messages.
22320         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
22321         gl_SOCKET_FAMILIES.
22322
22323 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22324
22325         passfd module, part 1.
22326         * m4/afunix.m4: New file.
22327         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
22328         sockets.
22329
22330 2011-03-08  Bruno Haible  <bruno@clisp.org>
22331
22332         regex-quote: New API.
22333         * lib/regex-quote.h: Include <stdbool.h>.
22334         (struct regex_quote_spec): New type.
22335         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22336         New declarations.
22337         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22338         'const struct regex_quote_spec *' argument.
22339         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
22340         (pcre_special): New constant.
22341         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22342         New functions.
22343         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22344         'const struct regex_quote_spec *' argument.
22345         * modules/regex-quote (Depends-on): Add stdbool.
22346         * tests/test-regex-quote.c (check): Update for new API. Add test for
22347         anchored results.
22348         * NEWS: Mention the API change.
22349         Reported by Reuben Thomas and Eric Blake.
22350
22351 2011-03-06  Bruno Haible  <bruno@clisp.org>
22352
22353         regex-quote: Fix creation of POSIX extended regular expressions.
22354         * lib/regex-quote.c (ere_special): Add grouping and alternation
22355         operators.
22356
22357 2011-03-05  Bruno Haible  <bruno@clisp.org>
22358
22359         doc: Improve doc regarding autopoint vs. gnulib.
22360         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
22361         disable autopoint while running autoreconf.
22362         Suggested by Ralf Wildenhues.
22363
22364 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22365
22366         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
22367         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
22368
22369 2011-03-03  Bruce Korb  <bkorb@gnu.org>
22370
22371         parse-duration: remove xalloc.h dependency
22372         * lib/parse-duration.c (parse_period): handle NULL return from
22373         strdup instead of calling xstrdup().
22374         * modules/parse-duration: remove "xalloc" dependency
22375
22376 2011-03-03  Matthew Booth  <mbooth@redhat.com>
22377
22378         bootstrap: honor m4_base when running aclocal
22379         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
22380
22381 2011-03-02  Jim Meyering  <meyering@redhat.com>
22382
22383         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
22384         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
22385         on request from Matt Booth.
22386
22387 2011-03-01  Eric Blake  <eblake@redhat.com>
22388
22389         test-link: work on Hurd
22390         * tests/test-link.h (test_link): Hurd rejects linking directories
22391         with EISDIR instead of the POSIX-mandated EPERM.
22392
22393 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
22394
22395         stdio: simplify by moving files to printf-posix, sigpipe
22396         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
22397         since this symbol is needed only if printf is replaced.
22398         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
22399         Require gl_ASM_SYMBOL_PREFIX.
22400         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
22401         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
22402         (Depends-on): Add 'raise'.
22403         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
22404         * modules/stdio (Files): Remove lib/stdio-write.c,
22405         m4/asm-underscore.m4.
22406         (Depends-on): Remove 'raise'.
22407
22408         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
22409         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
22410         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
22411         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
22412
22413 2011-02-28  Bruno Haible  <bruno@clisp.org>
22414
22415         localcharset: Assume ANSI C behaviour of free().
22416         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
22417         calling free().
22418         Suggested by Simon Josefsson <simon@josefsson.org>.
22419
22420 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
22421             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
22422             Bruno Haible  <bruno@clisp.org>  (tiny change)
22423
22424         On Cygwin, use /proc file system instead of win32 API.
22425         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
22426         Win32 file names.
22427         (DllMain): Simplify by removing Cygwin specific code.
22428         (find_shared_library_fullname): Use Linux specific implementation also
22429         for Cygwin.
22430         (get_shared_library_fullname): Update accordingly.
22431         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
22432         Win32 file names.
22433         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
22434         Cygwin specific code.
22435
22436 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
22437             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
22438
22439         Fix OpenMP flag detection for various Fortran compilers.
22440         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
22441         OpenMP-conditional compilation construct, to force compile
22442         failure with missing OpenMP flag.
22443         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
22444
22445 2011-02-25  Eric Blake  <eblake@redhat.com>
22446
22447         strstr: expand test coverage
22448         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
22449         compilation.
22450         * tests/test-memmem.c (main): Duplicate tests.
22451         * tests/test-strcasestr.c (main): Likewise.
22452         * tests/test-c-strcasestr.c (main): Likewise.
22453
22454 2011-02-25  Jim Meyering  <meyering@redhat.com>
22455
22456         maint.mk: detect missing-NL-at-EOF, too
22457         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
22458         it also detects when a file lacks a newline at EOF.
22459         (require_exactly_one_NL_at_EOF_): Renamed from
22460         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
22461         since people may well have .x-sc_... file names tied to the
22462         existing name.  Suggested by Eric Blake.
22463
22464 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
22465
22466         dirname: move m4/dos.m4 functionality into lib/dosname.h
22467
22468         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
22469         extracts symbols from it, puts them into config.h; but it's much
22470         easier to use the symbols directly.  filename.h already does this,
22471         but it disagrees with dos.m4 in some respects.  This patch
22472         introduces a different include file dosname.h that packages up
22473         dos.m4, and then later we can work on merging filename.h and
22474         dosname.h.  Applications that need only the easy-to-configure
22475         symbols should consider including dosname.h rather than dirname.h.
22476         * NEWS: Mention incompatible changes.
22477         * m4/dos.m4: Remove.
22478         * lib/dosname.h, modules/dosname: New files.
22479         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
22480         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
22481         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
22482         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
22483         Include dosname.h, not dirname.h.
22484         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
22485         Include dosname.h, for definitions of symbols like ISSLASH
22486         that used to be in config.h.
22487         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
22488         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22489         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22490         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22491         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
22492         * modules/rmdir (Files): Likewise.
22493         * modules/stat (Files): Likewise.
22494         * modules/unlink (Files): Likewise.
22495         * modules/dirname-lgpl (Depends-on): Add dosname.
22496         * modules/lstat (Depends-on): Likewise.
22497         * modules/openat (Depends-on): Likewise.
22498         * modules/rmdir (Depends-on): Likewise.
22499         * modules/savewd (Depends-on): Likewise.
22500         * modules/stat (Depends-on): Likewise.
22501         * modules/unlink (Depends-on): Likewise.
22502         * modules/openat (Depends-on): Remove dirname-lgpl.
22503         * modules/savewd (Depends-on): Likewise.
22504         * tests/test-dirname.c: Do not use removed symbols like
22505         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
22506         the remaining symbols, e.g., ISSLASH ('\\').
22507
22508 2011-02-25  Eric Blake  <eblake@redhat.com>
22509
22510         strstr: revert patches that introduced bug and pessimization
22511         * lib/str-two-way.h: Add another reference.
22512         (two_way_short_needle, two_way_long_needle): Revert changes from
22513         2011-02-24; they pessimize search speed.
22514         (critical_factorization): Partially revert changes from
22515         2010-06-22; they violate the requirement that the left half of the
22516         needle be smaller than the period of the needle.
22517
22518 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22519
22520         filenamecat: remove unnecessary dependency on dirname-lgpl
22521         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
22522         is no direct dependency, just an indirect one via filenamecat-lgpl.
22523
22524         remove: remove unnecessary use of m4/dos.m4
22525         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
22526         * modules/remove (FILES): Remove m4/dos.m4.
22527
22528         * lib/openat-proc.c: Don't include dirname.h; not needed.
22529
22530         backupfile: remove unnecessary use of m4/dos.m4
22531         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
22532         of its symbols are used by the backupfile code.  backupfile.c does
22533         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
22534         for the rare case of programs that want all their backup file
22535         names to live within 8+3 limits, and dos.m4 doesn't address that.
22536         * modules/backupfile (Files): Remove m4/dos.m4.
22537
22538 2011-02-24  Jim Meyering  <meyering@redhat.com>
22539
22540         strstr: fix a bug whereby strstr would mistakenly return NULL
22541         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
22542         in period calculation.
22543         (two_way_long_needle): Likewise.
22544         The original problem was reported by Mike Stump in
22545         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
22546         Ralf Wildenhues provided the short needle and haystack.
22547         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
22548         Add a more involved test to trigger the bug in two_way_long_needle.
22549
22550 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22551
22552         gnulib-tool: remove use of bold display in help screen
22553         * gnulib-tool (func_usage): Do not use bold display anymore in the
22554         help screen.  That was just meant to be a temporary emphasis for a
22555         backward-incompatible change.
22556
22557 2011-02-23  Bruno Haible  <bruno@clisp.org>
22558
22559         Fix misindentation of preprocessor directives.
22560         * lib/argp-namefrob.h: Reindent preprocessor directives.
22561         * lib/getopt_int.h (struct _getopt_data): Likewise.
22562         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
22563         * lib/vasnprintf.c (decode_long_double): Likewise.
22564         * tests/test-argmatch.c: Insert blank lines, for clarity.
22565         * tests/test-exclude.c: Likewise.
22566
22567 2011-02-22  Bruno Haible  <bruno@clisp.org>
22568
22569         ioctl: Fix for MacOS X in 64-bit mode.
22570         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
22571         value.
22572         Suggested by Eric Blake.
22573         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
22574
22575 2011-02-22  Jim Meyering  <meyering@redhat.com>
22576
22577         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
22578         * Makefile (sc_cpp_indent_check): Don't limit the check to files
22579         in lib/.
22580
22581 2011-02-22  Eric Blake  <eblake@redhat.com>
22582
22583         maint: avoid any CDPATH issue
22584         * Makefile (sc_cpp_indent_check): Anchor cd argument.
22585
22586         maint: adjust cpp indentation for my modules, as well
22587         * Makefile (sc_cpp_indent_check): Add my name.
22588         * lib/fbufmode.c: Filter through cppi.
22589         * lib/fpurge.c: Likewise.
22590         * lib/freadable.c: Likewise.
22591         * lib/freading.c: Likewise.
22592         * lib/fwritable.c: Likewise.
22593         * lib/fwriting.c: Likewise.
22594         * lib/sigaction.c: Likewise.
22595
22596 2011-02-22  Jim Meyering  <meyering@redhat.com>
22597
22598         maint: adjust cpp indentation to reflect nesting depth
22599         I.e., in a block of code that begins with an unnested "#if",
22600         put one space between the "#" in column 1 and following token.
22601         For example,
22602         -#include <sys/vfs.h>
22603         +# include <sys/vfs.h>
22604         Do this only in .c files that are part of a module I maintain.
22605         * lib/linkat.c: Filter through cppi.
22606         * lib/nanosleep.c: Likewise.
22607         * lib/openat.c: Likewise.
22608         * lib/openat-die.c: Likewise.
22609         * lib/dup3.c: Likewise.
22610         * lib/fchownat.c: Likewise.
22611         * lib/flock.c: Likewise.
22612         * lib/fsync.c: Likewise.
22613         * lib/fts.c: Likewise.
22614         * lib/getpass.c: Likewise.
22615         * lib/gettimeofday.c: Likewise.
22616         * lib/userspec.c: Likewise.
22617         * Makefile (sc_cpp_indent_check): New rule, to check this.
22618
22619 2011-02-22  Bruno Haible  <bruno@clisp.org>
22620
22621         New module 'wctomb'.
22622         * lib/stdlib.in.h (wctomb): New declaration.
22623         * lib/wctomb.c: New file.
22624         * lib/wctomb-impl.h: New file.
22625         * m4/wctomb.m4: New file.
22626         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
22627         REPLACE_WCTOMB.
22628         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
22629         REPLACE_WCTOMB.
22630         * modules/wctomb: New file.
22631         * tests/test-stdlib-c++.cc: Test signature of wctomb.
22632         * doc/posix-functions/wctomb.texi: Mention the new module.
22633         * modules/wctob (Depends-on): Add wctomb.
22634
22635 2011-02-22  Bruno Haible  <bruno@clisp.org>
22636
22637         New module 'mbtowc'.
22638         * lib/stdlib.in.h (mbtowc): New declaration.
22639         * lib/mbtowc.c: New file.
22640         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
22641         * m4/mbtowc.m4: New file.
22642         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
22643         REPLACE_MBTOWC.
22644         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
22645         REPLACE_MBTOWC.
22646         * modules/mbtowc: New file.
22647         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
22648         * doc/posix-functions/mbtowc.texi: Mention the new module.
22649         * modules/btowc (Depends-on): Add mbtowc.
22650
22651 2011-02-22  Bruno Haible  <bruno@clisp.org>
22652
22653         wcrtomb: Add more tests for native Windows platforms.
22654         * tests/test-wcrtomb-w32-1.sh: New file.
22655         * tests/test-wcrtomb-w32-2.sh: New file.
22656         * tests/test-wcrtomb-w32-3.sh: New file.
22657         * tests/test-wcrtomb-w32-4.sh: New file.
22658         * tests/test-wcrtomb-w32-5.sh: New file.
22659         * tests/test-wcrtomb-w32.c: New file.
22660         * modules/wcrtomb-tests (Files): Add them.
22661         (Makefile.am): Arrange to run these tests.
22662         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
22663         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
22664
22665 2011-02-20  Bruno Haible  <bruno@clisp.org>
22666
22667         wcrtomb: Enhance test.
22668         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
22669
22670 2011-02-20  Bruno Haible  <bruno@clisp.org>
22671
22672         mbrtowc: Tiny optimization.
22673         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
22674
22675 2011-02-20  Jim Meyering  <meyering@redhat.com>
22676
22677         test-exclude.c: remove unmatched #endif
22678         * tests/test-exclude.c: Remove stray #endif, left over from
22679         the change of a week ago.
22680
22681 2011-02-19  Jim Meyering  <meyering@redhat.com>
22682
22683         git-version-gen: skip "-dirty" check when appropriate
22684         * build-aux/git-version-gen: Don't run any git commands when the
22685         version string comes from .tarball-version.  Prior to this, we
22686         would run git update-index --refresh even from a just-unpacked
22687         tarball directory, and that could affect a .git/ directory in a
22688         parent of the build directory.  Reported by Mike Frysinger.
22689
22690 2011-02-19  Bruno Haible  <bruno@clisp.org>
22691
22692         unictype/property-byname: Reduce the size of the 'data' segment.
22693         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
22694
22695 2011-02-19  Bruno Haible  <bruno@clisp.org>
22696
22697         unictype/scripts: Reduce the size of the 'data' segment.
22698         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
22699         '%pic'.
22700         * lib/unictype/scripts_byname.gperf: Regenerated.
22701
22702 2011-02-19  Bruno Haible  <bruno@clisp.org>
22703
22704         stdint: Update documentation.
22705         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
22706
22707 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
22708
22709         stdint: omit redundant check for wchar.h
22710         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
22711         always tests whether wchar.h exists, so remove the now-redundant test.
22712
22713 2011-02-18  Bruno Haible  <bruno@clisp.org>
22714
22715         stdint: Cut dependency to module 'wchar'.
22716         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
22717         include the necessary prerequisites.
22718         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
22719         * modules/stdint (Depends-on): Remove wchar.
22720         (Makefile.am): Substitute HAVE_WCHAR_H.
22721         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
22722
22723 2011-02-18  Eric Blake  <eblake@redhat.com>
22724
22725         longlong: skip, rather than fail, on cross-compilation
22726         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
22727         when cross-compiling; regression from 2011-02-16.
22728
22729 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22730
22731         * NEWS: Mention 2011-02-08 change to stdlib.
22732
22733 2011-02-17  Bruno Haible  <bruno@clisp.org>
22734
22735         getloadavg: Add comments about platforms.
22736         * m4/getloadavg.m4: Add comment.
22737         * lib/getloadavg.c: Likewise.
22738
22739 2011-02-17  Bruno Haible  <bruno@clisp.org>
22740
22741         getloadavg: Fix link error on Solaris 2.6.
22742         * modules/getloadavg (Link): New section.
22743         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
22744         linking test-getloadavg.
22745         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
22746         getloadavg.
22747
22748 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22749
22750         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
22751         It was 'int', but this doesn't match the IRIX 6.5 manual.
22752         Suggested by Bruno Haible in
22753         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
22754
22755 2011-02-17  Bruno Haible  <bruno@clisp.org>
22756
22757         havelib: Fix comments.
22758         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
22759         change.
22760
22761 2011-02-17  Bruno Haible  <bruno@clisp.org>
22762
22763         havelib: Update config.rpath.
22764         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
22765
22766 2011-02-17  Bruno Haible  <bruno@clisp.org>
22767
22768         getloadavg test: Add some plausibility checks.
22769         * tests/test-getloadavg.c (check_avg): Print a warning when the value
22770         is improbable.
22771
22772 2011-02-16  Eric Blake  <eblake@redhat.com>
22773
22774         maintainer-makefile: make syntax-check a no-op from tarballs
22775         * top/maint.mk (no-vc-detected): New rule.
22776         (local-checks-available): Use it to avoid hanging if someone tries
22777         'make syntax-check' from a tarball.  Also append to any non-syntax
22778         checks already defined in cfg.mk.
22779
22780 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
22781
22782         longlong: tune, particularly for common case of c99
22783
22784         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
22785         or running anything if c99, or if unsigned long long int does not
22786         work.  In either case, we know the answer without further tests.
22787         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
22788         it at most once, and use its results for both long long int and
22789         unsigned long long int.  This is more likely to be efficient in
22790         the common case where the program wants to check for both long
22791         long int and unsigned long long int.
22792         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
22793         since the answer is already known.
22794
22795 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
22796
22797         getloadavg: set errno
22798         * lib/getloadavg.c: Set errno when returning -1.  If no other
22799         error number looks appropriate, set it to ENOSYS if the getloadavg
22800         looks like it can't possibly ever work, ENOTSUP otherwise.
22801         Suggested by Bruno Haible in
22802         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
22803
22804         getloadavg: trim unused parts and speed up 'configure'
22805         * NEWS: Document this.
22806         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
22807         always compiled if getloadavg is absent.
22808         Move test code to ...
22809         * tests/test-getloadavg.c: New file, containing previous
22810         contents of test from lib/getloadavg.c.  It also contains
22811         suggestions by Bruno Haible in
22812         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
22813         * modules/getloadavg-tests: New file.
22814         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
22815         Do tests in the same order as they're needed for getloadavg.c.
22816         Omit setgid-related tests that generate symbols KMEM_GROUP,
22817         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
22818         Do only the tests that are needed to see whether the system has
22819         getloadavg, moving the other tests into ...
22820         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
22821         NLIST_NAME_UNION; nobody should be using it.  Do not define
22822         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
22823         relevant, as the user of this module shouldn't care how getloadavg
22824         is implemented.
22825
22826         getloadavg: omit unused var
22827         * lib/getloadavg.c (getloadavg): Omit unused local variable.
22828
22829 2011-02-15  Jim Meyering  <meyering@redhat.com>
22830
22831         doc: update users.txt
22832         * users.txt: Update iwhd's URL.
22833
22834 2011-02-13  Bruno Haible  <bruno@clisp.org>
22835
22836         Consistent macro naming for macros that use GCC __attribute__.
22837         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
22838         _ATTRIBUTE_NONNULL_.
22839         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
22840         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
22841         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
22842         ATTRIBUTE_DEPRECATED.
22843         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
22844         ATTRIBUTE_NORETURN.
22845         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22846         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22847         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22848         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22849         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
22850         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
22851         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
22852         ATTRIBUTE_SENTINEL.
22853         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
22854         ATTRIBUTE_RETURN_CHECK.
22855         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
22856         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
22857         ATTRIBUTE_NORETURN.
22858         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
22859         Reported by Paul Eggert.
22860
22861 2011-02-13  Bruno Haible  <bruno@clisp.org>
22862
22863         Don't interfere with a program's definition of __attribute__.
22864         * lib/argp.h (__attribute__): Remove definition.
22865         (_GL_ATTRIBUTE_FORMAT): New macro.
22866         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
22867         * lib/argp-fmtstream.h (__attribute__): Remove definition.
22868         (_GL_ATTRIBUTE_FORMAT): New macro.
22869         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
22870         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
22871         GCC 3 or newer.
22872         * lib/error.h (__attribute__): Remove definition.
22873         (_GL_ATTRIBUTE_FORMAT): New macro.
22874         (error, error_at_line): Use it.
22875         * lib/hash.h (__attribute__): Remove definition.
22876         (ATTRIBUTE_WUR): Update definition. Define always.
22877         * lib/openat.h (__attribute__): Remove definition.
22878         (ATTRIBUTE_NORETURN): Update definition. Define always.
22879         * lib/sigpipe-die.h (__attribute__): Remove definition.
22880         (ATTRIBUTE_NORETURN): Update definition. Define always.
22881         * lib/vasnprintf.h (__attribute__): Remove definition.
22882         (_GL_ATTRIBUTE_FORMAT): New macro.
22883         (asnprintf, vasnprintf): Use it.
22884         * lib/xalloc.h (__attribute__): Remove definition.
22885         (ATTRIBUTE_NORETURN): Update definition. Define always.
22886         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
22887         * lib/xmemdup0.h (__attribute__): Remove definition.
22888         (ATTRIBUTE_NORETURN): Update definition. Define always.
22889         * lib/xprintf.h (__attribute__): Remove definition.
22890         (_GL_ATTRIBUTE_FORMAT): New macro.
22891         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
22892         * lib/xstrtol.h (__attribute__): Remove definition.
22893         (ATTRIBUTE_NORETURN): Update definition. Define always.
22894         * lib/xvasprintf.h (__attribute__): Remove definition.
22895         (_GL_ATTRIBUTE_FORMAT): New macro.
22896         (xasprintf, xvasprintf): Use it.
22897         * tests/test-argmatch.c (__attribute__): Remove definition.
22898         (ATTRIBUTE_NORETURN): Update definition. Define always.
22899         * tests/test-exclude.c (__attribute__): Remove definition.
22900         (ATTRIBUTE_NORETURN): Update definition. Define always.
22901         Reported by Paul Eggert.
22902
22903 2011-02-13  Bruno Haible  <bruno@clisp.org>
22904
22905         mbrtowc: Add more tests for native Windows platforms.
22906         * tests/test-mbrtowc-w32-1.sh: New file.
22907         * tests/test-mbrtowc-w32-2.sh: New file.
22908         * tests/test-mbrtowc-w32-3.sh: New file.
22909         * tests/test-mbrtowc-w32-4.sh: New file.
22910         * tests/test-mbrtowc-w32-5.sh: New file.
22911         * tests/test-mbrtowc-w32.c: New file.
22912         * modules/mbrtowc-tests (Files): Add them.
22913         (Makefile.am): Arrange to run these tests.
22914         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
22915         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
22916
22917 2011-02-13  Bruno Haible  <bruno@clisp.org>
22918
22919         mbrtowc: Work around native Windows bug.
22920         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
22921         guess when no suitable locale for testing was found.
22922         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
22923
22924 2011-02-13  Bruno Haible  <bruno@clisp.org>
22925
22926         mbsinit: Work around mingw bug.
22927         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
22928         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
22929         Windows.
22930         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
22931
22932 2011-02-13  Bruno Haible  <bruno@clisp.org>
22933
22934         mbsinit: Don't crash for a NULL argument.
22935         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
22936         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
22937
22938 2011-02-13  Bruno Haible  <bruno@clisp.org>
22939
22940         Don't interfere with a program's definition of __attribute__.
22941         * lib/stdio.in.h (__attribute__): Remove definition.
22942         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
22943         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
22944         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
22945         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
22946         * lib/string.in.h (__attribute__): Remove definition.
22947         Reported by Paul Eggert.
22948
22949 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22950
22951         stdlib: don't get in the way of non-GCC __attribute__
22952         See thread starting at
22953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
22954         Revert previous stdlib change, installing the following instead:
22955         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
22956         to get in the way of a non-GCC compiler that supports __attribute__.
22957         (_GL_ATTRIBUTE_RETURN): New macro.
22958         (_Exit): Use it instead of __attribute__.
22959
22960 2011-02-12  Bruno Haible  <bruno@clisp.org>
22961
22962         quotearg test: Avoid test failure on mingw.
22963         * tests/test-quotearg.sh: Convert the locale identifier from native
22964         Windows syntax to Unix syntax.
22965
22966 2011-02-12  Bruno Haible  <bruno@clisp.org>
22967
22968         setlocale: Prefer gnulib's override over libintl's override.
22969         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
22970         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
22971         GNULIB_defined_setlocale is set.
22972
22973 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22974
22975         stdlib: support non-GCC __attribute__
22976
22977         Fix a serious and tricky problem encountered when attempting to
22978         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
22979         5.5, but it crashed due to memory corruption on Solaris 10 with
22980         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
22981         bits that are otherwise zero.  This tagging is optional inside
22982         Emacs but is preferred and is used when __attribute__ ((__aligned
22983         (8))) works, as it does with both recent-enough GCC and with Sun C
22984         5.11.  However, Sun C 5.11 is not GCC and does not #define
22985         __GNUC__ and __GNUC_MINOR__.
22986
22987         When I added the getloadavg module to Emacs, it brought in
22988         stdlib.in.h, which contained this fragment:
22989
22990            #ifndef __attribute__
22991            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
22992            #  define __attribute__(Spec)   /* empty */
22993            # endif
22994            #endif
22995
22996         When files that include <stdlib.h> were compiled with Sun C 5.11,
22997         the above code disabled __attribute__ ((__aligned (8))), which
22998         caused variables to not be properly aligned, which eventually led
22999         to the pointer corruption mentioned above.  (This was a bit hard
23000         to diagnose, unfortunately.)
23001
23002         Several "#define __attribute__(X) /* empty */" code snippets need
23003         to be eradicated from Gnulib to work with non-GCC compilers that
23004         support __attribute__.  The Autoconf way to do this is to test for
23005         each kind of attribute that we want support for, and selectively
23006         enable that in source code.
23007
23008         Fix this problem just for stdlib.h, by adding a test for the
23009         __noreturn__ attribute, and change stdlib.in.h to use that test
23010         when needed.  This technique can be easily generalized to the
23011         other *.in.h files and attributes, and a similar technique can be
23012         used for *.h and *.c files.  This patch is enough to solve the
23013         problem for Emacs + getloadavg, and I thought I'd publish it for
23014         feedback before undertaking further, similar fixes in other
23015         modules.
23016
23017         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
23018         because it's not needed for stdlib.h.  It merely substitutes the
23019         value directly into stdlib.h.  We may well need to #define it, or
23020         similar symbols, for other modules, but it's nice to also have an
23021         option to not #define it for applications like Emacs that do not
23022         need it.
23023
23024         * lib/stdlib.in.h (__attribute__): Do not #define.
23025         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
23026         be defined only if the _Exit module is also used.
23027         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
23028         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
23029         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
23030         platforms.
23031         * modules/_Exit (Files): Add m4/attribute.m4.
23032         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
23033         * m4/attribute.m4: New file.
23034
23035 2011-02-12  Bruno Haible  <bruno@clisp.org>
23036
23037         wcsrtombs: Work around bug on native Windows.
23038         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
23039         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
23040         instead of len.
23041         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
23042
23043 2011-02-12  Bruno Haible  <bruno@clisp.org>
23044
23045         mbsrtowcs: Work around bug on native Windows.
23046         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
23047         against mingw bug.
23048         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
23049
23050 2011-02-12  Bruno Haible  <bruno@clisp.org>
23051
23052         Avoid setlocale bugs in tests.
23053         * modules/btowc (Dependencies): Add setlocale.
23054         * modules/c-strcase (Dependencies): Likewise.
23055         * modules/mbmemcasecmp (Dependencies): Likewise.
23056         * modules/mbmemcasecoll (Dependencies): Likewise.
23057         * modules/mbrtowc (Dependencies): Likewise.
23058         * modules/mbscasecmp (Dependencies): Likewise.
23059         * modules/mbscasestr (Dependencies): Likewise.
23060         * modules/mbschr (Dependencies): Likewise.
23061         * modules/mbscspn (Dependencies): Likewise.
23062         * modules/mbsinit (Dependencies): Likewise.
23063         * modules/mbsncasecmp (Dependencies): Likewise.
23064         * modules/mbsnrtowcs (Dependencies): Likewise.
23065         * modules/mbspbrk (Dependencies): Likewise.
23066         * modules/mbspcasecmp (Dependencies): Likewise.
23067         * modules/mbsrchr (Dependencies): Likewise.
23068         * modules/mbsrtowcs (Dependencies): Likewise.
23069         * modules/mbsspn (Dependencies): Likewise.
23070         * modules/mbsstr (Dependencies): Likewise.
23071         * modules/nl_langinfo (Dependencies): Likewise.
23072         * modules/quotearg (Dependencies): Likewise.
23073         * modules/unicase/locale-language (Dependencies): Likewise.
23074         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
23075         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
23076         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
23077         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
23078         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
23079         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
23080         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
23081         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
23082         * modules/vasnprintf-posix (Dependencies): Likewise.
23083         * modules/wcrtomb (Dependencies): Likewise.
23084         * modules/wcsnrtombs (Dependencies): Likewise.
23085         * modules/wcsrtombs (Dependencies): Likewise.
23086
23087 2011-02-12  Bruno Haible  <bruno@clisp.org>
23088
23089         setlocale: Workaround native Windows bug.
23090         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
23091         succeeds but sets LC_CTYPE to "C", report a failure.
23092         * tests/test-setlocale2.sh: New file.
23093         * tests/test-setlocale2.c: New file.
23094         * modules/setlocale-tests (Files): Add the new files.
23095         (Makefile.am): Enable test-setlocale2.sh test.
23096         * doc/posix-functions/setlocale.texi: Mention workaround.
23097
23098 2011-02-11  Bruno Haible  <bruno@clisp.org>
23099
23100         Tests for module 'setlocale'.
23101         * modules/setlocale-tests: New file.
23102         * tests/test-setlocale1.sh: New file.
23103         * tests/test-setlocale1.c: New file.
23104
23105         New module 'setlocale'.
23106         * lib/locale.in.h (setlocale): New declaration.
23107         * lib/setlocale.c: New file, based on
23108         gettext/gettext-runtime/intl/setlocale.c.
23109         * m4/setlocale.m4: New file.
23110         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
23111         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
23112         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
23113         REPLACE_SETLOCALE.
23114         * modules/setlocale: New file.
23115         * tests/test-locale-c++.cc: Test the declaration of setlocale.
23116         * doc/posix-functions/setlocale.texi: Mention the new module.
23117
23118 2011-02-11  Bruno Haible  <bruno@clisp.org>
23119
23120         Prepare for locale dependent tests on mingw.
23121         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
23122         because it has the wrong locale encoding.
23123         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
23124         French_France.1252 instead of "fr".
23125         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
23126         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
23127         because it has the wrong locale encoding.
23128         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
23129         native Windows, try Turkish_Turkey.65001.
23130         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
23131         Chinese_China.54936.
23132
23133         Prepare for locale dependent tests on mingw.
23134         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
23135         differently.
23136         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
23137         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
23138         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23139         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23140
23141 2011-02-11  Eric Blake  <eblake@redhat.com>
23142
23143         strptime: avoid compiler warnings
23144         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
23145         compiler warnings about dead code.
23146         Reported by Daniel P. Berrange.
23147
23148 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
23149
23150         doc: update users.txt
23151         * users.txt: Add rcs.
23152
23153 2011-02-10  John W. Eaton  <jwe@gnu.org>
23154
23155         doc: update users.txt
23156         * users.txt: Add octave.
23157
23158 2011-02-10  Jim Meyering  <meyering@redhat.com>
23159
23160         doc: update users.txt
23161         * users.txt: Add iwhd.
23162
23163 2011-02-09  Bruno Haible  <bruno@clisp.org>
23164
23165         gnulib-tool: Make copyright notice adjustment more robust.
23166         * gnulib-tool (func_import): In sed_transform_main_lib_file,
23167         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
23168         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
23169         License".
23170         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
23171
23172 2011-02-06  Bruno Haible  <bruno@clisp.org>
23173
23174         New module 'towctrans'.
23175         * modules/towctrans: New file.
23176         * lib/wctype.in.h (towctrans): New declaration.
23177         * lib/towctrans.c: New file.
23178         * lib/towctrans-impl.h: New file.
23179         * m4/towctrans.m4: New file.
23180         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
23181         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
23182         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
23183         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
23184         * doc/posix-functions/towctrans.texi: Mention the new module.
23185
23186 2011-02-06  Bruno Haible  <bruno@clisp.org>
23187
23188         New module 'wctrans'.
23189         * modules/wctrans: New file.
23190         * lib/wctype.in.h (wctrans): New declaration.
23191         * lib/wctrans.c: New file.
23192         * lib/wctrans-impl.h: New file.
23193         * m4/wctrans.m4: New file.
23194         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
23195         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
23196         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
23197         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
23198         * doc/posix-functions/wctrans.texi: Mention the new module.
23199
23200 2011-02-06  Bruno Haible  <bruno@clisp.org>
23201
23202         New module 'iswctype'.
23203         * modules/iswctype: New file.
23204         * lib/wctype.in.h (iswctype): New declaration.
23205         * lib/iswctype.c: New file.
23206         * lib/iswctype-impl.h: New file.
23207         * m4/iswctype.m4: New file.
23208         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
23209         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
23210         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
23211         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
23212         * doc/posix-functions/iswctype.texi: Mention the new module and the
23213         HP-UX 11.00 problem.
23214
23215 2011-02-06  Bruno Haible  <bruno@clisp.org>
23216
23217         New module 'wctype'.
23218         * modules/wctype: Change to represent the wctype() substitute.
23219         * lib/wctype.in.h (wctype): New declaration.
23220         * lib/wctype.c: New file.
23221         * lib/wctype-impl.h: New file.
23222         * m4/wctype.m4: New file.
23223         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
23224         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
23225         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
23226         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
23227         * doc/posix-functions/wctype.texi: Mention the new module and the
23228         HP-UX 11.00 problem.
23229
23230 2011-02-06  Bruno Haible  <bruno@clisp.org>
23231
23232         wctype-h: Ensure wctype_t and wctrans_t are defined.
23233         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
23234         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23235         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23236         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
23237         HAVE_WCTRANS_T.
23238         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
23239
23240 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
23241
23242         flock: fix license typo
23243
23244         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
23245         omitted.
23246
23247 2011-02-08  Bruno Haible  <bruno@clisp.org>
23248
23249         Split large sed scripts, for HP-UX sed.
23250         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
23251         to avoid HP-UX limit of 99 commands, in the near future.
23252         * modules/stdlib (Makefile.am): Likewise.
23253         * modules/unistd (Makefile.am): Likewise.
23254         * modules/wchar (Makefile.am): Likewise.
23255         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23256         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
23257         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
23258
23259 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23260             Bruno Haible  <bruno@clisp.org>
23261
23262         stdlib: improve random_r modularization
23263         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
23264         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
23265         you also need the random_r module to get this material right.
23266         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
23267         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
23268         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
23269
23270 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23271
23272         stdlib: don't depend on stdint
23273         * lib/stdlib.in.h: Don't include <stdint.h> merely because
23274         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
23275         be independent of whether stdint.h is needed.
23276         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
23277         here, instead of ...
23278         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
23279         struct random_data should be using the random_r module, not just
23280         the stdlib module (which wouldn't make sense: what package needs
23281         just struct random_data without also needing random_r?).
23282         * modules/stdlib (Depends-on): Remove stdint.
23283
23284         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
23285         See the thread rooted at
23286         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
23287         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
23288         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
23289         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
23290         __VMS)); previously it was always included (via fcntl--.h).
23291         (getloadavg): Do not use c_strtod.  Instead, approximate it by
23292         hand; this is good enough for load averages.  Also, do not use
23293         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
23294         flags directly if available and don't bother otherwise.  (Packages
23295         that need the extra reliability should use the modules that define
23296         these flags on older platforms that lack them.)
23297         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
23298         fcntl-safer.
23299
23300 2011-02-08  Jim Meyering  <meyering@redhat.com>
23301
23302         di-set.h, ino-map.h: add multiple-inclusion guard
23303         Technically, the guard is required only for ino-map.h, due to its
23304         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
23305         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
23306         * lib/ino-map.h: Likewise.
23307
23308 2011-02-06  Bruno Haible  <bruno@clisp.org>
23309
23310         iswblank: Ensure declaration on glibc systems.
23311         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
23312         * modules/iswblank (Dependencies): Add 'extensions'.
23313         * doc/posix-functions/iswblank.texi: Document the glibc problem.
23314
23315 2011-02-06  Bruno Haible  <bruno@clisp.org>
23316
23317         New module 'iswblank'.
23318         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
23319         * modules/iswblank: New file.
23320         * modules/wctype-h (Files): Remove lib/iswblank.c.
23321         (Makefile.am): Substitute GNULIB_ISWBLANK.
23322         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
23323         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
23324         (gl_WCTYPE_H_DEFAULTS): New macro.
23325         (gl_WCTYPE_H): Require it. Remove iswblank related code.
23326         * modules/iswblank-tests: New file.
23327         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
23328         * tests/test-wctype-h.c (main): Remove iswblank tests.
23329         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
23330         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
23331         of 'wctype-h'.
23332         * NEWS: Mention the change.
23333         * modules/mbchar (Depends-on): Add iswblank.
23334
23335 2011-02-08  Bruno Haible  <bruno@clisp.org>
23336
23337         di-set tests: Refactor.
23338         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
23339         unnecessary includes.
23340         (ASSERT): Remove macro.
23341         (main): Make C90 compliant by avoiding variable declaration after
23342         statement.
23343         * modules/di-set-tests (Files): Add tests/macros.h.
23344
23345 2011-02-08  Bruno Haible  <bruno@clisp.org>
23346
23347         ino-map tests: Refactor.
23348         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
23349         unnecessary includes.
23350         (ASSERT): Remove macro.
23351         (main): Make C90 compliant by avoiding variable declaration after
23352         statement.
23353         * modules/ino-map-tests (Files): Add tests/macros.h.
23354
23355 2011-02-08  Jim Meyering  <meyering@redhat.com>
23356
23357         di-set: add "const" to a cast
23358         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
23359         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
23360
23361 2011-02-06  Bruno Haible  <bruno@clisp.org>
23362
23363         Rename module 'wctype' to 'wctype-h'.
23364         * modules/wctype-h: Renamed from modules/wctype.
23365         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
23366         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
23367         (Files, Depends-on, Makefile.am): Update.
23368         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
23369         (Files, Makefile.am): Update.
23370         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
23371         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
23372         * doc/posix-headers/wctype.texi: Update.
23373         * doc/posix-functions/iswalnum.texi: Update.
23374         * doc/posix-functions/iswalpha.texi: Update.
23375         * doc/posix-functions/iswblank.texi: Update.
23376         * doc/posix-functions/iswcntrl.texi: Update.
23377         * doc/posix-functions/iswdigit.texi: Update.
23378         * doc/posix-functions/iswgraph.texi: Update.
23379         * doc/posix-functions/iswlower.texi: Update.
23380         * doc/posix-functions/iswprint.texi: Update.
23381         * doc/posix-functions/iswpunct.texi: Update.
23382         * doc/posix-functions/iswspace.texi: Update.
23383         * doc/posix-functions/iswupper.texi: Update.
23384         * doc/posix-functions/iswxdigit.texi: Update.
23385         * doc/posix-functions/towlower.texi: Update.
23386         * doc/posix-functions/towupper.texi: Update.
23387         * NEWS: Mention the change.
23388         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
23389         * modules/mbchar (Dependencies): Likewise.
23390         * modules/mbswidth (Dependencies): Likewise.
23391         * modules/quotearg (Dependencies): Likewise.
23392         * modules/regex (Dependencies): Likewise.
23393         * modules/wcscasecmp (Dependencies): Likewise.
23394         * modules/wcsncasecmp (Dependencies): Likewise.
23395         * modules/wcwidth (Dependencies): Likewise.
23396
23397 2011-02-06  Bruno Haible  <bruno@clisp.org>
23398
23399         New module 'wcswidth'.
23400         * modules/wcswidth: New file.
23401         * lib/wchar.in.h (wcswidth): New declaration.
23402         * lib/wcswidth.c: New file.
23403         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
23404         * m4/wcswidth.m4: New file.
23405         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
23406         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
23407         REPLACE_WCSWIDTH.
23408         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
23409         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
23410         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
23411         * doc/posix-functions/wcswidth.texi: Mention the new module.
23412
23413 2011-02-06  Bruno Haible  <bruno@clisp.org>
23414
23415         New module 'wcstok'.
23416         * modules/wcstok: New file.
23417         * lib/wchar.in.h (wcstok): New declaration.
23418         * lib/wcstok.c: New file.
23419         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
23420         * m4/wcstok.m4: New file.
23421         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
23422         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
23423         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
23424         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
23425         * doc/posix-functions/wcstok.texi: Mention the new module.
23426
23427 2011-02-06  Bruno Haible  <bruno@clisp.org>
23428
23429         New module 'wcsstr'.
23430         * modules/wcsstr: New file.
23431         * lib/wchar.in.h (wcsstr): New declaration.
23432         * lib/wcsstr.c: New file.
23433         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
23434         * m4/wcsstr.m4: New file.
23435         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
23436         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
23437         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
23438         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
23439         * doc/posix-functions/wcsstr.texi: Mention the new module.
23440
23441 2011-02-06  Bruno Haible  <bruno@clisp.org>
23442
23443         New module 'wcspbrk'.
23444         * modules/wcspbrk: New file.
23445         * lib/wchar.in.h (wcspbrk): New declaration.
23446         * lib/wcspbrk.c: New file.
23447         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
23448         * m4/wcspbrk.m4: New file.
23449         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
23450         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
23451         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
23452         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
23453         * doc/posix-functions/wcspbrk.texi: Mention the new module.
23454
23455 2011-02-06  Bruno Haible  <bruno@clisp.org>
23456
23457         New module 'wcsspn'.
23458         * modules/wcsspn: New file.
23459         * lib/wchar.in.h (wcsspn): New declaration.
23460         * lib/wcsspn.c: New file.
23461         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
23462         * m4/wcsspn.m4: New file.
23463         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
23464         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
23465         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
23466         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
23467         * doc/posix-functions/wcsspn.texi: Mention the new module.
23468
23469 2011-02-06  Bruno Haible  <bruno@clisp.org>
23470
23471         New module 'wcscspn'.
23472         * modules/wcscspn: New file.
23473         * lib/wchar.in.h (wcscspn): New declaration.
23474         * lib/wcscspn.c: New file.
23475         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
23476         * m4/wcscspn.m4: New file.
23477         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
23478         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
23479         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
23480         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
23481         * doc/posix-functions/wcscspn.texi: Mention the new module.
23482
23483 2011-02-06  Bruno Haible  <bruno@clisp.org>
23484
23485         New module 'wcsrchr'.
23486         * modules/wcsrchr: New file.
23487         * lib/wchar.in.h (wcsrchr): New declaration.
23488         * lib/wcsrchr.c: New file.
23489         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
23490         * m4/wcsrchr.m4: New file.
23491         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
23492         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
23493         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
23494         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
23495         * doc/posix-functions/wcsrchr.texi: Mention the new module.
23496
23497 2011-02-06  Bruno Haible  <bruno@clisp.org>
23498
23499         New module 'wcschr'.
23500         * modules/wcschr: New file.
23501         * lib/wchar.in.h (wcschr): New declaration.
23502         * lib/wcschr.c: New file.
23503         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
23504         * m4/wcschr.m4: New file.
23505         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
23506         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
23507         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
23508         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
23509         * doc/posix-functions/wcschr.texi: Mention the new module.
23510
23511 2011-02-06  Bruno Haible  <bruno@clisp.org>
23512
23513         New module 'wcsdup'.
23514         * modules/wcsdup: New file.
23515         * lib/wchar.in.h (wcsdup): New declaration.
23516         * lib/wcsdup.c: New file.
23517         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
23518         * m4/wcsdup.m4: New file.
23519         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
23520         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
23521         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
23522         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
23523         * doc/posix-functions/wcsdup.texi: Mention the new module.
23524
23525 2011-02-06  Bruno Haible  <bruno@clisp.org>
23526
23527         New module 'wcsxfrm'.
23528         * modules/wcsxfrm: New file.
23529         * lib/wchar.in.h (wcsxfrm): New declaration.
23530         * lib/wcsxfrm.c: New file.
23531         * lib/wcsxfrm-impl.h: New file.
23532         * m4/wcsxfrm.m4: New file.
23533         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
23534         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
23535         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
23536         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
23537         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
23538
23539 2011-02-06  Bruno Haible  <bruno@clisp.org>
23540
23541         New module 'wcscoll'.
23542         * modules/wcscoll: New file.
23543         * lib/wchar.in.h (wcscoll): New declaration.
23544         * lib/wcscoll.c: New file.
23545         * lib/wcscoll-impl.h: New file.
23546         * m4/wcscoll.m4: New file.
23547         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
23548         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
23549         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
23550         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
23551         * doc/posix-functions/wcscoll.texi: Mention the new module.
23552
23553 2011-02-06  Bruno Haible  <bruno@clisp.org>
23554
23555         New module 'wcsncasecmp'.
23556         * modules/wcsncasecmp: New file.
23557         * lib/wchar.in.h (wcsncasecmp): New declaration.
23558         * lib/wcsncasecmp.c: New file.
23559         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
23560         * m4/wcsncasecmp.m4: New file.
23561         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
23562         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
23563         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
23564         HAVE_WCSNCASECMP.
23565         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
23566         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
23567
23568 2011-02-06  Bruno Haible  <bruno@clisp.org>
23569
23570         New module 'wcscasecmp'.
23571         * modules/wcscasecmp: New file.
23572         * lib/wchar.in.h (wcscasecmp): New declaration.
23573         * lib/wcscasecmp.c: New file.
23574         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
23575         * m4/wcscasecmp.m4: New file.
23576         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
23577         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
23578         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
23579         HAVE_WCSCASECMP.
23580         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
23581         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
23582
23583 2011-02-05  Bruno Haible  <bruno@clisp.org>
23584
23585         New module 'wcsncmp'.
23586         * modules/wcsncmp: New file.
23587         * lib/wchar.in.h (wcsncmp): New declaration.
23588         * lib/wcsncmp.c: New file.
23589         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
23590         * m4/wcsncmp.m4: New file.
23591         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
23592         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
23593         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
23594         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
23595         * doc/posix-functions/wcsncmp.texi: Mention the new module.
23596
23597 2011-02-05  Bruno Haible  <bruno@clisp.org>
23598
23599         New module 'wcscmp'.
23600         * modules/wcscmp: New file.
23601         * lib/wchar.in.h (wcscmp): New declaration.
23602         * lib/wcscmp.c: New file.
23603         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
23604         * m4/wcscmp.m4: New file.
23605         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
23606         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
23607         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
23608         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
23609         * doc/posix-functions/wcscmp.texi: Mention the new module.
23610
23611 2011-02-05  Bruno Haible  <bruno@clisp.org>
23612
23613         New module 'wcsncat'.
23614         * modules/wcsncat: New file.
23615         * lib/wchar.in.h (wcsncat): New declaration.
23616         * lib/wcsncat.c: New file.
23617         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
23618         * m4/wcsncat.m4: New file.
23619         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
23620         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
23621         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
23622         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
23623         * doc/posix-functions/wcsncat.texi: Mention the new module.
23624
23625 2011-02-05  Bruno Haible  <bruno@clisp.org>
23626
23627         New module 'wcscat'.
23628         * modules/wcscat: New file.
23629         * lib/wchar.in.h (wcscat): New declaration.
23630         * lib/wcscat.c: New file.
23631         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
23632         * m4/wcscat.m4: New file.
23633         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
23634         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
23635         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
23636         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
23637         * doc/posix-functions/wcscat.texi: Mention the new module.
23638
23639 2011-02-05  Bruno Haible  <bruno@clisp.org>
23640
23641         New module 'wcpncpy'.
23642         * modules/wcpncpy: New file.
23643         * lib/wchar.in.h (wcpncpy): New declaration.
23644         * lib/wcpncpy.c: New file.
23645         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
23646         * m4/wcpncpy.m4: New file.
23647         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
23648         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
23649         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
23650         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
23651         * doc/posix-functions/wcpncpy.texi: Mention the new module.
23652
23653 2011-02-05  Bruno Haible  <bruno@clisp.org>
23654
23655         New module 'wcsncpy'.
23656         * modules/wcsncpy: New file.
23657         * lib/wchar.in.h (wcsncpy): New declaration.
23658         * lib/wcsncpy.c: New file.
23659         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
23660         * m4/wcsncpy.m4: New file.
23661         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
23662         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
23663         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
23664         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
23665         * doc/posix-functions/wcsncpy.texi: Mention the new module.
23666
23667 2011-02-05  Bruno Haible  <bruno@clisp.org>
23668
23669         New module 'wcpcpy'.
23670         * modules/wcpcpy: New file.
23671         * lib/wchar.in.h (wcpcpy): New declaration.
23672         * lib/wcpcpy.c: New file.
23673         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
23674         * m4/wcpcpy.m4: New file.
23675         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
23676         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
23677         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
23678         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
23679         * doc/posix-functions/wcpcpy.texi: Mention the new module.
23680
23681 2011-02-05  Bruno Haible  <bruno@clisp.org>
23682
23683         New module 'wcscpy'.
23684         * modules/wcscpy: New file.
23685         * lib/wchar.in.h (wcscpy): New declaration.
23686         * lib/wcscpy.c: New file.
23687         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
23688         * m4/wcscpy.m4: New file.
23689         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
23690         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
23691         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
23692         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
23693         * doc/posix-functions/wcscpy.texi: Mention the new module.
23694
23695 2011-02-05  Bruno Haible  <bruno@clisp.org>
23696
23697         New module 'wcsnlen'.
23698         * modules/wcsnlen: New file.
23699         * lib/wchar.in.h (wcsnlen): New declaration.
23700         * lib/wcsnlen.c: New file.
23701         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
23702         * m4/wcsnlen.m4: New file.
23703         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
23704         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
23705         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
23706         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
23707         * doc/posix-functions/wcsnlen.texi: Mention the new module.
23708
23709 2011-02-05  Bruno Haible  <bruno@clisp.org>
23710
23711         New module 'wcslen'.
23712         * modules/wcslen: New file.
23713         * lib/wchar.in.h (wcslen): New declaration.
23714         * lib/wcslen.c: New file.
23715         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
23716         * m4/wcslen.m4: New file.
23717         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
23718         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
23719         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
23720         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
23721         * doc/posix-functions/wcslen.texi: Mention the new module.
23722
23723 2011-02-05  Bruno Haible  <bruno@clisp.org>
23724
23725         New module 'wmemset'.
23726         * modules/wmemset: New file.
23727         * lib/wchar.in.h (wmemset): New declaration.
23728         * lib/wmemset.c: New file.
23729         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
23730         * m4/wmemset.m4: New file.
23731         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
23732         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
23733         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
23734         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
23735         * doc/posix-functions/wmemset.texi: Mention the new module.
23736
23737 2011-02-05  Bruno Haible  <bruno@clisp.org>
23738
23739         New module 'wmemmove'.
23740         * modules/wmemmove: New file.
23741         * lib/wchar.in.h (wmemmove): New declaration.
23742         * lib/wmemmove.c: New file.
23743         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
23744         * m4/wmemmove.m4: New file.
23745         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
23746         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
23747         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
23748         HAVE_WMEMMOVE.
23749         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
23750         * doc/posix-functions/wmemmove.texi: Mention the new module.
23751
23752 2011-02-05  Bruno Haible  <bruno@clisp.org>
23753
23754         New module 'wmemcpy'.
23755         * modules/wmemcpy: New file.
23756         * lib/wchar.in.h (wmemcpy): New declaration.
23757         * lib/wmemcpy.c: New file.
23758         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
23759         * m4/wmemcpy.m4: New file.
23760         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
23761         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
23762         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
23763         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
23764         * doc/posix-functions/wmemcpy.texi: Mention the new module.
23765
23766 2011-02-05  Bruno Haible  <bruno@clisp.org>
23767
23768         New module 'wmemcmp'.
23769         * modules/wmemcmp: New file.
23770         * lib/wchar.in.h (wmemcmp): New declaration.
23771         * lib/wmemcmp.c: New file.
23772         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
23773         * m4/wmemcmp.m4: New file.
23774         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
23775         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
23776         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
23777         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
23778         * doc/posix-functions/wmemcmp.texi: Mention the new module.
23779
23780 2011-02-07  Jim Meyering  <meyering@redhat.com>
23781
23782         di-set, ino-map: new modules, from coreutils
23783         * lib/di-set.c: New file.
23784         * lib/di-set.h: Likewise.
23785         * lib/ino-map.c: Likewise.
23786         * lib/ino-map.h: Likewise.
23787         * modules/di-set: Likewise.
23788         * modules/di-set-tests: Likewise.
23789         * modules/ino-map: Likewise.
23790         * modules/ino-map-tests: Likewise.
23791         * tests/test-di-set.c: Likewise.
23792         * tests/test-ino-map.c: Likewise.
23793
23794 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
23795
23796         getloadavg: merge minor changes from Emacs
23797
23798         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
23799         (getloadavg): Use memset, not bzero.
23800
23801         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
23802         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
23803         clash (bug#86).
23804
23805 2010-11-14  Bruno Haible  <bruno@clisp.org>
23806
23807         Allow multiple gnulib generated replacements to coexist.
23808         * lib/getopt.in.h (struct option): Avoid identical redefinition.
23809         * lib/inttypes.in.h (imaxdiv_t): Likewise.
23810         * lib/langinfo.in.h (nl_item): Likewise.
23811         * lib/math.in.h (_NaN, NAN): Likewise.
23812         * lib/netdb.in.h (struct addrinfo): Likewise.
23813         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
23814         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
23815         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
23816         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
23817         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
23818         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
23819         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
23820         pthread_mutexattr_init, pthread_mutexattr_settype,
23821         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
23822         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
23823         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
23824         pthread_spin_trylock, pthread_spin_unlock): Likewise.
23825         * lib/sched.in.h (struct sched_param): Likewise.
23826         * lib/se-selinux.in.h (security_class_t, security_context_t,
23827         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
23828         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
23829         lsetfilecon, fsetfilecon, security_check_context,
23830         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
23831         Likewise.
23832         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
23833         Likewise.
23834         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
23835         _gl_function_taking_int_returning_void_t, union sigval,
23836         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
23837         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
23838         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23839         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
23840         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
23841         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
23842         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
23843         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
23844         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
23845         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
23846         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
23847         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
23848         socklen_t, rpl_fd_isset): Likewise.
23849         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
23850         * lib/sys_time.in.h (struct timeval): Likewise.
23851         * lib/sys_times.in.h (struct tms): Likewise.
23852         * lib/sys_utsname.in.h (struct utsname):
23853         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
23854         * lib/unistd.in.h (getpagesize): Likewise.
23855         * lib/wchar.in.h (mbstate_t): Likewise.
23856         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23857         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
23858         towlower, towupper): Likewise.
23859         Reported by Sam Steingold <sds@gnu.org>.
23860
23861 2011-02-05  Eric Blake  <eblake@redhat.com>
23862
23863         unsetenv: work around Haiku issues
23864         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
23865         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
23866
23867 2010-12-30  Bruce Korb  <bkorb@gnu.org>
23868
23869         libposix: avoid calling error() within libposix
23870         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
23871         is defined.
23872
23873 2011-02-05  Eric Blake  <eblake@redhat.com>
23874
23875         strerror_r-posix: port to cygwin
23876         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
23877         implementation.
23878         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
23879         * tests/test-strerror_r.c (main): Fix test.
23880         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
23881         issue.
23882
23883 2011-02-05  Bruno Haible  <bruno@clisp.org>
23884
23885         New module 'wmemchr'.
23886         * modules/wmemchr: New file.
23887         * lib/wchar.in.h (wmemchr): New declaration.
23888         * lib/wmemchr.c: New file.
23889         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
23890         * m4/wmemchr.m4: New file.
23891         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
23892         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
23893         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
23894         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
23895         * doc/posix-functions/wmemchr.texi: Mention the new module.
23896
23897 2011-02-04  Eric Blake  <eblake@redhat.com>
23898
23899         fdopendir: detect FreeBSD bug
23900         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
23901         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
23902
23903 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
23904
23905         stdbool: do not define HAVE_STDBOOL_H
23906         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
23907         AC_HEADER_STDBOOL.  All uses changed.  Do not define
23908         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
23909         imported from the latest Autoconf git.  It was motivated by Emacs,
23910         which uses gnulib but does not need HAVE_STDBOOL_H.
23911
23912 2011-02-04  Bruno Haible  <bruno@clisp.org>
23913
23914         wcsnrtombs: Prepare for new module wwcsnrtombs.
23915         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
23916         * lib/wcsnrtombs.c: Include it.
23917         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
23918
23919         wcsrtombs: Prepare for new module wwcsrtombs.
23920         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
23921         * lib/wcsrtombs.c: Include it.
23922         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
23923
23924         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
23925         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
23926         * lib/mbsnrtowcs.c: Include it.
23927         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
23928
23929         mbsrtowcs: Prepare for new module mbsrtowwcs.
23930         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
23931         * lib/mbsrtowcs.c: Include it.
23932         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
23933
23934 2011-02-04  Bruno Haible  <bruno@clisp.org>
23935
23936         vasnprintf: Reduce use of malloc for small format strings.
23937         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
23938         (arguments): Add room for the first 7 arguments.
23939         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
23940         (char_directives, u8_directives, u16_directives, u32_directives): Add
23941         room for the first 7 directives.
23942         * lib/printf-parse.c: Include <string.h>.
23943         (PRINTF_PARSE): Change memory handling code so that it uses the first
23944         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
23945         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
23946         Reported by Pádraig Brady <P@draigbrady.com>.
23947
23948 2011-01-31  Eric Blake  <eblake@redhat.com>
23949
23950         dup2: work around Haiku bug
23951         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
23952         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
23953         * doc/posix-functions/dup2.texi (dup2): Document the bug.
23954         * tests/test-dup2.c (main): Enhance test.
23955
23956 2011-01-31  Simon Josefsson  <simon@josefsson.org>
23957
23958         doc: off_t is not available in eglibc 2.11.2 stdio.h.
23959         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
23960         declared by eglibc 2.11.2.
23961         * lib/stdio.in.h: Likewise.
23962
23963 2011-01-31  Eric Blake  <eblake@redhat.com>
23964
23965         ignore-value: add missing test dependency
23966         * tests/test-ignore-value.c: Revert previous change; stdio.h
23967         provides off_t.
23968         * modules/ignore-value-tests (Depends-on): Add missing dependency.
23969
23970 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
23971
23972         mktime: clarify long_int width checking
23973         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
23974         the top level, to make it clearer that the assumption about
23975         long_int width is being checked.  See
23976         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
23977
23978 2011-01-30  Simon Josefsson  <simon@josefsson.org>
23979
23980         ignore-value: Fix self-test.
23981         * tests/test-ignore-value.c: Include sys/types.h for off_t.
23982
23983 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
23984
23985         TYPE_MAXIMUM: avoid theoretically undefined behavior
23986         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
23987         negative number, which the C Standard says has undefined behavior.
23988         In practice this is not a problem, but might as well do it by the book.
23989         Reported by Rich Felker and Eric Blake; see
23990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
23991         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
23992         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23993         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23994         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
23995         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23996         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
23997
23998         mktime: #undef mktime before #defining it
23999         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
24000
24001         mktime: systematically normalize tm_isdst comparisons
24002         * lib/mktime.c (isdst_differ): New function.
24003         (__mktime_internal): Use it systematically for all isdst comparisons.
24004         This completes the fix for libc BZ #6723, and removes the need for
24005         normalizing tm_isdst.  See
24006         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
24007         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
24008
24009         mktime: fix some integer overflow issues and sidestep the rest
24010
24011         This was prompted by a bug report by Benjamin Lindner for MinGW
24012         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
24013         His bug is due to signed integer overflow (0 - INT_MIN), and I
24014         I scanned through mktime.c looking for other integer overflow
24015         problems, fixing all the bugs I found.
24016
24017         Although the C Standard says the resulting code is still not safe
24018         in the presence of integer overflow, in practice it should be good
24019         enough for all real-world two's-complement implementations, except
24020         for debugging environments that deliberately trap on integer
24021         overflow (e.g., gcc -ftrapv).
24022
24023         * lib/mktime.c (WRAPV): New macro.
24024         (SHR): Also check that long_int and time_t shift right in the
24025         usual way, before using the fast-but-unportable method.
24026         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
24027         used.  The code already assumed two's complement, so there's
24028         no need to test for alternatives.  All uses removed.
24029         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
24030         the C standard.  Problem reported by Rich Felker in
24031         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
24032         (twos_complement_arithmetic): Also check long_int and time_t.
24033         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
24034         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
24035         (__mktime_internal): Avoid integer overflow with unary subtraction
24036         in two instances where -1 - X is an adequate replacement for -X,
24037         since the calculations are approximate.
24038
24039 2011-01-29  Eric Blake  <eblake@redhat.com>
24040
24041         mktime: avoid infinite loop
24042         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
24043         type; behavior is still undefined but portable to all known targets.
24044         Reported by Rich Felker.
24045
24046 2011-01-29  Simon Josefsson  <simon@josefsson.org>
24047
24048         rename, unlink, same-inode: Relicense.
24049         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
24050         * modules/unlink (License): Likewise.
24051         * modules/same-inode (License): Likewise.
24052
24053 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24054
24055         mktime: avoid problems on NetBSD 5 / i386
24056         * lib/mktime.c (long_int): New type.  This works around a problem
24057         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
24058         but time_t is 64 bits, and where I expect the existing code is
24059         wrong in some cases.
24060         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
24061         (ydhms_diff): Bring back the compile-time check for wide-enough
24062         year and yday.
24063
24064         mktime: fix misspelling in comment
24065         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
24066         This merges all recent glibc changes of importance.
24067
24068 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24069
24070         move-if-change: cope with concurrent mv of identical file.
24071         * build-aux/move-if-change (CMPPROG): Accept environment
24072         variable as an override for `cmp'.
24073         (usage): Document CMPPROG.
24074         Adjust comparison to drop stdout.  Cope with failure of mv if
24075         the target file exists and is identical to the source, for
24076         parallel builds.
24077         Report from H.J. Lu against binutils in PR binutils/12283.
24078
24079 2011-01-28  Bruce Korb  <bkorb@gnu.org>
24080
24081         * users.txt: Mention sharutils.
24082
24083 2011-01-28  Simon Josefsson  <simon@josefsson.org>
24084
24085         * users.txt: Mention OATH Toolkit.
24086
24087 2011-01-27  Bruno Haible  <bruno@clisp.org>
24088
24089         Prepare for supporting FreeBSD 10.
24090         * build-aux/config.libpath: Remove handling of freebsd1*.
24091
24092 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
24093
24094         Prepare for supporting FreeBSD 10.
24095         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
24096         match FreeBSD 10.0.
24097
24098 2011-01-27  Bruno Haible  <bruno@clisp.org>
24099
24100         vma-iter, get-rusage-as: Add OpenBSD support.
24101         * modules/vma-iter (configure.ac): Test for mquery.
24102         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
24103         * lib/vma-iter.c: Include <sys/mman.h>.
24104         (vma_iterate): Add an implementation based on mquery().
24105         * lib/resource-ext.h (get_rusage_as): Update comments.
24106         * lib/get-rusage-as.c: Likewise.
24107         * lib/get-rusage-data.c: Likewise.
24108
24109 2011-01-26  Karl Berry  <karl@gnu.org>
24110
24111         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
24112         variables to make it easier to override the makeinfo program used.
24113
24114 2011-01-26  Eric Blake  <eblake@redhat.com>
24115
24116         fcntl: work around Haiku F_DUPFD bugs
24117         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
24118         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
24119         cloexec bit on duplication.
24120         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
24121
24122 2011-01-26  Bruno Haible  <bruno@clisp.org>
24123
24124         Enable memory leak tests on AIX.
24125         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
24126         * tests/test-fprintf-posix3.c (main): Likewise.
24127
24128 2011-01-26  Bruno Haible  <bruno@clisp.org>
24129
24130         Tests for module 'get-rusage-data'.
24131         * modules/get-rusage-data-tests: New file.
24132         * tests/test-get-rusage-data.c: New file.
24133
24134         New module 'get-rusage-data'.
24135         * lib/resource-ext.h (get_rusage_data): New declaration.
24136         * lib/get-rusage-data.c: New file.
24137         * modules/get-rusage-data: New file.
24138
24139 2011-01-25  Bruno Haible  <bruno@clisp.org>
24140
24141         get-rusage-as: Allow for easier testing.
24142         * lib/resource-ext.h (get_rusage_as): Add comment.
24143         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
24144         (main): New function for interactive testing.
24145
24146 2011-01-25  Bruno Haible  <bruno@clisp.org>
24147
24148         vma-iter: Treat Haiku like BeOS.
24149         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
24150         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
24151
24152 2011-01-25  Eric Blake  <eblake@redhat.com>
24153
24154         c-stack: fix regression on cygwin when libsigsegv is present
24155         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
24156
24157 2011-01-24  Bruno Haible  <bruno@clisp.org>
24158
24159         vma-iter: Avoid empty intervals.
24160         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
24161         on an empty interval.
24162
24163 2011-01-24  Jim Meyering  <meyering@redhat.com>
24164
24165         u64: remove unnecessary #include
24166         * lib/u64.h: Don't include <stddef.h>.  It was not used.
24167
24168 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24169
24170         Allow the user to avoid the HAVE_RAW_DECL_* macros.
24171         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
24172
24173 2011-01-23  Bruno Haible  <bruno@clisp.org>
24174
24175         New module 'vma-iter'.
24176         * lib/vma-iter.h: New file.
24177         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
24178         * modules/vma-iter: New file.
24179         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
24180         for get_rusage_as_via_iterator.
24181         (vma_iterate_callback): New function.
24182         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
24183         * modules/get-rusage-as (Depends-on): Add vma-iter.
24184
24185 2011-01-23  Bruno Haible  <bruno@clisp.org>
24186
24187         uninorm: Tweak includes.
24188         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
24189         Reported by Jim Meyering.
24190
24191 2011-01-23  Bruno Haible  <bruno@clisp.org>
24192
24193         get-rusage-as: Improve on NetBSD.
24194         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
24195         /proc, like on FreeBSD.
24196
24197 2011-01-23  Jim Meyering  <meyering@redhat.com>
24198
24199         xreadlink.h: remove unnecessary #include
24200         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
24201
24202         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
24203         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
24204
24205 2011-01-23  Bruno Haible  <bruno@clisp.org>
24206
24207         get-rusage-as: Fix bug.
24208         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
24209         original limit when aborting the first loop.
24210
24211 2011-01-23  Bruno Haible  <bruno@clisp.org>
24212
24213         wctype: Ensure valid C syntax.
24214         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
24215         unconditionally, instead of gl_NEXT_HEADERS conditionally.
24216
24217 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
24218
24219         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
24220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
24221         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
24222         as they are needed only for configure's test case.
24223         This removes two unnecessary symbols from config.h.
24224
24225         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
24226         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
24227         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
24228         AC_CHECK_HEADERS_ONCE on a header that we also invoke
24229         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
24230         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
24231         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
24232         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
24233         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24234         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24235         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24236         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24237         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24238         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24239         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
24240         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24241         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24242         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24243
24244 2011-01-21  Eric Blake  <eblake@redhat.com>
24245
24246         maintainer-makefile: work with older git for submodule check
24247         * top/maint.mk (public-submodule-commit): Rewrite to avoid
24248         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
24249         Reported by Matthias Bolte.
24250
24251         bootstrap: minor portability fixes
24252         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
24253         (usage): Omit leading capital and trailing . on help phrases, per
24254         GNU Coding Standards.
24255         (check_versions, top level): Prefix messages with script name.
24256
24257 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
24258
24259         bootstrap: support --no-git option
24260         * build-aux/bootstrap: Add --no-git option, to be used when
24261         --gnulib-srcdir points to the exact desired checkout.
24262
24263 2011-01-21  Eric Blake  <eblake@redhat.com>
24264
24265         strerror_r-posix: work with glibc 2.13
24266         * lib/strerror_r.c (strerror_r): Fix return type.
24267
24268 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24269             Bruno Haible  <bruno@clisp.org>
24270
24271         uN_strstr: New unit tests.
24272         * modules/unistr/u8-strstr-tests: New file.
24273         * modules/unistr/u16-strstr-tests: New file.
24274         * modules/unistr/u32-strstr-tests: New file.
24275         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
24276         * tests/unistr/test-u8-strstr.c: New file.
24277         * tests/unistr/test-u16-strstr.c: New file.
24278         * tests/unistr/test-u32-strstr.c: New file.
24279
24280 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24281             Bruno Haible  <bruno@clisp.org>
24282
24283         Make uN_strstr functions O(n) worst-case.
24284         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
24285         16-bit and 32-bit unit cases, use the unibyte algorithm from
24286         lib/mbsstr.c.
24287         * lib/unistr/u8-strstr.c: Include <string.h>.
24288         (UNIT_IS_UINT8_T): New macro.
24289         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
24290         (U_STRLEN, U_STRNLEN): New macros.
24291         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
24292         (U_STRLEN, U_STRNLEN): New macros.
24293         * modules/unistr/u8-strstr (Depends-on): Add strstr.
24294         (configure.ac): Update required libunistring version.
24295         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
24296         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
24297         malloca.
24298         (configure.ac): Update required libunistring version.
24299         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
24300         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
24301         malloca.
24302         (configure.ac): Update required libunistring version.
24303
24304 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24305             Bruno Haible  <bruno@clisp.org>
24306
24307         Prepare for faster uN_strstr functions.
24308         * lib/str-kmp.h: Support definable UNITs.
24309         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
24310         needle_len argument.
24311         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
24312         * lib/mbscasestr.c (mbscasestr): Likewise.
24313
24314 2011-01-21  Pádraig Brady <P@draigBrady.com>
24315
24316         malloca-tests: make faster by unsetting MALLOC_PERTURB_
24317         * tests/test-malloca.c (main): Unset the environment variable
24318         to greatly speed up the test.
24319         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
24320         * modules/malloca-tests: Depend on unsetenv.
24321
24322 2011-01-21  Pádraig Brady <P@draigBrady.com>
24323
24324         ignore-value: remove stdint dependency
24325         * lib/ignore-value.h: Remove <stdint.h>
24326         * modules/ignore-value: Remove stdint dependency.
24327
24328 2011-01-21  Jim Meyering  <meyering@redhat.com>
24329
24330         maint.mk: adjust variable name to be consistent with other gl_ vars
24331         * top/maint.mk (gl_public_submodule_commit): Rename the variable
24332         to be lower case.
24333
24334 2011-01-20  Jim Meyering  <meyering@redhat.com>
24335
24336         maint.mk: make "check" depend on public-submodule-commit by default
24337         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
24338
24339 2011-01-20  Bruno Haible  <bruno@clisp.org>
24340
24341         mbfile, mbiter: Complete change from 2008-12-21.
24342         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
24343         * m4/mbiter.m4 (gl_MBITER): Likewise.
24344
24345 2011-01-20  Jim Meyering  <meyering@redhat.com>
24346
24347         init.sh: insert space between each function name and "()"
24348         * tests/init.sh: Make it a little easier to see that a function's
24349         name is "warn_", and not "warn" when looking at the first part of
24350         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
24351
24352 2011-01-20  Jim Meyering  <meyering@redhat.com>
24353
24354         mountlist: clean up code formatting
24355         * lib/mountlist.c (read_file_system_list): Split a long line,
24356         correct bracing style, use NULL in place of "(struct statfs *)0",
24357         don't parenthesize return value, add spaces around "=" and after
24358         ";-in-for-stmt".
24359
24360 2011-01-14  Markus Duft <mduft@gentoo.org>
24361
24362         mountlist: add support for Interix
24363         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
24364         Apply statvfs to all entries of /dev/fs.
24365         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
24366         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
24367
24368 2011-01-20  Jim Meyering  <meyering@redhat.com>
24369
24370         maint.mk: improve the public-submodule-commit rule
24371         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
24372         to suppress printing of its commands... unless V=1.
24373         Add git submodule's --quiet option to suppress printing of e.g.,
24374         "Entering gnulib" output.
24375         "cd" into $(srcdir) before running git submodule.
24376
24377 2011-01-20  Bruno Haible  <bruno@clisp.org>
24378
24379         include_next: Fix bug introduced on 2011-01-18.
24380         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
24381         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
24382         ac_cv_header_... variable if the second argument is not 'check'.
24383         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
24384         gl_NEXT_HEADERS_INTERNAL.
24385
24386 2011-01-20  Bruno Haible  <bruno@clisp.org>
24387
24388         Allow the user to avoid the GNULIB_TEST_* macros.
24389         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
24390         Suggested by Paul Eggert.
24391
24392 2011-01-14  Jim Meyering  <meyering@redhat.com>
24393
24394         bootstrap: avoid failure when there is no .gitmodules file
24395         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
24396         has been assigned to, even when its value is the empty string.
24397         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
24398         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
24399         Reported by John W. Eaton <jwe@gnu.org>.
24400
24401 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
24402
24403         assume <ctype.h>, ..., <time.h> exist
24404         For years gnulib has been assuming the existence of the headers
24405         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
24406         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
24407         them, since they don't appear to be needed.
24408         * README (Portability guidelines): Document this.
24409         * lib/flock.c: Assume <fcntl.h> exists.
24410         * lib/regex_internal.h: Assume <locale.h> exists.
24411         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
24412         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
24413         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
24414         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
24415         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
24416         * m4/regex.m4 (gl_REGEX): Likewise.
24417         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
24418         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
24419         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
24420         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
24421         * tests/test-argp.c: Likewise.
24422         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
24423
24424         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
24425         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
24426         AA_APPLE_UNIVERSAL_BUILD.  See
24427         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
24428         * NEWS: Document this.
24429
24430 2011-01-19  Eric Blake  <eblake@redhat.com>
24431
24432         c-stack: assume stack overflow if SA_SIGINFO unsupported
24433         * lib/c-stack.c (SIGACTION_WORKS): Rename...
24434         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
24435         sigaction will work.
24436         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
24437         behavior match Linux.
24438         * tests/test-c-stack.c (main): Prefer NULL for pointers.
24439
24440         stdbool-tests: accommodate Haiku
24441         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
24442
24443         binary-io: fix O_TEXT on Haiku
24444         * modules/binary-io (Depends-on): Add fcntl-h.
24445         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
24446         than blindly undefining O_TEXT.
24447         Reported by Scott McCreary.
24448
24449 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24450
24451         include_next: do not check for standard headers like stddef.h
24452
24453         I found this problem when modifying Emacs to use gnulib.
24454         I noticed that it added HAVE_STDDEF_H to config.h, even though
24455         gnulib always assumes <stddef.h> exists as per README and this
24456         symbol is unnecessary.
24457         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
24458         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
24459         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
24460         faster for headers like stddef.h that are known to exist.
24461         (gl_CHECK_NEXT_HEADERS): Use it.
24462         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
24463         rather than gl_CHECK_NEXT_HEADERS.
24464         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
24465         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
24466
24467 2011-01-18  Eric Blake  <eblake@redhat.com>
24468
24469         ansi-c++-opt: skip C++ dependency style if C++ is unused
24470         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
24471         tests when we know C++ compilation is not desired.
24472         Reported by Scott McCreary.
24473
24474 2011-01-18  Bruno Haible  <bruno@clisp.org>
24475
24476         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
24477         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
24478         (main): Perform test also when getrlimit and setrlimit don't exist or
24479         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
24480         limiting the address space size using setrlimit, compare the address
24481         space size before and after the the test.
24482         * tests/test-dprintf-posix2.c: Likewise.
24483         * tests/test-fprintf-posix3.sh: Update skip messages.
24484         * tests/test-dprintf-posix2.sh: Likewise.
24485         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
24486         * modules/dprintf-posix-tests (Depends-on): Likewise.
24487         Reported by Bruce Korb <bkorb@gnu.org> and
24488         Gary V. Vaughan <gary@gnu.org>.
24489
24490 2011-01-18  Bruno Haible  <bruno@clisp.org>
24491
24492         get-rusage-as: Improvement for Cygwin.
24493         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
24494         areas that are merely reserved.
24495
24496 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24497
24498         strftime: remove dependencies on multibyte modules
24499
24500         strftime depended on mbrlen, mbsinit, and wchar, but these modules
24501         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
24502         only if __osf__ is defined, and I suspect OSF doesn't need these
24503         other modules.  If my guess is wrong, we'll need to come up with a
24504         variant of strftime that doesn't need the multibyte modules.
24505
24506         I discovered this problem when attempting modify Emacs to use the
24507         strftime module.  With the previous gnulib, this caused Emacs to
24508         need 31 new files, ranging from lib/config.charset to
24509         m4/wint_t.m4.  This was overkill and I expect would be offputting
24510         to the Emacs maintainers.  After this change, only 6 new files are
24511         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
24512         stdbool.m4, and tm_gmtoff.m4.
24513
24514         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
24515         Suggested by Bruno Haible in
24516         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
24517         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
24518         and do not check for wchar.h.
24519         * modules/strftime (Files): Remove m4/mbstate_t.m4.
24520         (Depends-on): Remove mbrlen, mbsinit, wchar.
24521
24522 2011-01-18  Bruno Haible  <bruno@clisp.org>
24523
24524         Tests for module 'get-rusage-as'.
24525         * modules/get-rusage-as-tests: New file.
24526         * tests/test-get-rusage-as.c: New file.
24527
24528         New module 'get-rusage-as'.
24529         * modules/get-rusage-as: New file.
24530         * lib/resource-ext.h: New file.
24531         * lib/get-rusage-as.c: New file.
24532
24533 2011-01-17  Eric Blake  <eblake@redhat.com>
24534
24535         sigaction: relax license from LGPLv3+ to LGPLv2+
24536         * modules/sigaction (License): Relax to LGPLv2+.
24537
24538 2011-01-14  Bruno Haible  <bruno@clisp.org>
24539
24540         filemode: Make function declarations usable in C++ mode.
24541         * lib/filemode.h: Enclose function declarations in extern "C" block.
24542         Reported by John W. Eaton <jwe@gnu.org>.
24543
24544 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
24545
24546         save-cwd: no longer include "xgetcwd.h"
24547         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
24548         This avoids a compilation failure in projects that use save-cwd
24549         without also using the xgetcwd module.
24550
24551 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24552
24553         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
24554         This is so that a program like Emacs, which needs only dtoastr,
24555         does not have to bother with distributing and compiling ftoastr
24556         and ldtoastr.
24557         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
24558         * modules/dtoastr, modules/ldtoastr: New files.
24559         * modules/ftoastr: Now works just for 'float'.
24560         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
24561         (Makefile.am): Remove ftoastr.h (not needed and no effect),
24562         dtoastr.c, ldtoastr.c.
24563
24564 2011-01-11  Jim Meyering  <meyering@redhat.com>
24565
24566         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
24567         There is no need to work around the lack of the fchdir function,
24568         since gnulib can now provide a replacement when required.
24569         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
24570         * modules/save-cwd (Depends-on): Add fchdir.
24571
24572 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24573
24574         openat, save-cwd: avoid xmalloc
24575
24576         This removes a direct (but undocumented) dependency of openat on
24577         xalloc, along with an indirect dependency via save-cwd.  It also
24578         removes a dependency of save-cwd on xgetcwd, and thereby
24579         indirectly on xalloc.  This change causes the openat substitute
24580         to fall back on save_cwd when memory is tight, and for save_cwd to
24581         fail instead of dying when memory is tight, but that's good enough.
24582         Problem and initial idea for fix reported by Bastien Roucaries in
24583         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
24584
24585         * lib/openat-proc.c: Include stdlib.h (for malloc), not
24586         xalloc.h (for xmalloc).
24587         (openat_proc_name): Use malloc, not xmalloc.
24588         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
24589         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
24590
24591         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
24592         This avoids heap allocation for file names whose lengths are in
24593         the range 512..1023, with the upper bound increasing to at most
24594         4031 depending on the platform's PATH_MAX.  (We do not want
24595         pathmax.h here as it might supply a non-constant PATH_MAX.)
24596         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
24597         Perhaps they should be moved to malloca.h?
24598         (OPENAT_BUFFER_SIZE): Use them.
24599
24600 2011-01-10  Bruno Haible  <bruno@clisp.org>
24601
24602         doc: Update users.txt.
24603         * users.txt: Add recutils.
24604
24605 2011-01-09  Karl Berry  <karl@gnu.org>
24606
24607         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
24608
24609         * doc/configmake.texi: New file.
24610         * doc/gnulib.texi: Include it.
24611         * modules/configmake: Move documentation from here.
24612
24613 2011-01-09  Bruno Haible  <bruno@clisp.org>
24614
24615         Update to Unicode 6.0.0.
24616         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
24617         (get_lbp): Update for Unicode 6.0.0.
24618         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
24619         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
24620         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
24621         U+11001, U+11038..U+11046. Remove U+06DE.
24622         (uc_width): Fix bounds of planes.
24623         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24624         lib/uniwidth/width.c.
24625         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
24626         trailing whitespace removed.
24627         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
24628         without comments, but with the original copyright notice.
24629         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
24630         * lib/unicase/ignorable.h: Likewise.
24631         * lib/unicase/tocasefold.h: Likewise.
24632         * lib/unicase/tolower.h: Likewise.
24633         * lib/unicase/totitle.h: Likewise.
24634         * lib/unicase/toupper.h: Likewise.
24635         * lib/unictype/bidi_of.h: Likewise.
24636         * lib/unictype/blocks.h: Likewise.
24637         * lib/unictype/categ_C.h: Likewise.
24638         * lib/unictype/categ_Cn.h: Likewise.
24639         * lib/unictype/categ_L.h: Likewise.
24640         * lib/unictype/categ_Ll.h: Likewise.
24641         * lib/unictype/categ_Lm.h: Likewise.
24642         * lib/unictype/categ_Lo.h: Likewise.
24643         * lib/unictype/categ_Lu.h: Likewise.
24644         * lib/unictype/categ_M.h: Likewise.
24645         * lib/unictype/categ_Mc.h: Likewise.
24646         * lib/unictype/categ_Me.h: Likewise.
24647         * lib/unictype/categ_Mn.h: Likewise.
24648         * lib/unictype/categ_N.h: Likewise.
24649         * lib/unictype/categ_Nd.h: Likewise.
24650         * lib/unictype/categ_No.h: Likewise.
24651         * lib/unictype/categ_P.h: Likewise.
24652         * lib/unictype/categ_Po.h: Likewise.
24653         * lib/unictype/categ_S.h: Likewise.
24654         * lib/unictype/categ_Sc.h: Likewise.
24655         * lib/unictype/categ_Sk.h: Likewise.
24656         * lib/unictype/categ_Sm.h: Likewise.
24657         * lib/unictype/categ_So.h: Likewise.
24658         * lib/unictype/categ_of.h: Likewise.
24659         * lib/unictype/combining.h: Likewise.
24660         * lib/unictype/ctype_alnum.h: Likewise.
24661         * lib/unictype/ctype_alpha.h: Likewise.
24662         * lib/unictype/ctype_graph.h: Likewise.
24663         * lib/unictype/ctype_lower.h: Likewise.
24664         * lib/unictype/ctype_print.h: Likewise.
24665         * lib/unictype/ctype_punct.h: Likewise.
24666         * lib/unictype/ctype_upper.h: Likewise.
24667         * lib/unictype/decdigit.h: Likewise.
24668         * lib/unictype/digit.h: Likewise.
24669         * lib/unictype/numeric.h: Likewise.
24670         * lib/unictype/pr_alphabetic.h: Likewise.
24671         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24672         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24673         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24674         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24675         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24676         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24677         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24678         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24679         * lib/unictype/pr_case_ignorable.h: Likewise.
24680         * lib/unictype/pr_cased.h: Likewise.
24681         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
24682         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
24683         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
24684         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
24685         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
24686         * lib/unictype/pr_combining.h: Likewise.
24687         * lib/unictype/pr_composite.h: Likewise.
24688         * lib/unictype/pr_currency_symbol.h: Likewise.
24689         * lib/unictype/pr_decimal_digit.h: Likewise.
24690         * lib/unictype/pr_deprecated.h: Likewise.
24691         * lib/unictype/pr_format_control.h: Likewise.
24692         * lib/unictype/pr_grapheme_base.h: Likewise.
24693         * lib/unictype/pr_grapheme_extend.h: Likewise.
24694         * lib/unictype/pr_grapheme_link.h: Likewise.
24695         * lib/unictype/pr_id_continue.h: Likewise.
24696         * lib/unictype/pr_id_start.h: Likewise.
24697         * lib/unictype/pr_ideographic.h: Likewise.
24698         * lib/unictype/pr_lowercase.h: Likewise.
24699         * lib/unictype/pr_math.h: Likewise.
24700         * lib/unictype/pr_numeric.h: Likewise.
24701         * lib/unictype/pr_other_alphabetic.h: Likewise.
24702         * lib/unictype/pr_other_id_continue.h: Likewise.
24703         * lib/unictype/pr_other_math.h: Likewise.
24704         * lib/unictype/pr_punctuation.h: Likewise.
24705         * lib/unictype/pr_sentence_terminal.h: Likewise.
24706         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24707         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24708         * lib/unictype/pr_unified_ideograph.h: Likewise.
24709         * lib/unictype/pr_uppercase.h: Likewise.
24710         * lib/unictype/pr_xid_continue.h: Likewise.
24711         * lib/unictype/pr_xid_start.h: Likewise.
24712         * lib/unictype/scripts.h: Likewise.
24713         * lib/unictype/scripts_byname.gperf: Likewise.
24714         * lib/unictype/sy_java_ident.h: Likewise.
24715         * lib/unigbrk/gbrkprop.h: Likewise.
24716         * lib/unilbrk/lbrkprop1.h: Likewise.
24717         * lib/unilbrk/lbrkprop2.h: Likewise.
24718         * lib/uninorm/decomposition-table2.h: Likewise.
24719         * lib/uniwbrk/wbrkprop.h: Likewise.
24720         * tests/unicase/test-cased.c: Likewise.
24721         * tests/unicase/test-ignorable.c: Likewise.
24722         * tests/unicase/test-uc_tolower.c: Likewise.
24723         * tests/unicase/test-uc_totitle.c: Likewise.
24724         * tests/unicase/test-uc_toupper.c: Likewise.
24725         * tests/unictype/test-categ_C.c: Likewise.
24726         * tests/unictype/test-categ_Cn.c: Likewise.
24727         * tests/unictype/test-categ_L.c: Likewise.
24728         * tests/unictype/test-categ_Ll.c: Likewise.
24729         * tests/unictype/test-categ_Lm.c: Likewise.
24730         * tests/unictype/test-categ_Lo.c: Likewise.
24731         * tests/unictype/test-categ_Lu.c: Likewise.
24732         * tests/unictype/test-categ_M.c: Likewise.
24733         * tests/unictype/test-categ_Mc.c: Likewise.
24734         * tests/unictype/test-categ_Me.c: Likewise.
24735         * tests/unictype/test-categ_Mn.c: Likewise.
24736         * tests/unictype/test-categ_N.c: Likewise.
24737         * tests/unictype/test-categ_Nd.c: Likewise.
24738         * tests/unictype/test-categ_No.c: Likewise.
24739         * tests/unictype/test-categ_P.c: Likewise.
24740         * tests/unictype/test-categ_Po.c: Likewise.
24741         * tests/unictype/test-categ_S.c: Likewise.
24742         * tests/unictype/test-categ_Sc.c: Likewise.
24743         * tests/unictype/test-categ_Sk.c: Likewise.
24744         * tests/unictype/test-categ_Sm.c: Likewise.
24745         * tests/unictype/test-categ_So.c: Likewise.
24746         * tests/unictype/test-ctype_alnum.c: Likewise.
24747         * tests/unictype/test-ctype_alpha.c: Likewise.
24748         * tests/unictype/test-ctype_graph.c: Likewise.
24749         * tests/unictype/test-ctype_lower.c: Likewise.
24750         * tests/unictype/test-ctype_print.c: Likewise.
24751         * tests/unictype/test-ctype_punct.c: Likewise.
24752         * tests/unictype/test-ctype_upper.c: Likewise.
24753         * tests/unictype/test-decdigit.h: Likewise.
24754         * tests/unictype/test-digit.h: Likewise.
24755         * tests/unictype/test-numeric.h: Likewise.
24756         * tests/unictype/test-pr_alphabetic.c: Likewise.
24757         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24758         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
24759         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
24760         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24761         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24762         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24763         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24764         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24765         * tests/unictype/test-pr_case_ignorable.c: Likewise.
24766         * tests/unictype/test-pr_cased.c: Likewise.
24767         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
24768         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
24769         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
24770         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
24771         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
24772         * tests/unictype/test-pr_combining.c: Likewise.
24773         * tests/unictype/test-pr_composite.c: Likewise.
24774         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24775         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24776         * tests/unictype/test-pr_deprecated.c: Likewise.
24777         * tests/unictype/test-pr_format_control.c: Likewise.
24778         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24779         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24780         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24781         * tests/unictype/test-pr_id_continue.c: Likewise.
24782         * tests/unictype/test-pr_id_start.c: Likewise.
24783         * tests/unictype/test-pr_ideographic.c: Likewise.
24784         * tests/unictype/test-pr_lowercase.c: Likewise.
24785         * tests/unictype/test-pr_math.c: Likewise.
24786         * tests/unictype/test-pr_numeric.c: Likewise.
24787         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24788         * tests/unictype/test-pr_other_id_continue.c: Likewise.
24789         * tests/unictype/test-pr_other_math.c: Likewise.
24790         * tests/unictype/test-pr_punctuation.c: Likewise.
24791         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24792         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24793         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24794         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24795         * tests/unictype/test-pr_uppercase.c: Likewise.
24796         * tests/unictype/test-pr_xid_continue.c: Likewise.
24797         * tests/unictype/test-pr_xid_start.c: Likewise.
24798         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24799         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24800         changes.
24801         * lib/unictype/categ_Cc.h: Likewise.
24802         * lib/unictype/categ_Cf.h: Likewise.
24803         * lib/unictype/categ_Co.h: Likewise.
24804         * lib/unictype/categ_Cs.h: Likewise.
24805         * lib/unictype/categ_Lt.h: Likewise.
24806         * lib/unictype/categ_Nl.h: Likewise.
24807         * lib/unictype/categ_Pc.h: Likewise.
24808         * lib/unictype/categ_Pd.h: Likewise.
24809         * lib/unictype/categ_Pe.h: Likewise.
24810         * lib/unictype/categ_Pf.h: Likewise.
24811         * lib/unictype/categ_Pi.h: Likewise.
24812         * lib/unictype/categ_Ps.h: Likewise.
24813         * lib/unictype/categ_Z.h: Likewise.
24814         * lib/unictype/categ_Zl.h: Likewise.
24815         * lib/unictype/categ_Zp.h: Likewise.
24816         * lib/unictype/categ_Zs.h: Likewise.
24817         * lib/unictype/ctype_blank.h: Likewise.
24818         * lib/unictype/ctype_cntrl.h: Likewise.
24819         * lib/unictype/ctype_digit.h: Likewise.
24820         * lib/unictype/ctype_space.h: Likewise.
24821         * lib/unictype/ctype_xdigit.h: Likewise.
24822         * lib/unictype/mirror.h: Likewise.
24823         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24824         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24825         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24826         * lib/unictype/pr_bidi_control.h: Likewise.
24827         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24828         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24829         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24830         * lib/unictype/pr_bidi_pdf.h: Likewise.
24831         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24832         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24833         * lib/unictype/pr_dash.h: Likewise.
24834         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24835         * lib/unictype/pr_diacritic.h: Likewise.
24836         * lib/unictype/pr_extender.h: Likewise.
24837         * lib/unictype/pr_hex_digit.h: Likewise.
24838         * lib/unictype/pr_hyphen.h: Likewise.
24839         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24840         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24841         * lib/unictype/pr_ignorable_control.h: Likewise.
24842         * lib/unictype/pr_iso_control.h: Likewise.
24843         * lib/unictype/pr_join_control.h: Likewise.
24844         * lib/unictype/pr_left_of_pair.h: Likewise.
24845         * lib/unictype/pr_line_separator.h: Likewise.
24846         * lib/unictype/pr_logical_order_exception.h: Likewise.
24847         * lib/unictype/pr_non_break.h: Likewise.
24848         * lib/unictype/pr_not_a_character.h: Likewise.
24849         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24850         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24851         * lib/unictype/pr_other_id_start.h: Likewise.
24852         * lib/unictype/pr_other_lowercase.h: Likewise.
24853         * lib/unictype/pr_other_uppercase.h: Likewise.
24854         * lib/unictype/pr_paired_punctuation.h: Likewise.
24855         * lib/unictype/pr_paragraph_separator.h: Likewise.
24856         * lib/unictype/pr_pattern_syntax.h: Likewise.
24857         * lib/unictype/pr_pattern_white_space.h: Likewise.
24858         * lib/unictype/pr_private_use.h: Likewise.
24859         * lib/unictype/pr_quotation_mark.h: Likewise.
24860         * lib/unictype/pr_radical.h: Likewise.
24861         * lib/unictype/pr_soft_dotted.h: Likewise.
24862         * lib/unictype/pr_space.h: Likewise.
24863         * lib/unictype/pr_titlecase.h: Likewise.
24864         * lib/unictype/pr_variation_selector.h: Likewise.
24865         * lib/unictype/pr_white_space.h: Likewise.
24866         * lib/unictype/pr_zero_width.h: Likewise.
24867         * lib/unictype/sy_c_ident.h: Likewise.
24868         * lib/unictype/sy_c_whitespace.h: Likewise.
24869         * lib/unictype/sy_java_whitespace.h: Likewise.
24870         * lib/uninorm/composition-table.gperf: Likewise.
24871         * lib/uninorm/decomposition-table1.h: Likewise.
24872         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
24873         LB8.
24874         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24875         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24876         * modules/unictype/*: Bump version number of expected libunistring
24877         version.
24878
24879 2011-01-09  Bruno Haible  <bruno@clisp.org>
24880
24881         Update to Unicode 5.2.0.
24882         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
24883         trailing whitespace removed.
24884
24885 2011-01-09  Bruno Haible  <bruno@clisp.org>
24886
24887         New Unicode character properties, from Unicode 5.2.0.
24888         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
24889         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
24890         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
24891         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
24892         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
24893         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
24894         uc_is_property_cased, uc_is_property_case_ignorable,
24895         uc_is_property_changes_when_lowercased,
24896         uc_is_property_changes_when_uppercased,
24897         uc_is_property_changes_when_titlecased,
24898         uc_is_property_changes_when_casefolded,
24899         uc_is_property_changes_when_casemapped): New declarations.
24900         * lib/unictype/pr_byname.gperf: Add the new properties.
24901         * modules/unictype/property-byname (Depends-on): Depend on the new
24902         properties modules.
24903         * modules/unictype/property-all (Depends-on): Likewise.
24904         * MODULES.html.sh (Unicode string functions): Add
24905         unictype/property-case-ignorable, unictype/property-cased,
24906         unictype/property-changes-when-casefolded,
24907         unictype/property-changes-when-casemapped,
24908         unictype/property-changes-when-lowercased,
24909         unictype/property-changes-when-titlecased,
24910         unictype/property-changes-when-uppercased.
24911
24912         New module 'unictype/property-changes-when-casemapped'.
24913         * modules/unictype/property-changes-when-casemapped: New file.
24914         * lib/unictype/pr_changes_when_casemapped.c: New file.
24915         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
24916         generated by gen-uni-tables.
24917         * modules/unictype/property-changes-when-casemapped-tests: New file.
24918         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
24919         automatically generated by gen-uni-tables.
24920
24921         New module 'unictype/property-changes-when-casefolded'.
24922         * modules/unictype/property-changes-when-casefolded: New file.
24923         * lib/unictype/pr_changes_when_casefolded.c: New file.
24924         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
24925         generated by gen-uni-tables.
24926         * modules/unictype/property-changes-when-casefolded-tests: New file.
24927         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
24928         automatically generated by gen-uni-tables.
24929
24930         New module 'unictype/property-changes-when-titlecased'.
24931         * modules/unictype/property-changes-when-titlecased: New file.
24932         * lib/unictype/pr_changes_when_titlecased.c: New file.
24933         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
24934         generated by gen-uni-tables.
24935         * modules/unictype/property-changes-when-titlecased-tests: New file.
24936         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
24937         automatically generated by gen-uni-tables.
24938
24939         New module 'unictype/property-changes-when-uppercased'.
24940         * modules/unictype/property-changes-when-uppercased: New file.
24941         * lib/unictype/pr_changes_when_uppercased.c: New file.
24942         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
24943         generated by gen-uni-tables.
24944         * modules/unictype/property-changes-when-uppercased-tests: New file.
24945         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
24946         automatically generated by gen-uni-tables.
24947
24948         New module 'unictype/property-changes-when-lowercased'.
24949         * modules/unictype/property-changes-when-lowercased: New file.
24950         * lib/unictype/pr_changes_when_lowercased.c: New file.
24951         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
24952         generated by gen-uni-tables.
24953         * modules/unictype/property-changes-when-lowercased-tests: New file.
24954         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
24955         automatically generated by gen-uni-tables.
24956
24957         New module 'unictype/property-case-ignorable'.
24958         * modules/unictype/property-case-ignorable: New file.
24959         * lib/unictype/pr_case_ignorable.c: New file.
24960         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
24961         by gen-uni-tables.
24962         * modules/unictype/property-case-ignorable-tests: New file.
24963         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
24964         generated by gen-uni-tables.
24965
24966         New module 'unictype/property-cased'.
24967         * modules/unictype/property-cased: New file.
24968         * lib/unictype/pr_cased.c: New file.
24969         * lib/unictype/pr_cased.h: New file, automatically generated by
24970         gen-uni-tables.
24971         * modules/unictype/property-cased-tests: New file.
24972         * tests/unictype/test-pr_cased.c: New file, automatically generated by
24973         gen-uni-tables.
24974
24975 2011-01-09  Bruno Haible  <bruno@clisp.org>
24976
24977         Update to Unicode 5.2.0.
24978         * lib/gen-uni-tables.c (output_predicate, output_category,
24979         output_combclass, output_bidi_category, output_decimal_digit_test,
24980         output_decimal_digit, output_digit_test, output_digit,
24981         output_numeric_test, output_numeric, output_mirror, output_scripts,
24982         output_scripts_byname, output_blocks, output_ident_category): Fix
24983         comment header.
24984         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
24985         get_wbp.
24986         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
24987         items.
24988         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
24989         Changes_When_Lowercased, Changes_When_Uppercased,
24990         Changes_When_Titlecased, Changes_When_Casefolded,
24991         Changes_When_Casemapped.
24992         (is_property_alphabetic, is_property_default_ignorable_code_point):
24993         Update for Unicode 5.2.0.
24994         (is_property_cased, is_property_case_ignorable,
24995         is_property_changes_when_lowercased,
24996         is_property_changes_when_uppercased,
24997         is_property_changes_when_titlecased,
24998         is_property_changes_when_casefolded,
24999         is_property_changes_when_casemapped): New functions.
25000         (output_properties): Output also the properties cased, case_ignorable,
25001         changes_when_lowercased, changes_when_uppercased,
25002         changes_when_titlecased, changes_when_casefolded,
25003         changes_when_casemapped.
25004         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
25005         Unicode TR#11 revision 17 -> 19.
25006         (LBP_CP): New enumeration value.
25007         (LBP_*): Adjust values accordingly.
25008         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25009         TR#14 revision 22 -> 24.
25010         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
25011         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
25012         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25013         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
25014         is_WBP_MIDLETTER.
25015         (output_composition_tables): Allow for 24 bits instead of 16 bits in
25016         the code1 and code2 of each composition rule.
25017         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
25018         * lib/unicase/ignorable.h: Likewise.
25019         * lib/unicase/tocasefold.h: Likewise.
25020         * lib/unicase/tolower.h: Likewise.
25021         * lib/unicase/totitle.h: Likewise.
25022         * lib/unicase/toupper.h: Likewise.
25023         * lib/unictype/bidi_of.h: Likewise.
25024         * lib/unictype/blocks.h: Likewise.
25025         * lib/unictype/categ_C.h: Likewise.
25026         * lib/unictype/categ_Cf.h: Likewise.
25027         * lib/unictype/categ_Cn.h: Likewise.
25028         * lib/unictype/categ_L.h: Likewise.
25029         * lib/unictype/categ_Ll.h: Likewise.
25030         * lib/unictype/categ_Lm.h: Likewise.
25031         * lib/unictype/categ_Lo.h: Likewise.
25032         * lib/unictype/categ_Lu.h: Likewise.
25033         * lib/unictype/categ_M.h: Likewise.
25034         * lib/unictype/categ_Mc.h: Likewise.
25035         * lib/unictype/categ_Mn.h: Likewise.
25036         * lib/unictype/categ_N.h: Likewise.
25037         * lib/unictype/categ_Nd.h: Likewise.
25038         * lib/unictype/categ_Nl.h: Likewise.
25039         * lib/unictype/categ_No.h: Likewise.
25040         * lib/unictype/categ_P.h: Likewise.
25041         * lib/unictype/categ_Pd.h: Likewise.
25042         * lib/unictype/categ_Po.h: Likewise.
25043         * lib/unictype/categ_S.h: Likewise.
25044         * lib/unictype/categ_Sc.h: Likewise.
25045         * lib/unictype/categ_So.h: Likewise.
25046         * lib/unictype/categ_of.h: Likewise.
25047         * lib/unictype/combining.h: Likewise.
25048         * lib/unictype/ctype_alnum.h: Likewise.
25049         * lib/unictype/ctype_alpha.h: Likewise.
25050         * lib/unictype/ctype_graph.h: Likewise.
25051         * lib/unictype/ctype_lower.h: Likewise.
25052         * lib/unictype/ctype_print.h: Likewise.
25053         * lib/unictype/ctype_punct.h: Likewise.
25054         * lib/unictype/ctype_upper.h: Likewise.
25055         * lib/unictype/decdigit.h: Likewise.
25056         * lib/unictype/digit.h: Likewise.
25057         * lib/unictype/numeric.h: Likewise.
25058         * lib/unictype/pr_alphabetic.h: Likewise.
25059         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25060         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25061         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25062         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25063         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25064         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25065         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25066         * lib/unictype/pr_combining.h: Likewise.
25067         * lib/unictype/pr_composite.h: Likewise.
25068         * lib/unictype/pr_currency_symbol.h: Likewise.
25069         * lib/unictype/pr_dash.h: Likewise.
25070         * lib/unictype/pr_decimal_digit.h: Likewise.
25071         * lib/unictype/pr_deprecated.h: Likewise.
25072         * lib/unictype/pr_diacritic.h: Likewise.
25073         * lib/unictype/pr_extender.h: Likewise.
25074         * lib/unictype/pr_grapheme_base.h: Likewise.
25075         * lib/unictype/pr_grapheme_extend.h: Likewise.
25076         * lib/unictype/pr_grapheme_link.h: Likewise.
25077         * lib/unictype/pr_id_continue.h: Likewise.
25078         * lib/unictype/pr_id_start.h: Likewise.
25079         * lib/unictype/pr_ideographic.h: Likewise.
25080         * lib/unictype/pr_ignorable_control.h: Likewise.
25081         * lib/unictype/pr_logical_order_exception.h: Likewise.
25082         * lib/unictype/pr_lowercase.h: Likewise.
25083         * lib/unictype/pr_numeric.h: Likewise.
25084         * lib/unictype/pr_other_alphabetic.h: Likewise.
25085         * lib/unictype/pr_punctuation.h: Likewise.
25086         * lib/unictype/pr_sentence_terminal.h: Likewise.
25087         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25088         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25089         * lib/unictype/pr_unified_ideograph.h: Likewise.
25090         * lib/unictype/pr_uppercase.h: Likewise.
25091         * lib/unictype/pr_xid_continue.h: Likewise.
25092         * lib/unictype/pr_xid_start.h: Likewise.
25093         * lib/unictype/pr_zero_width.h: Likewise.
25094         * lib/unictype/scripts.h: Likewise.
25095         * lib/unictype/scripts_byname.gperf: Likewise.
25096         * lib/unictype/sy_java_ident.h: Likewise.
25097         * lib/unigbrk/gbrkprop.h: Likewise.
25098         * lib/unilbrk/lbrkprop1.h: Likewise.
25099         * lib/unilbrk/lbrkprop2.h: Likewise.
25100         * lib/unilbrk/lbrktables.h: Likewise.
25101         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
25102         LBP_CP. Implement rule LB30.
25103         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
25104         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
25105         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
25106         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
25107         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
25108         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
25109         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
25110         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
25111         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
25112         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
25113         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
25114         bits instead of 16 bits in the code1 and code2 of each composition
25115         rule.
25116         (uc_composition): Update for Unicode 5.2.0.
25117         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
25118         * lib/uninorm/decomposition-table2.h: Likewise.
25119         * lib/uniwbrk/wbrkprop.h: Likewise.
25120         * tests/unicase/test-cased.c: Likewise.
25121         * tests/unicase/test-ignorable.c: Likewise.
25122         * tests/unicase/test-uc_tolower.c: Likewise.
25123         * tests/unicase/test-uc_totitle.c: Likewise.
25124         * tests/unicase/test-uc_toupper.c: Likewise.
25125         * tests/unictype/test-categ_C.c: Likewise.
25126         * tests/unictype/test-categ_Cf.c: Likewise.
25127         * tests/unictype/test-categ_Cn.c: Likewise.
25128         * tests/unictype/test-categ_L.c: Likewise.
25129         * tests/unictype/test-categ_Ll.c: Likewise.
25130         * tests/unictype/test-categ_Lm.c: Likewise.
25131         * tests/unictype/test-categ_Lo.c: Likewise.
25132         * tests/unictype/test-categ_Lu.c: Likewise.
25133         * tests/unictype/test-categ_M.c: Likewise.
25134         * tests/unictype/test-categ_Mc.c: Likewise.
25135         * tests/unictype/test-categ_Mn.c: Likewise.
25136         * tests/unictype/test-categ_N.c: Likewise.
25137         * tests/unictype/test-categ_Nd.c: Likewise.
25138         * tests/unictype/test-categ_Nl.c: Likewise.
25139         * tests/unictype/test-categ_No.c: Likewise.
25140         * tests/unictype/test-categ_P.c: Likewise.
25141         * tests/unictype/test-categ_Pd.c: Likewise.
25142         * tests/unictype/test-categ_Po.c: Likewise.
25143         * tests/unictype/test-categ_S.c: Likewise.
25144         * tests/unictype/test-categ_Sc.c: Likewise.
25145         * tests/unictype/test-categ_So.c: Likewise.
25146         * tests/unictype/test-ctype_alnum.c: Likewise.
25147         * tests/unictype/test-ctype_alpha.c: Likewise.
25148         * tests/unictype/test-ctype_graph.c: Likewise.
25149         * tests/unictype/test-ctype_lower.c: Likewise.
25150         * tests/unictype/test-ctype_print.c: Likewise.
25151         * tests/unictype/test-ctype_punct.c: Likewise.
25152         * tests/unictype/test-ctype_upper.c: Likewise.
25153         * tests/unictype/test-decdigit.h: Likewise.
25154         * tests/unictype/test-digit.h: Likewise.
25155         * tests/unictype/test-numeric.h: Likewise.
25156         * tests/unictype/test-pr_alphabetic.c: Likewise.
25157         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25158         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25159         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25160         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25161         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25162         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25163         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25164         * tests/unictype/test-pr_combining.c: Likewise.
25165         * tests/unictype/test-pr_composite.c: Likewise.
25166         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25167         * tests/unictype/test-pr_dash.c: Likewise.
25168         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25169         * tests/unictype/test-pr_deprecated.c: Likewise.
25170         * tests/unictype/test-pr_diacritic.c: Likewise.
25171         * tests/unictype/test-pr_extender.c: Likewise.
25172         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25173         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25174         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25175         * tests/unictype/test-pr_id_continue.c: Likewise.
25176         * tests/unictype/test-pr_id_start.c: Likewise.
25177         * tests/unictype/test-pr_ideographic.c: Likewise.
25178         * tests/unictype/test-pr_ignorable_control.c: Likewise.
25179         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25180         * tests/unictype/test-pr_lowercase.c: Likewise.
25181         * tests/unictype/test-pr_numeric.c: Likewise.
25182         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25183         * tests/unictype/test-pr_punctuation.c: Likewise.
25184         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25185         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25186         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25187         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25188         * tests/unictype/test-pr_uppercase.c: Likewise.
25189         * tests/unictype/test-pr_xid_continue.c: Likewise.
25190         * tests/unictype/test-pr_xid_start.c: Likewise.
25191         * tests/unictype/test-pr_zero_width.c: Likewise.
25192         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25193         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
25194         changed behaviour: line breaking is now disallowed between a letter
25195         or '=' and '('.
25196         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25197         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25198         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25199         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
25200         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25201         lib/uniwidth/width.c.
25202         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
25203         without comments, but with the original copyright notice.
25204         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25205         changes.
25206         * lib/unictype/categ_Cc.h: Likewise.
25207         * lib/unictype/categ_Co.h: Likewise.
25208         * lib/unictype/categ_Cs.h: Likewise.
25209         * lib/unictype/categ_Lt.h: Likewise.
25210         * lib/unictype/categ_Me.h: Likewise.
25211         * lib/unictype/categ_Pc.h: Likewise.
25212         * lib/unictype/categ_Pe.h: Likewise.
25213         * lib/unictype/categ_Pf.h: Likewise.
25214         * lib/unictype/categ_Pi.h: Likewise.
25215         * lib/unictype/categ_Ps.h: Likewise.
25216         * lib/unictype/categ_Sk.h: Likewise.
25217         * lib/unictype/categ_Sm.h: Likewise.
25218         * lib/unictype/categ_Z.h: Likewise.
25219         * lib/unictype/categ_Zl.h: Likewise.
25220         * lib/unictype/categ_Zp.h: Likewise.
25221         * lib/unictype/categ_Zs.h: Likewise.
25222         * lib/unictype/ctype_blank.h: Likewise.
25223         * lib/unictype/ctype_cntrl.h: Likewise.
25224         * lib/unictype/ctype_digit.h: Likewise.
25225         * lib/unictype/ctype_space.h: Likewise.
25226         * lib/unictype/ctype_xdigit.h: Likewise.
25227         * lib/unictype/mirror.h: Likewise.
25228         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25229         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25230         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25231         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25232         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25233         * lib/unictype/pr_bidi_control.h: Likewise.
25234         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25235         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25236         * lib/unictype/pr_bidi_pdf.h: Likewise.
25237         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25238         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25239         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25240         * lib/unictype/pr_format_control.h: Likewise.
25241         * lib/unictype/pr_hex_digit.h: Likewise.
25242         * lib/unictype/pr_hyphen.h: Likewise.
25243         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25244         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25245         * lib/unictype/pr_iso_control.h: Likewise.
25246         * lib/unictype/pr_join_control.h: Likewise.
25247         * lib/unictype/pr_left_of_pair.h: Likewise.
25248         * lib/unictype/pr_line_separator.h: Likewise.
25249         * lib/unictype/pr_math.h: Likewise.
25250         * lib/unictype/pr_non_break.h: Likewise.
25251         * lib/unictype/pr_not_a_character.h: Likewise.
25252         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25253         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25254         * lib/unictype/pr_other_id_continue.h: Likewise.
25255         * lib/unictype/pr_other_id_start.h: Likewise.
25256         * lib/unictype/pr_other_lowercase.h: Likewise.
25257         * lib/unictype/pr_other_math.h: Likewise.
25258         * lib/unictype/pr_other_uppercase.h: Likewise.
25259         * lib/unictype/pr_paired_punctuation.h: Likewise.
25260         * lib/unictype/pr_paragraph_separator.h: Likewise.
25261         * lib/unictype/pr_pattern_syntax.h: Likewise.
25262         * lib/unictype/pr_pattern_white_space.h: Likewise.
25263         * lib/unictype/pr_private_use.h: Likewise.
25264         * lib/unictype/pr_quotation_mark.h: Likewise.
25265         * lib/unictype/pr_radical.h: Likewise.
25266         * lib/unictype/pr_soft_dotted.h: Likewise.
25267         * lib/unictype/pr_space.h: Likewise.
25268         * lib/unictype/pr_titlecase.h: Likewise.
25269         * lib/unictype/pr_variation_selector.h: Likewise.
25270         * lib/unictype/pr_white_space.h: Likewise.
25271         * lib/unictype/sy_c_ident.h: Likewise.
25272         * lib/unictype/sy_c_whitespace.h: Likewise.
25273         * lib/unictype/sy_java_whitespace.h: Likewise.
25274         * modules/uni*/*: Bump version number of expected libunistring version.
25275         Reported by Simon Josefsson.
25276
25277 2011-01-09  Karl Heuer  <kwzh@gnu.org>
25278
25279         useless-if-before-free: fix typo in --help and make the internal,
25280         automatic version date update process work once again.
25281         --help output contained a NUL character instead of the
25282         backslash-zero that was intended.  Also, the "must lie within
25283         the first 8 lines" line is on line 9, and hence not getting
25284         automatically updated.
25285         * build-aux/useless-if-before-free: Fix the former by adding a
25286         backslash, and the latter by condensing the three lines of what-it-does
25287         to a single line, leaving one line of slack for the future.
25288
25289 2011-01-09  Bruno Haible  <bruno@clisp.org>
25290
25291         uniwidth/width: Fix width of U+1D173..U+1D17A.
25292         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
25293         symbolic_width, output_width_property_test): New functions.
25294         (main): Invoke output_nonspacing_property, output_width_property_test.
25295         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
25296         U+1D173..U+1D17A.
25297         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
25298         1.
25299         * modules/uniwidth/*: Bump version number of expected libunistring
25300         version.
25301         * modules/unilbrk/*: Likewise.
25302
25303 2011-01-08  Bruno Haible  <bruno@clisp.org>
25304
25305         uninorm tests: Preserve copyright of Unicode data file.
25306         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
25307         Mention modifications.
25308
25309 2011-01-08  Bruno Haible  <bruno@clisp.org>
25310
25311         gen-uni-tables: Prepare for Unicode 5.2.0.
25312         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
25313         (debug_output_lbp, output_lbp): Update.
25314
25315 2011-01-08  Bruno Haible  <bruno@clisp.org>
25316
25317         unilbrk: Clarify gen-uni-tables.c code.
25318         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
25319         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
25320         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
25321
25322 2011-01-07  Bruno Haible  <bruno@clisp.org>
25323
25324         strtod: Restore errno when successfully parsing Infinity or NaN.
25325         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
25326         restore the original errno.
25327
25328 2011-01-07  Bruno Haible  <bruno@clisp.org>
25329
25330         remove test: Avoid failure on HP-UX 11.
25331         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
25332
25333 2011-01-07  Bruno Haible  <bruno@clisp.org>
25334
25335         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
25336         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
25337         error code.
25338
25339 2011-01-07  Pádraig Brady <P@draigBrady.com>
25340
25341         ignore-value: fixup comments, and add Eric Blake
25342         as an author since he rewrote the macros.
25343         * lib/ignore-value.h (ignore_value):  State that
25344         we now support aggregates.  Also specify exactly
25345         when the GCC warn_unused_result feature was added.
25346
25347 2011-01-06  Eric Blake  <eblake@redhat.com>
25348
25349         ignore-value: support aggregate types
25350         * lib/ignore-value.h (ignore_value): Provide separate gcc
25351         definition.
25352         * modules/ignore-value-tests: New test module.
25353         * tests/test-ignore-value.c: New test.
25354
25355         maint.mk: improve sc_prohibit_strcmp regex
25356         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
25357         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
25358         definition of STRNEQ.
25359
25360         signal: work around Haiku issue with SIGBUS
25361         * lib/siglist.h: Add comment.
25362         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
25363         strsignal's favoring of SIGSEGV.
25364         * tests/test-signal.c (main): Avoid test failure.
25365         * doc/posix-headers/signal.texi (signal.h): Document the issue.
25366         Reported by Scott McCreary.
25367
25368         maint.mk: add pre-release check to ensure submodule commits are public
25369         * top/maint.mk (public-submodule-commit): New rule.
25370         (submodule-checks): New variable.
25371         (alpha beta stable): Depend on the variable.
25372
25373 2011-01-05  Pádraig Brady <P@draigBrady.com>
25374         and Jim Meyering  <meyering@redhat.com>
25375
25376         ignore-value: make ignore_value more generic; deprecate ignore_ptr
25377         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
25378         (ATTRIBUTE_DEPRECATED): Define.
25379         (_ignore_case): New function.
25380         (ignore_value): New macro, to replace the old function.
25381         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
25382         * modules/ignore-value (Depends-on): Add stdint.
25383
25384 2011-01-04  Eric Blake  <eblake@redhat.com>
25385
25386         doc: regenerate INSTALL
25387         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
25388         @firstparagraphindent support, now that autoconf dropped it.
25389         (INSTALL_PRELUDE): Reinstate old macro.
25390         * doc/install.texi: Resync from autoconf.
25391         * doc/INSTALL: Reflect recent autoconf update.
25392         * doc/INSTALL.ISO: Likewise.
25393         * doc/INSTALL.UTF-8: Likewise.
25394         Reported by Karl Berry.
25395
25396 2011-01-04  Bruce Korb  <address@hidden>
25397
25398         git-version-gen: avoid a sub-shell
25399         * build-aux/git-version-gen: Redirect stderr in `...` via
25400         "exec 2>...", rather than via an added sub-shell.
25401
25402 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
25403
25404         git-version-gen: use (...) rather than sh -c '...'
25405         * build-aux/git-version-gen: Rather than hard-coding a shell's name
25406         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
25407
25408 2011-01-03  Jim Meyering  <meyering@redhat.com>
25409
25410         git-version-gen: convert leading TABs to spaces
25411         * build-aux/git-version-gen: Expand leading TABs.
25412
25413         git-version-gen: handle failed "git rev-list"
25414         * build-aux/git-version-gen: Rather than leaking a "fatal" error
25415         from git and proceeding as if it had succeeded but printed no SHA1
25416         checksums, suppress the diagnostic and handle the failure.
25417         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
25418
25419         git-version-gen: include command name in one more diagnostic
25420         * build-aux/git-version-gen: When the required .tarball-version file
25421         was missing or unreadable, you might see the diagnostic from "cat",
25422         but no trace of the name of the invoking script.  Now, you still see
25423         the diagnostic from cat, but also get one from "git-version-gen: ".
25424         Inspired by a patch from Bruce Korb.
25425
25426         update-copyright: adjust test to match changed code
25427         * tests/test-update-copyright.sh: Change test's expected output
25428         to match new actual output.
25429
25430 2011-01-02  Bruno Haible  <bruno@clisp.org>
25431
25432         getlogin_r: Avoid test failure on HP-UX 11.
25433         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
25434         ERANGE when the second argument is zero.
25435         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
25436         portability problem.
25437
25438 2011-01-02  Bruce Korb  <bkorb@gnu.org>
25439
25440         * build-aux/update-copyright: doc Simon's changes
25441
25442 2011-01-02  Simon Josefsson  <simon@josefsson.org>
25443
25444         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
25445         environment variable.
25446
25447 2011-01-02  Bruno Haible  <bruno@clisp.org>
25448
25449         unigbrk: Avoid gcc warnings.
25450         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
25451         unused variable.
25452         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
25453         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
25454         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
25455         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
25456         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
25457         Change type of first argument to 'const char *'.
25458         (main): Remove unused variable.
25459         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
25460         type of first argument to 'const char *'.
25461         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
25462         Likewise.
25463         (main): Change type of variable 's'.
25464         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
25465         to 'int'.
25466
25467 2011-01-02  Bruno Haible  <bruno@clisp.org>
25468
25469         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
25470         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
25471         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
25472         bug.
25473         * lib/pwrite.c: Undo 2010-12-31 patch.
25474         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
25475
25476 2011-01-02  Bruno Haible  <bruno@clisp.org>
25477
25478         pread: Fix test whether it works.
25479         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
25480
25481 2011-01-02  Bruno Haible  <bruno@clisp.org>
25482
25483         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
25484         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
25485         ends in "6". Don't require a specific month name. Try also the locale
25486         names found on HP-UX 11 and Solaris 7.
25487
25488 2011-01-02  Bruno Haible  <bruno@clisp.org>
25489
25490         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
25491         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
25492         C linkage.
25493         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
25494
25495 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25496
25497         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
25498         for consistency, since the "cluster" term is not used elsewhere.
25499         * lib/unigbrk.in.h: Update name.
25500         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
25501         * lib/unigbrk/u16-grapheme-next.c: Update name.
25502         * lib/unigbrk/u16-grapheme-prev.c: Update name.
25503         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
25504         * lib/unigbrk/u32-grapheme-next.c: Update name.
25505         * lib/unigbrk/u32-grapheme-prev.c: Update name.
25506         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
25507         * lib/unigbrk/u8-grapheme-next.c: Update name.
25508         * lib/unigbrk/u8-grapheme-prev.c: Update name.
25509         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
25510         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
25511         Suggested by Bruno Haible.
25512
25513 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25514
25515         Remove module 'u8-grapheme-len' as too redundant with
25516         'u8-grapheme-next'.
25517         * modules/unigbrk/u8-grapheme-len: Delete file.
25518         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
25519         * lib/unigbrk.in.h: Remove prototype for deleted function.
25520         * lib/unigbrk/u8-grapheme-len.c: Delete file.
25521         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
25522
25523         Remove module 'u16-grapheme-len' as too redundant with
25524         'u16-grapheme-next'.
25525         * modules/unigbrk/u16-grapheme-len: Delete file.
25526         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
25527         * lib/unigbrk.in.h: Remove prototype for deleted function.
25528         * lib/unigbrk/u16-grapheme-len.c: Delete file.
25529         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
25530
25531         Remove module 'u32-grapheme-len' as too redundant with
25532         'u32-grapheme-next'.
25533         * modules/unigbrk/u32-grapheme-len: Delete file.
25534         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
25535         * lib/unigbrk.in.h: Remove prototype for deleted function.
25536         * lib/unigbrk/u32-grapheme-len.c: Delete file.
25537         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
25538
25539         Suggested by Bruno Haible.
25540
25541 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25542
25543         * unigbrk.in.h: Fix typo: "ben" => "been".
25544         Reported by Bruno Haible.
25545
25546 2011-01-01  Jim Meyering  <meyering@redhat.com>
25547
25548         maint: update almost all copyright ranges to include 2011
25549         Run the new "make update-copyright" rule.
25550
25551 2011-01-01  Jim Meyering  <meyering@redhat.com>
25552
25553         maint: update-copyright: exempt doc/INSTALL*
25554         * Makefile (update-copyright): Also exclude doc/INSTALL*,
25555         since they are generated.  Suggested by Bruno Haible.
25556
25557 2011-01-01  Jim Meyering  <meyering@redhat.com>
25558
25559         maint: refine the update-copyright rule
25560         * Makefile (update-copyright): Also exclude any file that includes
25561         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
25562         code that merely generates the comment.
25563
25564 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25565
25566         New module 'u8-grapheme-len'.
25567         * modules/unigbrk/u8-grapheme-len: New file.
25568         * modules/unigbrk/u8-grapheme-len-tests: New file.
25569         * lib/unigbrk.in.h: Add prototype for new function.
25570         * lib/unigbrk/u8-grapheme-len.c: New file.
25571         * tests/unigbrk/test-u8-grapheme-len.c: New file.
25572
25573         New module 'u16-grapheme-len'.
25574         * modules/unigbrk/u16-grapheme-len: New file.
25575         * modules/unigbrk/u16-grapheme-len-tests: New file.
25576         * lib/unigbrk.in.h: Add prototype for new function.
25577         * lib/unigbrk/u16-grapheme-len.c: New file.
25578         * tests/unigbrk/test-u16-grapheme-len.c: New file.
25579
25580         New module 'u32-grapheme-len'.
25581         * modules/unigbrk/u32-grapheme-len: New file.
25582         * modules/unigbrk/u32-grapheme-len-tests: New file.
25583         * lib/unigbrk.in.h: Add prototype for new function.
25584         * lib/unigbrk/u32-grapheme-len.c: New file.
25585         * tests/unigbrk/test-u32-grapheme-len.c: New file.
25586
25587         New module 'u8-grapheme-next'.
25588         * modules/unigbrk/u8-grapheme-next: New file.
25589         * modules/unigbrk/u8-grapheme-next-tests: New file.
25590         * lib/unigbrk.in.h: Add prototype for new function.
25591         * lib/unigbrk/u8-grapheme-next.c: New file.
25592         * tests/unigbrk/test-u8-grapheme-next.c: New file.
25593
25594         New module 'u16-grapheme-next'.
25595         * modules/unigbrk/u16-grapheme-next: New file.
25596         * modules/unigbrk/u16-grapheme-next-tests: New file.
25597         * lib/unigbrk.in.h: Add prototype for new function.
25598         * lib/unigbrk/u16-grapheme-next.c: New file.
25599         * tests/unigbrk/test-u16-grapheme-next.c: New file.
25600
25601         New module 'u32-grapheme-next'.
25602         * modules/unigbrk/u32-grapheme-next: New file.
25603         * modules/unigbrk/u32-grapheme-next-tests: New file.
25604         * lib/unigbrk.in.h: Add prototype for new function.
25605         * lib/unigbrk/u32-grapheme-next.c: New file.
25606         * tests/unigbrk/test-u32-grapheme-next.c: New file.
25607
25608         New module 'u8-grapheme-prev'.
25609         * modules/unigbrk/u8-grapheme-prev: New file.
25610         * modules/unigbrk/u8-grapheme-prev-tests: New file.
25611         * lib/unigbrk.in.h: Add prototype for new function.
25612         * lib/unigbrk/u8-grapheme-prev.c: New file.
25613         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
25614
25615         New module 'u16-grapheme-prev'.
25616         * modules/unigbrk/u16-grapheme-prev: New file.
25617         * modules/unigbrk/u16-grapheme-prev-tests: New file.
25618         * lib/unigbrk.in.h: Add prototype for new function.
25619         * lib/unigbrk/u16-grapheme-prev.c: New file.
25620         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
25621
25622         New module 'u32-grapheme-prev'.
25623         * modules/unigbrk/u32-grapheme-prev: New file.
25624         * modules/unigbrk/u32-grapheme-prev-tests: New file.
25625         * lib/unigbrk.in.h: Add prototype for new function.
25626         * lib/unigbrk/u32-grapheme-prev.c: New file.
25627         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
25628
25629         New module 'u8-grapheme-breaks'.
25630         * modules/unigbrk/u8-grapheme-breaks: New file.
25631         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
25632         * lib/unigbrk.in.h: Add prototype for new function.
25633         * lib/unigbrk/u8-grapheme-breaks.c: New file.
25634         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
25635
25636         New module 'u16-grapheme-breaks'.
25637         * modules/unigbrk/u16-grapheme-breaks: New file.
25638         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
25639         * lib/unigbrk.in.h: Add prototype for new function.
25640         * lib/unigbrk/u16-grapheme-breaks.c: New file.
25641         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
25642
25643         New module 'u32-grapheme-breaks'.
25644         * modules/unigbrk/u32-grapheme-breaks: New file.
25645         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
25646         * lib/unigbrk.in.h: Add prototype for new function.
25647         * lib/unigbrk/u32-grapheme-breaks.c: New file.
25648         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
25649
25650         New module 'ulc-grapheme-breaks'.
25651         * modules/unigbrk/ulc-grapheme-breaks: New file.
25652         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
25653         * m4/locale-ar.m4: New file.
25654         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
25655         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
25656         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
25657
25658 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25659
25660         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
25661         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
25662         modified how this file was generated before I initially submitted
25663         the module, but failed to regenerate it.  This meant that several
25664         of the level2 entries were wrong.
25665         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
25666         Remove the division-by-2 that is folded into the table now that
25667         gbrkprop.h has been regenerated properly.  Now -1 entries are
25668         handled correctly.
25669
25670         New module 'unigbrk/uc-gbrk-prop-tests'.
25671         * modules/unigbrk/uc-gbrk-prop-tests: New file.
25672         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
25673         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
25674         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
25675
25676 2011-01-01  Bruno Haible  <bruno@clisp.org>
25677
25678         Avoid use of hexadecimal escapes.
25679         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
25680         instead of hexadecimal escapes.
25681
25682 2011-01-01  Jim Meyering  <meyering@redhat.com>
25683
25684         maint: new rule to update copyright year ranges
25685         * Makefile (update-copyright): New rule.
25686
25687         maint: indent with TABs in Makefile
25688         * Makefile: Expand leading sequences of spaces to TABs
25689
25690         version-etc: update the copyright year it reports
25691         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
25692
25693 2010-12-31  Bruno Haible  <bruno@clisp.org>
25694
25695         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
25696         * lib/isfinite.c (zerof, zerod, zerol): New variables.
25697         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
25698         zero.
25699
25700 2010-12-31  Bruno Haible  <bruno@clisp.org>
25701
25702         pwrite: Work around HP-UX 11.11 bug.
25703         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
25704         works and set REPLACE_PWRITE if not.
25705         * lib/pwrite.c (pwrite): Add an implementation that uses the system
25706         function.
25707         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
25708
25709 2010-12-31  Bruno Haible  <bruno@clisp.org>
25710
25711         pread: Work around HP-UX 11 bugs.
25712         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
25713         and set REPLACE_PREAD if not.
25714         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
25715
25716 2010-12-31  Eric Blake  <eblake@redhat.com>
25717
25718         nl_langinfo: fix YESEXPR on Irix 6.5
25719         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
25720         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
25721         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
25722         it.
25723
25724 2010-12-31  Bruno Haible  <bruno@clisp.org>
25725
25726         iconv: Document HP-UX 11 bug.
25727         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
25728
25729 2010-12-31  Bruno Haible  <bruno@clisp.org>
25730
25731         ldexpl: Fix link error on HP-UX 11.
25732         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
25733         LDEXPL_LIBM, using $ISNANL_LIBM.
25734
25735 2010-12-31  Eric Blake  <eblake@redhat.com>
25736
25737         ftello: avoid compilation failure with SunStudio c89
25738         * lib/ftello.c (ftello): Use lseek, not llseek.
25739
25740         tests: avoid failing coreutils tests on cygwin
25741         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
25742         (create_exe_shims_): Return 0 when skipping.
25743
25744 2010-12-31  Bruno Haible  <bruno@clisp.org>
25745
25746         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
25747         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
25748
25749 2010-12-31  Bruno Haible  <bruno@clisp.org>
25750
25751         waitpid: Fix link error in C++ mode.
25752         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
25753
25754 2010-12-31  Bruno Haible  <bruno@clisp.org>
25755
25756         isnan: Use GCC built-ins when possible.
25757         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
25758         __builtin_isnan.
25759         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
25760         (isnan): Define using GCC built-ins for GCC >= 4.0.
25761
25762 2010-12-31  Bruno Haible  <bruno@clisp.org>
25763
25764         isnand: Fix mistake.
25765         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
25766         __builtin_isnand.
25767
25768 2010-12-31  Bruno Haible  <bruno@clisp.org>
25769
25770         open: Avoid C++ error on HP-UX 11.
25771         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
25772
25773 2010-12-31  Bruno Haible  <bruno@clisp.org>
25774
25775         time_r: Add missing declarations on HP-UX 11.
25776         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
25777         instead of HAVE_LOCALTIME_R.
25778         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
25779         HAVE_LOCALTIME_R always.
25780         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
25781         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
25782         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
25783         HAVE_LOCALTIME_R.
25784         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
25785         * doc/posix-functions/localtime_r.texi: Likewise.
25786
25787 2010-12-29  Eric Blake  <eblake@redhat.com>
25788
25789         mountlist: tweak previous commit
25790         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
25791         Reported by Paul Eggert.
25792
25793         mountlist: fix local drive detection on cygwin
25794         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
25795         that works for cygwin.
25796
25797 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25798
25799         ftoastr, snprintf: ftoastr + snprintf module
25800         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
25801         since the snprintf module now should be good enough here.
25802         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
25803         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
25804         and gl_MODULE_INDICATOR([snprintf]), but the former enables
25805         GNULIB_SNPRINTF only for the test directory, and the latter
25806         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
25807         seems to suffice by itself.
25808
25809 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25810
25811         alloca: one step towards thread-safety
25812         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
25813         need for a static variable.  All callers changed.  This does not
25814         make the alloca replacement thread-safe, but it's one step.
25815
25816         tests: minor indenting change
25817         * tests/init.sh: Sync from coreutils housekeeping patch
25818         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
25819         to keep lines within 80 columns.
25820
25821 2010-12-28  Jim Meyering  <meyering@redhat.com>
25822
25823         regex: don't infloop on persistent failing calloc
25824         * lib/regexec.c (build_trtable): Return failure indication upon
25825         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
25826         In glibc, this was fixed for version 2.13:
25827         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
25828
25829 2010-12-28  Bruno Haible  <bruno@clisp.org>
25830             Paul Eggert <eggert@cs.ucla.edu>
25831
25832         linkat: Make implementation robust against system behaviour variations.
25833         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
25834         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
25835         way, and to -2 if it needs a generic runtime test.
25836         * lib/linkat.c (solaris_optimized_link_immediate,
25837         solaris_optimized_link_follow): New functions.
25838         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
25839         (check_same_link): Use it.
25840
25841 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
25842
25843         New module 'unigbrk/base'.
25844         * modules/unigbrk/base: New file.
25845         * lib/unigbrk.in.h: New file.
25846
25847         New module 'unigbrk/uc-gbrk-prop'.
25848         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
25849         * modules/unigbrk/uc-gbrk-prop: New file.
25850         * lib/unigbrk/gbrkprop.h: New file.
25851         * lib/unigbrk/uc-gbrk-prop.c: New file.
25852
25853         New module 'unigbrk/uc-is-grapheme-break'.
25854         * modules/unigbrk/uc-is-grapheme-break: New file.
25855         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
25856         * lib/unigbrk/uc-is-grapheme-break.c: New file.
25857         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
25858         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
25859         * tests/unigbrk/GraphemeBreakTest.txt: New file.
25860
25861         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
25862
25863 2010-12-27  Bruno Haible  <bruno@clisp.org>
25864
25865         linkat test: Avoid failure on Solaris 11 2010-11.
25866         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
25867
25868 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25869
25870         utimens: work around glibc rounding bug on more platforms
25871         * lib/utimens.c (fdutimens): Work around rounding bug even if
25872         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
25873         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
25874
25875 2010-12-27  Bruno Haible  <bruno@clisp.org>
25876
25877         select tests: Improve comments.
25878         * tests/test-select.c (do_select): Add comments.
25879
25880 2010-12-27  Bruno Haible  <bruno@clisp.org>
25881
25882         select tests: Safer way of handling timeout.
25883         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
25884         at every invocation.
25885
25886 2010-12-27  Bruno Haible  <bruno@clisp.org>
25887
25888         select tests: Use 'bool' where appropriate.
25889         * tests/test-select.c (connect_to_socket): Change argument type to
25890         'bool'.
25891
25892 2010-12-27  Bruno Haible  <bruno@clisp.org>
25893
25894         select tests: Use existing modules.
25895         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
25896         (configure.ac): Don't test for unistd.h.
25897         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
25898         declared in <unistd.h>.
25899
25900 2010-12-27  Bruno Haible  <bruno@clisp.org>
25901
25902         mbrtowc: Work around a Solaris 7 bug.
25903         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
25904         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
25905         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
25906         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
25907         MBRTOWC_NULL_ARG1_BUG.
25908         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
25909         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
25910         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
25911         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
25912
25913 2010-12-27  Jim Meyering  <meyering@redhat.com>
25914
25915         read-file.c: tweak syntax
25916         * lib/read-file.c (fread_file): Remove space after "*" in function
25917         definitions.
25918
25919 2010-12-27  Bruno Haible  <bruno@clisp.org>
25920
25921         times test: Avoid gcc warnings on OSF/1.
25922         * tests/test-times.c (main): Cast printf arguments from clock_t to
25923         'long int'.
25924
25925 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25926
25927         utimens: work around glibc rounding bug on older Linux kernels
25928         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
25929         on Linux with a glibc whose utimes might not work, then work
25930         around a longstanding glibc bug involving rounding rather than
25931         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
25932         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25933
25934 2010-12-26  Bruno Haible  <bruno@clisp.org>
25935
25936         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
25937         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
25938         _GL_CXXALIAS_SYS.
25939         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25940
25941 2010-12-26  Bruno Haible  <bruno@clisp.org>
25942
25943         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
25944         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
25945         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25946         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
25947         looking for the declaration.
25948         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25949         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
25950         problem.
25951         * doc/posix-functions/inet_pton.texi: Likewise.
25952
25953 2010-12-26  Bruno Haible  <bruno@clisp.org>
25954
25955         arpa_inet: Use the common idioms with C++ support.
25956         * lib/arpa_inet.in.h: Include c++defs.h.
25957         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
25958         support.
25959         * modules/arpa_inet (Depends-on): Add c++defs.
25960         (Makefile.am): Substitute the contents of c++defs.h.
25961         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
25962         * modules/arpa_inet-c++-tests: New file.
25963         * tests/test-arpa_inet-c++.cc: New file.
25964
25965 2010-12-25  Bruno Haible  <bruno@clisp.org>
25966
25967         Fix more C++ link errors on Solaris 8.
25968         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
25969         $(LIB_EACCESS).
25970         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
25971         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
25972         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
25973         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
25974         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
25975
25976 2010-12-25  Bruno Haible  <bruno@clisp.org>
25977
25978         printf-posix: Fix link error when a non-GCC compiler is used.
25979         * lib/stdio.in.h (printf): When not using GCC, override printf
25980         correctly.
25981         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25982
25983 2010-12-25  Bruno Haible  <bruno@clisp.org>
25984
25985         strerror_r-posix: Update doc.
25986         * doc/posix-functions/strerror_r.texi: Update doc about the return
25987         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
25988
25989 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25990
25991         utimens: simplify the logic of the previous change
25992         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
25993         This should not affect whether the test succeeds or fails.
25994
25995         utimens: configure better on hosts with NFS clock skew
25996         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
25997         uses the clock of the local host.  It might use the clock of the
25998         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
25999         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26000
26001 2010-12-25  Bruno Haible  <bruno@clisp.org>
26002
26003         ptsname test: Avoid failure on Solaris.
26004         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
26005         open a pseudo-terminal; don't use BSD-style ptys.
26006         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
26007
26008 2010-12-25  Bruno Haible  <bruno@clisp.org>
26009
26010         ptsname: Avoid ERANGE failure on some systems.
26011         * lib/ptsname.c (buffer): Increase size.
26012
26013 2010-12-25  Bruno Haible  <bruno@clisp.org>
26014
26015         rename, renameat: Avoid test failures at NFS mounted locations.
26016         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
26017         so that subsequent mkdir calls succeed.
26018
26019 2010-12-25  Bruno Haible  <bruno@clisp.org>
26020
26021         iswblank: Fix C++ link error on Solaris 8.
26022         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
26023         _GL_FUNCDECL_SYS.
26024
26025 2010-12-25  Bruno Haible  <bruno@clisp.org>
26026
26027         unistd: Fix C++ link error on Solaris 8.
26028         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
26029
26030 2010-12-25  Bruno Haible  <bruno@clisp.org>
26031
26032         readlink doc: Mention an old glibc bug.
26033         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
26034
26035 2010-12-25  Bruno Haible  <bruno@clisp.org>
26036
26037         fcntl-h: Fix for use of C++ on glibc systems.
26038         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
26039         also on glibc systems in C++ mode.
26040         Reported by Gary V. Vaughan <gary@gnu.org>.
26041
26042 2010-12-25  Bruno Haible  <bruno@clisp.org>
26043
26044         roundl-ieee: Make it work on OSF/1 5.1 with cc.
26045         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
26046
26047 2010-12-25  Bruno Haible  <bruno@clisp.org>
26048
26049         truncl-ieee: Make it work on OSF/1 5.1 with cc.
26050         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
26051         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
26052         test whether truncl works according to ISO C 99 with IEC 60559.
26053         * m4/truncl-ieee.m4: New file.
26054         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
26055         m4/signbit.m4.
26056         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
26057
26058 2010-12-25  Bruno Haible  <bruno@clisp.org>
26059
26060         ceill-ieee: Make it work on OSF/1 5.1 with cc.
26061         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
26062         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
26063         test whether ceill works according to ISO C 99 with IEC 60559.
26064         * m4/ceill-ieee.m4: New file.
26065         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
26066         m4/signbit.m4.
26067         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
26068
26069 2010-12-25  Bruno Haible  <bruno@clisp.org>
26070
26071         Ensure all prerequisites of <wchar.h> are included.
26072         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
26073         before <wchar.h>.
26074         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26075         gl_MBRLEN_NUL_RETVAL): Likewise.
26076         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26077         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
26078         AC_FUNC_MBRTOWC): Likewise.
26079         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26080         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26081         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26082         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
26083         Likewise.
26084         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26085         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
26086         (gl_WCHAR_H): Improve comments.
26087         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26088
26089 2010-12-25  Bruno Haible  <bruno@clisp.org>
26090
26091         strtok_r: Fix C syntax error in autoconf macro.
26092         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
26093         characters in test program.
26094
26095 2010-12-24  Bruno Haible  <bruno@clisp.org>
26096
26097         ceil, trunc, round: Fix gcc warnings.
26098         * lib/ceil.c (MIN): Undefine before redefining.
26099         * lib/trunc.c (MIN): Likewise.
26100         * lib/round.c (MIN): Likewise.
26101         Include <math.h> first.
26102
26103 2010-12-24  Bruno Haible  <bruno@clisp.org>
26104
26105         select tests: Avoid failures on OSF/1 5.1.
26106         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
26107         failure of closing the last socket; it may fail with ECONNRESET.
26108
26109 2010-12-24  Eric Blake  <eblake@redhat.com>
26110
26111         stdint: avoid HP-UX 10.20 preprocessor bug
26112         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
26113         than #if.
26114         * tests/test-floor2.c (main): Likewise.
26115         Reported by Peter O'Gorman.
26116
26117         pipe: make obsoletion transition easier
26118         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
26119         * modules/pipe (Files): Include revived file.
26120         (Include): Drop reference, to mirror getdate's behavior.
26121
26122 2010-12-24  Bruno Haible  <bruno@clisp.org>
26123
26124         sys_socket: Hide mismatch of declarations on NonStop Kernel.
26125         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
26126         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
26127         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26128
26129 2010-12-24  Bruno Haible  <bruno@clisp.org>
26130
26131         gethostname: Ensure declaration on NonStop Kernel.
26132         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
26133         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26134
26135 2010-12-24  Bruno Haible  <bruno@clisp.org>
26136
26137         sys_select: Ensure all necessary types on NonStop Kernel.
26138         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
26139         include <sys/time.h>.
26140         * doc/posix-headers/sys_select.texi: Mention that it's missing on
26141         NonStop Kernel.
26142         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26143
26144 2010-12-24  Bruno Haible  <bruno@clisp.org>
26145
26146         sys_select: Remove unneeded include.
26147         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
26148         have <sys/select.h>.
26149
26150 2010-12-24  Bruno Haible  <bruno@clisp.org>
26151
26152         gethostname: Provide a fallback for HOST_NAME_MAX.
26153         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
26154         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
26155         instead.
26156         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26157
26158 2010-12-24  Bruno Haible  <bruno@clisp.org>
26159
26160         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
26161         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
26162         (SA_RESTART): Likewise.
26163         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26164
26165 2010-12-24  Bruno Haible  <bruno@clisp.org>
26166
26167         signal: Define NSIG.
26168         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
26169         * tests/test-signal.c (nsig): New variable.
26170         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26171
26172 2010-12-24  Bruno Haible  <bruno@clisp.org>
26173
26174         rename, renameat: Avoid test failures on OSF/1 5.1.
26175         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
26176         alternative error codes.
26177         * tests/test-renameat.c (main): Likewise.
26178
26179 2010-12-24  Bruno Haible  <bruno@clisp.org>
26180
26181         *printf: Detect large precisions bug on Solaris 10/SPARC.
26182         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
26183         by Paul Eggert.
26184         * tests/test-snprintf-posix.h (test_function): Add this test code here
26185         too.
26186         * tests/test-sprintf-posix.h (test_function): Likewise.
26187         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26188         * tests/test-vasprintf-posix.c (test_function): Likewise.
26189         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
26190         around by gnulib.
26191         * doc/posix-functions/printf.texi: Likewise.
26192         * doc/posix-functions/snprintf.texi: Likewise.
26193         * doc/posix-functions/sprintf.texi: Likewise.
26194         * doc/posix-functions/vfprintf.texi: Likewise.
26195         * doc/posix-functions/vprintf.texi: Likewise.
26196         * doc/posix-functions/vsnprintf.texi: Likewise.
26197         * doc/posix-functions/vsprintf.texi: Likewise.
26198         * doc/posix-functions/dprintf.texi: Undo last commit.
26199         * doc/posix-functions/vdprintf.texi: Likewise.
26200
26201 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26202
26203         tests: port test-fdutimensat.c to Solaris 8
26204         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
26205         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
26206         On Solaris 8, it fails with errno == ENOSYS, because there is no
26207         futimens (so it can't use the fd), and there is no lutimens (so it
26208         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
26209
26210         vsnprintf: make more consistent with snprintf; doc fixes
26211
26212         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
26213         the byte count return problem was promoted from the snprintf-posix
26214         to the snprintf module.
26215         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26216         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
26217         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
26218         * tests/test-snprintf.c (main): Check the byte count returned.
26219         * tests/test-vsnprintf.c (main): Likewise.
26220
26221 2010-12-23  Eric Blake  <eblake@redhat.com>
26222
26223         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
26224         * modules/sigpipe (License): Relax license.
26225
26226 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26227
26228         doc: document Solaris printf bug with large float precisions
26229         * doc/posix-functions/dprintf.texi (dprintf):
26230         * doc/posix-functions/fprintf.texi (fprintf):
26231         * doc/posix-functions/printf.texi (printf):
26232         * doc/posix-functions/snprintf.texi (snprintf):
26233         * doc/posix-functions/sprintf.texi (sprintf):
26234         * doc/posix-functions/vdprintf.texi (vdprintf):
26235         * doc/posix-functions/vfprintf.texi (vfprintf):
26236         * doc/posix-functions/vprintf.texi (vprintf):
26237         * doc/posix-functions/vsnprintf.texi (vsnprintf):
26238         * doc/posix-functions/vsprintf.texi (vsprintf):
26239         Mention that these functions mishandle large floating point
26240         precisions on Solaris 10.  The same bug is also present in Solaris
26241         8, and I assume earlier.  This causes "cd gnulib-tests; make
26242         check" to fail on Solaris 8 (and I assume, later) when building
26243         the latest coreutils, in test-vasprintf-posix's call to
26244         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
26245         the wide flavors (e.g., wprintf) so this patch just updates the
26246         documentation for the narrow ones.
26247
26248         test-posixtm.c: add two tests
26249         * tests/test-posixtm.c: Add two tests, to highlight the
26250         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
26251         around this bug; this is merely to document it.
26252
26253 2010-12-22  Bruno Haible  <bruno@clisp.org>
26254
26255         getlogin_r: Work around portability problem on OSF/1.
26256         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
26257         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
26258         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
26259         test for a truncated result.
26260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
26261         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
26262         * modules/getlogin_r (Depends-on): Add memchr.
26263         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
26264
26265 2010-12-22  Bruno Haible  <bruno@clisp.org>
26266
26267         ptsname: Avoid test failure on OSF/1 5.1.
26268         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
26269         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
26270         (same_slave): New function.
26271         (main): Use it to compare ptsname's result with the expected file name.
26272
26273 2010-12-22  Bruno Haible  <bruno@clisp.org>
26274
26275         Port extended stdio modules to HP NonStop Kernel.
26276         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
26277         macros.
26278         * lib/fbufmode.c: Update comments.
26279         * lib/fflush.c: Likewise.
26280         * lib/fpurge.c: Likewise.
26281         * lib/freadable.c: Likewise.
26282         * lib/freadahead.c: Likewise.
26283         * lib/freading.c: Likewise.
26284         * lib/freadptr.c: Likewise.
26285         * lib/freadseek.c: Likewise.
26286         * lib/fseeko.c: Likewise.
26287         * lib/fseterr.c: Likewise.
26288         * lib/fwritable.c: Likewise.
26289         * lib/fwriting.c: Likewise.
26290         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26291
26292 2010-12-22  Bruno Haible  <bruno@clisp.org>
26293
26294         ttyname_r: Work around bug on OSF/1 5.1.
26295         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
26296         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
26297         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
26298         present.
26299         * lib/ttyname_r.c (ttyname_r): Update comments.
26300
26301 2010-12-22  Bruno Haible  <bruno@clisp.org>
26302
26303         round: Implement result sign according to IEEE 754.
26304         * lib/round.c (MIN, MINUS_ZERO): New macros.
26305         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
26306         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
26307         * tests/test-round-ieee.c (main): Likewise.
26308         * tests/test-roundl-ieee.c (main): Likewise.
26309
26310         trunc: Implement result sign according to IEEE 754.
26311         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
26312         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
26313         * tests/test-trunc2.c: Include minus-zero.h.
26314         (MINUS_ZERO): New macro.
26315         (trunc_reference): Keep in sync with lib/trunc.c.
26316         * tests/test-truncf2.c: Include minus-zero.h.
26317         (MINUS_ZERO): New macro.
26318         (truncf_reference): Keep in sync with lib/trunc.c.
26319         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
26320         * tests/test-trunc-ieee.c (main): Likewise.
26321         * tests/test-truncl-ieee.c (main): Likewise.
26322
26323         ceil: Implement result sign according to IEEE 754.
26324         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
26325         (FUNC): Return -0.0 for -1 < x < 0.
26326         * tests/test-ceil2.c: Include minus-zero.h.
26327         (MINUS_ZERO): New macro.
26328         (ceil_reference): Keep in sync with lib/ceil.c.
26329         * tests/test-ceilf2.c: Include minus-zero.h.
26330         (MINUS_ZERO): New macro.
26331         (ceilf_reference): Keep in sync with lib/ceil.c.
26332         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
26333         * tests/test-ceil-ieee.c (main): Likewise.
26334         * tests/test-ceill-ieee.c (main): Likewise.
26335
26336         floor: Implement result sign according to IEEE 754.
26337         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
26338         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
26339         * tests/test-floorf2.c (floorf_reference): Likewise.
26340         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
26341         * tests/test-floor-ieee.c (main): Likewise.
26342         * tests/test-floorl-ieee.c (main): Likewise.
26343
26344 2010-12-22  Bruno Haible  <bruno@clisp.org>
26345
26346         getaddrinfo: Update doc.
26347         * doc/posix-functions/gai_strerror.texi: Return type is also different
26348         on AIX and HP-UX.
26349
26350 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26351
26352         getaddrinfo, inet_ntop: Update doc for Solaris.
26353         * doc/posix-functions/gai_strerror.texi: Return type is also an
26354         issue on Solaris 9 and earlier.
26355         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
26356         on Solaris 10 and earlier.
26357
26358 2010-12-21  Bruno Haible  <bruno@clisp.org>
26359
26360         New module 'roundl-ieee'.
26361         * modules/roundl-ieee: New file.
26362         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
26363         test whether roundl works according to ISO C 99 with IEC 60559.
26364         * m4/roundl-ieee.m4: New file.
26365         * modules/roundl-ieee-tests: New file.
26366         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
26367         * tests/test-roundl.c (main): Remove signbit tests.
26368         * modules/roundl-tests (Depends-on): Remove signbit.
26369         * doc/posix-functions/roundl.texi: Mention the new module.
26370
26371 2010-12-21  Bruno Haible  <bruno@clisp.org>
26372
26373         New module 'truncl-ieee'.
26374         * modules/truncl-ieee: New file.
26375         * modules/truncl-ieee-tests: New file.
26376         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
26377         * tests/test-truncl.c (main): Remove signbit tests.
26378         * modules/truncl-tests (Depends-on): Remove signbit.
26379         * doc/posix-functions/truncl.texi: Mention the new module.
26380
26381 2010-12-21  Bruno Haible  <bruno@clisp.org>
26382
26383         New module 'ceill-ieee'.
26384         * modules/ceill-ieee: New file.
26385         * modules/ceill-ieee-tests: New file.
26386         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
26387         * tests/test-ceill.c (main): Remove signbit tests.
26388         * modules/ceill-tests (Depends-on): Remove signbit.
26389         * doc/posix-functions/ceill.texi: Mention the new module.
26390
26391 2010-12-21  Bruno Haible  <bruno@clisp.org>
26392
26393         New module 'floorl-ieee'.
26394         * modules/floorl-ieee: New file.
26395         * modules/floorl-ieee-tests: New file.
26396         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
26397         * tests/test-floorl.c (main): Remove signbit tests.
26398         * modules/floorl-tests (Depends-on): Remove signbit.
26399         * doc/posix-functions/floorl.texi: Mention the new module.
26400
26401 2010-12-21  Bruno Haible  <bruno@clisp.org>
26402
26403         New module 'round-ieee'.
26404         * modules/round-ieee: New file.
26405         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
26406         whether round works according to ISO C 99 with IEC 60559.
26407         * m4/round-ieee.m4: New file.
26408         * modules/round-ieee-tests: New file.
26409         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
26410         * tests/test-round1.c (main): Remove signbit tests.
26411         * modules/round-tests (Depends-on): Remove 'signbit'.
26412         * doc/posix-functions/round.texi: Mention the new module.
26413
26414 2010-12-21  Bruno Haible  <bruno@clisp.org>
26415
26416         New module 'trunc-ieee'.
26417         * modules/trunc-ieee: New file.
26418         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
26419         whether trunc works according to ISO C 99 with IEC 60559.
26420         * m4/trunc-ieee.m4: New file.
26421         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
26422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
26423         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
26424         * modules/trunc-ieee-tests: New file.
26425         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
26426         * tests/test-trunc1.c (main): Remove signbit tests.
26427         * modules/trunc-tests (Depends-on): Remove 'signbit'.
26428         * doc/posix-functions/trunc.texi: Mention the new module.
26429
26430 2010-12-21  Bruno Haible  <bruno@clisp.org>
26431
26432         New module 'ceil-ieee'.
26433         * modules/ceil-ieee: New file.
26434         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
26435         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
26436         ISO C 99 with IEC 60559.
26437         * m4/ceil-ieee.m4: New file.
26438         * modules/ceil (Files): Add lib/ceil.c.
26439         (Depends-on): Add 'float'.
26440         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26441         * lib/math.in.h (ceil): New declaration.
26442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
26443         REPLACE_CEIL.
26444         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
26445         * modules/ceil-ieee-tests: New file.
26446         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
26447         * tests/test-math-c++.cc: Check the signature of 'ceil'.
26448         * doc/posix-functions/ceil.texi: Mention the new module.
26449
26450 2010-12-21  Bruno Haible  <bruno@clisp.org>
26451
26452         New module 'floor-ieee'.
26453         * modules/floor-ieee: New file.
26454         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
26455         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
26456         ISO C 99 with IEC 60559.
26457         * m4/floor-ieee.m4: New file.
26458         * modules/floor (Files): Add lib/floor.c.
26459         (Depends-on): Add 'float'.
26460         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26461         * lib/math.in.h (floor): New declaration.
26462         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
26463         REPLACE_FLOOR.
26464         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
26465         * modules/floor-ieee-tests: New file.
26466         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
26467         * tests/test-math-c++.cc: Check the signature of 'floor'.
26468         * doc/posix-functions/floor.texi: Mention the new module.
26469
26470 2010-12-21  Bruno Haible  <bruno@clisp.org>
26471
26472         New module 'roundf-ieee'.
26473         * modules/roundf-ieee: New file.
26474         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
26475         test whether roundf works according to ISO C 99 with IEC 60559.
26476         * m4/roundf-ieee.m4: New file.
26477         * modules/roundf-ieee-tests: New file.
26478         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
26479         * tests/test-roundf1.c (main): Remove signbit tests.
26480         * modules/roundf-tests (Depends-on): Remove 'signbit'.
26481         * doc/posix-functions/roundf.texi: Mention the new module.
26482
26483 2010-12-21  Bruno Haible  <bruno@clisp.org>
26484
26485         New module 'truncf-ieee'.
26486         * modules/truncf-ieee: New file.
26487         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
26488         test whether truncf works according to ISO C 99 with IEC 60559.
26489         * m4/truncf-ieee.m4: New file.
26490         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
26491         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
26492         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
26493         * modules/truncf-ieee-tests: New file.
26494         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
26495         * tests/test-truncf1.c (main): Remove signbit tests.
26496         * modules/truncf-tests (Depends-on): Remove 'signbit'.
26497         * doc/posix-functions/truncf.texi: Mention the new module.
26498
26499 2010-12-21  Bruno Haible  <bruno@clisp.org>
26500
26501         New module 'ceilf-ieee'.
26502         * modules/ceilf-ieee: New file.
26503         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
26504         test whether ceilf works according to ISO C 99 with IEC 60559.
26505         * m4/ceilf-ieee.m4: New file.
26506         * modules/ceilf-ieee-tests: New file.
26507         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
26508         * tests/test-ceilf1.c (main): Remove signbit tests.
26509         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
26510         * doc/posix-functions/ceilf.texi: Mention the new module.
26511
26512 2010-12-21  Bruno Haible  <bruno@clisp.org>
26513
26514         New module 'floorf-ieee'.
26515         * modules/floorf-ieee: New file.
26516         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
26517         test whether floorf works according to ISO C 99 with IEC 60559.
26518         * m4/floorf-ieee.m4: New file.
26519         * modules/floorf-ieee-tests: New file.
26520         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
26521         * tests/test-floorf1.c (main): Remove signbit tests.
26522         * modules/floorf-tests (Depends-on): Remove 'signbit'.
26523         * doc/posix-functions/floorf.texi: Mention the new module.
26524
26525 2010-12-21  Bruno Haible  <bruno@clisp.org>
26526
26527         Support for minus zero in autoconf macros.
26528         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
26529         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
26530         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
26531         * tests/minus-zero.h: Update comments.
26532
26533 2010-12-21  Bruno Haible  <bruno@clisp.org>
26534
26535         Tests for module 'ceil'.
26536         * modules/ceil-tests: New file.
26537         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
26538         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
26539
26540 2010-12-21  Bruno Haible  <bruno@clisp.org>
26541
26542         Tests for module 'floor'.
26543         * modules/floor-tests: New file.
26544         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
26545         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
26546
26547 2010-12-21  Bruno Haible  <bruno@clisp.org>
26548
26549         math: Fix indentation.
26550         * lib/math.in.h (floorf): Fix indentation.
26551
26552 2010-12-21  Bruno Haible  <bruno@clisp.org>
26553
26554         Fix cross-compilation guesses on Solaris.
26555         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
26556         not match "solaris2.10".
26557         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26558         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
26559         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
26560
26561 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
26562
26563         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
26564         This fixes a problem observed with the latest coreutils snapshot
26565         that caused a test to fail on Solaris 8.  src/csplit.c's call
26566         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
26567         earlier, instead of returning the number of bytes that would have
26568         been generated; this causes csplit to incorrectly report memory
26569         exhaustion.
26570         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
26571         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
26572         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
26573         comments to match.
26574         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
26575         Fix typo in matching older versions of Solaris: "solaris2.10"
26576         is matched by the shell pattern "solaris2.[0-9]*".  This matters
26577         only for guessing while cross-compiling.
26578         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
26579
26580 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
26581
26582         ftoastr: fix comment again
26583         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26584         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
26585         Also, simplify example a bit by using flags = 0.
26586
26587 2010-12-20  Bruno Haible  <bruno@clisp.org>
26588
26589         round*, trunc*: Update documentation regarding glibc.
26590         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
26591         * doc/posix-functions/round.texi: Likewise.
26592         * doc/posix-functions/roundl.texi: Likewise.
26593         * doc/posix-functions/truncf.texi: Likewise.
26594         * doc/posix-functions/trunc.texi: Likewise.
26595         * doc/posix-functions/truncl.texi: Likewise.
26596
26597 2010-12-20  Bruno Haible  <bruno@clisp.org>
26598
26599         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
26600         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
26601         * doc/posix-functions/round.texi: Likewise.
26602         * doc/posix-functions/roundl.texi: Likewise.
26603
26604 2010-12-20  Bruno Haible  <bruno@clisp.org>
26605
26606         ttyname_r: Add missing declaration on HP-UX 11.
26607         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
26608         HAVE_TTYNAME_R.
26609         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
26610         declared. Set HAVE_TTYNAME_R always.
26611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26612         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
26613         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
26614         HAVE_TTYNAME_R.
26615         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
26616
26617 2010-12-20  Bruno Haible  <bruno@clisp.org>
26618
26619         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
26620         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
26621         * doc/posix-functions/getlogin_r.texi: Likewise.
26622         * tests/test-getlogin.c: Include <errno.h>.
26623         (main): Avoid test failure on HP-UX 11.11.
26624         * tests/test-getlogin_r.c (main): Likewise.
26625
26626 2010-12-20  Bruno Haible  <bruno@clisp.org>
26627
26628         getlogin_r: Add missing declaration on HP-UX 11.
26629         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
26630         declared also when it exists as a function.
26631         * doc/posix-functions/getlogin_r.texi: Document this workaround.
26632
26633 2010-12-20  Bruno Haible  <bruno@clisp.org>
26634
26635         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
26636         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
26637         through wcrtomb.
26638
26639 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26640
26641         ftoastr: fix comment
26642         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26643         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
26644
26645 2010-12-19  Bruno Haible  <bruno@clisp.org>
26646
26647         isnan: Ensure it is a macro.
26648         * lib/math.in.h (isnan): Define as a macro if not already a macro.
26649         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
26650         Solaris.
26651
26652 2010-12-19  Bruno Haible  <bruno@clisp.org>
26653
26654         ldexpl test: Fix link error on OSF/1 5.1.
26655         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
26656
26657 2010-12-19  Bruno Haible  <bruno@clisp.org>
26658
26659         wctype: Make it work in C++ mode on OSF/1 5.1.
26660         * lib/wctype.in.h (iswblank): Declare but not define here.
26661         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
26662         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
26663         * modules/wctype (Files): Add lib/iswblank.c.
26664
26665 2010-12-19  Bruno Haible  <bruno@clisp.org>
26666
26667         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
26668         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
26669         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
26670
26671 2010-12-19  Bruno Haible  <bruno@clisp.org>
26672
26673         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
26674         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
26675         _POSIX_PII_SOCKET.
26676         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
26677         * doc/posix-functions/recvfrom.texi: Likewise.
26678         * doc/posix-functions/send.texi: Likewise.
26679         * doc/posix-functions/sendto.texi: Likewise.
26680
26681 2010-12-19  Bruno Haible  <bruno@clisp.org>
26682
26683         tcgetsid: Add missing declaration on OSF/1 5.1.
26684         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
26685         HAVE_TCGETSID.
26686         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
26687         Don't set HAVE_TCGETSID.
26688         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
26689         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
26690         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
26691         HAVE_TCGETSID.
26692         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
26693
26694 2010-12-19  Bruno Haible  <bruno@clisp.org>
26695
26696         stdio: Fix problem with popen() declaration on OSF/1 5.1.
26697         * lib/stdio.in.h: During the include_next statement, let recursive
26698         includes of this file include only the system header file.
26699
26700 2010-12-19  Bruno Haible  <bruno@clisp.org>
26701
26702         iconv_open: Fix regression from 2010-12-04.
26703         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
26704         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
26705
26706 2010-12-19  Bruno Haible  <bruno@clisp.org>
26707
26708         stdbool test: Avoid a gcc warning.
26709         * tests/test-stdbool.c (main): Fail if e1 is false.
26710         Reported by Jim Meyering.
26711
26712 2010-12-19  Jim Meyering  <meyering@redhat.com>
26713
26714         setenv: restore to working order
26715         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
26716         mistakenly removed.
26717         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
26718         HAVE_SETENV.
26719         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
26720         HAVE_SETENV.
26721
26722 2010-12-19  Bruno Haible  <bruno@clisp.org>
26723
26724         Document some different function declarations on OSF/1 5.1.
26725         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
26726         * doc/posix-functions/inet_ntop.texi: Likewise.
26727         * doc/posix-functions/gethostname.texi: Likewise.
26728         * lib/unistd.in.h (gethostname): Update comment.
26729
26730 2010-12-19  Bruno Haible  <bruno@clisp.org>
26731
26732         doc: Mention vasprintf-posix module.
26733         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
26734         the 'vasprintf-posix' module.
26735         * doc/glibc-functions/vasprintf.texi: Likewise.
26736
26737 2010-12-19  Bruno Haible  <bruno@clisp.org>
26738
26739         unsetenv: Add missing declaration on OSF/1 5.1.
26740         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
26741         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
26742         Don't set HAVE_UNSETENV. In the test program, set _BSD.
26743         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
26744         not HAVE_UNSETENV.
26745         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
26746         HAVE_UNSETENV.
26747         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
26748
26749 2010-12-19  Bruno Haible  <bruno@clisp.org>
26750
26751         setenv: Add missing declaration on OSF/1 5.1.
26752         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
26753         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
26754         declared. Don't set HAVE_SETENV.
26755         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
26756         not HAVE_SETENV.
26757         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
26758         HAVE_SETENV.
26759         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
26760
26761 2010-12-19  Bruno Haible  <bruno@clisp.org>
26762
26763         nl_langinfo tests: Avoid gcc warning.
26764         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
26765
26766 2010-12-19  Bruno Haible  <bruno@clisp.org>
26767
26768         mknod: Avoid error in C++ mode on OSF/1 with GCC.
26769         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
26770         _GL_CXXALIAS_SYS.
26771
26772 2010-12-19  Bruno Haible  <bruno@clisp.org>
26773
26774         stdbool: Relax test.
26775         * tests/test-stdbool.c (e): Don't require that casts from a variable's
26776         address to 'bool' work in static initializer, for compilers other than
26777         GCC.
26778
26779 2010-12-19  Bruno Haible  <bruno@clisp.org>
26780
26781         ftello: Add missing declaration on OSF/1 5.1.
26782         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
26783         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
26784         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
26785         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
26786         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
26787
26788 2010-12-19  Bruno Haible  <bruno@clisp.org>
26789
26790         fseeko: Add missing declaration on OSF/1 5.1.
26791         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
26792         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
26793         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
26794         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
26795         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
26796
26797 2010-12-19  Bruno Haible  <bruno@clisp.org>
26798
26799         fchdir: Add missing declaration on OSF/1 5.1.
26800         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
26801         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
26802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
26803         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
26804         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
26805
26806 2010-12-19  Bruno Haible  <bruno@clisp.org>
26807
26808         relocatable-prog-wrapper: Separate from relocatable-prog.
26809         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
26810         uninstall-relocwrapper rule here.
26811         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
26812         Reported by Ian Beckwith <ianb@erislabs.net>.
26813
26814 2010-12-19  Bruno Haible  <bruno@clisp.org>
26815
26816         unistr/u8-mbsnlen: Add missing dependency.
26817         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
26818         Reported by Ian Beckwith <ianb@erislabs.net>.
26819
26820 2010-12-19  Bruno Haible  <bruno@clisp.org>
26821
26822         iconv: Make it possible again to use this module without 'iconv-h'.
26823         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
26824         if it is not defined.
26825         Reported by Ian Beckwith <ianb@erislabs.net>.
26826
26827 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26828
26829         acl: port to Solaris 8 when copying from tmpfs to ufs
26830         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
26831         error number.  Problem observed on Solaris 8 with latest
26832         coreutils, with "mv A B", where A is on a tmpfs file system and B
26833         is on a ufs file system.  This caused coreutils' mv/part-symlink
26834         test to fail.
26835
26836         tests: set fail=0 at start
26837         * tests/init.sh (setup_): Move fail=0 initialization here ...
26838         (mktempd_): ... from here, so that tests can rely on fail being
26839         set to 0 initially.  This fixes a problem in coreutils; see:
26840         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
26841
26842 2010-12-18  Bruno Haible  <bruno@clisp.org>
26843
26844         memmem-simple: Stylistic changes.
26845         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
26846         Fix preprocessor directive indentation.
26847
26848 2010-12-15  Pádraig Brady <P@draigBrady.com>
26849
26850         memmem, memmem-simple: reorganize and expand empty needle check
26851         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
26852         functional checks to memmem-simple so that one has a fully functional
26853         memmem by using just this module.
26854         Restrict the performance only check to the memmem module.
26855         Also expand the empty needle check to ensure the correct
26856         pointer is returned, not just a non NULL pointer.
26857         * doc/glibc-functions/memmem.texi: Rearrange the portability
26858         documentation to correlate with the rearranged checks.
26859         Clarify exactly how the memmem and memmem-simple modules
26860         relate to each other.
26861
26862 2010-12-15  Pádraig Brady <P@draigBrady.com>
26863             Bruno Haible  <bruno@clisp.org>
26864
26865         Improve cross-compilation guesses for uClibc.
26866         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
26867         that uClibc does not have the glibc bug.
26868         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
26869         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
26870
26871 2010-12-14  Eric Blake  <eblake@redhat.com>
26872
26873         configmake: provide fallbacks for oldest supported autotools
26874         * m4/configmake.m4: New file.
26875         * modules/configmake (Files): Ship it.
26876         (configure.ac): Use it to guarantee fallbacks.
26877
26878 2010-12-13  Pádraig Brady <P@draigBrady.com>
26879
26880         read-file: Improve handling of large files
26881         * lib/read-file.c (fread_file): Minimize realloc()s
26882         for regular files, and better manage sizes around SIZE_MAX.
26883
26884 2010-12-13  Eric Blake  <eblake@redhat.com>
26885
26886         cloexec, fcntl: relax license
26887         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
26888         consent from all contributors.
26889         * modules/fcntl (License): Likewise.
26890
26891 2010-12-10  Bruno Haible  <bruno@clisp.org>
26892
26893         Tests for module 'pipe-posix'.
26894         * modules/pipe-posix-tests: New file.
26895         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
26896
26897 2010-12-10  Bruno Haible  <bruno@clisp.org>
26898
26899         pipe-posix: Make it work in C++ mode.
26900         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
26901         (pipe): Use common idiom, not a macro definition.
26902         * lib/pipe.c: New file.
26903         * m4/pipe.m4: New file.
26904         * modules/pipe-posix (Description): Enhance.
26905         (Files): Add lib/pipe.c, m4/pipe.m4.
26906         (configure.ac): Invoke gl_FUNC_PIPE.
26907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
26908         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
26909         * tests/test-unistd-c++.cc: Check the signature of pipe.
26910
26911 2010-12-10  Bruno Haible  <bruno@clisp.org>
26912
26913         Rename module 'pipe' to 'spawn-pipe'.
26914         * modules/spawn-pipe: New file, renamed from modules/pipe.
26915         (Files, configure.ac, Makefile.am): Update.
26916         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
26917         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
26918         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
26919         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
26920         "spawn-pipe.h" instead of "pipe.h".
26921         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
26922         to gl_SPAWN_PIPE.
26923         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
26924         (Files, Makefile.am): Update.
26925         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
26926         Update.
26927         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
26928         Include "spawn-pipe.h" instead of "pipe.h".
26929         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
26930         * lib/javacomp.c: Likewise.
26931         * lib/javaversion.c: Likewise.
26932         * lib/pipe-filter-gi.c: Likewise.
26933         * lib/pipe-filter-ii.c: Likewise.
26934         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
26935         * modules/javacomp (Depends-on): Likewise.
26936         * modules/javaversion (Depends-on): Likewise.
26937         * modules/pipe-filter-gi (Depends-on): Likewise.
26938         * modules/pipe-filter-ii (Depends-on): Likewise.
26939         * MODULES.html.sh (Executing programs): Update.
26940         * NEWS: Mention the change.
26941
26942 2010-12-10  Eric Blake  <eblake@redhat.com>
26943
26944         pipe-posix: new module
26945         * modules/pipe-posix: New file.
26946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
26947         (gl_UNISTD_H): Check for declaration.
26948         * modules/unistd (Makefile.am): Substitute it.
26949         * lib/unistd.in.h (pipe): Provide it for mingw.
26950         * doc/posix-functions/pipe.texi (pipe): Update documentation.
26951         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
26952
26953 2010-12-07  Bruno Haible  <bruno@clisp.org>
26954
26955         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
26956         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
26957         u8_strcmp_gnu.
26958         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
26959
26960 2010-12-06  Bruno Haible  <bruno@clisp.org>
26961
26962         Update internal documentation.
26963         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
26964
26965 2010-12-04  Bruno Haible  <bruno@clisp.org>
26966
26967         Put more information about failed tests into the test return codes.
26968         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
26969         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
26970         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
26971         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26972         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
26973         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26974         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26975         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26976         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
26977         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26978         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
26979         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26980         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
26981         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26982         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
26983         returns a bit mask.
26984         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
26985         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
26986         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
26987         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
26988         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26989         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26990         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26991         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26992         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26993         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26994         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26995         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26996         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26997         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26998         * m4/link.m4 (gl_FUNC_LINK): Likewise.
26999         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27000         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
27001         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
27002         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27003         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
27004         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27005         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27006         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
27007         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
27008         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27009         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27010         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
27011         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27012         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27013         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
27014         gl_PRINTF_PRECISION): Likewise.
27015         * m4/regex.m4 (gl_REGEX): Likewise.
27016         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27017         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
27018         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
27019         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27020         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27021         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27022         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
27023         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
27024         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27025         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27026         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27027         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27028         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27029         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
27030         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27031         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27032         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
27033         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27034         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27035         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
27036         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
27037         enumerated value.
27038         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
27039
27040 2010-12-04  Bruno Haible  <bruno@clisp.org>
27041
27042         Update for Solaris 11 2010-11.
27043         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
27044         Express, released in November 2010.
27045
27046 2010-12-04  Bruno Haible  <bruno@clisp.org>
27047
27048         nproc: Relax license.
27049         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
27050         and Paul Eggert.
27051         Requested by Ludovic Courtès <ludo@gnu.org>.
27052
27053 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
27054
27055         utimecmp: fine-grained src to nearby coarse-grained dest
27056
27057         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
27058         and the source is on a file system with higher-resolution time
27059         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
27060         not work, and the time stamps are close together, the algorithm to
27061         determine the exact resolution from the read-back mtime was buggy:
27062         it had a "!=" where it should have had an "==".  This bug has been
27063         in the code ever since it was introduced to gnulib.
27064         Problem reported by Dan Jacobson in
27065         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
27066
27067 2010-11-30  Bruno Haible  <bruno@clisp.org>
27068
27069         strerror_r-posix: Fix autoconf test.
27070         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
27071
27072 2010-11-28  Bruno Haible  <bruno@clisp.org>
27073             Paul Eggert  <eggert@cs.ucla.edu>
27074
27075         Tests for module 'getdomainname'.
27076         * modules/getdomainname-tests: New file.
27077         * tests/test-getdomainname.c: New file, based on
27078         tests/test-gethostname.c.
27079
27080 2010-11-28  Bruno Haible  <bruno@clisp.org>
27081             Paul Eggert  <eggert@cs.ucla.edu>
27082
27083         getdomainname: Use the system function when possible.
27084         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
27085         (getdomainname): Replace if needed. Provide the declaration if it is
27086         missing. Don't use _GL_CXXALIAS_SYS_CAST.
27087         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
27088         (getdomainname): When the system has getdomainname, call the system
27089         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
27090         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
27091         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
27092         found in libnsl. Look for the declaration also in <netdb.h>. Replace
27093         the function if its second argument is of type 'int' or if it is found
27094         in libnsl.
27095         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
27096         <sys/systeminfo.h> and sysinfo().
27097         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
27098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27099         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
27100         HAVE_GETDOMAINNAME.
27101         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
27102         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
27103         * doc/glibc-functions/getdomainname.texi: Document the problems with
27104         the getdomainname declaration.
27105
27106 2010-11-28  Bruno Haible  <bruno@clisp.org>
27107
27108         sys_socket: Ensure ss_family field on AIX.
27109         * lib/sys_socket.in.h (ss_family): New macro definition.
27110         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
27111         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
27112         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27113         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27114         * modules/sys_socket (Makefile.am): Substitute
27115         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27116         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
27117
27118 2010-11-27  Bruno Haible  <bruno@clisp.org>
27119
27120         readline: Improve configure output.
27121         * m4/readline.m4 (gl_FUNC_READLINE): Make the
27122         "checking for readline..." result understandable.
27123
27124 2010-11-27  Bruno Haible  <bruno@clisp.org>
27125
27126         *printf-posix: Detect a bug on Solaris 10/x86.
27127         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
27128         for floating-point output.
27129         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
27130         directive.
27131         * tests/test-snprintf-posix.h (test_function): Likewise.
27132         * tests/test-sprintf-posix.h (test_function): Likewise.
27133         * tests/test-vasprintf-posix.c (test_function): Likewise.
27134         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
27135         * doc/posix-functions/printf.texi: Likewise.
27136         * doc/posix-functions/snprintf.texi: Likewise.
27137         * doc/posix-functions/sprintf.texi: Likewise.
27138         * doc/posix-functions/vfprintf.texi: Likewise.
27139         * doc/posix-functions/vprintf.texi: Likewise.
27140         * doc/posix-functions/vsnprintf.texi: Likewise.
27141         * doc/posix-functions/vsprintf.texi: Likewise.
27142         * doc/glibc-functions/obstack_printf.texi: Likewise.
27143         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27144
27145 2010-11-27  Bruno Haible  <bruno@clisp.org>
27146
27147         Fix link error when module libunistring-optional is in use.
27148         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
27149         * modules/striconveha-tests (Makefile.am): Likewise.
27150
27151 2010-11-27  Bruno Haible  <bruno@clisp.org>
27152
27153         regex: Mention link dependencies.
27154         * modules/regex (Link): New section.
27155         * modules/rpmatch (Link): Likewise.
27156         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
27157
27158 2010-11-27  Bruno Haible  <bruno@clisp.org>
27159
27160         ftoastr: Fix compilation error on Solaris.
27161         * lib/ftoastr.c: Include <config.h>.
27162
27163 2010-11-27  Bruno Haible  <bruno@clisp.org>
27164
27165         getloadavg: Update documentation.
27166         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
27167
27168 2010-11-27  Bruno Haible  <bruno@clisp.org>
27169
27170         sys_socket: Fix test whether the functions are declared.
27171         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
27172         not <sys/select.h>.
27173
27174 2010-11-27  Bruno Haible  <bruno@clisp.org>
27175
27176         getpass: Make sure to get system declaration on some platforms.
27177         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
27178         gl_USE_SYSTEM_EXTENSIONS.
27179         * modules/getpass (Depends-on): Add extensions.
27180
27181 2010-11-26  Bruno Haible  <bruno@clisp.org>
27182
27183         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
27184         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
27185         'iconv' module is present.
27186         (ICONV_CONST): New macro.
27187         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
27188         ICONV_CONST.
27189         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
27190         set ICONV_CONST.
27191         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
27192         here.
27193         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
27194         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
27195         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
27196         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
27197         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
27198         present.
27199
27200 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27201
27202         ftoastr: comment fix
27203         * lib/ftoastr.c: "little" -> "little or no" in comment
27204
27205 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
27206
27207         stdint: port to GCC 4.3 + OSX + Octave
27208         On this platform, stdint.h is buggy and defines int64_t to long
27209         long int.  The replacement defined it to long int, causing
27210         problems with C++ style name mangling.  Instead, trust the system
27211         definition if INT64_MAX is defined, and likewise for the unsigned
27212         variant.   Problem reported by Jarno Rajahalme in
27213         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
27214         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
27215         and don't mess with int64_t and INT64_MAX in this case.
27216         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
27217
27218 2010-11-24  Bruno Haible  <bruno@clisp.org>
27219
27220         doc: Corrections regarding MacOS X 10.4 and 10.5.
27221         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
27222         MacOS X.
27223         Reported by Simon Josefsson.
27224
27225 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
27226
27227         Uninstall ".bin" files installed by relocwrapper.
27228         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
27229         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
27230         unless it is already there.
27231
27232 2010-11-21  Bruno Haible  <bruno@clisp.org>
27233
27234         Update for NetBSD 5.0.
27235         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27236         NetBSD; the test fails on NetBSD 5.0.
27237         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27238         about NetBSD.
27239
27240 2010-11-21  Bruno Haible  <bruno@clisp.org>
27241
27242         Update for HP-UX 11.23 and HP-UX 11.31.
27243         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
27244         HP-UX.
27245
27246 2010-11-21  Bruno Haible  <bruno@clisp.org>
27247
27248         Update for MacOS X 10.5.
27249         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27250         MacOS X; the test fails on MacOS X 10.5.8.
27251         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27252         about MacOS X.
27253
27254 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
27255
27256         bootstrap: add bootstrap_sync option.
27257         See discussion at
27258         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
27259         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
27260         * build-aux/bootstrap: Accept --bootstrap-sync to update
27261         bootstrap if it is not identical to the local gnulib's
27262         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
27263         enable this by default.  Accept --no-bootstrap-sync to disable
27264         it.
27265
27266 2010-11-20  Bruno Haible  <bruno@clisp.org>
27267
27268         Ensure that <features.h> is included before __GLIBC__ is tested.
27269         * lib/printf-parse.h: Include <features.h>.
27270         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
27271         Reported by Mike Frysinger <vapier@gentoo.org>.
27272
27273         Ensure that <features.h> is included before __GLIBC__ is tested.
27274         * lib/wchar.in.h: Include <features.h>.
27275         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
27276         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
27277         Reported by Mike Frysinger <vapier@gentoo.org>.
27278
27279         Ensure that <features.h> is included before __GLIBC__ is tested.
27280         * lib/arpa_inet.in.h: Include <features.h>.
27281         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
27282         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
27283         Reported by Mike Frysinger <vapier@gentoo.org>.
27284
27285         Ensure that <features.h> is included before __GLIBC__ is tested.
27286         * build-aux/link-warning.h: Include <features.h>.
27287         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
27288         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
27289         Reported by Mike Frysinger <vapier@gentoo.org>.
27290
27291         Ensure that <features.h> is included before __GLIBC__ is tested.
27292         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
27293         Reported by Mike Frysinger <vapier@gentoo.org>.
27294
27295 2010-11-20  Bruno Haible  <bruno@clisp.org>
27296
27297         memmem: Fix autoconf test.
27298         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
27299
27300 2010-11-20  Bruno Haible  <bruno@clisp.org>
27301
27302         Port to uClibc.
27303         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
27304         * lib/fcntl.in.h: Likewise.
27305         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
27306         * lib/mbrtowc.c (mbrtowc): Likewise.
27307         * lib/relocatable.c (find_shared_library_fullname): Likewise.
27308         * lib/strerror_r.c: Likewise.
27309         * lib/unistr/u8-strnlen.c: Likewise.
27310         * lib/vasnprintf.c (decimal_point_char): Likewise.
27311         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27312         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27313         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27314         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27315         * tests/test-sigaction.c (handler, main): Likewise.
27316         * lib/freading.h: Treat uClibc like a non-glibc platform.
27317         * lib/freading.c: Likewise.
27318         * lib/gettext.h: Likewise.
27319         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
27320         Likewise.
27321         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
27322         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
27323         * lib/propername.c (proper_name_utf8): Likewise.
27324         * lib/spawn.in.h: Likewise.
27325         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
27326         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
27327         mem_cd_iconveh_internal): Likewise.
27328         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
27329         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27330         strstr, strcasestr): Likewise.
27331         * lib/unicodeio.c (unicode_to_mb): Likewise.
27332         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
27333         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
27334         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
27335         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
27336         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
27337         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
27338         * lib/unistr/u8-stpncpy.c: Likewise.
27339         * lib/vasnprintf.c (VASNPRINTF): Likewise.
27340         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
27341         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27342         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27343         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27344         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
27345         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
27346         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
27347         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
27348         Likewise.
27349         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27350         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27351         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27352         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27353         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27354         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27355         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27356         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
27357         * tests/test-getopt.h (OPTIND_MIN): Likewise.
27358         * tests/test-striconveha.c (main): Likewise.
27359         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27360         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
27361         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
27362         * doc/posix-functions/getline.texi: Likewise.
27363         Reported by Mike Frysinger <vapier@gentoo.org>.
27364
27365 2010-11-20  Bruno Haible  <bruno@clisp.org>
27366
27367         nproc: Fix condition.
27368         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
27369         HAVE_PTHREAD_AFFINITY_NP.
27370
27371 2010-11-20  Bruno Haible  <bruno@clisp.org>
27372
27373         Fix a comment.
27374         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
27375
27376 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
27377
27378         ftoastr: don't assume snprintf
27379         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
27380         Implement a subset of snprintf here, by using sprintf safely.
27381         * modules/ftoastr (Depends-on): Remove snprintf.
27382
27383 2010-11-19  Jim Meyering  <meyering@redhat.com>
27384
27385         test-rename.h: fix compilation failure
27386         * tests/test-rename.h (test_rename): Add omitted "}".
27387
27388 2010-11-17  Jim Meyering  <meyering@redhat.com>
27389
27390         maint.mk: add a URL discussing the no-@acronym policy
27391         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
27392
27393 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
27394
27395         ftoastr: depend on snprintf, improve comments
27396         * lib/ftoastr.c: Also mention Loitsch's draft.
27397         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
27398         needed in the current implementation, but it might simplify
27399         speeding up the code later.
27400         * modules/ftoastr: Depend on snprintf; this improves portability.
27401         Suggested by Bruno Haible in the same email.
27402
27403         ftoastr: port to hosts lacking strtof and strtold
27404         Problem reported by Bruno Haible in
27405         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
27406         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
27407         environment and strtold (and presumably strtof) are not available.
27408         * modules/ftoastr (Files): Add m4/c-strtod.m4.
27409         (configure.ac): Require gl_C99_STRTOLD.
27410
27411 2010-11-18  Bruno Haible  <bruno@clisp.org>
27412
27413         c-strtold: Avoid link error on AIX 7.
27414         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
27415         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
27416         (gl_C_STRTOLD): Test whether strtold_l exists.
27417         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27418
27419 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27420
27421         intprops: new macro INT_BITS_STRLEN_BOUND
27422         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
27423         ftoastr.h.  This exposes an internal of intprops.h that was formerly
27424         not exposed.  Also, it uses a slightly tighter bound than before;
27425         though this makes no practical difference, we might as well be as
27426         tight as we easily can.
27427
27428         ftoastr: new module, for lossless conversion of floats to short strings
27429         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
27430         * modules/ftoastr: New files.
27431
27432 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27433
27434         bootstrap: port to Solaris sed
27435         * build-aux/bootstrap (get_version): Port to Solaris sed.
27436         See Ralf Wildenhues's note in
27437         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
27438
27439 2010-11-14  Jim Meyering  <meyering@redhat.com>
27440
27441         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
27442         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
27443         and move definition closer to sole use.
27444
27445 2010-11-13  Jim Meyering  <meyering@redhat.com>
27446
27447         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
27448         Now we require at least autoconf-2.59, which means the work-around
27449         is no longer needed.
27450         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
27451         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27452         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
27453         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
27454         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
27455
27456 2010-11-13  Bruno Haible  <bruno@clisp.org>
27457
27458         rename, renameat: Avoid test failures at NFS mounted locations.
27459         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
27460         functions.
27461         (test_rename): Use assert_nonexistent.
27462         * tests/test-rename.c: Include <dirent.h>.
27463         * tests/test-renameat.c: Likewise.
27464         Reported by Gary V. Vaughan <gary@gnu.org>.
27465
27466         rename, renameat: Document Linux bug with NFS
27467         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
27468         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
27469         * doc/posix-functions/renameat.texi: Likewise.
27470         Suggested by Eric Blake.
27471
27472 2010-11-13  Bruno Haible  <bruno@clisp.org>
27473
27474         rename test: Add comments.
27475         * tests/test-rename.h (test_rename): Add structure and comments.
27476
27477 2010-11-13  Eric Blake  <eblake@redhat.com>
27478
27479         maintainer-makefile: cover a few more files
27480         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
27481         scripts generated within C files, for libvirt.
27482
27483 2010-11-13  Bruno Haible  <bruno@clisp.org>
27484
27485         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
27486         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
27487         character, return the number of bytes that belong together, not always
27488         1.
27489         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
27490         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
27491         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
27492         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
27493         number of bytes of an invalid character.
27494         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
27495         (main): Invoke it.
27496         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
27497         results.
27498         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
27499         malformed byte sequences.
27500         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
27501         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
27502         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
27503         Reported by Ben Pfaff and Paolo Bonzini.
27504
27505 2010-11-13  Bruno Haible  <bruno@clisp.org>
27506
27507         openat: Work around glibc bug with fchownat() and empty file names.
27508         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
27509         (gl_FUNC_FCHOWNAT): Invoke it.
27510         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
27511         * doc/posix-functions/fchownat.texi: Document the glibc bug.
27512         Reported by Gary V. Vaughan <gary@gnu.org>.
27513
27514 2010-11-13  Bruno Haible  <bruno@clisp.org>
27515
27516         openat: Ensure autoconf macro ordering.
27517         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
27518         gl_USE_SYSTEM_EXTENSIONS.
27519         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
27520
27521 2010-11-13  Bruno Haible  <bruno@clisp.org>
27522
27523         Update comments.
27524         * lib/unistr/u8-check.c: Update file name in comments.
27525         * lib/unistr/u8-mblen.c: Likewise.
27526         * lib/unistr/u8-prev.c: Likewise.
27527         * lib/unistr/u8-strmblen.c: Likewise.
27528         * lib/unistr/u8-strmbtouc.c: Likewise.
27529
27530 2010-11-13  Jim Meyering  <meyering@redhat.com>
27531
27532         tests: avoid test failure on Solaris 10 due to lack of PATH export
27533         * tests/test-update-copyright.sh: Don't forget to export PATH.
27534
27535         init.sh: ensure that IFS is defined, just in case...
27536         * tests/init.sh (setup_): Ensure that IFS is defined,
27537         so that saving and restoring it works as expected.  This
27538         appears to be useful at least for an old version of dash
27539         from a long time ago (RH 6).  See here for details:
27540         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
27541
27542         maint.mk: tighten "test a == b" check
27543         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
27544         test to files that contain something like #!/bin/sh.
27545         Without this, coreutils would get two false positives in
27546         the comments of C source files.
27547
27548 2010-11-12  Eric Blake  <eblake@redhat.com>
27549
27550         bootstrap: fix typo in previous attempt
27551         * build-aux/bootstrap (buildreq): Correct the grouping.
27552         Reported by Paul Eggert.
27553
27554         maintainer-makefile: prohibit test x == x
27555         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
27556         Based on a report by Matthias Bolte.
27557
27558         bootstrap: allow FreeBSD gzip
27559         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
27560         which has no '.' and goes to stderr.
27561         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
27562         Reported by Matthias Bolte.
27563
27564         maintainer-makefile: check for i18n setup
27565         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
27566         will likely work.
27567
27568 2010-11-12  Bruno Haible  <bruno@clisp.org>
27569
27570         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
27571         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
27572         * lib/nanosleep.c (nanosleep): Likewise.
27573
27574 2010-11-11  Bruno Haible  <bruno@clisp.org>
27575
27576         fcntl-h: Fix for use of C++ on glibc systems.
27577         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27578         also on glibc systems in C++ mode.
27579         Reported by Gary V. Vaughan <gary@gnu.org>.
27580
27581 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27582
27583         mknod: avoid false failure with dash
27584         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
27585
27586 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
27587
27588         unlink: Fix "is it should" typo in diagnostic.
27589         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
27590         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
27591
27592 2010-11-11  Bruno Haible  <bruno@clisp.org>
27593
27594         Tests for module 'strerror_r-posix'.
27595         * modules/strerror_r-posix-tests: New file.
27596         * tests/test-strerror_r.c: New file.
27597         * tests/test-string-c++.cc: Check the signature of strerror_r.
27598
27599         New module 'strerror_r-posix'.
27600         * lib/string.in.h (strerror_r): New declaration.
27601         * lib/strerror_r.c: New file.
27602         * m4/strerror_r.m4: New file.
27603         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
27604         of strerror_r.
27605         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
27606         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27607         * modules/strerror_r-posix: New file.
27608         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
27609         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27610         * doc/posix-functions/strerror_r.texi: Mention the new module and the
27611         portability problems.
27612
27613 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
27614
27615         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
27616         line is also considered for output. Quoted function name in shell
27617         command, so temporary files for functions like MyClass::operator()
27618         are removed correctly without errors.
27619
27620 2010-11-09  Bruno Haible  <bruno@clisp.org>
27621
27622         * doc/posix-functions/strerror.texi: List more failing platforms.
27623
27624         * doc/posix-functions/strerror.texi: Add a comment.
27625
27626 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
27627
27628         fdopendir: fix bug on MacOS X when low on file descriptors
27629
27630         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
27631         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
27632         All callers changed.
27633         (fdopendir): Invoke save_cwd at the top level, not after using
27634         multiple dup() calls to use up file descriptors.  Then retry
27635         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
27636         less than the maximum number of open file descriptors, because
27637         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
27638         on Mac OS X 10.6.4 for tar 1.24
27639         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
27640         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
27641         and for tar 1.25
27642         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
27643
27644 2010-11-07  Bruno Haible  <bruno@clisp.org>
27645
27646         vasnprintf: Support I flag on glibc systems.
27647         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
27648         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
27649         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
27650         snprintf function.
27651         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
27652         glibc systems.
27653         * tests/test-vasnprintf-posix3.c: New file.
27654         * modules/vasnprintf-posix-tests (Files): Add it.
27655         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
27656
27657 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27658
27659         [html] Fix copy/paste bug: Use unique name for compiler warnings.
27660         * MODULES.html.sh: For compiler warnings, use name
27661         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
27662
27663 2010-11-05  Eric Blake  <eblake@redhat.com>
27664
27665         ceil, floor: avoid spurious failure with icc
27666         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
27667         [denormals-as-zero] when optimizing without -mieee-fp option.
27668         * tests/test-floorf2.c (floorf_reference): Likewise.
27669         * tests/test-ceilf1.c (dummy): New function.
27670         (main): Use it to outsmart icc's optimization.
27671         * tests/test-floorf1.c (dummy, main): Likewise.
27672
27673         tests: require working signbit
27674         * modules/ceilf-tests (Depends-on): Add signbit.
27675         * modules/ceill-tests (Depends-on): Likewise.
27676         * modules/floorf-tests (Depends-on): Likewise.
27677         * modules/floorl-tests (Depends-on): Likewise.
27678         * modules/round-tests (Depends-on): Likewise.
27679         * modules/roundf-tests (Depends-on): Likewise.
27680         * modules/roundl-tests (Depends-on): Likewise.
27681         * modules/trunc-tests (Depends-on): Likewise.
27682         * modules/truncf-tests (Depends-on): Likewise.
27683         * modules/truncl-tests (Depends-on): Likewise.
27684
27685         strtod: work around icc bug
27686         * lib/strtod.c (minus_zero): Define to working value.
27687         (strtod): Use it to avoid icc bug.
27688
27689         copysign: enhance tests
27690         * modules/copysign-tests (Files): Add minus-zero.h.
27691         * tests/test-copysign.c (main): Also test zeros.
27692
27693 2010-11-04  Eric Blake  <eblake@redhat.com>
27694
27695         ceil, floor, round, trunc: enhance tests of -0
27696         * tests/test-ceilf1.c (main): Ensure correct sign of result.
27697         * tests/test-ceill.c (main): Likewise.
27698         * tests/test-floorf1.c (main): Likewise.
27699         * tests/test-floorl.c (main): Likewise.
27700         * tests/test-round1.c (main): Likewise.
27701         * tests/test-roundf1.c (main): Likewise.
27702         * tests/test-roundl.c (main): Likewise.
27703         * tests/test-trunc1.c (main): Likewise.
27704         * tests/test-truncf1.c (main): Likewise.
27705         * tests/test-truncl.c (main): Likewise.
27706
27707 2010-11-04  Eric Blake  <eblake@redhat.com>
27708
27709         frexp, tests: work around ICC bug with -zero
27710         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
27711         works with more compilers.
27712         * tests/minus-zero.h: New file.
27713         * modules/ceilf-tests (Files): Include it.
27714         * modules/ceill-tests (Files): Likewise.
27715         * modules/floorf-tests (Files): Likewise.
27716         * modules/floorl-tests (Files): Likewise.
27717         * modules/frexp-nolibm-tests (Files): Likewise.
27718         * modules/frexp-tests (Files): Likewise.
27719         * modules/frexpl-nolibm-tests (Files): Likewise.
27720         * modules/frexpl-tests (Files): Likewise.
27721         * modules/isnan-tests (Files): Likewise.
27722         * modules/isnand-nolibm-tests (Files): Likewise.
27723         * modules/isnand-tests (Files): Likewise.
27724         * modules/isnanf-nolibm-tests (Files): Likewise.
27725         * modules/isnanf-tests (Files): Likewise.
27726         * modules/isnanl-nolibm-tests (Files): Likewise.
27727         * modules/isnanl-tests (Files): Likewise.
27728         * modules/round-tests (Files): Likewise.
27729         * modules/roundf-tests (Files): Likewise.
27730         * modules/roundl-tests (Files): Likewise.
27731         * modules/ldexpl-tests (Files): Likewise.
27732         * modules/signbit-tests (Files): Likewise.
27733         * modules/snprintf-posix-tests (Files): Likewise.
27734         * modules/sprintf-posix-tests (Files): Likewise.
27735         * modules/strtod-tests (Files): Likewise.
27736         * modules/trunc-tests (Files): Likewise.
27737         * modules/truncf-tests (Files): Likewise.
27738         * modules/truncl-tests (Files): Likewise.
27739         * modules/vsnprintf-posix-tests (Files): Likewise.
27740         * modules/vsprintf-posix-tests (Files): Likewise.
27741         * modules/vasnprintf-posix-tests (Files): Likewise.
27742         * modules/vasprintf-posix-tests (Files): Likewise.
27743         * tests/test-ceilf1.c (main): Use it.
27744         * tests/test-ceill.c (main): Likewise.
27745         * tests/test-floorf1.c (main): Likewise.
27746         * tests/test-floorl.c (main): Likewise.
27747         * tests/test-frexp.c (main): Likewise.
27748         * tests/test-frexpl.c (main): Likewise.
27749         * tests/test-isnan.c (main): Likewise.
27750         * tests/test-isnand.h (main): Likewise.
27751         * tests/test-isnanf.h (main): Likewise.
27752         * tests/test-isnanl.h (main): Likewise.
27753         * tests/test-ldexpl.c (main): Likewise.
27754         * tests/test-round.c (main): Likewise.
27755         * tests/test-roundf.c (main): Likewise.
27756         * tests/test-roundl.c (main): Likewise.
27757         * tests/test-signbit.c (test_signbitf, test_signbitd)
27758         (test_signbitl): Likewise.
27759         * tests/test-snprintf-posix.h (test_function): Likewise.
27760         * tests/test-sprintf-posix.h (test_function): Likewise.
27761         * tests/test-strtod.c (main): Likewise.
27762         * tests/test-trunc1.c (main): Likewise.
27763         * tests/test-truncf1.c (main): Likewise.
27764         * tests/test-truncl.c (main): Likewise.
27765
27766         isnanl: work around icc bug
27767         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
27768
27769 2010-11-03  Eric Blake  <eblake@redhat.com>
27770
27771         tests: fix compiler warnings
27772         * tests/test-getopt.h (test_getopt): Fix condition.
27773         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27774         * tests/test-pipe2.c (main): Likewise.
27775         * tests/test-quotearg-simple.c (main): Avoid icc warning.
27776
27777         utimens: fix broken m4 test
27778         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
27779
27780 2010-10-28  Bruno Haible  <bruno@clisp.org>
27781
27782         posix_spawn*, getdtablesize: Relax license.
27783         * modules/posix_spawn (License): Change to LGPLv2+.
27784         * modules/posix_spawnp (License): Likewise.
27785         * modules/posix_spawn-internal (License): Likewise.
27786         * modules/posix_spawnattr_init (License): Likewise.
27787         * modules/posix_spawnattr_getflags (License): Likewise.
27788         * modules/posix_spawnattr_setflags (License): Likewise.
27789         * modules/posix_spawnattr_getpgroup (License): Likewise.
27790         * modules/posix_spawnattr_setpgroup (License): Likewise.
27791         * modules/posix_spawnattr_getschedparam (License): Likewise.
27792         * modules/posix_spawnattr_setschedparam (License): Likewise.
27793         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
27794         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
27795         * modules/posix_spawnattr_getsigdefault (License): Likewise.
27796         * modules/posix_spawnattr_setsigdefault (License): Likewise.
27797         * modules/posix_spawnattr_getsigmask (License): Likewise.
27798         * modules/posix_spawnattr_setsigmask (License): Likewise.
27799         * modules/posix_spawnattr_destroy (License): Likewise.
27800         * modules/posix_spawn_file_actions_init (License): Likewise.
27801         * modules/posix_spawn_file_actions_addclose (License): Likewise.
27802         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
27803         * modules/posix_spawn_file_actions_addopen (License): Likewise.
27804         * modules/posix_spawn_file_actions_destroy (License): Likewise.
27805         * modules/getdtablesize (License): Likewise.
27806         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
27807
27808 2010-10-26  Bruno Haible  <bruno@clisp.org>
27809
27810         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
27811         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
27812         Cygwin and mingw.
27813         Suggested by Eric Blake.
27814
27815 2010-10-26  Bruno Haible  <bruno@clisp.org>
27816
27817         stdio: Work around compilation error due to renameat() on Solaris 10.
27818         * lib/stdio.in.h: Include <unistd.h> on Solaris.
27819         * lib/renameat.c: Don't include <unistd.h> here.
27820         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
27821         Reported by Paul Eggert and Eric Blake.
27822
27823 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27824
27825         renameat: port to Solaris 10, which declares renameat in unistd.h
27826
27827         * lib/renameat.c: Include unistd.h before stdio.h, because
27828         Solaris 10 declares renameat in unistd.h.  Problem encountered
27829         when building GNU tar 1.24 on Solaris 10.
27830
27831 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27832
27833         fdopendir: fix C89 compilation
27834         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
27835         compilers.
27836
27837 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
27838
27839         inttostr: simplify by removing unnecessary redundancy
27840         * lib/anytostr.c: Don't include verify.h.
27841         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
27842         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
27843         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
27844         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
27845         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
27846         Likewise.
27847         * modules/inttostr (Depends-on): Remove 'verify'.
27848
27849 2010-10-23  Bruno Haible  <bruno@clisp.org>
27850
27851         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
27852         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
27853         Reported by Eric Blake.
27854
27855 2010-10-23  Bruno Haible  <bruno@clisp.org>
27856
27857         Tests: Fix LOCALE_JA on MirBSD 10.
27858         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
27859         to an UTF-8 locale.
27860         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
27861         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27862         Reported by Eric Blake.
27863
27864 2010-10-21  Bruno Haible  <bruno@clisp.org>
27865
27866         nl_langinfo test: Avoid test failure on NetBSD 5.
27867         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
27868         Reported by Eric Blake.
27869
27870 2010-10-21  Eric Blake  <eblake@redhat.com>
27871
27872         c-stack: work around libsigsegv 2.8 bug
27873         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
27874         overflow on at least PowerPC64.
27875
27876 2010-10-17  Bruno Haible  <bruno@clisp.org>
27877
27878         userspec: Drop redundant file.
27879         * modules/userspec (Files): Remove lib/inttostr.h.
27880
27881 2010-10-17  Bruno Haible  <bruno@clisp.org>
27882
27883         nl_langinfo tests: Silence some warnings.
27884         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
27885         Reported by Jim Meyering.
27886
27887 2010-10-17  Bruno Haible  <bruno@clisp.org>
27888
27889         Make use of GCC's attribute __alloc_size__.
27890         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
27891         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
27892         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
27893         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
27894         __alloc_size__.
27895         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
27896         Suggested by Jim Meyering.
27897
27898 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
27899
27900         bootstrap: anchor .gitignore entries.
27901         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
27902         with...
27903         (insert_vc_ignore): ... this new function, which prepends `/' to
27904         all .gitignore entries before passing them to
27905         insert_sorted_if_absent.
27906
27907 2010-10-16  Bruno Haible  <bruno@clisp.org>
27908
27909         nextafter: Fix configure check.
27910         * modules/nextafter (configure.ac): Correct expected prototype.
27911
27912 2010-10-16  Bruno Haible  <bruno@clisp.org>
27913
27914         termios: Update documentation.
27915         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
27916
27917 2010-10-16  Bruno Haible  <bruno@clisp.org>
27918
27919         tests: Make them compile with TinyCC.
27920         * tests/test-strstr.c (main): Remove parentheses around array
27921         initializer.
27922
27923 2010-10-15  Eric Blake  <eblake@redhat.com>
27924
27925         ignore-value: make header idempotent
27926         * lib/ignore-value.h: Add double-inclusion guards.
27927         Reported by Stefan Berger.
27928
27929 2010-10-15  Jim Meyering  <meyering@redhat.com>
27930
27931         GNUmakefile: handle "stable" target, not "major"
27932         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
27933         lists in maint.mk and announce-gen.  Without this, "make stable"
27934         would fail to ensure that $(VERSION) is up to date.
27935
27936 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
27937
27938         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
27939         & co.
27940
27941 2010-10-14  Bruno Haible  <bruno@clisp.org>
27942
27943         vasnprintf: Don't set errno to 0.
27944         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
27945         block that sets it to 0.
27946         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
27947
27948 2010-10-14  Bruno Haible  <bruno@clisp.org>
27949
27950         socketlib: Fix.
27951         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
27952         gl_PREREQ_SYS_H_WINSOCK2.
27953         Reported by Ian Beckwith <ianb@erislabs.net>.
27954
27955 2010-10-13  Jim Meyering  <meyering@redhat.com>
27956
27957         test-select-stdin.c: avoid warn_unused_result warnings
27958         * tests/test-select-stdin.c: Include "macros.h".
27959         ASSERT that read and fflush succeed.
27960
27961 2010-10-13  Jim Meyering  <meyering@redhat.com>
27962
27963         git-version-gen: do require git-VC'd files in cwd
27964         * build-aux/git-version-gen: Reject a git version string
27965         if there are no commits associated with the current directory.
27966         This avoids an unlikely false-positive (unrelated dir whose parent
27967         repository also contains a tag matching v*), as pointed out
27968         by Giuseppe Scrivano in
27969         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
27970
27971 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27972
27973         argv-iter: omit nonconforming declaration
27974         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
27975         enum arg_iter_err declaration, which doesn't conform to C99.
27976         Solaris 10 cc warns about this.
27977
27978 2010-10-13  Eric Blake  <eblake@redhat.com>
27979
27980         termios: fix compilation on mingw
27981         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
27982         (gl_TERMIOS_H): Adjust it on mingw.
27983         * modules/termios (Makefile.am): Substitute new key.
27984         * lib/termios.in.h (includes): Make include_next conditional.
27985         * doc/posix-headers/termios.texi (termios.h): Update
27986         documentation.
27987         Reported by Daniel P. Berrange.
27988
27989 2010-10-13  Jim Meyering  <meyering@redhat.com>
27990
27991         git-version-gen: don't require that .git/ be in the current dir
27992         * build-aux/git-version-gen: Adjust this script so that it works
27993         when run from any working directory beneath the top-level .git/-
27994         containing directory.  Inspired by a patch from Giuseppe Scrivano,
27995         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
27996
27997         test-select: avoid warn_unused_result warnings
27998         * tests/test-select.c: Include "macros.h".
27999         ASSERT that each call to read, write, and pipe succeeds.
28000         While not technically required, also check each "close".
28001         * modules/select-tests (Files): Add tests/macros.h.
28002
28003         test-symlinkat: remove declaration of unused local
28004         * tests/test-symlinkat.c (main): Remove unused local, "buf".
28005
28006         test-inttostr: avoid shadowing warnings
28007         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
28008         and use malloc rather than the stack for the same reason as
28009         mentioned in the comment justifying the other allocation.
28010
28011 2010-10-11  Bruno Haible  <bruno@clisp.org>
28012
28013         stdlib: Allow multiple gnulib generated replacements to coexist.
28014         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
28015         Reported by Sam Steingold <sds@gnu.org>.
28016
28017 2010-10-11  Jim Meyering  <meyering@redhat.com>
28018
28019         fix a documentation typo
28020         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
28021
28022 2010-10-11  Eric Blake  <eblake@redhat.com>
28023
28024         futimens: work around Solaris 11 bug
28025         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
28026         * tests/test-futimens.h (test_futimens): Enhance, rather than
28027         weaken test.
28028         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28029
28030 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28031
28032         Indentation.
28033         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
28034         higher-level operators more to the left.
28035
28036 2010-10-11  Jim Meyering  <meyering@redhat.com>
28037
28038         test-futimens: avoid unwarranted test failure on Solaris 5.11
28039         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
28040         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
28041         because it tries to dereference the NULL name argument.
28042
28043 2010-10-11  Bruno Haible  <bruno@clisp.org>
28044
28045         Indentation.
28046         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
28047         indentation.
28048
28049 2010-10-11  Jim Meyering  <meyering@redhat.com>
28050
28051         spawn.in.h: make indentation consistent with parentheses
28052         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
28053         Make indentation consistent with parentheses.
28054
28055 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
28056
28057         Fix mismatched parens in previous commit
28058         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
28059         parens.
28060
28061 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28062
28063         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
28064
28065         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
28066         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
28067         * lib/malloca.c: Include "verify.h".
28068         (verify1): Remove, replacing with a verify call.
28069         * lib/relocwrapper.c (verify1): Likewise.
28070         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
28071         Likewise.
28072         * modules/malloca (Depends-on): Add 'verify'.
28073         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
28074         * modules/vasnprintf (Depends-on): Add 'verify'.
28075         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28076         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28077         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28078         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28079         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28080         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28081         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28082
28083         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
28084
28085         Formerly the style was sometimes 2*X - 1, because the C standard
28086         was wrongly thought to disallow ?: in integral constant expressions.
28087         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
28088         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
28089         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
28090         * lib/stdint.in.h (_verify_intmax_size): Likewise.
28091         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
28092         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
28093         verify that time_t cannot be floating.
28094
28095 2010-10-08  Eric Blake  <eblake@redhat.com>
28096
28097         time: enforce recent POSIX ruling that time_t is integral
28098         * lib/time.in.h (__time_t_must_be_integral): Detect any
28099         problematic systems, allowing the rest of gnulib to assume POSIX.
28100
28101 2010-10-08  Jim Meyering  <meyering@redhat.com>
28102
28103         fdopendir: fix a bug on systems lacking openat and /proc support
28104         OpenBSD 4.7 is one such system.  The most noticeable effect was
28105         failure of any application making nontrivial use of fts: rm, du,
28106         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
28107           ./rm: traversal failed: `a': Bad file descriptor
28108         Debugging that, you see that even though FD 6 was closed just
28109         prior to the opendir call in fd_clone_opendir, its resulting
28110         dir->dd_fd was 8, rather than the expected value of 6:
28111
28112         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
28113         93                close (fd);
28114         (gdb) n
28115         94                dir = fd_clone_opendir (dupfd);
28116         (gdb) n
28117         95                saved_errno = errno;
28118         (gdb) p dir->dd_fd
28119         $11 = 8
28120
28121         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
28122         The problem is that on OpenBSD, fd_clone_opendir has to resort
28123         to using the old-style save/restore CWD mechanism, due to its
28124         lack of openat/proc support, and *that* would steal the FD (6)
28125         that opendir was supposed to use.
28126
28127         The fix is to squirrel away the desired FD so that save_cwd uses a
28128         different one, and then free the dest FD right before calling opendir.
28129         That guarantees opendir will use the required file descriptor.
28130
28131         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
28132
28133 2010-10-08  Bruno Haible  <bruno@clisp.org>
28134
28135         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
28136         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
28137
28138 2010-10-08  Bruno Haible  <bruno@clisp.org>
28139
28140         nanosleep: Make replacement POSIX compliant.
28141         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
28142         is out of range.
28143         Reported by Jim Meyering.
28144
28145 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28146
28147         bootstrap: add hook for altering gnulib.mk, for Bison
28148         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
28149         the Bison bootstrapping process can rewrite file names and variables
28150         in this file before later parts of 'bootstrap' use the file.
28151         Bison wants to include lib/gnulib.mk from the top-level makefile,
28152         so it needs the file names in this file to be relative to the top
28153         level, not relative to lib; plus it needs variable names to be
28154         rewritten.
28155         (slurp): Use the new function.
28156
28157         bootstrap: reformat for readability
28158         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
28159
28160 2010-10-08  Eric Blake  <eblake@redhat.com>
28161
28162         docs: update cygwin progress
28163         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
28164         1.7.7.
28165         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
28166         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
28167         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
28168         * doc/posix-functions/carg.texi (carg): Likewise.
28169         * doc/posix-functions/cargf.texi (cargf): Likewise.
28170         * doc/posix-functions/casin.texi (casin): Likewise.
28171         * doc/posix-functions/casinf.texi (casinf): Likewise.
28172         * doc/posix-functions/casinh.texi (casinh): Likewise.
28173         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
28174         * doc/posix-functions/catan.texi (catan): Likewise.
28175         * doc/posix-functions/catanf.texi (catanf): Likewise.
28176         * doc/posix-functions/catanh.texi (catanh): Likewise.
28177         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
28178         * doc/posix-functions/ccos.texi (ccos): Likewise.
28179         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
28180         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
28181         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
28182         * doc/posix-functions/cexp.texi (cexp): Likewise.
28183         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
28184         * doc/posix-functions/cimag.texi (cimag): Likewise.
28185         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
28186         * doc/posix-functions/clog.texi (clog): Likewise.
28187         * doc/posix-functions/clogf.texi (clogf): Likewise.
28188         * doc/posix-functions/conj.texi (conj): Likewise.
28189         * doc/posix-functions/conjf.texi (conjf): Likewise.
28190         * doc/posix-functions/cpow.texi (cpow): Likewise.
28191         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
28192         * doc/posix-functions/cproj.texi (cproj): Likewise.
28193         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
28194         * doc/posix-functions/creal.texi (creal): Likewise.
28195         * doc/posix-functions/crealf.texi (crealf): Likewise.
28196         * doc/posix-functions/csin.texi (csin): Likewise.
28197         * doc/posix-functions/csinf.texi (csinf): Likewise.
28198         * doc/posix-functions/csinh.texi (csinh): Likewise.
28199         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
28200         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
28201         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
28202         * doc/posix-functions/ctan.texi (ctan): Likewise.
28203         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
28204         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
28205         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
28206         * doc/posix-headers/complex.texi (complex.h): Likewise.
28207
28208 2010-10-07  Jim Meyering  <meyering@redhat.com>
28209
28210         parse-datetime: avoid compilation failure on OpenBSD 4.7
28211         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
28212         This works around a compilation failure on OpenBSD 4.7:
28213         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
28214
28215 2010-10-07  Eric Blake  <eblake@redhat.com>
28216
28217         docs: update cygwin progress
28218         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
28219         1.7.6.
28220         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28221         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
28222         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
28223         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
28224         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
28225         Likewise.
28226         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
28227         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
28228         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
28229         Likewise.
28230         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
28231         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
28232         Likewise.
28233         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
28234         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
28235         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
28236         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
28237         Likewise.
28238         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
28239         Likewise.
28240         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
28241
28242         docs: update parse-datetime history
28243         * doc/parse-datetime.texi (Authors of parse_datetime): Better
28244         documentation of this function's history and alternatives.
28245
28246         cygwin: use more robust version check
28247         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
28248         exclude an eventual cygwin 1.9.1.
28249         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28250         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28251         (gl_FUNC_STRCASESTR): Likewise.
28252         Reported by Bruno Haible.
28253
28254 2010-10-06  Bruno Haible  <bruno@clisp.org>
28255
28256         string, sys_select: Avoid #including large headers unless necessary.
28257         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
28258         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
28259         OSF/1, BeOS, Haiku.
28260         Reported by Jim Meyering.
28261
28262 2010-10-05  Eric Blake  <eblake@redhat.com>
28263
28264         memmem, strstr, strcasestr: fix bug with long periodic needle
28265         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
28266         periodic needle having false positive.
28267         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
28268         and cygwin 1.7.7.
28269         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
28270         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28271         (gl_FUNC_STRCASESTR): Likewise.
28272         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28273         * tests/test-memmem.c (main): Expose the bug.
28274         * tests/test-strcasestr.c (main): Likewise.
28275         * tests/test-strstr.c (main): Likewise.
28276         * tests/test-c-strcasestr.c (main): Likewise.
28277         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
28278         * doc/posix-functions/strstr.texi (strstr): Likewise.
28279         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28280         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
28281
28282 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28283
28284         parse-datetime: do some more renaming
28285         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
28286         parse_datetime, not get_date.  Mention the renaming.
28287         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
28288         in comments.
28289         * m4/bison.m4: Likewise.
28290
28291 2010-10-05  Eric Blake  <eblake@redhat.com>
28292
28293         parse-datetime: better name than get_date
28294         * NEWS: Reword the deprecation notice.
28295         * modules/get_date: Rename to modules/parse-datetime.
28296         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
28297         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
28298         * lib/get_date.y: Rename to lib/parse-datetime.y.
28299         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
28300         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
28301         * doc/getdate.texi: Provide fallback wrapper.
28302         * lib/getdate.h: Move guts, and wrap...
28303         * lib/parse-datetime.h: ...new file.
28304         * lib/parse-datetime.y (get_date): Rename...
28305         (parse_datetime): ...to this.
28306         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
28307         (gl_PARSE_DATETIME): ...to this.
28308         * doc/posix-functions/getdate.texi (get_date): Provide fallback
28309         documentation.
28310         * modules/getdate (Files): Provide fallback docs and header.
28311         (Notice, Depends-on): Update references.
28312         * tests/test-parse-datetime.c: Likewise.
28313         * DEPENDENCIES: Likewise.
28314         * MODULES.html.sh (Date and time <time.h>): Likewise.
28315         * doc/parse-datetime.texi (Date input formats)
28316         (Authors of parse_datetime): Likewise.
28317         * modules/parse-datetime (Files, configure.ac, Makefile.am)
28318         (Include): Likewise.
28319         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
28320         * gnulib-tool: Likewise.
28321         * m4/bison.m4 (gl_BISON): Likewise.
28322         Suggested by Bruno Haible.
28323
28324 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28325
28326         more ports to Solaris tr, which needs [] around ranges
28327         * gnulib-tool: Solaris tr needs [] around ranges.
28328         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28329         * tests/test-pipe-filter-gi1.c (main): Likewise.
28330         * tests/test-pipe-filter-ii1.c (main): Likewise.
28331
28332 2010-10-05  Eric Blake  <eblake@redhat.com>
28333
28334         bootstrap: fix Solaris regression
28335         * build-aux/bootstrap (check_versions): Solaris tr still needs []
28336         around ranges.
28337         Reported by Pádraig Brady.
28338
28339         bootstrap: work with pkg-config
28340         * build-aux/bootstrap (check_versions): Also transliterate - in
28341         prerequisite name.
28342         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
28343         prerequisites that were already found, to avoid confusion.
28344         Reported by Justin Clift.
28345
28346         faccessat: remove unused wrappers
28347         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
28348         presence of these wrappers dragged in -lgen on Solaris.
28349         Reported by Clemens Brogi; fix suggested by Paul Eggert.
28350
28351 2010-10-05  Jim Meyering  <meyering@redhat.com>
28352
28353         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
28354         * Makefile (sc_pragma_columns): New syntax-check rule.
28355
28356 2010-10-04  Bruno Haible  <bruno@clisp.org>
28357
28358         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
28359         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
28360         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
28361         Reported by Bruce Korb and Eric Blake.
28362
28363 2010-10-04  Bruno Haible  <bruno@clisp.org>
28364
28365         threadlib: Make option --with-libpth-prefix work.
28366         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
28367         use $LIBPTH, not just -lpth.
28368
28369 2010-10-04  Bruno Haible  <bruno@clisp.org>
28370
28371         Avoid line length limitation from HP NonStop system header files.
28372         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
28373         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
28374         * lib/ctype.in.h: Likewise.
28375         * lib/dirent.in.h: Likewise.
28376         * lib/errno.in.h: Likewise.
28377         * lib/fcntl.in.h: Likewise.
28378         * lib/float.in.h: Likewise.
28379         * lib/getopt.in.h: Likewise.
28380         * lib/iconv.in.h: Likewise.
28381         * lib/inttypes.in.h: Likewise.
28382         * lib/langinfo.in.h: Likewise.
28383         * lib/locale.in.h: Likewise.
28384         * lib/math.in.h: Likewise.
28385         * lib/netdb.in.h: Likewise.
28386         * lib/netinet_in.in.h: Likewise.
28387         * lib/poll.in.h: Likewise.
28388         * lib/pthread.in.h: Likewise.
28389         * lib/pty.in.h: Likewise.
28390         * lib/sched.in.h: Likewise.
28391         * lib/se-selinux.in.h: Likewise.
28392         * lib/search.in.h: Likewise.
28393         * lib/signal.in.h: Likewise.
28394         * lib/spawn.in.h: Likewise.
28395         * lib/stdarg.in.h: Likewise.
28396         * lib/stddef.in.h: Likewise.
28397         * lib/stdint.in.h: Likewise.
28398         * lib/stdio.in.h: Likewise.
28399         * lib/stdlib.in.h: Likewise.
28400         * lib/string.in.h: Likewise.
28401         * lib/strings.in.h: Likewise.
28402         * lib/sys_file.in.h: Likewise.
28403         * lib/sys_ioctl.in.h: Likewise.
28404         * lib/sys_select.in.h: Likewise.
28405         * lib/sys_socket.in.h: Likewise.
28406         * lib/sys_stat.in.h: Likewise.
28407         * lib/sys_time.in.h: Likewise.
28408         * lib/sys_times.in.h: Likewise.
28409         * lib/sys_utsname.in.h: Likewise.
28410         * lib/sys_wait.in.h: Likewise.
28411         * lib/sysexits.in.h: Likewise.
28412         * lib/termios.in.h: Likewise.
28413         * lib/time.in.h: Likewise.
28414         * lib/unistd.in.h: Likewise.
28415         * lib/wchar.in.h: Likewise.
28416         * lib/wctype.in.h: Likewise.
28417         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
28418         * modules/ctype (Makefile.am): Likewise.
28419         * modules/dirent (Makefile.am): Likewise.
28420         * modules/errno (Makefile.am): Likewise.
28421         * modules/fcntl-h (Makefile.am): Likewise.
28422         * modules/float (Makefile.am): Likewise.
28423         * modules/getopt-posix (Makefile.am): Likewise.
28424         * modules/iconv-h (Makefile.am): Likewise.
28425         * modules/inttypes (Makefile.am): Likewise.
28426         * modules/langinfo (Makefile.am): Likewise.
28427         * modules/locale (Makefile.am): Likewise.
28428         * modules/math (Makefile.am): Likewise.
28429         * modules/netdb (Makefile.am): Likewise.
28430         * modules/netinet_in (Makefile.am): Likewise.
28431         * modules/poll-h (Makefile.am): Likewise.
28432         * modules/pthread (Makefile.am): Likewise.
28433         * modules/pty (Makefile.am): Likewise.
28434         * modules/sched (Makefile.am): Likewise.
28435         * modules/search (Makefile.am): Likewise.
28436         * modules/selinux-h (Makefile.am): Likewise.
28437         * modules/signal (Makefile.am): Likewise.
28438         * modules/spawn (Makefile.am): Likewise.
28439         * modules/stdarg (Makefile.am): Likewise.
28440         * modules/stddef (Makefile.am): Likewise.
28441         * modules/stdint (Makefile.am): Likewise.
28442         * modules/stdio (Makefile.am): Likewise.
28443         * modules/stdlib (Makefile.am): Likewise.
28444         * modules/string (Makefile.am): Likewise.
28445         * modules/strings (Makefile.am): Likewise.
28446         * modules/sys_file (Makefile.am): Likewise.
28447         * modules/sys_ioctl (Makefile.am): Likewise.
28448         * modules/sys_select (Makefile.am): Likewise.
28449         * modules/sys_socket (Makefile.am): Likewise.
28450         * modules/sys_stat (Makefile.am): Likewise.
28451         * modules/sys_time (Makefile.am): Likewise.
28452         * modules/sys_times (Makefile.am): Likewise.
28453         * modules/sys_utsname (Makefile.am): Likewise.
28454         * modules/sys_wait (Makefile.am): Likewise.
28455         * modules/sysexits (Makefile.am): Likewise.
28456         * modules/termios (Makefile.am): Likewise.
28457         * modules/time (Makefile.am): Likewise.
28458         * modules/unistd (Makefile.am): Likewise.
28459         * modules/wchar (Makefile.am): Likewise.
28460         * modules/wctype (Makefile.am): Likewise.
28461
28462 2010-10-04  Bruno Haible  <bruno@clisp.org>
28463
28464         read-file tests: Avoid a test failure on NonStop Kernel.
28465         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
28466         a regular file.
28467         Reported by Joachim Schmitz <schmitz@hp.com>.
28468
28469 2010-10-03  Bruno Haible  <bruno@clisp.org>
28470
28471         gnulib-tool: Fixes for --create-testdir with --libtool.
28472         * gnulib-tool (func_get_automake_snippet): Don't augment
28473         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
28474         an executable.
28475         (func_create_testdir): Handle module 'alloca' like func_import.
28476         Reported by Bruce Korb <bruce.korb@gmail.com>.
28477
28478 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
28479
28480         Avoid some lines longer than 80 characters.
28481         * lib/stdint.in.h: Break long comment lines.
28482         * lib/math.in.h: Likewise.
28483         (_GL_NUM_UINT_WORDS): New macro, for readability.
28484         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
28485         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
28486         * lib/stdlib.in.h: Likewise.
28487         * lib/spawn.in.h: Likewise.
28488         * lib/sys_socket.in.h: Update an URL.
28489         * lib/sys_stat.in.h: Break long line.
28490
28491 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
28492
28493         Improve pmccabe2html.
28494         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
28495         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
28496         when the sources change. Remove the line in the HTML about "Used
28497         ranges" (which implied that there might be other unused ranges),
28498         rename "Resume" to "Summary" (easier to understand for more users).
28499         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
28500         styles, and some unnecessary blank lines.
28501
28502 2010-10-03  Bruno Haible  <bruno@clisp.org>
28503             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
28504
28505         acl: Add support for ACLs on NonStop Kernel.
28506         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
28507         Check whether the function aclsort() exists.
28508         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
28509         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
28510         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28511         (acl_nontrivial [HAVE_ACLSORT]: New function.
28512         (file_has_acl): Implement for NonStop Kernel.
28513         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28514         (qset_acl): Implement for NonStop Kernel.
28515         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
28516         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28517         (main): Implement for NonStop Kernel.
28518         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
28519         Kernel. Handle this flavor.
28520         * tests/test-set-mode-acl.sh: Likewise.
28521         * tests/test-copy-acl.sh: Likewise.
28522         * tests/test-copy-file.sh: Likewise.
28523
28524 2010-10-03  Bruno Haible  <bruno@clisp.org>
28525
28526         Info about ACLs on NonStop Kernel.
28527         * doc/acl-resources.txt: Add info about NonStop Kernel.
28528         References by Joachim Schmitz <schmitz@hp.com>.
28529
28530 2010-10-02  Bruno Haible  <bruno@clisp.org>
28531
28532         Define missing EDQUOT on NonStop Kernel.
28533         * lib/errno.in.h (EDQUOT): Assign a value if missing.
28534         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
28535         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
28536         missing.
28537         * doc/posix-headers/errno.texi: Mention the NSK bug.
28538         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
28539         Reported by Joachim Schmitz <schmitz@hp.com>.
28540
28541 2010-10-02  Bruno Haible  <bruno@clisp.org>
28542
28543         Update doc for POSIX:2008.
28544         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
28545         Update URL of POSIX specification.
28546
28547 2010-10-02  Bruno Haible  <bruno@clisp.org>
28548
28549         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
28550         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
28551         from gnulib, not from Automake.
28552
28553 2010-10-02  Bruno Haible  <bruno@clisp.org>
28554
28555         New module 'system-posix'.
28556         * modules/system-posix: New file.
28557         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
28558         module is present.
28559         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28560         GNULIB_SYSTEM_POSIX.
28561         * modules/stdlib (Depends-on): Remove sys_wait.
28562         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
28563         * doc/posix-functions/system.texi: Mention the new module.
28564         * doc/posix-headers/stdlib.texi: Likewise.
28565         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
28566         define test_sys_wait_macros to a no-op.
28567         Reported by Sam Steingold <sds@gnu.org>.
28568
28569 2010-09-30  Bruno Haible  <bruno@clisp.org>
28570
28571         More renaming from 'getdate' to 'get_date'.
28572         * doc/get_date.texi: Renamed from doc/getdate.texi.
28573         * modules/get_date (Files): Update.
28574         * MODULES.html.sh (Date and time <time.h>): Update.
28575         * DEPENDENCIES: Update.
28576         * gnulib-tool: Update comment.
28577         * m4/bison.m4 (gl_BISON): Likewise.
28578         * m4/get_date.m4 (gl_GET_DATE): Likewise.
28579
28580 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
28581
28582         bootstrap: support ACLOCAL_FLAGS during aclocal
28583         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
28584         can add additional -I dir for third-party .m4 files.
28585
28586 2010-09-30  Eric Blake  <eblake@redhat.com>
28587
28588         bootstrap: use glibtoolize on MacOS
28589         * build-aux/bootstrap (check_versions): Convert libtool into
28590         libtoolize.
28591         (tool search): Move libtool check earlier, and look for
28592         glibtoolize for MacOS.
28593         (gnulib_tool_options): Auto-add --libtool when appropriate.
28594         Reported by Justin Clift.
28595
28596         poll: fix typo that broke test on MacOS
28597         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
28598         Reported by Justin Clift.
28599
28600         getdate: rename to get_date
28601         Note: getdate.h is not renamed, to minimize client impact.
28602         * modules/getdate: Mark obsolete.  Move old contents...
28603         * modules/get_date: ...to new module name.
28604         * modules/getdate-tests: Move...
28605         * modules/get_date-tests: ...here.
28606         * m4/getdate.m4: Move...
28607         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
28608         * lib/getdate.y: Move...
28609         * lib/get_date.y: ...here.
28610         * tests/test-getdate.c: Move...
28611         * tests/test-get_date.c: ...here.
28612         * doc/posix-functions/getdate.texi (getdate): Update name.
28613         * NEWS: Mention the change.
28614
28615 2010-09-29  Bruno Haible  <bruno@clisp.org>
28616
28617         Separate the module 'waitpid' from the module 'sys_wait'.
28618         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
28619         present.
28620         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
28621         gl_MODULE_INDICATOR_FOR_TESTS.
28622         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
28623         * modules/sys_wait (Depends-on): Remove waitpid.
28624         (Makefile.am): Substitute GNULIB_WAITPID.
28625         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
28626         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
28627         signature only if the 'waitpid' module is present.
28628         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
28629         * NEWS: Mention the change.
28630         * modules/grantpt (Depends-on): Add waitpid.
28631         * modules/wait-process (Depends-on): Likewise.
28632
28633 2010-09-29  Bruno Haible  <bruno@clisp.org>
28634
28635         More tests for module 'sys_wait'.
28636         * modules/sys_wait-c++-tests: New file.
28637         * tests/test-sys_wait-c++.cc: New file.
28638         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
28639         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28640
28641 2010-09-29  Bruno Haible  <bruno@clisp.org>
28642
28643         New module 'waitpid'.
28644         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
28645         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
28646         Don't include <process.h>.
28647         (waitpid): Declare only, using modern idiom.
28648         * m4/waitpid.m4: New file.
28649         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
28650         * modules/waitpid: New file.
28651         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
28652         (Makefile.am): Update.
28653         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28654
28655 2010-09-28  Bruno Haible  <bruno@clisp.org>
28656
28657         poll: Assume ANSI C.
28658         * lib/poll.c (poll): Use an ANSI C declaration.
28659
28660 2010-09-28  Bruno Haible  <bruno@clisp.org>
28661
28662         poll-h: Create poll.h on all platforms.
28663         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
28664         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
28665         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
28666         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
28667         (gl_REPLACE_POLL_H): Don't set POLL_H.
28668         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
28669         * modules/poll-h (Depends-on): Add include_next.
28670         (Makefile.am): Create poll.h unconditionally. Substitute also
28671         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
28672
28673 2010-09-28  Bruno Haible  <bruno@clisp.org>
28674
28675         Tests for module 'poll-h'.
28676         * modules/poll-h-c++-tests: New file.
28677         * tests/test-poll-h-c++.cc: New file.
28678
28679         Tests for module 'poll-h'.
28680         * modules/poll-h-tests: New file.
28681         * tests/test-poll-h.c: New file.
28682
28683 2010-09-28  Bruno Haible  <bruno@clisp.org>
28684
28685         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
28686         * modules/poll-h (Depends-on): Add 'extensions'.
28687
28688 2010-09-28  Bruno Haible  <bruno@clisp.org>
28689
28690         New module 'poll-h'.
28691         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
28692         (poll): Use modern idiom.
28693         * modules/poll-h: New file.
28694         * modules/poll (Files): Remove lib/poll.in.h.
28695         (Depends-on): Add poll-h.
28696         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
28697         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
28698         * m4/poll_h.m4: New file.
28699         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
28700         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
28701         and invoke gl_REPLACE_POLL_H.
28702         * lib/poll.c: Use common idiom.
28703         * tests/test-poll.c: Likewise.
28704         * doc/posix-headers/poll.texi: Mention the poll-h module.
28705         Suggested by Eric Blake.
28706
28707 2010-09-26  Bruno Haible  <bruno@clisp.org>
28708
28709         sys_wait: Implement WSTOPSIG.
28710         * lib/sys_wait.in.h (WSTOPSIG): New macro.
28711         Reported by Simon Josefsson.
28712
28713 2010-09-26  Simon Josefsson  <simon@josefsson.org>
28714
28715         stdlib, sys_wait: Avoid compilation error on mingw.
28716         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
28717
28718 2010-09-26  Bruno Haible  <bruno@clisp.org>
28719
28720         stdlib tests: Avoid code duplication.
28721         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
28722         * modules/sys_wait-tests (Files): Likewise.
28723         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
28724         * tests/test-stdlib.c: Include test-sys_wait.h.
28725         (main): Invoke test_sys_wait_macros.
28726         * tests/test-sys_wait.c: Include test-sys_wait.h.
28727         (main): Invoke test_sys_wait_macros.
28728
28729 2010-09-25  Simon Josefsson  <simon@josefsson.org>
28730
28731         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
28732         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
28733         sure Windows sockets are working before calling getaddrinfo.
28734         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
28735         * doc/gnulib.texi (Windows sockets): Fix typo.
28736
28737 2010-09-25  Bruno Haible  <bruno@clisp.org>
28738
28739         Tests for module 'regex-quote'.
28740         * modules/regex-quote-tests: New file.
28741         * tests/test-regex-quote.c: New file.
28742
28743         New module 'regex-quote'.
28744         * lib/regex-quote.h: New file.
28745         * lib/regex-quote.c: New file.
28746         * modules/regex-quote: New file.
28747         Suggested by Reuben Thomas <rrt@sc3d.org>.
28748
28749 2010-09-24  Bruno Haible  <bruno@clisp.org>
28750
28751         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
28752         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
28753
28754 2010-09-23  Bruno Haible  <bruno@clisp.org>
28755
28756         setenv: Relax license.
28757         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
28758         Blake.
28759         Requested by Eric Blake.
28760
28761 2010-09-22  Bruno Haible  <bruno@clisp.org>
28762
28763         termios: Relax license.
28764         * modules/termios (License): Change to LGPLv2+.
28765         Requested by Eric Blake.
28766
28767 2010-09-22  Bruno Haible  <bruno@clisp.org>
28768
28769         threadlib: Allow the package to change the default to 'no'.
28770         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
28771         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
28772         Reported by Paul Eggert.
28773
28774 2010-09-22  Pádraig Brady  <P@draigbrady.com>
28775             Bruno Haible  <bruno@clisp.org>
28776
28777         Fix endless loop in mbmemcasecoll.
28778         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
28779         byte.
28780         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
28781
28782 2010-09-22  Bruno Haible  <bruno@clisp.org>
28783
28784         Tests for module 'memcoll'.
28785         * modules/memcoll-tests: New file.
28786         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
28787
28788         memcoll, xmemcoll: Clarify size vs. length.
28789         * modules/memcoll.c (memcoll0): Clarify specification.
28790         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
28791         passed to collate_error.
28792
28793 2010-09-22  Bruno Haible  <bruno@clisp.org>
28794
28795         Tests for module 'memcasecmp'.
28796         * modules/memcasecmp-tests: New file.
28797         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
28798
28799 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28800
28801         * lib/pthread.in.h: Add split double-inclusion guard, and include
28802         system <pthread.h> if there is one.  Use @@-style as in other
28803         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
28804         pthread.h doesn't.
28805         (pthread_mutexattr_destroy, pthread_mutexattr_init):
28806         (pthread_mutexattr_settype, pthread_mutex_trylock):
28807         New static inline functions, if there's no system <pthread.h>.
28808         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
28809         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
28810         Approximate with mutexes if the system lacks spinlocks, as in
28811         MacOS.
28812         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
28813         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
28814         @@-style.  Check for spinlocks separately.
28815         (gl_PTHREAD_DEFAULTS): New macro.
28816         * modules/pthread: Redo to use a more typical style for in.h files.
28817
28818 2010-09-21  Eric Blake  <eblake@redhat.com>
28819
28820         net_if: enhance tests
28821         * tests/test-net_if.c (main): Move signature checks earlier.
28822         Print failures to stderr.
28823         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
28824         Document the bug that we do not yet fix.
28825
28826 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28827
28828         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
28829         about gnulib, not GSS.
28830
28831 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28832
28833         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
28834         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
28835         for Emacs.
28836         * build-aux/pmccabe2html: Make Makefile.am example code more
28837         cut-and-paste friendly.
28838
28839 2010-09-21  Simon Josefsson  <simon@josefsson.org>
28840
28841         * tests/test-net_if.c: New file.
28842         * modules/net_if-tests: New file.
28843
28844 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28845
28846         pthread: add pthread_spin_destroy
28847         * lib/pthread.in.h (pthread_spin_destroy): New function.
28848
28849 2010-09-19  Bruno Haible  <bruno@clisp.org>
28850
28851         gnulib-tool: Fix --help output.
28852         * gnulib-tool (func_usage): Fix help message.
28853         Reported by Reuben Thomas <rrt@sc3d.org>.
28854
28855 2010-09-18  Jim Meyering  <meyering@redhat.com>
28856
28857         maint.mk: avoid unexpanded \n in two diagnostics
28858         * top/maint.mk (sc_prohibit_always_true_header_tests):
28859         Don't use a literal \n in a halt=... assignment.  It would not be
28860         expanded, and the two \n bytes would appear in the diagnostic output
28861         rather than the desired newline.  Use halt=$$(printf ... instead.
28862         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
28863
28864 2010-09-18  Bruno Haible  <bruno@clisp.org>
28865
28866         netinet_in: Doc tweak.
28867         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
28868         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28869
28870 2010-09-18  Jim Meyering  <meyering@redhat.com>
28871
28872         init.sh: correct an outdated comment
28873         * tests/init.sh (create_exe_shims_):  s/function/alias/
28874
28875         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
28876         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
28877         a file named "*.exe" is removed between the glob expansion and the
28878         processing of that oddly named file.
28879
28880 2010-09-17  Eric Blake  <eblake@redhat.com>
28881
28882         mirbsd: add some more support
28883         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
28884         in BSD family.
28885         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
28886         devices as OpenBSD.
28887         * m4/host-os.m4 (mirbsd): Add MirBSD.
28888
28889         tests: fix unportable assumption on sys/wait.h
28890         * tests/test-sys_wait.c (main): Relax test.
28891         * tests/test-stdlib.c (main): Likewise.
28892
28893         init.sh: accommodate directory with no .exes
28894         * tests/init.sh: Accomodate directory containing only scripts.
28895
28896         tests: avoid compiler warning
28897         * tests/test-stdlib.c (main): Use the variable.
28898
28899         fdutimens, fdutimensat: update signature, again
28900         * lib/utimens.h (gl_futimens): Delete, and move signature...
28901         (fdutimens): ...here.
28902         (fdutimensat): Rearrange signature.
28903         (lutimensat): Rename variable for clarity.
28904         * lib/fdutimensat.c (fdutimensat): Update signature.
28905         * lib/utimens.c (fdutimens): Likewise.
28906         (gl_futimens): Delete.
28907         (utimens, lutimens): Update callers.
28908         * lib/futimens.c (futimens): Likewise.
28909         * tests/test-fdutimensat.c: Likewise.
28910         * tests/test-utimens.c: Likewise.
28911         * tests/test-futimens.h: Update comment.
28912         * NEWS: Mention this.
28913         Suggested by Paul Eggert.
28914
28915 2010-09-17  Bruno Haible  <bruno@clisp.org>
28916
28917         Take over the maintenance of some older macros from Autoconf.
28918         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
28919         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
28920         GNU Autoconf.
28921         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
28922         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
28923
28924 2010-09-17  Eric Blake  <eblake@redhat.com>
28925
28926         fdutimensat: drop atflag validation
28927         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
28928         with valid fd, to close a race scenario where futimens is
28929         unsupported and FILE was replaced by a symlink.
28930         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
28931         accordingly.
28932         Suggested by Paul Eggert.
28933
28934 2010-09-16  Bruno Haible  <bruno@clisp.org>
28935
28936         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
28937         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
28938
28939 2010-09-16  Bruno Haible  <bruno@clisp.org>
28940
28941         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
28942         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
28943         login_tty exists.
28944         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28945
28946 2010-09-16  Bruno Haible  <bruno@clisp.org>
28947
28948         login_tty: Make the replacement code work on BSD systems.
28949         * lib/login_tty.c: Include <sys/ioctl.h>.
28950         (login_tty): Use ioctl TIOCSCTTY when available.
28951         * modules/login_tty (Depends-on): Add sys_ioctl.
28952         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28953
28954 2010-09-16  Bruno Haible  <bruno@clisp.org>
28955
28956         login_tty: Stricter unit test.
28957         * modules/login_tty-tests (Depends-on): Add tcgetsid.
28958         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
28959         and tcgetsid() after login_tty.
28960         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28961
28962 2010-09-16  Bruno Haible  <bruno@clisp.org>
28963
28964         New module 'tcgetsid'.
28965         * lib/tcgetsid.c: New file.
28966         * m4/tcgetsid.m4: New file.
28967         * modules/tcgetsid: New file.
28968         * modules/termios (Depends-on): Add c++defs, warn-on-use.
28969         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
28970         GNULIB_TCGETSID, HAVE_TCGETSID.
28971         * lib/termios.in.h: Include <sys/types.h>.
28972         (tcgetsid): New declaration.
28973         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
28974         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
28975         * doc/posix-functions/tcgetsid.texi: Mention the new module.
28976         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
28977
28978 2010-09-16  Bruno Haible  <bruno@clisp.org>
28979
28980         Tests for module 'termios'.
28981         * modules/termios-c++-tests: New file.
28982         * modules/termios-tests: New file.
28983         * tests/test-termios-c++.cc: New file.
28984         * tests/test-termios.c: New file.
28985
28986         New module 'termios'.
28987         * modules/termios: New file.
28988         * lib/termios.in.h: New file.
28989         * m4/termios_h.m4: New file.
28990         * doc/posix-headers/termios.texi: Mention the new module.
28991
28992 2010-09-16  Eric Blake  <eblake@redhat.com>
28993
28994         fdutimensat: add an atflag parameter
28995         * lib/fdutimensat.c (fdutimensat): Add new parameter.
28996         * lib/utimens.h (fdutimensat): Update prototype.
28997         * tests/test-fdutimensat.c: Adjust test to match.
28998         * NEWS: Document the change.
28999         Suggested by Paul Eggert.
29000
29001 2010-09-16  Bruno Haible  <bruno@clisp.org>
29002
29003         Fix typos in comments.
29004         * lib/striconveh.h: Fix typo in comment.
29005         * lib/login_tty.c (login_tty): Likewise.
29006
29007 2010-09-15  Bruno Haible  <bruno@clisp.org>
29008
29009         stdlib: clarify MirBSD WEXITSTATUS bug
29010         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
29011         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29012
29013 2010-09-15  Eric Blake  <eblake@redhat.com>
29014
29015         stdlib: work around MirBSD WEXITSTATUS bug
29016         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
29017         * modules/stdlib (Depends-on): Add sys_wait.
29018         * tests/test-sys_wait.c (main): Enhance test.
29019         * tests/test-stdlib.c (main): Likewise.
29020         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
29021
29022         docs: mention MacOS issue with WEXITSTATUS(constant)
29023         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
29024         issue.
29025         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29026
29027         strnlen: add tests
29028         * modules/strnlen-tests: New file.
29029         * tests/test-strnlen.c: Likewise.
29030
29031 2010-09-14  Bruno Haible  <bruno@clisp.org>
29032
29033         unistr/base: Avoid link errors when module 'libunistring' is also used.
29034         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
29035         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
29036         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
29037         Declare also when HAVE_LIBUNISTRING is set.
29038         Reported by Pádraig Brady <P@draigbrady.com>.
29039
29040 2010-09-14  Eric Blake  <eblake@redhat.com>
29041
29042         test-rawmemchr: make more robust
29043         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
29044         (Depends-on, configure.ac): Add needed prerequisites to use it.
29045         * modules/memchr-tests (Files, Depends-on, configure.ac):
29046         Likewise, to avoid implicit reliance on memchr module prereqs.
29047         * tests/test-memchr.c (main): Ensure proper masking.
29048         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
29049         reads.
29050
29051         memchr: detect glibc Alpha bug
29052         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
29053         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
29054         Alpha.
29055         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
29056         * tests/test-memchr.c (main): Enhance test.
29057         Reported by Nelson H. F. Beebe.
29058
29059 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29060
29061         fts, getcwd, glob: audit for dirfd returning -1
29062         * lib/fts.c (opendir): Remove #define; no longer used.
29063         (opendirat): New arg PDIR_FD.  All callers changed.
29064         (fts_build, _opendir2): Use new opendirat to avoid the need for
29065         dirfd, or for checking whether dirfd returns a negative value.
29066         Don't use opendir; always use openat followed by fdopendir.
29067         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
29068         it.
29069         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
29070         returns -1 here.
29071         * modules/fts (Depends-on): Remove dirfd.
29072         * modules/getcwd (Depends-on): Likewise.
29073
29074 2010-09-13  Eric Blake  <eblake@redhat.com>
29075
29076         float: fix broken MirBSD header
29077         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
29078         * doc/posix-headers/float.texi (float.h): Document it.
29079
29080 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29081
29082         fts: use O_NOFOLLOW to avoid race condition when opening a directory
29083         * lib/fts.c (opendirat): New arg extra_flags.
29084         (__opendir2): Use it to avoid following symlinks when opening
29085         a directory, if symlinks are not supposed to be followed.  See
29086         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
29087
29088         fdopendir: preserve argument fd before returning
29089         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
29090         (fdopendir_with_dup, fd_clone_opendir): New static functions.
29091         (fdopendir): Use them, arranging for FD to be open to the same
29092         directory that it was when it started.  (It might be temporarily
29093         closed while fdopendir is running, so this not thread- or
29094         signal-safe.)  Be careful to do the right thing even when file
29095         descriptors are scarce and dup fails with errno == EMFILE.  See
29096         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
29097
29098 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
29099
29100         regex: Pass the system regex if its only problem is 32-bit regoff_t.
29101         * NEWS: Document change.
29102         * m4/regex.m4: Disable test for regoff_t size.
29103
29104 2010-09-13  Jim Meyering  <meyering@redhat.com>
29105
29106         fts: don't operate on an invalid file descriptor after failed dup
29107         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
29108         negative file descriptor.
29109
29110 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
29111
29112         savedir: add streamsavedir, deprecate fdsavedir
29113         * NEWS: Mention deprecation of fdsavedir.
29114         * lib/savedir.c (streamsavedir): New extern function, whose name
29115         ends in "savedir" to be consistent with the others.  This differs
29116         from savedirstream in that it doesn't close its argument.  The
29117         next version of GNU tar will use this instead of fdsavedir, to
29118         avoid some race conditions and conserve file descriptors.
29119         (savedirstream): Reimplement as a wrapper around streamsavedir.
29120         (fdsavedir): Add a comment deprecating this function.  As far as
29121         I know, only GNU tar used it, and GNU tar doesn't need it any more.
29122         * lib/savedir.h (streamsavedir): New decl.
29123         (fdsavedir): Add a comment deprecating this.
29124
29125 2010-09-10  Bruno Haible  <bruno@clisp.org>
29126
29127         langinfo: Fix last commit.
29128         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
29129         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
29130         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29131
29132 2010-09-10  Bruno Haible  <bruno@clisp.org>
29133
29134         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
29135         * lib/progreloc.c (O_EXEC): Define fallback.
29136
29137 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
29138
29139         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
29140         * NEWS: Document recent changes to fcntl-h.
29141         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
29142         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
29143         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
29144         Similarly for O_SEARCH; this last was already true, but not documented.
29145         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
29146         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
29147         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
29148         Likewise.
29149         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
29150         is zero, not whether it is defined.
29151         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
29152         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
29153         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
29154
29155 2010-09-10  Bruno Haible  <bruno@clisp.org>
29156
29157         langinfo, nl_langinfo: Fix for IRIX 5.3.
29158         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
29159         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
29160         HAVE_LANGINFO_YESEXPR.
29161         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
29162         HAVE_LANGINFO_YESEXPR.
29163         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
29164         HAVE_LANGINFO_T_FMT_AMPM is 0.
29165         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
29166         HAVE_LANGINFO_YESEXPR is 0.
29167         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
29168         NOEXPR.
29169         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
29170         * doc/posix-functions/nl_langinfo.texi: Likewise.
29171         Reported by Eric Blake.
29172
29173 2010-09-10  Bruno Haible  <bruno@clisp.org>
29174
29175         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
29176         * doc/glibc-functions/login_tty.texi: Mention the include file problem
29177         on FreeBSD 8.0 and OpenBSD 4.6.
29178         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
29179         * m4/pty_h.m4 (gl_PTY_H): Likewise.
29180         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
29181         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
29182         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
29183         ac_includes_default.
29184         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29185
29186 2010-09-09  Eric Blake  <eblake@redhat.com>
29187
29188         strsignal: work around NetBSD bug
29189         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
29190         * lib/string.in.h (includes): Likewise.
29191         * doc/posix-functions/strsignal.texi (strsignal): Document the
29192         bug.
29193         Reported by Nelson H. F. Beebe.
29194
29195         gnulib-tool: work with NetBSD /bin/sh
29196         * gnulib-tool (func_cache_var, func_cache_lookup_module)
29197         (func_get_description, func_get_comment, func_get_status)
29198         (func_get_notice, func_get_applicability, func_get_filelist)
29199         (func_get_dependencies, func_get_autoconf_early_snippet)
29200         (func_get_autoconf_snippet, func_get_automake_snippet)
29201         (func_get_include_directive, func_get_link_directive)
29202         (func_get_license, func_get_maintainer, func_import): Avoid
29203         shell syntax errors from parsing syntax extensions.
29204
29205 2010-09-09  Bruno Haible  <bruno@clisp.org>
29206
29207         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29208         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
29209         a reliable way to determine whether the 'alias' command works.
29210
29211 2010-09-08  Jim Meyering  <meyering@redhat.com>
29212
29213         init.sh: penalize a set-x-impaired shell; don't disqualify it
29214         * tests/init.sh: Too many shells corrupt application stderr when
29215         you set -x, so we can't afford to disqualify them, since at least
29216         on Irix-6.5, that would disqualify all bourne shells.
29217         Instead, use a two-pass approach.
29218         On the first pass, try to find a shell that meets the stricter
29219         condition that set -x does not corrupt stderr.
29220         If no shell meets the stricter condition, retest each candidate
29221         shell, but without that extra condition.  Finally, when
29222         VERBOSE=yes is requested and set -x might cause trouble, simply
29223         issue a warning and refrain from enabling debug output.
29224
29225 2010-09-08  Eric Blake  <eblake@redhat.com>
29226
29227         unsetenv: fix OpenBSD bug
29228         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
29229         * doc/posix-functions/unsetenv.texi (unsetenv): Update
29230         documentation.
29231         Reported by Jim Meyering.
29232
29233         strtod: work around IRIX 6.5 bug
29234         * lib/strtod.c (strtod): Reparse number on shorter string if
29235         exponent parse was invalid.
29236         * tests/test-strtod.c (main): Add check for "0x1p 2".
29237         Reported by Tom G. Christensen.
29238
29239         getopt: optimize previous patch
29240         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
29241         empty variable.  Speed up awk script.
29242         Reported by Paolo Bonzini.
29243
29244 2010-09-08  Jim Meyering  <meyering@redhat.com>
29245
29246         test.sh: disqualify shells for which set -x corrupts stderr
29247         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
29248         and OpenBSD 4.7.  They make it so with "set -x", environment settings
29249         appear in stderr output.  For example, this command:
29250             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
29251         prints "P=1" on those two systems:
29252
29253 2010-09-08  Bruno Haible  <bruno@clisp.org>
29254
29255         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29256         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
29257         commands, because some shells ignore redirections when there is an
29258         error in the command lookup.
29259         Reported by Eric Blake.
29260
29261 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
29262
29263         * lib/regex.h: Fix a mention of `regex_compile' (should be
29264         `re_compile_pattern').
29265         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
29266         (re_set_registers): Correct name of parameter in comment.
29267
29268         * doc/regex.texi: Add documentation for missing syntax flags.
29269         Remove commented-out documentation of defunct syntax option
29270         RE_NO_EMPTY_ALTS.
29271         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
29272         Add documentation of re_set_registers.
29273         Document trick to re-use a pattern buffer by setting fastmap manually.
29274         Update documentation of struct re_pattern_buffer per public members.
29275         Uncomment documentation of equivalence class operators and
29276         collating symbol operators, since they are now implemented,
29277         Explain leftmost-longest matching in relation to alternatives.
29278         Tidy documentation of substring matching.
29279         Remove POSIX documentation, which is done better in
29280         glibc, and refer the reader there. Keep BSD API documentation, as
29281         that is not readily available elsewhere.
29282
29283 2010-09-07  Eric Blake  <eblake@redhat.com>
29284
29285         getopt: handle POSIXLY_CORRECT set but not exported
29286         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
29287         export state of POSIXLY_CORRECT, due to bash set -o posix.
29288         Reported by Dustin J. Mitchell.
29289
29290 2010-09-05  Bruno Haible  <bruno@clisp.org>
29291
29292         gnulib-tool: Highlight the changed options.
29293         * gnulib-tool (func_usage): Display the --import, --add-import,
29294         --remove-import explanations in bold font.
29295
29296 2010-09-06  Karl Berry  <karl@gnu.org>
29297
29298         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
29299
29300 2010-09-05  Bruno Haible  <bruno@clisp.org>
29301
29302         uniwidth/width: Update comment.
29303         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
29304         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
29305
29306 2010-09-05  Bruno Haible  <bruno@clisp.org>
29307
29308         isinf, isnan: Relax license.
29309         * modules/isinf (License): Change from GPL to LGPL, with consent from
29310         Ben Pfaff.
29311         * modules/isnan (License): Likewise.
29312         Requested by Ludovic Courtès.
29313
29314 2010-09-04  Bruno Haible  <bruno@clisp.org>
29315
29316         gnulib-tool: Help migration from --import to --add-import or --update.
29317         * gnulib-tool: Emit a verbose error message when --import is used
29318         without any module name.
29319
29320 2010-09-04  Bruno Haible  <bruno@clisp.org>
29321
29322         Update doc about gnulib-tool.
29323         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
29324         'gnulib-tool --update' in more detail.
29325         Reported by Eric Blake.
29326
29327 2010-09-04  Bruno Haible  <bruno@clisp.org>
29328
29329         gnulib-tool: Change --import. New options --add/remove-import.
29330         * gnulib-tool: New options --add-import, --remove-import.
29331         (func_usage): Document them.
29332         (have_associative): Define always.
29333         (func_import): In import mode, don't merge the specified settings with
29334         the cached settings. Implement remove-import mode.
29335         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
29336         Explain when to use them versus --import.
29337         (Simple update): Use --add-import instead of --import.
29338         * NEWS: Mention the change.
29339
29340 2010-09-04  Bruno Haible  <bruno@clisp.org>
29341
29342         * doc/gnulib-tool.texi (Initial import): Update paragraph about
29343         separate gnulib.mk.
29344
29345 2010-09-04  Bruno Haible  <bruno@clisp.org>
29346
29347         gnulib-tool: Don't talk about CVS any more.
29348         * gnulib-tool (func_usage, func_import): Write "version control"
29349         instead of CVS.
29350
29351 2010-09-04  Jim Meyering  <meyering@redhat.com>
29352
29353         maint.mk: avoid obscure sc_copyright_check failure in coreutils
29354         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
29355         false positives (whose names may be ill-chosen) when searching
29356         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
29357         would cause a false-positive.
29358
29359         avoid coreutils "make distcheck" failure
29360         Coreutils tests with an absolute build directory name that contains
29361         a space.  Not quoting this directory name caused a failure.
29362         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
29363         * tests/test-vc-list-files-cvs.sh: Likewise.
29364
29365 2010-09-04  Bruno Haible  <bruno@clisp.org>
29366
29367         gnulib-tool: Avoid error when run in a package without Makefile.am.
29368         * gnulib-tool: When collecting the m4dirs in a package that does not
29369         have a Makefile.am, eliminate those directories that contain no
29370         gnulib-cache.m4. Fix expression that counts these directories.
29371
29372 2010-09-04  Bruno Haible  <bruno@clisp.org>
29373
29374         update-copyright test: Improve output when perl is missing or too old.
29375         * tests/test-update-copyright.sh: Move test of Perl version down after
29376         the test whether Perl exists. Provide an explanation relating Perl's
29377         error message to Automake's SKIP: message.
29378
29379 2010-09-04  Bruno Haible  <bruno@clisp.org>
29380
29381         Don't augment PATH in TESTS_ENVIRONMENT.
29382         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
29383         set abs_aux_dir instead of augmenting PATH.
29384         * modules/vc-list-files-tests (Makefile.am): Likewise.
29385         * tests/test-update-copyright.sh: Augment PATH here.
29386         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
29387         path_prepend_.
29388         * tests/test-vc-list-files-git.sh: Likewise.
29389
29390 2010-09-04  Jim Meyering  <meyering@redhat.com>
29391
29392         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
29393         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
29394
29395 2010-09-04  Bruno Haible  <bruno@clisp.org>
29396
29397         strdup: Fix compilation error in C++ mode.
29398         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
29399         the macro.
29400
29401 2010-09-04  Bruno Haible  <bruno@clisp.org>
29402
29403         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
29404         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
29405         macro into a function.
29406         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29407
29408 2010-09-04  Bruno Haible  <bruno@clisp.org>
29409
29410         Set PATH_SEPARATOR the same way autoconf does.
29411         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
29412         the value of PATH_SEPARATOR the same way autoconf-generated configure
29413         scripts do.
29414         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
29415         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
29416
29417 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29418
29419         Set PATH_SEPARATOR the same way autoconf does.
29420         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
29421         the same way autoconf-generated configure scripts do.
29422         * posix-modules: Likewise.
29423
29424 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29425
29426         hash: fix safe_hasher const typo
29427         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
29428         const; otherwise, there is a type error later.
29429
29430 2010-09-02  Jim Meyering  <meyering@redhat.com>
29431
29432         test-update-copyright.sh: require perl 5.8.0
29433         * tests/test-update-copyright.sh: Require 5.8.0,
29434         which Tom G. Christensen has confirmed is adequate,
29435         while 5.6.1 is not.
29436
29437 2010-09-02  Eric Blake  <eblake@redhat.com>
29438
29439         tests: init.sh improvements for re-exec'ing with zsh
29440         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
29441         -vx through shell re-exec.
29442         Reported by Tom G. Christensen.
29443
29444         wctype: fix typo in previous commit
29445         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
29446         Reported by Ludovic Courtès.
29447
29448 2010-09-02  Jim Meyering  <meyering@redhat.com>
29449
29450         test-update-copyright.sh: skip test if Perl is too old
29451         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
29452         Reported by Tom G. Christensen.
29453
29454 2010-09-02  Bruno Haible  <bruno@clisp.org>
29455
29456         wctype: Avoid compilation error on IRIX 6.5.30.
29457         * lib/wctype.in.h (iswblank): Declare with a replacement if
29458         REPLACE_ISWBLANK is set.
29459         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
29460         declared. Set REPLACE_ISWBLANK.
29461         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
29462         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
29463         * doc/posix-headers/wctype.texi: Likewise.
29464         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29465
29466 2010-09-01  Bruno Haible  <bruno@clisp.org>
29467
29468         New module 'socketlib'.
29469         * modules/socketlib: New file.
29470         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
29471         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
29472         * modules/sockets (Depends-on): Add socketlib.
29473         Suggested by Sam Steingold <sds@gnu.org>.
29474
29475 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29476
29477         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
29478
29479         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
29480         when one needs search access to a directory but not read access.
29481         On systems where it is available, it works in some cases where
29482         O_RDONLY does not, namely on directories that are searchable but
29483         not readable, and which need only to be searchable.  If O_SEARCH
29484         is not available, fall back to the traditional method of using
29485         O_RDONLY.
29486
29487         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
29488         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
29489         when opening a directory that needs only to be searchable.
29490         * lib/chdir-safer.c (chdir_no_follow): Likewise.
29491         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
29492         * lib/openat-proc.c (openat_proc_name): Likewise.
29493         * lib/openat.c (openat_needs_fchdir): Likewise.
29494         * lib/save-cwd.c (save_cwd): Likewise.
29495         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
29496
29497 2010-08-28  Bruno Haible  <bruno@clisp.org>
29498
29499         New module 'host-cpu-c-abi'.
29500         * modules/host-cpu-c-abi: New file.
29501         * m4/host-cpu-c-abi.m4: New file, based on part of
29502         clisp/src/m4/general.m4.
29503         Requested by Sam Steingold <sds@gnu.org>.
29504
29505 2010-08-31  Eric Blake  <eblake@redhat.com>
29506         and Jim Meyering  <meyering@redhat.com>
29507
29508         hash: factor, and guard against misbehaving hasher function
29509         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
29510         of table->hasher's return value.  Also protect against a hash value
29511         so large that adding it to table->bucket results in a NULL pointer.
29512         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
29513         Use it in place of open-coded check-and-abort.
29514
29515 2010-08-30  Bruno Haible  <bruno@clisp.org>
29516
29517         hash: silence spurious clang warning
29518         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
29519         Reported by Eric Blake.
29520
29521 2010-08-30  Eric Blake  <eblake@redhat.com>
29522
29523         strstr, memmem, strcasestr: avoid leaked shell message
29524         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
29525         FreeBSD.
29526         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29527         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29528
29529         tests: silence clang warning
29530         * tests/test-malloca.c (do_allocation): Avoid dead store.
29531
29532 2010-08-29  Bruno Haible  <bruno@clisp.org>
29533
29534         gettext: Fix recent mistake.
29535         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
29536
29537 2010-08-29  Bruno Haible  <bruno@clisp.org>
29538
29539         selinux-h: Offer a --without-selinux option.
29540         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
29541         --without-selinux was specified, skip all tests and define
29542         HAVE_SELINUX_SELINUX_H to 0.
29543         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
29544         set LIB_SELINUX to empty.
29545         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
29546         gl_LIBSELINUX. If --without-selinux was specified, replace
29547         selinux/context.h.
29548         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
29549
29550 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29551             Bruno Haible  <bruno@clisp.org>
29552
29553         Make the module 'realloc-gnu' work again on AIX and OSF/1.
29554         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
29555         of HAVE_REALLOC.
29556         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
29557         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
29558         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
29559         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29560
29561 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29562             Bruno Haible  <bruno@clisp.org>
29563
29564         Make the module 'calloc-gnu' work again on AIX and OSF/1.
29565         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
29566         HAVE_CALLOC.
29567         * lib/xmalloc.c: Update accordingly.
29568         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
29569         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
29570         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
29571
29572 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29573             Bruno Haible  <bruno@clisp.org>
29574
29575         Make the module 'malloc-gnu' work again on AIX and OSF/1.
29576         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
29577         HAVE_MALLOC.
29578         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
29579         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
29580         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29581
29582 2010-08-29  Bruno Haible  <bruno@clisp.org>
29583
29584         Update modules list.
29585         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29586         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
29587         (String handling <string.h>): Add astrxfrm.
29588         (File system functions): Add readlinkat.
29589
29590 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29591
29592         Tests for module 'realloc-gnu'.
29593         * modules/realloc-gnu-tests: New file.
29594         * tests/test-realloc-gnu.c: New file.
29595
29596         Tests for module 'calloc-gnu'.
29597         * modules/calloc-gnu-tests: New file.
29598         * tests/test-calloc-gnu.c: New file.
29599
29600         Tests for module 'malloc-gnu'.
29601         * modules/malloc-gnu-tests: New file.
29602         * tests/test-malloc-gnu.c: New file.
29603
29604 2010-08-28  Bruno Haible  <bruno@clisp.org>
29605
29606         Rename module 'realloc' -> 'realloc-gnu'.
29607         * modules/realloc-gnu: New file, copied from modules/realloc.
29608         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
29609         obsolete.
29610         * modules/mgetgroups (Depends-on): Update.
29611         * doc/posix-functions/realloc.texi: Update.
29612         * NEWS: Mention the change.
29613
29614         Rename module 'calloc' -> 'calloc-gnu'.
29615         * modules/calloc-gnu: New file, copied from modules/calloc.
29616         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
29617         obsolete.
29618         * doc/posix-functions/calloc.texi: Update.
29619         * NEWS: Mention the change.
29620
29621         Rename module 'malloc' -> 'malloc-gnu'.
29622         * modules/malloc-gnu: New file, copied from modules/malloc.
29623         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
29624         obsolete.
29625         * modules/argp (Depends-on): Update.
29626         * modules/regex (Depends-on): Update.
29627         * doc/posix-functions/malloc.texi: Update.
29628         * NEWS: Mention the change.
29629
29630 2010-08-28  Eric Blake  <eblake@redhat.com>
29631
29632         pread, pwrite: add missing dependency
29633         * modules/pread (Depends-on): Add extensions.
29634         * modules/pwrite (Depends-on): Likewise.
29635
29636 2010-08-28  Bruno Haible  <bruno@clisp.org>
29637
29638         unistr/u*-strchr: Fix tests dependencies.
29639         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
29640         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
29641         Reported by Ian Beckwith <ianb@erislabs.net>.
29642
29643 2010-08-28  Bruno Haible  <bruno@clisp.org>
29644
29645         read-file: Don't occupy too much unused memory.
29646         * lib/read-file.c (fread_file): Shrink the buffer at the end.
29647
29648 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
29649             Eric Blake  <eblake@redhat.com>
29650             Bruno Haible  <bruno@clisp.org>
29651
29652         read-file: Avoid memory reallocations with regular files.
29653         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
29654         (fread_file): With regular files, use the remaining length as the
29655         initial buffer size.  Check against overflow.
29656         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
29657         sys_stat.
29658
29659 2010-08-28  Bruno Haible  <bruno@clisp.org>
29660
29661         ftello: Relax license.
29662         * modules/ftello (License): Relax to LGPLv2+.
29663         Reported by Eric Blake.
29664
29665 2010-08-28  Bruno Haible  <bruno@clisp.org>
29666
29667         Avoid relocwrapper link errors due to gnulib replacement functions.
29668         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
29669         function.
29670         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29671
29672 2010-08-28  Bruno Haible  <bruno@clisp.org>
29673
29674         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
29675         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
29676         defined.
29677         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
29678         Suggested by Eric Blake.
29679
29680 2010-08-28  Bruno Haible  <bruno@clisp.org>
29681
29682         sys_socket, netdb: Ensure socklen_t gets defined.
29683         * modules/sys_socket (Depends-on): Add socklen.
29684         * modules/netdb (Depends-on): Likewise.
29685         * modules/getaddrinfo (Depends-on): Remove socklen.
29686         * modules/getsockopt (Depends-on): Likewise.
29687         * modules/setsockopt (Depends-on): Likewise.
29688         * tests/test-sys_socket.c: Check that socklen_t is defined.
29689         * tests/test-netdb.c: Likewise.
29690         * m4/socklen.m4: Update comments.
29691         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29692
29693 2010-08-27  Eric Blake  <eblake@redhat.com>
29694
29695         login_tty: add missing dependency
29696         * modules/login_tty (Depends-on): Add pty.
29697
29698 2010-08-26  Eric Blake  <eblake@redhat.com>
29699
29700         lib-symbol-versions: fix m4 quoting
29701         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
29702         format for AC_LINK_IFELSE.
29703
29704         glob: fix compile test
29705         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
29706
29707         btowc: fix missing file
29708         * modules/btowc (Files): Also ship locale-fr.m4.
29709
29710         lseek: fix link test
29711         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
29712         AC_LINK_IFELSE.
29713
29714         include_next: silence autoconf 2.68 warning
29715         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
29716         AC_COMPILE_IFELSE as special.
29717         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
29718         autoconf < 2.68.
29719
29720         acl: fix compilation test
29721         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
29722         AC_COMPILE_IFELSE.
29723
29724 2010-08-26  Bruno Haible  <bruno@clisp.org>
29725
29726         Modernize AC_TRY_RUN invocations.
29727         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
29728         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29729         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
29730         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
29731         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
29732         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29733         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29734         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29735         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29736         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29737         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29738         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29739         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29740         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29741         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29742         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
29743         gl_MBRLEN_NUL_RETVAL): Likewise.
29744         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29745         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29746         Likewise.
29747         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29748         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29749         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29750         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29751         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
29752         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
29753         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
29754         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
29755         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
29756         Likewise.
29757         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
29758         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
29759         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29760         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29761         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29762         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29763         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29764         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
29765         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29766         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29767
29768 2010-08-26  Bruno Haible  <bruno@clisp.org>
29769
29770         Modernize AC_TRY_LINK invocations.
29771         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
29772         AC_TRY_LINK.
29773         * m4/argp.m4 (gl_ARGP): Likewise.
29774         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
29775         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29776         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29777         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29778         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29779         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
29780         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
29781         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
29782         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29783         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29784         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29785         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
29786         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
29787         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29788         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
29789         * m4/hostent.m4 (gl_HOSTENT): Likewise.
29790         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29791         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
29792         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
29793         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
29794         Likewise.
29795         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
29796         Likewise.
29797         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
29798         Likewise.
29799         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
29800         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
29801         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
29802         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
29803         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
29804         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29805         * m4/servent.m4 (gl_SERVENT): Likewise.
29806         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
29807         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
29808         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
29809         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
29810         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29811         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29812         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29813         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29814         * modules/tsearch-tests (configure.ac): Likewise.
29815
29816 2010-08-26  Bruno Haible  <bruno@clisp.org>
29817
29818         Modernize AC_TRY_COMPILE invocations.
29819         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
29820         AC_TRY_COMPILE.
29821         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
29822         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
29823         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
29824         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
29825         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
29826         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29827         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29828         * m4/lock.m4 (gl_LOCK): Likewise.
29829         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
29830         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29831         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
29832         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29833         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
29834         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
29835         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29836         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
29837         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
29838         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
29839         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
29840         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
29841         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
29842         extraneous semicolon.
29843
29844 2010-08-26  Jim Meyering  <meyering@redhat.com>
29845
29846         stat-time: relax license LGPL
29847         * modules/stat-time (License): Change from GPL to LGPL,
29848         with consent from all contributors, for use in libguile.
29849         Requested by Ludovic Courtès.
29850
29851 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
29852
29853         poll: return immediately on POLLHUP.
29854         * lib/poll.c (poll): Always set timeout before wait_timeout is
29855         computed.
29856
29857 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29858
29859         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
29860         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
29861         rmdir ("dir/.//"), unlinkat.
29862
29863 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29864
29865         stdbool: avoid spurious failure with modern xlc
29866         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29867
29868 2010-08-24  Bruno Haible  <bruno@clisp.org>
29869
29870         getloadavg: simplify code
29871         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
29872         gl_have_func. Update comments.
29873
29874 2010-08-24  Eric Blake  <eblake@redhat.com>
29875
29876         getloadavg: don't define SVR4 on cygwin
29877         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
29878         only define SVR4 when -lkvm is required.
29879         Reported by Yaakov Selkowitz.
29880
29881 2010-08-24  Bruno Haible  <bruno@clisp.org>
29882
29883         priv-set: fix comment
29884         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
29885
29886 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29887
29888         priv-set: fix comments
29889         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
29890         to match code, as suggested by David Bartley in:
29891         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
29892
29893 2010-08-23  Eric Blake  <eblake@redhat.com>
29894
29895         stdbool: avoid rejecting clang
29896         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29897         * tests/test-stdbool.c: Enable more tests if using the system
29898         <stdbool.h> instead of the gnulib replacement.
29899         (main): Move xlc bug test to a runtime test for all compilers.
29900         Reported by Anders Kaseorg.
29901
29902         argz: fix shell quoting issue
29903         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
29904         Reported by Charles Wilson.
29905
29906 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
29907             Erik Faye-Lund <kusmabite@gmail.com>
29908
29909         poll, select: handle ERROR_BROKEN_PIPE.
29910         * lib/poll.c (win32_compute_revents): Return POLLHUP when
29911         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29912         * lib/select.c (win32_compute_revents): Do not mark a pipe
29913         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29914
29915 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
29916
29917         fts: allow compilation with C++
29918         * lib/fts_.h: Specify extern "C" linkage with C++.
29919
29920 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29921
29922         Fix gnulib-tool sed script de-commentation for AIX sed.
29923         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
29924         sed.
29925
29926 2010-08-17  Eric Blake  <eblake@redhat.com>
29927
29928         test-stddef: test for (some) offsetof bugs
29929         * tests/test-stddef.c: Enhance test to ensure correct type of
29930         offsetof.
29931         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
29932         that we are not fixing at this time.
29933
29934 2010-08-15  Bruno Haible  <bruno@clisp.org>
29935
29936         stpncpy: Allow stpncpy to be defined as a macro.
29937         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
29938         if it's already correctly declared.
29939         * lib/string.in.h (stpncpy): Undefine before redefining.
29940         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
29941
29942 2010-08-14  Bruno Haible  <bruno@clisp.org>
29943
29944         Rename module 'memxfrm' to 'amemxfrm'.
29945         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
29946         (amemxfrm): Renamed from memxfrm.
29947         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
29948         (amemxfrm): Renamed from memxfrm.
29949         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
29950         * NEWS: Mention the change.
29951         * MODULES.html.sh (String handling <string.h>): Update.
29952         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
29953         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
29954         * lib/unicase/u16-casexfrm.c: Likewise.
29955         * lib/unicase/u32-casexfrm.c: Likewise.
29956         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
29957         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
29958         * lib/uninorm/u16-normxfrm.c: Likewise.
29959         * lib/uninorm/u32-normxfrm.c: Likewise.
29960         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
29961         memxfrm.
29962         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
29963         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
29964         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
29965         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
29966         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
29967         Suggested by Paul Eggert.
29968
29969 2010-08-14  Bruno Haible  <bruno@clisp.org>
29970
29971         Tests for module 'astrxfrm'.
29972         * modules/astrxfrm-tests: New file.
29973         * tests/test-astrxfrm.c: New file.
29974
29975         New module 'astrxfrm'.
29976         * lib/astrxfrm.h: New file.
29977         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
29978         * modules/astrxfrm: New file.
29979
29980 2010-08-14  Reuben Thomas <rrt@sc3d.org>
29981
29982         regex: Tweak doc.
29983         * doc/regex.texi (Overview): Don't mention regex.c.
29984         (GNU Regular Expression Compiling): Likewise.
29985         (Match-end-of-line Operator): Mention 'not_eol'.
29986
29987 2010-08-14  Brian Gough  <bjg@gnu.org>
29988             Bruno Haible  <bruno@clisp.org>
29989
29990         git-merge-changelog: add doc relating to use with bzr and hg.
29991         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
29992
29993 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
29994
29995         pthread: fix pthread.h creation for srcdir != builddir
29996         * modules/pthread (Makefile.am): Fix the rule to work also in a
29997         non-srcdir build.
29998
29999 2010-08-13  Karl Berry  <karl@gnu.org>
30000
30001         * doc/regex.texi (Predefined Syntaxes): @smallexample.
30002         * doc/posix-*/*: force line break before @url of POSIX
30003         specifications.
30004         Suggested by Werner Lemberg.
30005
30006 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30007
30008         strtod: fix const diagnostic
30009         * lib/strtod.c (strtod): Don't assign const char * to char *,
30010         as this elicits a warning from GCC when warnings are enabled.
30011
30012 2010-08-10  Pádraig Brady <P@draigbrady.com>
30013         and Eric Blake  <eblake@redhat.com>
30014
30015         copy-acl: ignore ENOTSUP on HP-UX
30016         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
30017         so that it is available for HP-UX.
30018         * lib/copy-acl.c (qcopy_acl): Use it.
30019         Reported by Patrick M. Callahan.
30020
30021 2010-08-10  Eric Blake  <eblake@redhat.com>
30022
30023         open, chown: relax license
30024         * modules/open (License): Change to LGPLv2+, with consent by all
30025         authors, for use in augeas.
30026         * modules/chown (License): Likewise.
30027         * modules/lchown (Likewise): Likewise.
30028         Requested by Adam Stokes.
30029
30030 2010-08-09  Karl Berry  <karl@gnu.org>
30031
30032         * build-aux/ar-lib: new file, import from Automake.
30033         * config/srclist.txt: autocheck for updates.
30034
30035 2010-08-09  Eric Blake  <eblake@redhat.com>
30036
30037         readlinkat: adjust client modules
30038         * modules/areadlinkat (Depends-on): Use readlinkat, not
30039         symlinkat.
30040         * modules/areadlinkat-with-size (Depends-on): Likewise.
30041
30042         mknod: be more vocal about danger of running tests as root
30043         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
30044         root, since that is just asking for problems.
30045         Suggested by Bruno Haible, based on a report by Rainer Tammer.
30046
30047         readlinkat: split into its own module
30048         * modules/symlinkat: Split readlinkat...
30049         * modules/readlinkat: ...into separate module.
30050         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
30051         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
30052         * lib/symlinkat.c (readlinkat): Move...
30053         * lib/readlinkat.c: ...into new file.
30054         * modules/symlinkat-tests: Split readlinkat test...
30055         * modules/readlinkat-tests: ...into separate module.
30056         * tests/test-symlinkat.c: Split...
30057         * tests/test-readlinkat.c: ...into new file.
30058         * NEWS: Document the split.
30059         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30060         * lib/unistd.in.h (readlinkat): Likewise.
30061         Suggested by Bruno Haible.
30062
30063 2010-08-08  Bruno Haible  <bruno@clisp.org>
30064
30065         memxfrm: Speed up.
30066         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
30067         that usually only one call to strxfrm is necessary for each string
30068         part.
30069         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30070
30071 2010-08-07  Karl Berry  <karl@gnu.org>
30072
30073         * doc/posix-headers/limits.texi,
30074         * doc/posix-functions/malloc.texi,
30075         * doc/posix-functions/strsignal.texi: missing @item.
30076         * doc/ld-version-script.texi: spurious leading i.
30077         * doc/regex.texi (Interval Operators): no commas inside @var.
30078
30079 2010-08-01  Bruno Haible  <bruno@clisp.org>
30080
30081         Integrate the regex documentation.
30082         * doc/gnulib.texi: Define 'cn' index.
30083         (Regular expressions): New a chapter that includes regex.texi and
30084         regexprops-generic.texi.
30085         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
30086         syntax.
30087
30088         Whitespace cleanup.
30089         * doc/regex.texi: Remove trailing spaces.
30090
30091         Add regex documentation.
30092         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
30093         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
30094         Written by Kathy A. Hargreaves and Karl Berry.
30095
30096 2010-08-01  Bruno Haible  <bruno@clisp.org>
30097
30098         link: Update documentation.
30099         * doc/posix-functions/link.texi: Update regarding Solaris.
30100
30101 2010-07-31  Bruno Haible  <bruno@clisp.org>
30102
30103         Update modules list.
30104         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
30105         (String handling <string.h>): Add memcmp2, memxfrm.
30106         (Container data structures): Add xlist, xsublist, xoset.
30107         (Core language properties): Add alignof, unused-parameter.
30108         (Process control, Numeric conversion functions <stdlib.h>): Renamed
30109         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
30110         (Unibyte characters <ctype.h>): New section.
30111         (String handling <string.h>): New section.
30112         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
30113         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
30114         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
30115         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
30116         tan, tanh, tanl, y0, y1, yn.
30117         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
30118         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
30119         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
30120         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
30121         unlockpt, vdprintf, vdprintf-posix.
30122         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
30123         (File system functions): Add concat-filename, sys_file, sys_ioctl,
30124         xconcat-filename.
30125         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
30126         getdtablesize, pipe2, pipe2-safer.
30127         (Security): New section.
30128         (Networking functions): Add accept4.
30129         (Signal handling): Add sigpipe.
30130         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
30131         mbmemcasecoll.
30132         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
30133         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
30134         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
30135         pipe-filter-ii.
30136         (Misc): Add argp-version-etc, login_tty, parse-duration.
30137
30138 2010-07-31  Bruno Haible  <bruno@clisp.org>
30139
30140         Improve doc in MODULES.html.
30141         * modules/linkat (Description): Add the word "function".
30142         * modules/mkfifo (Description): Likewise.
30143         * modules/mknod (Description): Likewise.
30144         * modules/remove (Description): Likewise.
30145         * modules/renameat (Description): Likewise.
30146         * modules/stat (Description): Likewise.
30147         * modules/symlink (Description): Likewise.
30148         * modules/unlink (Description): Likewise.
30149
30150 2010-07-31  Bruno Haible  <bruno@clisp.org>
30151
30152         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
30153         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
30154         option --enable/disable-c++ instead of --enable/disable-cxx.
30155         * NEWS: Mention the change.
30156
30157 2010-07-31  Bruno Haible  <bruno@clisp.org>
30158
30159         readlink, areadlink: Relax test a bit.
30160         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
30161         alternative to ENOTDIR.
30162         * tests/test-areadlink.h (test_areadlink): Likewise.
30163         Reported by Rainer Tammer.
30164
30165 2010-07-31  Bruno Haible  <bruno@clisp.org>
30166
30167         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
30168         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
30169         character, perform the search using U_STRCHR.
30170         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
30171         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
30172         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
30173         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
30174         Suggested by Paolo Bonzini.
30175
30176 2010-07-31  Bruno Haible  <bruno@clisp.org>
30177
30178         unistr/u*-strstr: Fix dependencies.
30179         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
30180         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
30181         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
30182
30183 2010-07-31  Bruno Haible  <bruno@clisp.org>
30184
30185         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
30186         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
30187         the beginning of the loop.
30188         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
30189         cases in 'switch' statement.
30190
30191         unistr/u8-strchr: Fix several bugs.
30192         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
30193         the string. When not found, return NULL, not a pointer near the end.
30194
30195         More tests for unistr/u8-strchr.
30196         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
30197         that the function does not read past the first occurrence of the byte
30198         being searched.
30199         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
30200         * tests/unistr/test-u16-strchr.c (main): New function.
30201         * tests/unistr/test-u32-strchr.c (main): New function.
30202
30203 2010-07-31  Bruno Haible  <bruno@clisp.org>
30204
30205         posix-modules: Ignore backup files of documentation files.
30206         * posix-modules: grep only through files named *.texi.
30207
30208 2010-07-31  Bruno Haible  <bruno@clisp.org>
30209
30210         symlinkat: Fix documentation.
30211         * doc/posix-functions/readlinkat.texi: Fix module name.
30212
30213 2010-07-31  Bruno Haible  <bruno@clisp.org>
30214
30215         fchownat: Replace also when chown has the trailing slash bug.
30216         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
30217         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
30218         introduced on 2010-04-10.
30219         Reported by Rainer Tammer.
30220
30221 2010-07-31  Bruno Haible  <bruno@clisp.org>
30222
30223         linkat: Work around AIX 7.1 bug.
30224         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
30225         whether linkat handles trailing slash correctly. If not, replace linkat
30226         and define LINKAT_TRAILING_SLASH_BUG.
30227         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
30228         check whether (fd1,file1) points to a directory if file1 or file2 ends
30229         in a slash. Code taken from lib/link.c.
30230         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
30231         Reported by Rainer Tammer.
30232
30233 2010-07-31  Bruno Haible  <bruno@clisp.org>
30234
30235         Correctly determine whether pow is available in libc on AIX 7 with xlc.
30236         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
30237         This disables an xlc optimization that was causing wrong test results.
30238         Reported by Rainer Tammer.
30239
30240 2010-07-31  Bruno Haible  <bruno@clisp.org>
30241
30242         iconv: Work around AIX 6.1..7.1 bug.
30243         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
30244         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
30245         cross-compiling, guess no on all versions of AIX.
30246         Reported by Rainer Tammer.
30247
30248 2010-07-31  Bruno Haible  <bruno@clisp.org>
30249
30250         readlink: Relax test a bit.
30251         * tests/test-readlink.h (test_readlink): Allow different errno value
30252         when readlink is called with a file name that ends in / and refers to
30253         a file.
30254         Suggested by Eric Blake.
30255         Reported by Rainer Tammer.
30256
30257 2010-07-31  Bruno Haible  <bruno@clisp.org>
30258
30259         copysign: Does not require -lm on glibc systems.
30260         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
30261         gl_COMMON_DOUBLE_MATHFUNC.
30262         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
30263
30264 2010-07-31  Bruno Haible  <bruno@clisp.org>
30265
30266         duplocale: Work around AIX 7.1 bug.
30267         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
30268         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
30269         * lib/duplocale.c (rpl_duplocale): Update comment.
30270         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
30271         Reported by Rainer Tammer.
30272
30273 2010-07-30  Bruno Haible  <bruno@clisp.org>
30274
30275         dirfd: Avoid link error on AIX 7.1.
30276         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
30277         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
30278         exist, set REPLACE_DIRFD.
30279         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
30280         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
30281         * doc/posix-functions/dirfd.texi: Update.
30282         Reported by Rainer Tammer.
30283
30284 2010-07-30  Eric Blake  <eblake@redhat.com>
30285
30286         strtod: next round of AIX fixes
30287         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
30288         exponent.
30289         * tests/test-strtod.c (main): Enhance tests.
30290         * doc/posix-functions/strtod.texi (strtod): Document next bug.
30291         Reported by Rainer Tammer.
30292
30293         futimens: fix configure check
30294         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
30295         Reported by Bruno Haible.
30296
30297 2010-07-30  Bruno Haible  <bruno@clisp.org>
30298
30299         getline: Update regarding AIX.
30300         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
30301         Reported by Rainer Tammer.
30302
30303 2010-07-30  Bruno Haible  <bruno@clisp.org>
30304
30305         wcwidth: Drop replacement on AIX 7.
30306         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
30307         AIX 7.
30308         Reported by Rainer Tammer.
30309
30310 2010-07-30  Bruno Haible  <bruno@clisp.org>
30311
30312         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
30313         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
30314         a 'char *'.
30315         Reported by Rainer Tammer.
30316
30317 2010-07-30  Bruno Haible  <bruno@clisp.org>
30318
30319         unlink: Update regarding AIX.
30320         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
30321         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
30322         Reported by Rainer Tammer.
30323
30324 2010-07-30  Bruno Haible  <bruno@clisp.org>
30325
30326         symlink: Update regarding AIX.
30327         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
30328         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
30329         Reported by Rainer Tammer.
30330
30331 2010-07-30  Bruno Haible  <bruno@clisp.org>
30332
30333         strndup: Update regarding AIX.
30334         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
30335         AIX 7.
30336         Reported by Rainer Tammer.
30337
30338 2010-07-30  Bruno Haible  <bruno@clisp.org>
30339
30340         stat: Update regarding AIX.
30341         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
30342         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
30343         Reported by Rainer Tammer.
30344
30345 2010-07-30  Bruno Haible  <bruno@clisp.org>
30346
30347         truncl: Fix autoconf test.
30348         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
30349         whether truncl works.
30350         Reported by Rainer Tammer.
30351
30352 2010-07-30  Bruno Haible  <bruno@clisp.org>
30353
30354         round: Update regarding AIX.
30355         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
30356         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
30357         Reported by Rainer Tammer.
30358
30359 2010-07-30  Bruno Haible  <bruno@clisp.org>
30360
30361         rename: Update regarding AIX.
30362         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
30363         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
30364         Reported by Rainer Tammer.
30365
30366 2010-07-30  Bruno Haible  <bruno@clisp.org>
30367
30368         printf.m4: Update regarding AIX.
30369         * m4/printf.m4: Update comments regarding AIX.
30370         Reported by Rainer Tammer.
30371
30372 2010-07-30  Bruno Haible  <bruno@clisp.org>
30373
30374         iconv: Update regarding AIX.
30375         * m4/iconv.m4 (AM_ICONV_LINK): 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         getopt: Update regarding AIX.
30382         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
30383         no on AIX.
30384         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
30385         Reported by Rainer Tammer.
30386
30387 2010-07-30  Bruno Haible  <bruno@clisp.org>
30388
30389         ldexpl; Update regarding AIX.
30390         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
30391         on AIX 7.
30392         Reported by Rainer Tammer.
30393
30394 2010-07-30  Bruno Haible  <bruno@clisp.org>
30395
30396         frexpl: Update regarding AIX.
30397         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
30398         on AIX 7.
30399         Reported by Rainer Tammer.
30400
30401 2010-07-30  Bruno Haible  <bruno@clisp.org>
30402
30403         open, fopen: Update regarding AIX.
30404         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
30405         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30406         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
30407         * doc/posix-functions/fopen.texi: Likewise.
30408         Reported by Rainer Tammer.
30409
30410 2010-07-30  Bruno Haible  <bruno@clisp.org>
30411
30412         chown: Update doc regarding AIX.
30413         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
30414         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
30415         Reported by Rainer Tammer.
30416
30417 2010-07-30  Eric Blake  <eblake@redhat.com>
30418
30419         strtod: fix bug in replacement function on AIX
30420         * lib/strtod.c (strtod): Special case broken "0x" parse in
30421         underlying strtod.
30422         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
30423         * doc/posix-functions/strtod.texi (strtod): Likewise.
30424         Reported by Rainer Tammer.
30425
30426 2010-07-30  Bruno Haible  <bruno@clisp.org>
30427
30428         mbrlen: Fix cross-compilation guess for AIX.
30429         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
30430         guess. Leftover from 2008-12-22.
30431
30432 2010-07-30  Bruno Haible  <bruno@clisp.org>
30433
30434         mbrtowc: Fix cross-compilation guess for AIX.
30435         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
30436         guess. Leftover from 2008-12-21.
30437
30438 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
30439
30440         init.sh: work around trap limitation of some shells
30441         * tests/init.sh (setup_): Move exit trap outside of shell function.
30442
30443 2010-07-29  Eric Blake  <eblake@redhat.com>
30444
30445         strtod: aid debugging
30446         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
30447         understanding why strtod is rejected.
30448
30449 2010-07-28  Bruno Haible  <bruno@clisp.org>
30450
30451         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
30452         * lib/unistr/u8-chr.c: Include <string.h>.
30453         * tests/unistr/test-u8-chr.c: Likewise.
30454         * tests/unistr/test-u16-chr.c: Likewise.
30455         * tests/unistr/test-u32-chr.c: Likewise.
30456         * tests/unistr/test-u8-strchr.c: Likewise.
30457         * tests/unistr/test-u16-strchr.c: Likewise.
30458         * tests/unistr/test-u32-strchr.c: Likewise.
30459         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
30460         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
30461         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
30462         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
30463
30464 2010-07-28  Bruno Haible  <bruno@clisp.org>
30465
30466         Use spaces for indentation, not tabs.
30467         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30468
30469 2010-07-27  Bruno Haible  <bruno@clisp.org>
30470
30471         mbspcasecmp: Fix function specification.
30472         * lib/string.in.h (mbspcasecmp): Fix specification comment.
30473         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
30474         Reported by Eric Blake <eblake@redhat.com>.
30475
30476 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
30477
30478         timespec: use cast and not conditional, as truncation isn't possible
30479         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
30480         instead of a conditional.  Comment about the situation in more detail.
30481         This undoes most of the 2009-10-29 patch.
30482
30483 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
30484
30485         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
30486         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
30487         * lib/unistr/u8-strchr.c: Likewise.
30488         * modules/unistr/u8-chr: Depend on memchr.
30489
30490         unistr/u*-strchr: add tests
30491         * modules/unistr/u8-strchr-tests: New file.
30492         * modules/unistr/u16-strchr-tests: New file.
30493         * modules/unistr/u32-strchr-tests: New file.
30494         * tests/unistr/test-strchr.h: New file.
30495         * tests/unistr/test-u8-strchr.c: New file.
30496         * tests/unistr/test-u16-strchr.c: New file.
30497         * tests/unistr/test-u32-strchr.c: New file.
30498
30499         unistr/u*-chr: test multibyte sequences more
30500         * tests/unistr/test-chr.h: Do complete testing of the characters in the
30501         test vector.
30502         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
30503         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
30504         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
30505
30506         unistr/u*-chr: test multibyte sequences
30507         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
30508
30509         unistr/u*-chr: prepare for multibyte tests
30510         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
30511         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
30512         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
30513         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
30514         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
30515         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
30516
30517 2010-07-18  Bruno Haible  <bruno@clisp.org>
30518
30519         unistr/u8-strchr: Optimize non-ASCII argument case.
30520         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
30521         because the first byte often matches anyway.
30522         Reported by Pádraig Brady <P@draigbrady.com>.
30523
30524 2010-07-15  Karl Berry  <karl@gnu.org>
30525
30526         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
30527
30528 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
30529
30530         getcwd: on Solaris, work better if ancestors are inaccessible
30531         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
30532         buffer and size, try again with a large buffer.  This works better
30533         on Solaris, since its getcwd succeeds even if the path to the root
30534         is inaccessible, and this is helpful in common cases such as .zfs
30535         hidden directories.  Problem reported by J Chapman Flack in
30536         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
30537         Use system getcwd if it's declared, not merely if it's partly
30538         working; use the partly-working test only to avoid needless effort
30539         if the system getcwd fails.
30540         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
30541         comment that was already obsolete and is now even more obsolete.
30542         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
30543         now might call strdup.
30544
30545 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
30546
30547         pthread: Add enough so that coreutils/src/sort.c compiles.
30548         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
30549         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
30550         gnulib. Include <sched.h> and <time.h>, as per POSIX.
30551         Include <sys/types.h>, in case it defines pthread_t.
30552         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
30553         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
30554         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
30555         (pthread_rwlockattr_t, pthread_spinlock_t):
30556         New typedefs, if HAVE_PTHREAD_T is not defined.
30557         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
30558         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
30559         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
30560         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
30561         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
30562         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
30563         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
30564         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
30565         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
30566         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
30567         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
30568         New macros.
30569         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
30570         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
30571         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
30572         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
30573         (pthread_spin_unlock): New dummy functions.
30574         (pthread_create): Return EAGAIN; don't set errno.
30575         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
30576         require AC_C_INLINE.
30577         * modules/pthread (Depends-on): Add sched, time.
30578         (pthread.h): Use AM_V_GEN.
30579
30580 2010-07-13  Bruno Haible  <bruno@clisp.org>
30581
30582         striconveh: Don't malloc memory if the result buffer is sufficient.
30583         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
30584         buffer if its size is sufficient.
30585         Reported by Ludovic Courtès <ludo@gnu.org>.
30586
30587 2010-07-13  Bruno Haible  <bruno@clisp.org>
30588
30589         strtod: Add safety check.
30590         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
30591
30592 2010-07-12  Bruno Haible  <bruno@clisp.org>
30593
30594         Unify tests that set gl_cv_func_ldexpl_no_libm.
30595         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
30596         gl_FUNC_LDEXPL.
30597         (gl_FUNC_LDEXPL): Invoke it.
30598         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30599
30600 2010-07-12  Bruno Haible  <bruno@clisp.org>
30601
30602         Unify tests that set gl_cv_func_ldexp_no_libm.
30603         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
30604         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
30605         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
30606         (configure.ac): Simply invoke gl_FUNC_LDEXP.
30607         * modules/strtod (Files): Add m4/ldexp.m4.
30608
30609 2010-07-12  Bruno Haible  <bruno@clisp.org>
30610
30611         Unify tests that set gl_cv_func_frexpl_no_libm.
30612         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
30613         gl_FUNC_FREXPL_NO_LIBM.
30614         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
30615         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30616
30617 2010-07-12  Bruno Haible  <bruno@clisp.org>
30618
30619         Unify tests that set gl_cv_func_frexp_no_libm.
30620         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
30621         gl_FUNC_FREXP_NO_LIBM.
30622         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
30623         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30624
30625 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30626
30627         memcoll: clarify sizes versus lengths, document better, and tweak perf
30628         * lib/memcoll.c (strcoll_loop, memcoll0):
30629         Improve quality of descriptive comments.  Name variables
30630         consistently as to whether they are lengths (which do not include
30631         terminating null) versus sizes (which do).
30632         * lib/xmemcoll.c (xmemcoll0): Likewise.
30633         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
30634         returned when s1size == 0; this is easier to compile and saves
30635         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
30636
30637 2010-07-12  Bruno Haible  <bruno@clisp.org>
30638
30639         Tests for module '_Exit'.
30640         * modules/_Exit-tests: New file.
30641         * tests/test-_Exit.sh: New file.
30642         * tests/test-_Exit.c: New file.
30643
30644         New module '_Exit'.
30645         * lib/stdlib.in.h (__attribute__): New macro.
30646         (_Exit): New declaration.
30647         * lib/_Exit.c: New file.
30648         * m4/_Exit.m4: New file.
30649         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
30650         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
30651         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
30652         * modules/_Exit: New file.
30653         * tests/test-stdlib-c++.cc (_Exit): Check signature.
30654         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
30655
30656 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30657
30658         strtod: make it more-accurate typically, and don't require libm
30659         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
30660         Include limits.h.  Don't include string.h.
30661         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
30662         (locale_isspace): New function, so that no casts are needed to
30663         check whether *s is a space.
30664         (ldexp): Provide an unused dummy if not available.
30665         (scale_radix_exp, parse_number, underlying_strtod): New functions.
30666         (strtod): Use them.  This implementation prefers to use the
30667         underlying strtod if available, falling back on our own code
30668         only to fix known bugs.  This is more likely to produce an
30669         accurate result.  Also, it avoids the use of libm functions.
30670         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
30671         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
30672         was absent, but it caused a test failure with coreutils.
30673         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
30674         with libm.
30675         * modules/strtod (Makefile.am, Link): libm is no longer needed.
30676         * modules/strtod-tests (Makefile.am): Likewise.
30677
30678 2010-07-11  Pádraig Brady  <P@draigBrady.com>
30679             Bruno Haible  <bruno@clisp.org>
30680
30681         unistr/u8-strchr: Optimize ASCII argument case.
30682         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
30683
30684 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
30685
30686         (x)memcoll: minor tweaks
30687         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
30688         is after the type that it qualifies.
30689         (memcoll0): Likewise.
30690         * lib/memcoll.h (memcoll0): Likewise.
30691         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
30692         * lib/xmemcoll.h (xmemcoll0): Likewise.
30693         * lib/memcoll.c (memcoll0): Correct the comment.  This function
30694         differs from memcoll in that the NUL byte is part of the argument.
30695         Omit the abort-checks, as performance is a real issue here.  Plus,
30696         the checks were wrong anyway (an off-by-one error).  Omit local
30697         variable 'diff', as it's a bit clearer that way.
30698         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
30699         no longer needed.
30700
30701 2010-07-08  Chen Guo <chenguo4@yahoo.com>
30702
30703         (x)memcoll: speedup when input is known to be NUL delimited
30704         * lib/memcoll.c: Include stdlib.
30705         (memcoll0): New function.
30706         (strcoll_loop): New function, refactored for use in both memcoll
30707         and memcoll0.
30708         * lib/memcoll.h (memcoll0): Add prototype.
30709         * lib/xmemcoll.c (xmemcoll0): New function.
30710         (collate_error): New function, refactored for use in both xmemcoll
30711         and xmemcoll0.
30712         * lib/xmemcoll.h (xmemcoll0): Add prototype.
30713         * m4/memcoll.m4: add inline invocation.
30714
30715 2010-07-06  Pádraig Brady  <P@draigBrady.com>
30716
30717         * build-aux/bootstrap: Remove any local translations
30718         from the translation project synchronization directory,
30719         so that local only translations are not distributed.
30720
30721 2010-07-04  Bruno Haible  <bruno@clisp.org>
30722
30723         fsusage: Clarify which code applies to which platforms.
30724         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
30725         platform.
30726         * lib/fsusage.c (get_fs_usage): Likewise.
30727
30728 2010-07-04  Bruno Haible  <bruno@clisp.org>
30729
30730         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
30731         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
30732         Reported by Martin Lambers <marlam@marlam.de>.
30733
30734 2010-07-04  Jim Meyering  <meyering@redhat.com>
30735
30736         hash: once again explicitly disallow insertion of NULL
30737         * lib/hash.c (hash_insert0): Reinstate just-removed test:
30738         inserting a NULL pointer cannot work with these functions.
30739         Add a comment with details.
30740         This reverts part of the 2010-07-01 commit, 5bef1a35
30741         "hash: extend module to deal with non-pointer keys".
30742
30743 2010-07-01  Bruno Haible  <bruno@clisp.org>
30744
30745         stdbool: Update doc.
30746         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
30747         Info from Christian Weisgerber <naddy@mips.inka.de>.
30748
30749 2010-07-01  Jim Meyering  <meyering@redhat.com>
30750
30751         hash: extend module to deal with non-pointer keys
30752         * lib/hash.c (hash_insert0): New interface, much like hash_insert
30753         but that allows insertion of non-pointer entries.
30754         Do not disallow an ENTRY value of NULL.
30755         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
30756         * lib/hash.h (hash_insert0): Declare.
30757
30758 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
30759
30760         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
30761         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
30762         not present (i.e. with autoconf 2.59 and when using gettextize, not
30763         gnulib), require AC_GNU_SOURCE instead.
30764
30765 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
30766
30767         idpriv-drop: Fix tests.
30768         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
30769         not to the test-idpriv-droptemp program.
30770
30771 2010-06-29  Bruno Haible  <bruno@clisp.org>
30772
30773         string: Fix syntax error with g++ 2.96.
30774         * lib/string.in.h (__pure__): Remove definition.
30775         (_GL_ATTRIBUTE_PURE): New macro.
30776         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
30777         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
30778         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30779
30780 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
30781
30782         unitypes: Fix bug introduced on 2010-05-18.
30783         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
30784
30785 2010-06-22  Eric Blake  <eblake@redhat.com>
30786
30787         memmem: slight optimization
30788         * lib/str-two-way.h (critical_factorization): Update comments.
30789         Reduce work during factorization phase.
30790         Reported by Carlos Bueno <carlos@bueno.org>.
30791
30792 2010-06-21  Bruno Haible  <bruno@clisp.org>
30793
30794         Fix HAVE_CALLOC_POSIX misnomer.
30795         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
30796         !HAVE_CALLOC_POSIX.
30797         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
30798         HAVE_CALLOC_POSIX.
30799         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
30800         instead of HAVE_CALLOC_POSIX.
30801         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
30802         HAVE_CALLOC_POSIX.
30803
30804         Use modern idiom for calloc() replacement.
30805         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
30806         AC_FUNC_CALLOC.
30807         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
30808         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
30809         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30810         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
30811         (gl_REPLACE_CALLOC): New macro.
30812
30813 2010-06-21  Bruno Haible  <bruno@clisp.org>
30814
30815         Fix HAVE_REALLOC_POSIX misnomer.
30816         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
30817         !HAVE_REALLOC_POSIX.
30818         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
30819         HAVE_REALLOC_POSIX.
30820         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
30821         instead of HAVE_REALLOC_POSIX.
30822         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
30823         HAVE_REALLOC_POSIX.
30824
30825         Use modern idiom for realloc() replacement.
30826         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
30827         AC_FUNC_REALLOC.
30828         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
30829         Autoconf's AC_FUNC_REALLOC.
30830         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30831         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
30832         (gl_REPLACE_REALLOC): New macro.
30833         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30834
30835 2010-06-21  Bruno Haible  <bruno@clisp.org>
30836
30837         Fix HAVE_MALLOC_POSIX misnomer.
30838         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
30839         !HAVE_MALLOC_POSIX.
30840         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
30841         HAVE_MALLOC_POSIX.
30842         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
30843         instead of HAVE_MALLOC_POSIX.
30844         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
30845         HAVE_MALLOC_POSIX.
30846
30847         Use modern idiom for malloc() replacement.
30848         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
30849         AC_FUNC_MALLOC.
30850         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
30851         Autoconf's AC_FUNC_MALLOC.
30852         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30853         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
30854         (gl_REPLACE_MALLOC): New macro.
30855         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30856
30857 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
30858
30859         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
30860         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
30861         This macro takes 3 arguments, not 4.
30862
30863 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
30864
30865         ipv6: fix detection under mingw
30866         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
30867         in6_addr.
30868
30869 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
30870
30871         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
30872         that strtod() works when cross-compiling to a glibc version known
30873         to work.
30874
30875 2010-06-15  Bruno Haible  <bruno@clisp.org>
30876
30877         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
30878
30879 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
30880
30881         select: Correct timeout.
30882         * lib/select.c (rpl_select): Compute wait_timeout correctly.
30883
30884 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
30885
30886         git-version-gen: init shell var to avoid env var influence
30887         * build-aux/git-version-gen (v): Init shell var to empty.
30888
30889 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
30890
30891         priv-set: Don't assume that priv.h exists merely because getppriv does.
30892         See Jan Andersen's bug report about AIX 5L in
30893         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
30894         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
30895         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
30896         * lib/priv-set.h: Likewise.
30897         * tests/test-priv-set.c: Likewise.
30898
30899 2010-06-13  Bruno Haible  <bruno@clisp.org>
30900
30901         relocatable: Make it easier to test whether to install wrappers.
30902         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
30903         RELOCATABLE_VIA_WRAPPER.
30904
30905 2010-06-13  Bruno Haible  <bruno@clisp.org>
30906
30907         gnulib-tool: Display specified modules and dependencies differently.
30908         * gnulib-tool (func_show_module_list): New function.
30909         (func_import, func_create_testdir): Invoke it.
30910         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30911
30912 2010-06-13  Bruno Haible  <bruno@clisp.org>
30913
30914         gnulib-tool: Align code of func_import and func_create_testdir.
30915         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
30916         specified_modules.
30917
30918 2010-06-12  Jim Meyering  <meyering@redhat.com>
30919
30920         test-inttostr: avoid spurious failure on Solaris 9
30921         * tests/test-inttostr.c (main): Skip the test when snprintf fails
30922         to accept "%ju".  Reported by Bruno Haible.
30923
30924 2010-06-11  Jim Meyering  <meyering@redhat.com>
30925
30926         test-sys_socket: mark variables as used more readably
30927         * tests/test-sys_socket.c (main): Mark otherwise unused variables
30928         as "used" explicitly via (void) statement casts.  This is more
30929         readable than using them in an artificial return expression.
30930         Suggestion from Bruno Haible.
30931
30932 2010-06-11  Bruno Haible  <bruno@clisp.org>
30933
30934         Avoid some more warnings from "gcc -Wwrite-strings".
30935         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
30936         to 'const char *'.
30937         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
30938         * tests/test-c-strcasestr.c (main): Likewise.
30939         * tests/test-mbscasestr1.c (main): Likewise.
30940         * tests/test-mbscasestr2.c (main): Likewise.
30941         * tests/test-memmem.c (main): Likewise.
30942         * tests/test-strstr.c (main): Likewise.
30943         * tests/test-strcasestr.c (main): Likewise.
30944
30945 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30946
30947         init.sh: change framework_failure_ to fail with status 99, not 1
30948         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
30949         automake's parallel-tests rule that this is an unexpected failure,
30950         even if the test is listed in XFAIL_TESTS.
30951
30952 2010-06-11  Jim Meyering  <meyering@redhat.com>
30953
30954         test-inttostr: avoid warnings about 4-6KB literal strings
30955         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
30956         Include "macros.h", for its definition of ASSERT.
30957         (CK): s/assert/ASSERT/
30958         * modules/inttostr-tests (Files): Add macros.h.
30959
30960         init.sh: don't use $ME_ or skip_ before they are defined
30961         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
30962         their first uses.  Also hoist their companions: warn_, fail_,
30963         framework_failure_, $stderr_fileno.  Prompted by a patch from
30964         Stefano Lattarini.
30965
30966         test-sys_socket: avoid set-but-not-used warnings from gcc
30967         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
30968         avoid warning about set-but-not-used variables.
30969
30970         test-xvasprintf: avoid 'const' discard warnings
30971         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
30972         "const" when assigning from literal strings.
30973         (test_xasprintf): Add "void" in function argument list to placate
30974         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
30975
30976         tests: avoid compilation warnings in argmatch and exclude tests...
30977         in packages that define ARGMATCH_DIE_DECL, like coreutils.
30978         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
30979         Since it always exits, declare with the "noreturn" attribute.
30980         * tests/test-argmatch.c: Likewise.
30981
30982         tests: avoid 'const' discard warnings in mbsstr tests
30983         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
30984         * tests/test-mbsstr2.c (main): Likewise.
30985
30986         test-verify: avoid warning from gcc's -Wmissing-declarations
30987         * tests/test-verify.c (function): Declare to be static.
30988
30989         test-inttostr.c: include <string.h> for use of strcmp
30990         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
30991
30992         test-linkat: avoid failed assertion on "other" architectures
30993         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
30994         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
30995         sparc: https://bugs.launchpad.net/bugs/591968
30996
30997 2010-06-11  Jim Meyering  <meyering@redhat.com>
30998
30999         printf.m4: avoid autoconf's "Expanded Before Required" warning
31000         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
31001         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
31002         autoconf warning.
31003
31004 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
31005
31006         Replacement header templates are now named with ".in", not "_".
31007         * doc/gnulib-intro.texi: Correct.
31008
31009 2010-06-10  Jim Meyering  <meyering@redhat.com>
31010
31011         inttostr-tests: depend on snprintf, not snprintf-posix
31012         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
31013         snprintf-posix, to avoid this aclocal failure:
31014           missing file gnulib-tests/vasnprintf.c
31015           configure.ac:45: error: expected source file, required through \
31016           AC_LIBSOURCES, not found
31017
31018 2010-06-10  Jim Meyering  <meyering@redhat.com>
31019
31020         inttostr: add a new function, inttostr, and tests
31021         The namesake function was not available.  The existence of the
31022         template file, inttostr.c makes its addition nontrivial.
31023         * lib/anytostr.c: Rename from inttostr.c.
31024         (anytostr): Rename from inttostr.
31025         * lib/inttostr.c: New file.
31026         * modules/inttostr (Files): Add anytostr.c.
31027         (Makefile.am): Set lib_SOURCES instead of ...
31028         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
31029         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
31030         * lib/offtostr.c: Likewise.
31031         * lib/uinttostr.c: Likewise.
31032         * lib/umaxtostr.c: Likewise.
31033         * modules/inttostr-tests: New file.
31034         * tests/test-inttostr.c: New file.  Test these functions.
31035
31036 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
31037             Bruno Haible  <bruno@clisp.org>
31038
31039         Add "Extending Gnulib" chapter to manual.
31040         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
31041         chapter.
31042         (Extending Gnulib): New chapter.
31043         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
31044         chapter.
31045
31046 2010-06-09  Bruno Haible  <bruno@clisp.org>
31047
31048         Avoid relocwrapper link errors due to gnulib replacement functions.
31049         * lib/areadlink.c: Use the system's malloc, realloc functions.
31050         (areadlink): Set errno to ENOMEM explicitly.
31051         * modules/areadlink (Depends-on): Remove malloc-posix.
31052         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31053
31054 2010-06-09  Bruno Haible  <bruno@clisp.org>
31055
31056         Avoid relocwrapper link errors due to gnulib replacement functions.
31057         * lib/canonicalize-lgpl.c: Use the system's malloc function.
31058         * lib/malloca.c: Likewise.
31059         * lib/relocatable.c: Likewise.
31060         * lib/progreloc.c: Use the system's malloc, sprintf functions.
31061         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
31062         * lib/setenv.c: Use the system's malloc, realloc functions.
31063         * lib/strerror.c: Use the system's sprintf function.
31064         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31065
31066 2010-06-04  Bruno Haible  <bruno@clisp.org>
31067
31068         Prefer documented low-level autoconf macro names.
31069         * m4/lib-link.m4: Use m4_translit instead of translit.
31070         * m4/environ.m4: Likewise.
31071         * m4/mathfunc.m4: Likewise.
31072         * m4/onceonly.m4: Likewise.
31073         * m4/stdint.m4: Likewise.
31074         Suggested by Eric Blake.
31075
31076 2010-06-04  Martin Lambers  <marlam@marlam.de>
31077             Bruno Haible  <bruno@clisp.org>
31078
31079         havelib: Allow library names with '+' characters.
31080         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31081         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
31082
31083 2010-06-09  Bruno Haible  <bruno@clisp.org>
31084
31085         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
31086         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
31087         realloc failed.
31088
31089 2010-06-08  Peter Simons  <simons@cryp.to>
31090
31091         maint.mk: make the news-check rule more configurable
31092         * top/maint.mk (news-check-lines-spec): New variable.
31093         (news-check): Use "sed -n 1,10p" in place of "head".
31094
31095 2010-06-07  Jim Meyering  <meyering@redhat.com>
31096
31097         do-release-commit-and-tag: fix typo in --help
31098         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
31099
31100         regex: avoid new dead-code warning with gcc-4.6.0
31101         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
31102         if-block containing a while-loop.  It's been unused for at least
31103         5 years.
31104
31105 2010-06-05  Bruno Haible  <bruno@clisp.org>
31106
31107         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
31108         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
31109
31110 2010-06-04  Bruno Haible  <bruno@clisp.org>
31111
31112         Update to GNU gettext 0.18.1.
31113         * modules/gettext (configure.ac): Require gettext infrastructure from
31114         version 0.18.1.
31115
31116 2010-06-03  Bruno Haible  <bruno@clisp.org>
31117
31118         Don't use AC_LIBOBJ with file names in subdirectories.
31119         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
31120         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
31121         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
31122         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
31123         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
31124         gl_LIBUNISTRING_LIBSOURCE.
31125         (Makefile.am): Augment lib_SOURCES here, conditionally.
31126         * NEWS: Drop requirement for Automake option 'subdir-objects'.
31127
31128 2010-06-03  Bruno Haible  <bruno@clisp.org>
31129
31130         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
31131         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
31132         expansion does not end with a newline.
31133         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
31134         unnecessary newline.
31135
31136 2010-06-03  Bruno Haible  <bruno@clisp.org>
31137
31138         Reduce dependencies.
31139         * tests/test-quotearg.h: New file, extracted from
31140         tests/test-quotearg.c.
31141         * tests/test-quotearg-simple.c: New file, extracted from
31142         tests/test-quotearg.c.
31143         * tests/test-quotearg.c: Don't include <ctype.h>.
31144         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
31145         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
31146         use_quote_double_quotes, use_quotearg_colon): Moved to
31147         tests/test-quotearg.h.
31148         (results_g, flag_results, custom_quotes, custom_results): Moved
31149         to tests/test-quotearg-simple.c.
31150         (main): Moved the part that does not depend on gettext to
31151         tests/test-quotearg-simple.c. Return 77 if the test cannot be
31152         performed.
31153         * modules/quotearg-simple: New file.
31154         * modules/quotearg-simple-tests: New file.
31155         * modules/quotearg (Depends-on): Add quotearg-simple.
31156         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
31157         (Files): Add tests/test-quotearg.h.
31158         Reported by Paolo Bonzini.
31159
31160 2010-06-03  Bruno Haible  <bruno@clisp.org>
31161
31162         Reduce dependencies.
31163         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
31164
31165 2010-06-03  Bruno Haible  <bruno@clisp.org>
31166
31167         time: Undefine more broken macros.
31168         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
31169         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
31170         Reported by Eric Blake.
31171
31172 2010-06-03  Bruno Haible  <bruno@clisp.org>
31173
31174         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
31175         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
31176         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
31177         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
31178         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
31179         Reported by Ludovic Courtès <ludo@gnu.org>.
31180
31181 2010-06-02  Eric Blake  <eblake@redhat.com>
31182
31183         time: work with mingw + pthreads-win32 library
31184         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
31185         if timespec is defined only in pthread.h.
31186         * modules/time (Makefile.am): Substitute it.
31187         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
31188         <pthread.h>, when needed.
31189         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
31190         from the library.
31191
31192 2010-05-31  Bruno Haible  <bruno@clisp.org>
31193
31194         Avoid expanding two macros in the wrong order.
31195         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
31196         gl_LIBUNISTRING if it is defined.
31197         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
31198         autoconf >= 2.64.
31199         Reported by Ludovic Courtès <ludo@gnu.org>.
31200
31201 2010-05-27  Jim Meyering  <meyering@redhat.com>
31202
31203         maint.mk: also prohibit "#undef" of always-defined symbols
31204         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
31205         Allow more than one space before the symbol name.
31206         (sc_prohibit_always-defined_macros): Use grep's -E, now that
31207         the regexp uses alternation.
31208
31209 2010-05-26  Eric Blake  <eblake@redhat.com>
31210
31211         maint.mk: avoid echo -e
31212         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
31213         Convert all uses of echo -* to printf.
31214         Reported by Matthias Bolte.
31215
31216 2010-05-25  Bruno Haible  <bruno@clisp.org>
31217
31218         Update to GNU gettext 0.18, part 2.
31219         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
31220         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
31221
31222 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31223
31224         Add missing include in test-pwrite.c.
31225         * tests/test-pwrite.c: Include string.h, for strcmp.
31226
31227 2010-05-24  Bruno Haible  <bruno@clisp.org>
31228
31229         * NEWS: Mention requirement for Automake option 'subdir-objects'.
31230
31231 2010-05-24  Bruno Haible  <bruno@clisp.org>
31232
31233         Don't use conversion with transliteration in u{8,16,32}_strcoll.
31234         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
31235         iconveh_error argument.
31236         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
31237         U_STRCONV_TO_LOCALE.
31238         * lib/unistr/u16-strcoll.c: Likewise.
31239         * lib/unistr/u32-strcoll.c: Likewise.
31240         * modules/unistr/u8-strcoll (Depends-on): Add
31241         uniconv/u8-strconv-to-enc, localcharset. Remove
31242         uniconv/u8-strconv-to-locale.
31243         (configure.ac): Bump version number.
31244         * modules/unistr/u16-strcoll (Depends-on): Add
31245         uniconv/u16-strconv-to-enc, localcharset. Remove
31246         uniconv/u16-strconv-to-locale.
31247         (configure.ac): Bump version number.
31248         * modules/unistr/u32-strcoll (Depends-on): Add
31249         uniconv/u32-strconv-to-enc, localcharset. Remove
31250         uniconv/u32-strconv-to-locale.
31251         (configure.ac): Bump version number.
31252
31253 2010-05-24  Bruno Haible  <bruno@clisp.org>
31254
31255         Avoid a test failure on NetBSD 5.0.
31256         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
31257         an iconv() bug.
31258
31259 2010-05-24  Bruno Haible  <bruno@clisp.org>
31260
31261         Adjust #include directive style.
31262         * modules/regex (Includes): Recommend to write <regex.h>.
31263
31264 2010-05-24  Bruno Haible  <bruno@clisp.org>
31265
31266         regex: Don't require alloca.
31267         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
31268         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
31269         only inside if (0).
31270
31271 2010-05-23  Jim Meyering  <meyering@redhat.com>
31272
31273         test-renameat.c: include <sys/stat.h>
31274         * tests/test-renameat.c: Include <sys/stat.h>; required for
31275         definition of S_IS* macros.
31276
31277 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
31278
31279         Update maintainer documentation for 'relocatable-prog' module.
31280         * doc/relocatable-maint.texi: Update.
31281         Comments by Bruno Haible.
31282
31283 2010-05-23  Bruno Haible  <bruno@clisp.org>
31284
31285         git-merge-changelog: Enable --split-merged-entry by default.
31286         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
31287         (usage): Don't mention this option any more.
31288         Reported by Ralf Wildenhues.
31289
31290 2010-05-23  Jim Meyering  <meyering@redhat.com>
31291
31292         test-pwrite: do not leave behind a test file named "out"
31293         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
31294         The trivial-looking use of init.sh is really necessary.
31295         It ensures that the temporary file, "out", is created in
31296         a temporary directory, and removed upon termination.
31297         * tests/test-pwrite.sh: Re-add file.
31298         * modules/pwrite-tests: Reference it.
31299
31300 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31301
31302         Fix output redirection buglet in init.sh.
31303         * tests/init.sh: Fix redirection of stderr.
31304
31305 2010-05-20  Simon Josefsson  <simon@josefsson.org>
31306
31307         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
31308
31309 2010-05-17  Simon Josefsson  <simon@josefsson.org>
31310
31311         * modules/valgrind-tests: New file.
31312         * m4/valgrind-tests.m4: New file.
31313         * doc/valgrind-tests.texi: New file.
31314         * doc/gnulib.texi (Running self-tests under valgrind): New
31315         section.
31316
31317 2010-05-19  Bruno Haible  <bruno@clisp.org>
31318
31319         Clean up dead code in recent commit.
31320         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
31321         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
31322         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
31323         Suggested by Paolo Bonzini.
31324
31325 2010-05-19  Bruno Haible  <bruno@clisp.org>
31326
31327         Avoid valgrind error reports from libunistring.
31328         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
31329         * modules/libunistring (Files): Add it.
31330         * modules/libunistring-optional (Files): Likewise.
31331
31332 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
31333             Bruno Haible  <bruno@clisp.org>
31334
31335         New module 'libunistring-optional'.
31336         * modules/libunistring-optional: New file.
31337         * m4/libunistring-base.m4: New file.
31338         * m4/libunistring-optional.m4: New file.
31339         * lib/unicase.in.h: Renamed from lib/unicase.h.
31340         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
31341         * lib/unictype.in.h: Renamed from lib/unictype.h.
31342         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
31343         * lib/uniname.in.h: Renamed from lib/uniname.h.
31344         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
31345         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
31346         * lib/unistr.in.h: Renamed from lib/unistr.h.
31347         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
31348         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
31349         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
31350         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
31351         gl_LIBUNISTRING. If the library was found, determine the installed
31352         version and set LIBUNISTRING_VERSION.
31353         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
31354         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
31355         handle a configuration option --with-included-libunistring.
31356         * modules/libunistring (Files): Add m4/absolute-header.m4.
31357         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
31358         Add m4/libunistring-base.m4.
31359         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31360         (Makefile.am): Build unicase.h from unicase.in.h.
31361         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
31362         Add m4/libunistring-base.m4.
31363         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31364         (Makefile.am): Build uniconv.h from uniconv.in.h.
31365         * modules/unictype/base (Files): Use unictype.in.h instead of
31366         unictype.h. Add m4/libunistring-base.m4.
31367         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31368         (Makefile.am): Build unictype.h from unictype.in.h.
31369         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
31370         Add m4/libunistring-base.m4.
31371         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31372         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
31373         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
31374         Add m4/libunistring-base.m4.
31375         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31376         (Makefile.am): Build uniname.h from uniname.in.h.
31377         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
31378         Add m4/libunistring-base.m4.
31379         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31380         (Makefile.am): Build uninorm.h from uninorm.in.h.
31381         * modules/unistdio/base (Files): Use unistdio.in.h instead of
31382         unistdio.h. Add m4/libunistring-base.m4.
31383         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31384         (Makefile.am): Build unistdio.h from unistdio.in.h.
31385         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
31386         Add m4/libunistring-base.m4.
31387         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31388         (Makefile.am): Build unistr.h from unistr.in.h.
31389         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
31390         Add m4/libunistring-base.m4.
31391         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31392         (Makefile.am): Build unitypes.h from unitypes.in.h.
31393         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
31394         Add m4/libunistring-base.m4.
31395         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31396         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
31397         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
31398         uniwidth.h. Add m4/libunistring-base.m4.
31399         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31400         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
31401         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
31402         instead of augmenting lib_SOURCES.
31403         * modules/unicase/empty-suffix-context: Likewise.
31404         * modules/unicase/locale-language: Likewise.
31405         * modules/unicase/tolower: Likewise.
31406         * modules/unicase/totitle: Likewise.
31407         * modules/unicase/toupper: Likewise.
31408         * modules/unicase/u8-casecmp: Likewise.
31409         * modules/unicase/u8-casecoll: Likewise.
31410         * modules/unicase/u8-casefold: Likewise.
31411         * modules/unicase/u8-casexfrm: Likewise.
31412         * modules/unicase/u8-ct-casefold: Likewise.
31413         * modules/unicase/u8-ct-tolower: Likewise.
31414         * modules/unicase/u8-ct-totitle: Likewise.
31415         * modules/unicase/u8-ct-toupper: Likewise.
31416         * modules/unicase/u8-is-cased: Likewise.
31417         * modules/unicase/u8-is-casefolded: Likewise.
31418         * modules/unicase/u8-is-lowercase: Likewise.
31419         * modules/unicase/u8-is-titlecase: Likewise.
31420         * modules/unicase/u8-is-uppercase: Likewise.
31421         * modules/unicase/u8-prefix-context: Likewise.
31422         * modules/unicase/u8-suffix-context: Likewise.
31423         * modules/unicase/u8-tolower: Likewise.
31424         * modules/unicase/u8-totitle: Likewise.
31425         * modules/unicase/u8-toupper: Likewise.
31426         * modules/unicase/u16-casecmp: Likewise.
31427         * modules/unicase/u16-casecoll: Likewise.
31428         * modules/unicase/u16-casefold: Likewise.
31429         * modules/unicase/u16-casexfrm: Likewise.
31430         * modules/unicase/u16-ct-casefold: Likewise.
31431         * modules/unicase/u16-ct-tolower: Likewise.
31432         * modules/unicase/u16-ct-totitle: Likewise.
31433         * modules/unicase/u16-ct-toupper: Likewise.
31434         * modules/unicase/u16-is-cased: Likewise.
31435         * modules/unicase/u16-is-casefolded: Likewise.
31436         * modules/unicase/u16-is-lowercase: Likewise.
31437         * modules/unicase/u16-is-titlecase: Likewise.
31438         * modules/unicase/u16-is-uppercase: Likewise.
31439         * modules/unicase/u16-prefix-context: Likewise.
31440         * modules/unicase/u16-suffix-context: Likewise.
31441         * modules/unicase/u16-tolower: Likewise.
31442         * modules/unicase/u16-totitle: Likewise.
31443         * modules/unicase/u16-toupper: Likewise.
31444         * modules/unicase/u32-casecmp: Likewise.
31445         * modules/unicase/u32-casecoll: Likewise.
31446         * modules/unicase/u32-casefold: Likewise.
31447         * modules/unicase/u32-casexfrm: Likewise.
31448         * modules/unicase/u32-ct-casefold: Likewise.
31449         * modules/unicase/u32-ct-tolower: Likewise.
31450         * modules/unicase/u32-ct-totitle: Likewise.
31451         * modules/unicase/u32-ct-toupper: Likewise.
31452         * modules/unicase/u32-is-cased: Likewise.
31453         * modules/unicase/u32-is-casefolded: Likewise.
31454         * modules/unicase/u32-is-lowercase: Likewise.
31455         * modules/unicase/u32-is-titlecase: Likewise.
31456         * modules/unicase/u32-is-uppercase: Likewise.
31457         * modules/unicase/u32-prefix-context: Likewise.
31458         * modules/unicase/u32-suffix-context: Likewise.
31459         * modules/unicase/u32-tolower: Likewise.
31460         * modules/unicase/u32-totitle: Likewise.
31461         * modules/unicase/u32-toupper: Likewise.
31462         * modules/unicase/ulc-casecmp: Likewise.
31463         * modules/unicase/ulc-casecoll: Likewise.
31464         * modules/unicase/ulc-casexfrm: Likewise.
31465         * modules/uniconv/u8-conv-from-enc: Likewise.
31466         * modules/uniconv/u8-conv-to-enc: Likewise.
31467         * modules/uniconv/u8-strconv-from-enc: Likewise.
31468         * modules/uniconv/u8-strconv-from-locale: Likewise.
31469         * modules/uniconv/u8-strconv-to-enc: Likewise.
31470         * modules/uniconv/u8-strconv-to-locale: Likewise.
31471         * modules/uniconv/u16-conv-from-enc: Likewise.
31472         * modules/uniconv/u16-conv-to-enc: Likewise.
31473         * modules/uniconv/u16-strconv-from-enc: Likewise.
31474         * modules/uniconv/u16-strconv-from-locale: Likewise.
31475         * modules/uniconv/u16-strconv-to-enc: Likewise.
31476         * modules/uniconv/u16-strconv-to-locale: Likewise.
31477         * modules/uniconv/u32-conv-from-enc: Likewise.
31478         * modules/uniconv/u32-conv-to-enc: Likewise.
31479         * modules/uniconv/u32-strconv-from-enc: Likewise.
31480         * modules/uniconv/u32-strconv-from-locale: Likewise.
31481         * modules/uniconv/u32-strconv-to-enc: Likewise.
31482         * modules/uniconv/u32-strconv-to-locale: Likewise.
31483         * modules/unictype/bidicategory-byname: Likewise.
31484         * modules/unictype/bidicategory-name: Likewise.
31485         * modules/unictype/bidicategory-of: Likewise.
31486         * modules/unictype/bidicategory-test: Likewise.
31487         * modules/unictype/block-list: Likewise.
31488         * modules/unictype/block-test: Likewise.
31489         * modules/unictype/category-C: Likewise.
31490         * modules/unictype/category-Cc: Likewise.
31491         * modules/unictype/category-Cf: Likewise.
31492         * modules/unictype/category-Cn: Likewise.
31493         * modules/unictype/category-Co: Likewise.
31494         * modules/unictype/category-Cs: Likewise.
31495         * modules/unictype/category-L: Likewise.
31496         * modules/unictype/category-Ll: Likewise.
31497         * modules/unictype/category-Lm: Likewise.
31498         * modules/unictype/category-Lo: Likewise.
31499         * modules/unictype/category-Lt: Likewise.
31500         * modules/unictype/category-Lu: Likewise.
31501         * modules/unictype/category-M: Likewise.
31502         * modules/unictype/category-Mc: Likewise.
31503         * modules/unictype/category-Me: Likewise.
31504         * modules/unictype/category-Mn: Likewise.
31505         * modules/unictype/category-N: Likewise.
31506         * modules/unictype/category-Nd: Likewise.
31507         * modules/unictype/category-Nl: Likewise.
31508         * modules/unictype/category-No: Likewise.
31509         * modules/unictype/category-P: Likewise.
31510         * modules/unictype/category-Pc: Likewise.
31511         * modules/unictype/category-Pd: Likewise.
31512         * modules/unictype/category-Pe: Likewise.
31513         * modules/unictype/category-Pf: Likewise.
31514         * modules/unictype/category-Pi: Likewise.
31515         * modules/unictype/category-Po: Likewise.
31516         * modules/unictype/category-Ps: Likewise.
31517         * modules/unictype/category-S: Likewise.
31518         * modules/unictype/category-Sc: Likewise.
31519         * modules/unictype/category-Sk: Likewise.
31520         * modules/unictype/category-Sm: Likewise.
31521         * modules/unictype/category-So: Likewise.
31522         * modules/unictype/category-Z: Likewise.
31523         * modules/unictype/category-Zl: Likewise.
31524         * modules/unictype/category-Zp: Likewise.
31525         * modules/unictype/category-Zs: Likewise.
31526         * modules/unictype/category-and: Likewise.
31527         * modules/unictype/category-and-not: Likewise.
31528         * modules/unictype/category-byname: Likewise.
31529         * modules/unictype/category-name: Likewise.
31530         * modules/unictype/category-none: Likewise.
31531         * modules/unictype/category-of: Likewise.
31532         * modules/unictype/category-or: Likewise.
31533         * modules/unictype/category-test: Likewise.
31534         * modules/unictype/combining-class: Likewise.
31535         * modules/unictype/ctype-alnum: Likewise.
31536         * modules/unictype/ctype-alpha: Likewise.
31537         * modules/unictype/ctype-blank: Likewise.
31538         * modules/unictype/ctype-cntrl: Likewise.
31539         * modules/unictype/ctype-digit: Likewise.
31540         * modules/unictype/ctype-graph: Likewise.
31541         * modules/unictype/ctype-lower: Likewise.
31542         * modules/unictype/ctype-print: Likewise.
31543         * modules/unictype/ctype-punct: Likewise.
31544         * modules/unictype/ctype-space: Likewise.
31545         * modules/unictype/ctype-upper: Likewise.
31546         * modules/unictype/ctype-xdigit: Likewise.
31547         * modules/unictype/decimal-digit: Likewise.
31548         * modules/unictype/digit: Likewise.
31549         * modules/unictype/mirror: Likewise.
31550         * modules/unictype/numeric: Likewise.
31551         * modules/unictype/property-alphabetic: Likewise.
31552         * modules/unictype/property-ascii-hex-digit: Likewise.
31553         * modules/unictype/property-bidi-arabic-digit: Likewise.
31554         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
31555         * modules/unictype/property-bidi-block-separator: Likewise.
31556         * modules/unictype/property-bidi-boundary-neutral: Likewise.
31557         * modules/unictype/property-bidi-common-separator: Likewise.
31558         * modules/unictype/property-bidi-control: Likewise.
31559         * modules/unictype/property-bidi-embedding-or-override: Likewise.
31560         * modules/unictype/property-bidi-eur-num-separator: Likewise.
31561         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
31562         * modules/unictype/property-bidi-european-digit: Likewise.
31563         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
31564         * modules/unictype/property-bidi-left-to-right: Likewise.
31565         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
31566         * modules/unictype/property-bidi-other-neutral: Likewise.
31567         * modules/unictype/property-bidi-pdf: Likewise.
31568         * modules/unictype/property-bidi-segment-separator: Likewise.
31569         * modules/unictype/property-bidi-whitespace: Likewise.
31570         * modules/unictype/property-byname: Likewise.
31571         * modules/unictype/property-combining: Likewise.
31572         * modules/unictype/property-composite: Likewise.
31573         * modules/unictype/property-currency-symbol: Likewise.
31574         * modules/unictype/property-dash: Likewise.
31575         * modules/unictype/property-decimal-digit: Likewise.
31576         * modules/unictype/property-default-ignorable-code-point: Likewise.
31577         * modules/unictype/property-deprecated: Likewise.
31578         * modules/unictype/property-diacritic: Likewise.
31579         * modules/unictype/property-extender: Likewise.
31580         * modules/unictype/property-format-control: Likewise.
31581         * modules/unictype/property-grapheme-base: Likewise.
31582         * modules/unictype/property-grapheme-extend: Likewise.
31583         * modules/unictype/property-grapheme-link: Likewise.
31584         * modules/unictype/property-hex-digit: Likewise.
31585         * modules/unictype/property-hyphen: Likewise.
31586         * modules/unictype/property-id-continue: Likewise.
31587         * modules/unictype/property-id-start: Likewise.
31588         * modules/unictype/property-ideographic: Likewise.
31589         * modules/unictype/property-ids-binary-operator: Likewise.
31590         * modules/unictype/property-ids-trinary-operator: Likewise.
31591         * modules/unictype/property-ignorable-control: Likewise.
31592         * modules/unictype/property-iso-control: Likewise.
31593         * modules/unictype/property-join-control: Likewise.
31594         * modules/unictype/property-left-of-pair: Likewise.
31595         * modules/unictype/property-line-separator: Likewise.
31596         * modules/unictype/property-logical-order-exception: Likewise.
31597         * modules/unictype/property-lowercase: Likewise.
31598         * modules/unictype/property-math: Likewise.
31599         * modules/unictype/property-non-break: Likewise.
31600         * modules/unictype/property-not-a-character: Likewise.
31601         * modules/unictype/property-numeric: Likewise.
31602         * modules/unictype/property-other-alphabetic: Likewise.
31603         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
31604         * modules/unictype/property-other-grapheme-extend: Likewise.
31605         * modules/unictype/property-other-id-continue: Likewise.
31606         * modules/unictype/property-other-id-start: Likewise.
31607         * modules/unictype/property-other-lowercase: Likewise.
31608         * modules/unictype/property-other-math: Likewise.
31609         * modules/unictype/property-other-uppercase: Likewise.
31610         * modules/unictype/property-paired-punctuation: Likewise.
31611         * modules/unictype/property-paragraph-separator: Likewise.
31612         * modules/unictype/property-pattern-syntax: Likewise.
31613         * modules/unictype/property-pattern-white-space: Likewise.
31614         * modules/unictype/property-private-use: Likewise.
31615         * modules/unictype/property-punctuation: Likewise.
31616         * modules/unictype/property-quotation-mark: Likewise.
31617         * modules/unictype/property-radical: Likewise.
31618         * modules/unictype/property-sentence-terminal: Likewise.
31619         * modules/unictype/property-soft-dotted: Likewise.
31620         * modules/unictype/property-space: Likewise.
31621         * modules/unictype/property-terminal-punctuation: Likewise.
31622         * modules/unictype/property-test: Likewise.
31623         * modules/unictype/property-titlecase: Likewise.
31624         * modules/unictype/property-unassigned-code-value: Likewise.
31625         * modules/unictype/property-unified-ideograph: Likewise.
31626         * modules/unictype/property-uppercase: Likewise.
31627         * modules/unictype/property-variation-selector: Likewise.
31628         * modules/unictype/property-white-space: Likewise.
31629         * modules/unictype/property-xid-continue: Likewise.
31630         * modules/unictype/property-xid-start: Likewise.
31631         * modules/unictype/property-zero-width: Likewise.
31632         * modules/unictype/scripts: Likewise.
31633         * modules/unictype/syntax-c-ident: Likewise.
31634         * modules/unictype/syntax-c-whitespace: Likewise.
31635         * modules/unictype/syntax-java-ident: Likewise.
31636         * modules/unictype/syntax-java-whitespace: Likewise.
31637         * modules/unilbrk/u8-possible-linebreaks: Likewise.
31638         * modules/unilbrk/u8-width-linebreaks: Likewise.
31639         * modules/unilbrk/u16-possible-linebreaks: Likewise.
31640         * modules/unilbrk/u16-width-linebreaks: Likewise.
31641         * modules/unilbrk/u32-possible-linebreaks: Likewise.
31642         * modules/unilbrk/u32-width-linebreaks: Likewise.
31643         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
31644         * modules/unilbrk/ulc-width-linebreaks: Likewise.
31645         * modules/uniname/uniname: Likewise.
31646         * modules/uninorm/canonical-decomposition: Likewise.
31647         * modules/uninorm/composition: Likewise.
31648         * modules/uninorm/decomposing-form: Likewise.
31649         * modules/uninorm/decomposition: Likewise.
31650         * modules/uninorm/filter: Likewise.
31651         * modules/uninorm/nfc: Likewise.
31652         * modules/uninorm/nfd: Likewise.
31653         * modules/uninorm/nfkc: Likewise.
31654         * modules/uninorm/nfkd: Likewise.
31655         * modules/uninorm/u8-normalize: Likewise.
31656         * modules/uninorm/u8-normcmp: Likewise.
31657         * modules/uninorm/u8-normcoll: Likewise.
31658         * modules/uninorm/u8-normxfrm: Likewise.
31659         * modules/uninorm/u16-normalize: Likewise.
31660         * modules/uninorm/u16-normcmp: Likewise.
31661         * modules/uninorm/u16-normcoll: Likewise.
31662         * modules/uninorm/u16-normxfrm: Likewise.
31663         * modules/uninorm/u32-normalize: Likewise.
31664         * modules/uninorm/u32-normcmp: Likewise.
31665         * modules/uninorm/u32-normcoll: Likewise.
31666         * modules/uninorm/u32-normxfrm: Likewise.
31667         * modules/unistdio/u8-asnprintf: Likewise.
31668         * modules/unistdio/u8-asprintf: Likewise.
31669         * modules/unistdio/u8-snprintf: Likewise.
31670         * modules/unistdio/u8-sprintf: Likewise.
31671         * modules/unistdio/u8-u8-asnprintf: Likewise.
31672         * modules/unistdio/u8-u8-asprintf: Likewise.
31673         * modules/unistdio/u8-u8-snprintf: Likewise.
31674         * modules/unistdio/u8-u8-sprintf: Likewise.
31675         * modules/unistdio/u8-u8-vasnprintf: Likewise.
31676         * modules/unistdio/u8-u8-vasprintf: Likewise.
31677         * modules/unistdio/u8-u8-vsnprintf: Likewise.
31678         * modules/unistdio/u8-u8-vsprintf: Likewise.
31679         * modules/unistdio/u8-vasnprintf: Likewise.
31680         * modules/unistdio/u8-vasprintf: Likewise.
31681         * modules/unistdio/u8-vsnprintf: Likewise.
31682         * modules/unistdio/u8-vsprintf: Likewise.
31683         * modules/unistdio/u16-asnprintf: Likewise.
31684         * modules/unistdio/u16-asprintf: Likewise.
31685         * modules/unistdio/u16-snprintf: Likewise.
31686         * modules/unistdio/u16-sprintf: Likewise.
31687         * modules/unistdio/u16-u16-asnprintf: Likewise.
31688         * modules/unistdio/u16-u16-asprintf: Likewise.
31689         * modules/unistdio/u16-u16-snprintf: Likewise.
31690         * modules/unistdio/u16-u16-sprintf: Likewise.
31691         * modules/unistdio/u16-u16-vasnprintf: Likewise.
31692         * modules/unistdio/u16-u16-vasprintf: Likewise.
31693         * modules/unistdio/u16-u16-vsnprintf: Likewise.
31694         * modules/unistdio/u16-u16-vsprintf: Likewise.
31695         * modules/unistdio/u16-vasnprintf: Likewise.
31696         * modules/unistdio/u16-vasprintf: Likewise.
31697         * modules/unistdio/u16-vsnprintf: Likewise.
31698         * modules/unistdio/u16-vsprintf: Likewise.
31699         * modules/unistdio/u32-asnprintf: Likewise.
31700         * modules/unistdio/u32-asprintf: Likewise.
31701         * modules/unistdio/u32-snprintf: Likewise.
31702         * modules/unistdio/u32-sprintf: Likewise.
31703         * modules/unistdio/u32-u32-asnprintf: Likewise.
31704         * modules/unistdio/u32-u32-asprintf: Likewise.
31705         * modules/unistdio/u32-u32-snprintf: Likewise.
31706         * modules/unistdio/u32-u32-sprintf: Likewise.
31707         * modules/unistdio/u32-u32-vasnprintf: Likewise.
31708         * modules/unistdio/u32-u32-vasprintf: Likewise.
31709         * modules/unistdio/u32-u32-vsnprintf: Likewise.
31710         * modules/unistdio/u32-u32-vsprintf: Likewise.
31711         * modules/unistdio/u32-vasnprintf: Likewise.
31712         * modules/unistdio/u32-vasprintf: Likewise.
31713         * modules/unistdio/u32-vsnprintf: Likewise.
31714         * modules/unistdio/u32-vsprintf: Likewise.
31715         * modules/unistdio/ulc-asnprintf: Likewise.
31716         * modules/unistdio/ulc-asprintf: Likewise.
31717         * modules/unistdio/ulc-fprintf: Likewise.
31718         * modules/unistdio/ulc-snprintf: Likewise.
31719         * modules/unistdio/ulc-sprintf: Likewise.
31720         * modules/unistdio/ulc-vasnprintf: Likewise.
31721         * modules/unistdio/ulc-vasprintf: Likewise.
31722         * modules/unistdio/ulc-vfprintf: Likewise.
31723         * modules/unistdio/ulc-vsnprintf: Likewise.
31724         * modules/unistdio/ulc-vsprintf: Likewise.
31725         * modules/unistr/u8-check: Likewise.
31726         * modules/unistr/u8-chr: Likewise.
31727         * modules/unistr/u8-cmp: Likewise.
31728         * modules/unistr/u8-cmp2: Likewise.
31729         * modules/unistr/u8-cpy: Likewise.
31730         * modules/unistr/u8-cpy-alloc: Likewise.
31731         * modules/unistr/u8-endswith: Likewise.
31732         * modules/unistr/u8-mblen: Likewise.
31733         * modules/unistr/u8-mbsnlen: Likewise.
31734         * modules/unistr/u8-mbtouc: Likewise.
31735         * modules/unistr/u8-mbtouc-unsafe: Likewise.
31736         * modules/unistr/u8-mbtoucr: Likewise.
31737         * modules/unistr/u8-move: Likewise.
31738         * modules/unistr/u8-next: Likewise.
31739         * modules/unistr/u8-prev: Likewise.
31740         * modules/unistr/u8-set: Likewise.
31741         * modules/unistr/u8-startswith: Likewise.
31742         * modules/unistr/u8-stpcpy: Likewise.
31743         * modules/unistr/u8-stpncpy: Likewise.
31744         * modules/unistr/u8-strcat: Likewise.
31745         * modules/unistr/u8-strchr: Likewise.
31746         * modules/unistr/u8-strcmp: Likewise.
31747         * modules/unistr/u8-strcoll: Likewise.
31748         * modules/unistr/u8-strcpy: Likewise.
31749         * modules/unistr/u8-strcspn: Likewise.
31750         * modules/unistr/u8-strdup: Likewise.
31751         * modules/unistr/u8-strlen: Likewise.
31752         * modules/unistr/u8-strmblen: Likewise.
31753         * modules/unistr/u8-strmbtouc: Likewise.
31754         * modules/unistr/u8-strncat: Likewise.
31755         * modules/unistr/u8-strncmp: Likewise.
31756         * modules/unistr/u8-strncpy: Likewise.
31757         * modules/unistr/u8-strnlen: Likewise.
31758         * modules/unistr/u8-strpbrk: Likewise.
31759         * modules/unistr/u8-strrchr: Likewise.
31760         * modules/unistr/u8-strspn: Likewise.
31761         * modules/unistr/u8-strstr: Likewise.
31762         * modules/unistr/u8-strtok: Likewise.
31763         * modules/unistr/u8-to-u16: Likewise.
31764         * modules/unistr/u8-to-u32: Likewise.
31765         * modules/unistr/u8-uctomb: Likewise.
31766         * modules/unistr/u16-check: Likewise.
31767         * modules/unistr/u16-chr: Likewise.
31768         * modules/unistr/u16-cmp: Likewise.
31769         * modules/unistr/u16-cmp2: Likewise.
31770         * modules/unistr/u16-cpy: Likewise.
31771         * modules/unistr/u16-cpy-alloc: Likewise.
31772         * modules/unistr/u16-endswith: Likewise.
31773         * modules/unistr/u16-mblen: Likewise.
31774         * modules/unistr/u16-mbsnlen: Likewise.
31775         * modules/unistr/u16-mbtouc: Likewise.
31776         * modules/unistr/u16-mbtouc-unsafe: Likewise.
31777         * modules/unistr/u16-mbtoucr: Likewise.
31778         * modules/unistr/u16-move: Likewise.
31779         * modules/unistr/u16-next: Likewise.
31780         * modules/unistr/u16-prev: Likewise.
31781         * modules/unistr/u16-set: Likewise.
31782         * modules/unistr/u16-startswith: Likewise.
31783         * modules/unistr/u16-stpcpy: Likewise.
31784         * modules/unistr/u16-stpncpy: Likewise.
31785         * modules/unistr/u16-strcat: Likewise.
31786         * modules/unistr/u16-strchr: Likewise.
31787         * modules/unistr/u16-strcmp: Likewise.
31788         * modules/unistr/u16-strcoll: Likewise.
31789         * modules/unistr/u16-strcpy: Likewise.
31790         * modules/unistr/u16-strcspn: Likewise.
31791         * modules/unistr/u16-strdup: Likewise.
31792         * modules/unistr/u16-strlen: Likewise.
31793         * modules/unistr/u16-strmblen: Likewise.
31794         * modules/unistr/u16-strmbtouc: Likewise.
31795         * modules/unistr/u16-strncat: Likewise.
31796         * modules/unistr/u16-strncmp: Likewise.
31797         * modules/unistr/u16-strncpy: Likewise.
31798         * modules/unistr/u16-strnlen: Likewise.
31799         * modules/unistr/u16-strpbrk: Likewise.
31800         * modules/unistr/u16-strrchr: Likewise.
31801         * modules/unistr/u16-strspn: Likewise.
31802         * modules/unistr/u16-strstr: Likewise.
31803         * modules/unistr/u16-strtok: Likewise.
31804         * modules/unistr/u16-to-u32: Likewise.
31805         * modules/unistr/u16-to-u8: Likewise.
31806         * modules/unistr/u16-uctomb: Likewise.
31807         * modules/unistr/u32-check: Likewise.
31808         * modules/unistr/u32-chr: Likewise.
31809         * modules/unistr/u32-cmp: Likewise.
31810         * modules/unistr/u32-cmp2: Likewise.
31811         * modules/unistr/u32-cpy: Likewise.
31812         * modules/unistr/u32-cpy-alloc: Likewise.
31813         * modules/unistr/u32-endswith: Likewise.
31814         * modules/unistr/u32-mblen: Likewise.
31815         * modules/unistr/u32-mbsnlen: Likewise.
31816         * modules/unistr/u32-mbtouc: Likewise.
31817         * modules/unistr/u32-mbtouc-unsafe: Likewise.
31818         * modules/unistr/u32-mbtoucr: Likewise.
31819         * modules/unistr/u32-move: Likewise.
31820         * modules/unistr/u32-next: Likewise.
31821         * modules/unistr/u32-prev: Likewise.
31822         * modules/unistr/u32-set: Likewise.
31823         * modules/unistr/u32-startswith: Likewise.
31824         * modules/unistr/u32-stpcpy: Likewise.
31825         * modules/unistr/u32-stpncpy: Likewise.
31826         * modules/unistr/u32-strcat: Likewise.
31827         * modules/unistr/u32-strchr: Likewise.
31828         * modules/unistr/u32-strcmp: Likewise.
31829         * modules/unistr/u32-strcoll: Likewise.
31830         * modules/unistr/u32-strcpy: Likewise.
31831         * modules/unistr/u32-strcspn: Likewise.
31832         * modules/unistr/u32-strdup: Likewise.
31833         * modules/unistr/u32-strlen: Likewise.
31834         * modules/unistr/u32-strmblen: Likewise.
31835         * modules/unistr/u32-strmbtouc: Likewise.
31836         * modules/unistr/u32-strncat: Likewise.
31837         * modules/unistr/u32-strncmp: Likewise.
31838         * modules/unistr/u32-strncpy: Likewise.
31839         * modules/unistr/u32-strnlen: Likewise.
31840         * modules/unistr/u32-strpbrk: Likewise.
31841         * modules/unistr/u32-strrchr: Likewise.
31842         * modules/unistr/u32-strspn: Likewise.
31843         * modules/unistr/u32-strstr: Likewise.
31844         * modules/unistr/u32-strtok: Likewise.
31845         * modules/unistr/u32-to-u16: Likewise.
31846         * modules/unistr/u32-to-u8: Likewise.
31847         * modules/unistr/u32-uctomb: Likewise.
31848         * modules/uniwbrk/u8-wordbreaks: Likewise.
31849         * modules/uniwbrk/u16-wordbreaks: Likewise.
31850         * modules/uniwbrk/u32-wordbreaks: Likewise.
31851         * modules/uniwbrk/ulc-wordbreaks: Likewise.
31852         * modules/uniwbrk/wordbreak-property: Likewise.
31853         * modules/uniwidth/u8-strwidth: Likewise.
31854         * modules/uniwidth/u8-width: Likewise.
31855         * modules/uniwidth/u16-strwidth: Likewise.
31856         * modules/uniwidth/u16-width: Likewise.
31857         * modules/uniwidth/u32-strwidth: Likewise.
31858         * modules/uniwidth/u32-width: Likewise.
31859         * modules/uniwidth/width: Likewise.
31860         * modules/unicase/cased-tests (Makefile.am): Link all test programs
31861         with $(LIBUNISTRING).
31862         * modules/unicase/ignorable-tests: Likewise.
31863         * modules/unicase/locale-language-tests: Likewise.
31864         * modules/unicase/tolower-tests: Likewise.
31865         * modules/unicase/totitle-tests: Likewise.
31866         * modules/unicase/toupper-tests: Likewise.
31867         * modules/unicase/u8-casecmp-tests: Likewise.
31868         * modules/unicase/u8-casecoll-tests: Likewise.
31869         * modules/unicase/u8-casefold-tests: Likewise.
31870         * modules/unicase/u8-is-cased-tests: Likewise.
31871         * modules/unicase/u8-is-casefolded-tests: Likewise.
31872         * modules/unicase/u8-is-lowercase-tests: Likewise.
31873         * modules/unicase/u8-is-titlecase-tests: Likewise.
31874         * modules/unicase/u8-is-uppercase-tests: Likewise.
31875         * modules/unicase/u8-tolower-tests: Likewise.
31876         * modules/unicase/u8-totitle-tests: Likewise.
31877         * modules/unicase/u8-toupper-tests: Likewise.
31878         * modules/unicase/u16-casecmp-tests: Likewise.
31879         * modules/unicase/u16-casecoll-tests: Likewise.
31880         * modules/unicase/u16-casefold-tests: Likewise.
31881         * modules/unicase/u16-is-cased-tests: Likewise.
31882         * modules/unicase/u16-is-casefolded-tests: Likewise.
31883         * modules/unicase/u16-is-lowercase-tests: Likewise.
31884         * modules/unicase/u16-is-titlecase-tests: Likewise.
31885         * modules/unicase/u16-is-uppercase-tests: Likewise.
31886         * modules/unicase/u16-tolower-tests: Likewise.
31887         * modules/unicase/u16-totitle-tests: Likewise.
31888         * modules/unicase/u16-toupper-tests: Likewise.
31889         * modules/unicase/u32-casecmp-tests: Likewise.
31890         * modules/unicase/u32-casecoll-tests: Likewise.
31891         * modules/unicase/u32-casefold-tests: Likewise.
31892         * modules/unicase/u32-is-cased-tests: Likewise.
31893         * modules/unicase/u32-is-casefolded-tests: Likewise.
31894         * modules/unicase/u32-is-lowercase-tests: Likewise.
31895         * modules/unicase/u32-is-titlecase-tests: Likewise.
31896         * modules/unicase/u32-is-uppercase-tests: Likewise.
31897         * modules/unicase/u32-tolower-tests: Likewise.
31898         * modules/unicase/u32-totitle-tests: Likewise.
31899         * modules/unicase/u32-toupper-tests: Likewise.
31900         * modules/unicase/ulc-casecmp-tests: Likewise.
31901         * modules/unicase/ulc-casecoll-tests: Likewise.
31902         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
31903         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
31904         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
31905         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
31906         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
31907         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
31908         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
31909         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
31910         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
31911         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
31912         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
31913         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
31914         * modules/unictype/bidicategory-byname-tests: Likewise.
31915         * modules/unictype/bidicategory-name-tests: Likewise.
31916         * modules/unictype/bidicategory-of-tests: Likewise.
31917         * modules/unictype/bidicategory-test-tests: Likewise.
31918         * modules/unictype/block-list-tests: Likewise.
31919         * modules/unictype/block-of-tests: Likewise.
31920         * modules/unictype/block-test-tests: Likewise.
31921         * modules/unictype/category-C-tests: Likewise.
31922         * modules/unictype/category-Cc-tests: Likewise.
31923         * modules/unictype/category-Cf-tests: Likewise.
31924         * modules/unictype/category-Cn-tests: Likewise.
31925         * modules/unictype/category-Co-tests: Likewise.
31926         * modules/unictype/category-Cs-tests: Likewise.
31927         * modules/unictype/category-L-tests: Likewise.
31928         * modules/unictype/category-Ll-tests: Likewise.
31929         * modules/unictype/category-Lm-tests: Likewise.
31930         * modules/unictype/category-Lo-tests: Likewise.
31931         * modules/unictype/category-Lt-tests: Likewise.
31932         * modules/unictype/category-Lu-tests: Likewise.
31933         * modules/unictype/category-M-tests: Likewise.
31934         * modules/unictype/category-Mc-tests: Likewise.
31935         * modules/unictype/category-Me-tests: Likewise.
31936         * modules/unictype/category-Mn-tests: Likewise.
31937         * modules/unictype/category-N-tests: Likewise.
31938         * modules/unictype/category-Nd-tests: Likewise.
31939         * modules/unictype/category-Nl-tests: Likewise.
31940         * modules/unictype/category-No-tests: Likewise.
31941         * modules/unictype/category-P-tests: Likewise.
31942         * modules/unictype/category-Pc-tests: Likewise.
31943         * modules/unictype/category-Pd-tests: Likewise.
31944         * modules/unictype/category-Pe-tests: Likewise.
31945         * modules/unictype/category-Pf-tests: Likewise.
31946         * modules/unictype/category-Pi-tests: Likewise.
31947         * modules/unictype/category-Po-tests: Likewise.
31948         * modules/unictype/category-Ps-tests: Likewise.
31949         * modules/unictype/category-S-tests: Likewise.
31950         * modules/unictype/category-Sc-tests: Likewise.
31951         * modules/unictype/category-Sk-tests: Likewise.
31952         * modules/unictype/category-Sm-tests: Likewise.
31953         * modules/unictype/category-So-tests: Likewise.
31954         * modules/unictype/category-Z-tests: Likewise.
31955         * modules/unictype/category-Zl-tests: Likewise.
31956         * modules/unictype/category-Zp-tests: Likewise.
31957         * modules/unictype/category-Zs-tests: Likewise.
31958         * modules/unictype/category-and-not-tests: Likewise.
31959         * modules/unictype/category-and-tests: Likewise.
31960         * modules/unictype/category-byname-tests: Likewise.
31961         * modules/unictype/category-name-tests: Likewise.
31962         * modules/unictype/category-none-tests: Likewise.
31963         * modules/unictype/category-of-tests: Likewise.
31964         * modules/unictype/category-or-tests: Likewise.
31965         * modules/unictype/category-test-withtable-tests: Likewise.
31966         * modules/unictype/combining-class-tests: Likewise.
31967         * modules/unictype/ctype-alnum-tests: Likewise.
31968         * modules/unictype/ctype-alpha-tests: Likewise.
31969         * modules/unictype/ctype-blank-tests: Likewise.
31970         * modules/unictype/ctype-cntrl-tests: Likewise.
31971         * modules/unictype/ctype-digit-tests: Likewise.
31972         * modules/unictype/ctype-graph-tests: Likewise.
31973         * modules/unictype/ctype-lower-tests: Likewise.
31974         * modules/unictype/ctype-print-tests: Likewise.
31975         * modules/unictype/ctype-punct-tests: Likewise.
31976         * modules/unictype/ctype-space-tests: Likewise.
31977         * modules/unictype/ctype-upper-tests: Likewise.
31978         * modules/unictype/ctype-xdigit-tests: Likewise.
31979         * modules/unictype/decimal-digit-tests: Likewise.
31980         * modules/unictype/digit-tests: Likewise.
31981         * modules/unictype/mirror-tests: Likewise.
31982         * modules/unictype/numeric-tests: Likewise.
31983         * modules/unictype/property-alphabetic-tests: Likewise.
31984         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
31985         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
31986         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
31987         * modules/unictype/property-bidi-block-separator-tests: Likewise.
31988         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
31989         * modules/unictype/property-bidi-common-separator-tests: Likewise.
31990         * modules/unictype/property-bidi-control-tests: Likewise.
31991         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
31992         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
31993         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
31994         * modules/unictype/property-bidi-european-digit-tests: Likewise.
31995         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
31996         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
31997         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
31998         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
31999         * modules/unictype/property-bidi-pdf-tests: Likewise.
32000         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
32001         * modules/unictype/property-bidi-whitespace-tests: Likewise.
32002         * modules/unictype/property-byname-tests: Likewise.
32003         * modules/unictype/property-combining-tests: Likewise.
32004         * modules/unictype/property-composite-tests: Likewise.
32005         * modules/unictype/property-currency-symbol-tests: Likewise.
32006         * modules/unictype/property-dash-tests: Likewise.
32007         * modules/unictype/property-decimal-digit-tests: Likewise.
32008         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
32009         * modules/unictype/property-deprecated-tests: Likewise.
32010         * modules/unictype/property-diacritic-tests: Likewise.
32011         * modules/unictype/property-extender-tests: Likewise.
32012         * modules/unictype/property-format-control-tests: Likewise.
32013         * modules/unictype/property-grapheme-base-tests: Likewise.
32014         * modules/unictype/property-grapheme-extend-tests: Likewise.
32015         * modules/unictype/property-grapheme-link-tests: Likewise.
32016         * modules/unictype/property-hex-digit-tests: Likewise.
32017         * modules/unictype/property-hyphen-tests: Likewise.
32018         * modules/unictype/property-id-continue-tests: Likewise.
32019         * modules/unictype/property-id-start-tests: Likewise.
32020         * modules/unictype/property-ideographic-tests: Likewise.
32021         * modules/unictype/property-ids-binary-operator-tests: Likewise.
32022         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
32023         * modules/unictype/property-ignorable-control-tests: Likewise.
32024         * modules/unictype/property-iso-control-tests: Likewise.
32025         * modules/unictype/property-join-control-tests: Likewise.
32026         * modules/unictype/property-left-of-pair-tests: Likewise.
32027         * modules/unictype/property-line-separator-tests: Likewise.
32028         * modules/unictype/property-logical-order-exception-tests: Likewise.
32029         * modules/unictype/property-lowercase-tests: Likewise.
32030         * modules/unictype/property-math-tests: Likewise.
32031         * modules/unictype/property-non-break-tests: Likewise.
32032         * modules/unictype/property-not-a-character-tests: Likewise.
32033         * modules/unictype/property-numeric-tests: Likewise.
32034         * modules/unictype/property-other-alphabetic-tests: Likewise.
32035         * modules/unictype/property-other-default-ignorable-code-point-tests:
32036         Likewise.
32037         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
32038         * modules/unictype/property-other-id-continue-tests: Likewise.
32039         * modules/unictype/property-other-id-start-tests: Likewise.
32040         * modules/unictype/property-other-lowercase-tests: Likewise.
32041         * modules/unictype/property-other-math-tests: Likewise.
32042         * modules/unictype/property-other-uppercase-tests: Likewise.
32043         * modules/unictype/property-paired-punctuation-tests: Likewise.
32044         * modules/unictype/property-paragraph-separator-tests: Likewise.
32045         * modules/unictype/property-pattern-syntax-tests: Likewise.
32046         * modules/unictype/property-pattern-white-space-tests: Likewise.
32047         * modules/unictype/property-private-use-tests: Likewise.
32048         * modules/unictype/property-punctuation-tests: Likewise.
32049         * modules/unictype/property-quotation-mark-tests: Likewise.
32050         * modules/unictype/property-radical-tests: Likewise.
32051         * modules/unictype/property-sentence-terminal-tests: Likewise.
32052         * modules/unictype/property-soft-dotted-tests: Likewise.
32053         * modules/unictype/property-space-tests: Likewise.
32054         * modules/unictype/property-terminal-punctuation-tests: Likewise.
32055         * modules/unictype/property-test-tests: Likewise.
32056         * modules/unictype/property-titlecase-tests: Likewise.
32057         * modules/unictype/property-unassigned-code-value-tests: Likewise.
32058         * modules/unictype/property-unified-ideograph-tests: Likewise.
32059         * modules/unictype/property-uppercase-tests: Likewise.
32060         * modules/unictype/property-variation-selector-tests: Likewise.
32061         * modules/unictype/property-white-space-tests: Likewise.
32062         * modules/unictype/property-xid-continue-tests: Likewise.
32063         * modules/unictype/property-xid-start-tests: Likewise.
32064         * modules/unictype/property-zero-width-tests: Likewise.
32065         * modules/unictype/scripts-tests: Likewise.
32066         * modules/unictype/syntax-c-ident-tests: Likewise.
32067         * modules/unictype/syntax-c-whitespace-tests: Likewise.
32068         * modules/unictype/syntax-java-ident-tests: Likewise.
32069         * modules/unictype/syntax-java-whitespace-tests: Likewise.
32070         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
32071         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
32072         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
32073         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
32074         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
32075         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
32076         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
32077         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
32078         * modules/uniname/uniname-tests: Likewise.
32079         * modules/uninorm/canonical-decomposition-tests: Likewise.
32080         * modules/uninorm/compat-decomposition-tests: Likewise.
32081         * modules/uninorm/composition-tests: Likewise.
32082         * modules/uninorm/decomposing-form-tests: Likewise.
32083         * modules/uninorm/decomposition-tests: Likewise.
32084         * modules/uninorm/filter-tests: Likewise.
32085         * modules/uninorm/nfc-tests: Likewise.
32086         * modules/uninorm/nfd-tests: Likewise.
32087         * modules/uninorm/nfkc-tests: Likewise.
32088         * modules/uninorm/nfkd-tests: Likewise.
32089         * modules/uninorm/u8-normcmp-tests: Likewise.
32090         * modules/uninorm/u8-normcoll-tests: Likewise.
32091         * modules/uninorm/u16-normcmp-tests: Likewise.
32092         * modules/uninorm/u16-normcoll-tests: Likewise.
32093         * modules/uninorm/u32-normcmp-tests: Likewise.
32094         * modules/uninorm/u32-normcoll-tests: Likewise.
32095         * modules/unistdio/u8-asnprintf-tests: Likewise.
32096         * modules/unistdio/u8-vasnprintf-tests: Likewise.
32097         * modules/unistdio/u8-vasprintf-tests: Likewise.
32098         * modules/unistdio/u8-vsnprintf-tests: Likewise.
32099         * modules/unistdio/u8-vsprintf-tests: Likewise.
32100         * modules/unistdio/u16-asnprintf-tests: Likewise.
32101         * modules/unistdio/u16-vasnprintf-tests: Likewise.
32102         * modules/unistdio/u16-vasprintf-tests: Likewise.
32103         * modules/unistdio/u16-vsnprintf-tests: Likewise.
32104         * modules/unistdio/u16-vsprintf-tests: Likewise.
32105         * modules/unistdio/u32-asnprintf-tests: Likewise.
32106         * modules/unistdio/u32-vasnprintf-tests: Likewise.
32107         * modules/unistdio/u32-vasprintf-tests: Likewise.
32108         * modules/unistdio/u32-vsnprintf-tests: Likewise.
32109         * modules/unistdio/u32-vsprintf-tests: Likewise.
32110         * modules/unistdio/ulc-asnprintf-tests: Likewise.
32111         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
32112         * modules/unistdio/ulc-vasprintf-tests: Likewise.
32113         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
32114         * modules/unistdio/ulc-vsprintf-tests: Likewise.
32115         * modules/unistr/u8-check-tests: Likewise.
32116         * modules/unistr/u8-chr-tests: Likewise.
32117         * modules/unistr/u8-cmp-tests: Likewise.
32118         * modules/unistr/u8-cmp2-tests: Likewise.
32119         * modules/unistr/u8-cpy-alloc-tests: Likewise.
32120         * modules/unistr/u8-cpy-tests: Likewise.
32121         * modules/unistr/u8-mblen-tests: Likewise.
32122         * modules/unistr/u8-mbsnlen-tests: Likewise.
32123         * modules/unistr/u8-mbtouc-tests: Likewise.
32124         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
32125         * modules/unistr/u8-mbtoucr-tests: Likewise.
32126         * modules/unistr/u8-move-tests: Likewise.
32127         * modules/unistr/u8-next-tests: Likewise.
32128         * modules/unistr/u8-prev-tests: Likewise.
32129         * modules/unistr/u8-set-tests: Likewise.
32130         * modules/unistr/u8-stpcpy-tests: Likewise.
32131         * modules/unistr/u8-stpncpy-tests: Likewise.
32132         * modules/unistr/u8-strcat-tests: Likewise.
32133         * modules/unistr/u8-strcmp-tests: Likewise.
32134         * modules/unistr/u8-strcoll-tests: Likewise.
32135         * modules/unistr/u8-strcpy-tests: Likewise.
32136         * modules/unistr/u8-strdup-tests: Likewise.
32137         * modules/unistr/u8-strlen-tests: Likewise.
32138         * modules/unistr/u8-strmblen-tests: Likewise.
32139         * modules/unistr/u8-strmbtouc-tests: Likewise.
32140         * modules/unistr/u8-strncat-tests: Likewise.
32141         * modules/unistr/u8-strncmp-tests: Likewise.
32142         * modules/unistr/u8-strncpy-tests: Likewise.
32143         * modules/unistr/u8-strnlen-tests: Likewise.
32144         * modules/unistr/u8-to-u16-tests: Likewise.
32145         * modules/unistr/u8-to-u32-tests: Likewise.
32146         * modules/unistr/u8-uctomb-tests: Likewise.
32147         * modules/unistr/u16-check-tests: Likewise.
32148         * modules/unistr/u16-chr-tests: Likewise.
32149         * modules/unistr/u16-cmp-tests: Likewise.
32150         * modules/unistr/u16-cmp2-tests: Likewise.
32151         * modules/unistr/u16-cpy-alloc-tests: Likewise.
32152         * modules/unistr/u16-cpy-tests: Likewise.
32153         * modules/unistr/u16-mblen-tests: Likewise.
32154         * modules/unistr/u16-mbsnlen-tests: Likewise.
32155         * modules/unistr/u16-mbtouc-tests: Likewise.
32156         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
32157         * modules/unistr/u16-mbtoucr-tests: Likewise.
32158         * modules/unistr/u16-move-tests: Likewise.
32159         * modules/unistr/u16-next-tests: Likewise.
32160         * modules/unistr/u16-prev-tests: Likewise.
32161         * modules/unistr/u16-set-tests: Likewise.
32162         * modules/unistr/u16-stpcpy-tests: Likewise.
32163         * modules/unistr/u16-stpncpy-tests: Likewise.
32164         * modules/unistr/u16-strcat-tests: Likewise.
32165         * modules/unistr/u16-strcmp-tests: Likewise.
32166         * modules/unistr/u16-strcoll-tests: Likewise.
32167         * modules/unistr/u16-strcpy-tests: Likewise.
32168         * modules/unistr/u16-strdup-tests: Likewise.
32169         * modules/unistr/u16-strlen-tests: Likewise.
32170         * modules/unistr/u16-strmblen-tests: Likewise.
32171         * modules/unistr/u16-strmbtouc-tests: Likewise.
32172         * modules/unistr/u16-strncat-tests: Likewise.
32173         * modules/unistr/u16-strncmp-tests: Likewise.
32174         * modules/unistr/u16-strncpy-tests: Likewise.
32175         * modules/unistr/u16-strnlen-tests: Likewise.
32176         * modules/unistr/u16-to-u32-tests: Likewise.
32177         * modules/unistr/u16-to-u8-tests: Likewise.
32178         * modules/unistr/u16-uctomb-tests: Likewise.
32179         * modules/unistr/u32-check-tests: Likewise.
32180         * modules/unistr/u32-chr-tests: Likewise.
32181         * modules/unistr/u32-cmp-tests: Likewise.
32182         * modules/unistr/u32-cmp2-tests: Likewise.
32183         * modules/unistr/u32-cpy-alloc-tests: Likewise.
32184         * modules/unistr/u32-cpy-tests: Likewise.
32185         * modules/unistr/u32-mblen-tests: Likewise.
32186         * modules/unistr/u32-mbsnlen-tests: Likewise.
32187         * modules/unistr/u32-mbtouc-tests: Likewise.
32188         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
32189         * modules/unistr/u32-mbtoucr-tests: Likewise.
32190         * modules/unistr/u32-move-tests: Likewise.
32191         * modules/unistr/u32-next-tests: Likewise.
32192         * modules/unistr/u32-prev-tests: Likewise.
32193         * modules/unistr/u32-set-tests: Likewise.
32194         * modules/unistr/u32-stpcpy-tests: Likewise.
32195         * modules/unistr/u32-stpncpy-tests: Likewise.
32196         * modules/unistr/u32-strcat-tests: Likewise.
32197         * modules/unistr/u32-strcmp-tests: Likewise.
32198         * modules/unistr/u32-strcoll-tests: Likewise.
32199         * modules/unistr/u32-strcpy-tests: Likewise.
32200         * modules/unistr/u32-strdup-tests: Likewise.
32201         * modules/unistr/u32-strlen-tests: Likewise.
32202         * modules/unistr/u32-strmblen-tests: Likewise.
32203         * modules/unistr/u32-strmbtouc-tests: Likewise.
32204         * modules/unistr/u32-strncat-tests: Likewise.
32205         * modules/unistr/u32-strncmp-tests: Likewise.
32206         * modules/unistr/u32-strncpy-tests: Likewise.
32207         * modules/unistr/u32-strnlen-tests: Likewise.
32208         * modules/unistr/u32-to-u16-tests: Likewise.
32209         * modules/unistr/u32-to-u8-tests: Likewise.
32210         * modules/unistr/u32-uctomb-tests: Likewise.
32211         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
32212         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
32213         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
32214         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
32215         * modules/uniwidth/u8-strwidth-tests: Likewise.
32216         * modules/uniwidth/u8-width-tests: Likewise.
32217         * modules/uniwidth/u16-strwidth-tests: Likewise.
32218         * modules/uniwidth/u16-width-tests: Likewise.
32219         * modules/uniwidth/u32-strwidth-tests: Likewise.
32220         * modules/uniwidth/u32-width-tests: Likewise.
32221         * modules/uniwidth/width-tests: Likewise.
32222
32223 2010-05-18  Richard Jones  <rjones@redhat.com>
32224
32225         doc: users.txt: list hivex
32226         * users.txt: Add hivex.
32227
32228 2010-05-18  Richard Jones  <rjones@redhat.com>
32229
32230         doc: users.txt: list febootstrap
32231         * users.txt: Add febootstrap.
32232
32233 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
32234
32235         bootstrap: fix an error when gnulib is not used as a git submodule
32236         * build-aux/bootstrap (gnulib_path): If its length is zero then
32237         assign "gnulib" to it.
32238         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
32239
32240 2010-05-16  Bruno Haible  <bruno@clisp.org>
32241
32242         Avoid autoconf warnings about AM_ICONV.
32243         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
32244         2.64.
32245
32246 2010-05-16  Bruno Haible  <bruno@clisp.org>
32247
32248         absolute-header: Make the macro usable in more situations.
32249         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
32250         from gl_ABSOLUTE_HEADER.
32251         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
32252
32253 2010-05-16  James Youngman  <jay@gnu.org>
32254
32255         doc: update users.txt
32256         * users.txt: Add CSSC.
32257
32258 2010-05-16  Jim Meyering  <meyering@redhat.com>
32259
32260         init.sh: fix an error in the previous change; add more comments
32261         * tests/init.sh: Compare exit code in loop against 9, not 2.
32262         Patch by Bruno Haible.
32263         Make the two tests more similar by adding an empty "then" clause.
32264         Add comments.
32265
32266         init.sh: avoid unnecessary shell re-exec
32267         * tests/init.sh: Improve the re-exec-required check to first test the
32268         current shell.  If it passes the test, do not search for a shell that
32269         does pass, and do not re-exec.  This test is particularly contorted to
32270         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
32271         of $(...) evokes a syntax error and causes immediate shell exit with
32272         status 2.  Bruno Haible reported that the re-exec made it impossible
32273         to single-step through any init.sh-using script.
32274
32275 2010-05-16  Bruno Haible  <bruno@clisp.org>
32276
32277         Fix collision between gnulib's and libintl's printf replacements.
32278         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
32279         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
32280         (printf): When using GNU C, map the __printf__ function to rpl_printf
32281         via __asm__. When not using GNU C, define rpl_printf instead of
32282         __printf__.
32283         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
32284         commit.
32285         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
32286         commit.
32287         * m4/asm-underscore.m4: New file.
32288         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
32289         * modules/stdio (Files): Add m4/asm-underscore.m4.
32290         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
32291         Reported by Ben Pfaff.
32292
32293 2010-05-16  Bruno Haible  <bruno@clisp.org>
32294
32295         verify: Avoid skipping the test on openSUSE 11.0.
32296         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
32297
32298 2010-05-13  Bruno Haible  <bruno@clisp.org>
32299
32300         Avoid useless warnings from G++.
32301         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
32302         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
32303         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32304
32305 2010-05-11  Jim Meyering  <meyering@redhat.com>
32306
32307         maint.mk: tweak preceding change
32308         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
32309         regexps tighter by anchoring at EOL, and make the new group "shy"
32310         for slightly decreased overhead.
32311
32312 2010-05-11  Eric Blake  <eblake@redhat.com>
32313
32314         maint.mk: gnulib doesn't guarantee NSIG
32315         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
32316
32317 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32318
32319         test-pwrite.c: Remove unused variable declaration.
32320         * tests/test-pwrite.c (main): Remove read_buf declaration.
32321
32322         Remove useless test-pwrite.sh file.
32323         * tests/test-pwrite.sh: Delete file.
32324         * modules/pwrite-tests: Remove references.
32325         Reported by Bruno Haible.
32326
32327 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32328
32329         init.sh: fix a typo
32330         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
32331
32332 2010-05-10  Jim Meyering  <meyering@redhat.com>
32333
32334         maint.mk: avoid using a temporary file in the always-defined-macros check
32335         * top/maint.mk (.re-defmac): Remove rule.
32336         (gl_trap_): Remove definition.
32337         (sc_prohibit_always-defined_macros): Rewrite not to create and
32338         depend on a temporary file.  Instead, depend on GNU grep's ability
32339         to read a list of regular expressions from stdin when given "-f -".
32340
32341 2010-05-09  Bruno Haible  <bruno@clisp.org>
32342
32343         Update to GNU gettext 0.18, part 1.
32344         * m4/gettext.m4: Update to GNU gettext 0.18.
32345         * m4/intl.m4: Likewise.
32346         * m4/po.m4: Likewise.
32347         * modules/gettext (Files): Add m4/fcntl-o.m4.
32348         (configure.ac): Require gettext infrastructure from version 0.18.
32349
32350 2010-05-09  Jim Meyering  <meyering@redhat.com>
32351
32352         init.sh: enable MALLOC_PERTURB_
32353         * tests/init.sh: Enable glibc's malloc-perturbing option.
32354
32355         maint.mk: improve sc_cross_check_PATH_usage_in_tests
32356         With my recent change in init.sh from the two-line form:
32357             -#   : ${srcdir=.}
32358             -#   . "$srcdir/init.sh"; path_prepend_ .
32359             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
32360         I noticed that using the one-line form would cause this test
32361         to fail with a false-positive, or to stop working altogether,
32362         depending on whether help-version changed or all the tests did.
32363         * top/maint.mk (_hv_regex): Remove this definition.
32364         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
32365         (_hv_regex_strong): Use a stronger regex to check for conformance.
32366         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
32367         Give a separate diagnostic for lack of conforming use.
32368
32369         maint.mk: prohibit definition of symbols defined by gnulib
32370         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
32371         definition of symbols defined by gnulib.
32372
32373 2010-05-09  Bruno Haible  <bruno@clisp.org>
32374
32375         acl: Avoid test failure on Cygwin-hosted mingw.
32376         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
32377
32378 2010-05-09  Bruno Haible  <bruno@clisp.org>
32379
32380         error: Use system's fcntl function.
32381         * lib/error.c (fcntl): Undefine.
32382
32383 2010-05-09  Jim Meyering  <meyering@redhat.com>
32384
32385         verify: adjust formatting to be more consistent
32386         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
32387         argument-list '('s, and after one comma.
32388
32389 2010-05-09  Bruno Haible  <bruno@clisp.org>
32390
32391         error: More reliable output on mingw.
32392         * lib/error.c: Include <windows.h>.
32393         (is_open): New function.
32394         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
32395         defined.
32396
32397 2010-05-09  Bruno Haible  <bruno@clisp.org>
32398
32399         vasnprintf: Fix syntax errors in libintl build on mingw.
32400         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
32401         pad_ourselves and prec_ourselves after use.
32402
32403 2010-05-08  Bruno Haible  <bruno@clisp.org>
32404
32405         * lib/config.charset: Update comments for Cygwin 1.7.
32406         * lib/localcharset.c: Likewise.
32407
32408 2010-05-07  Jim Meyering  <meyering@redhat.com>
32409
32410         init.sh: improve comments
32411         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
32412         . "${srcdir=.}/init.sh"; path_prepend_ .
32413         Add a note about path_prepend_ and the alternative of using
32414         TESTS_ENVIRONMENT.
32415
32416 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32417
32418         exclude: Unescape hashed patterns in wildcard mode.
32419         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
32420         to the hash list.
32421         * tests/test-exclude8.sh: New test case.
32422         * modules/exclude-tests: Add new test.
32423
32424 2010-05-05  Eric Blake  <eblake@redhat.com>
32425
32426         verify: automate tests
32427         * modules/verify-tests: New module.
32428         * tests/test-verify.sh: New file.
32429         * tests/test-verify.c: Guard each negative test with a unique id.
32430         Also avoid warning about unused left hand of comma expressions.
32431
32432 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
32433
32434         Further improvements to verify.h, suggested by Eric Blake.
32435         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
32436         the GL_* versions, to avoid collision with OpenGL.
32437         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
32438         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
32439         than testing merely whether it's defined.
32440
32441         Modify verify.h to pacify gcc -Wredundant_decls.
32442         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
32443         These use the prefix "GL_" since they're likely to be useful elsewhere.
32444         We may need to break them out into a different .h file.
32445         (__COUNTER__): Define to 0 if the compiler doesn't support it.
32446         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
32447         of verify_function__.
32448
32449 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32450
32451         Tests for module pwrite.
32452         * modules/pwrite-tests: New file.
32453         * tests/test-pwrite.sh: New file.
32454         * tests/test-pwrite.c: New file.
32455
32456         New module pwrite.
32457         * lib/unistd.in.h (pwrite): New declaration.
32458         * lib/pwrite.c: New file, from glibc with modifications.
32459         * m4/pwrite.m4: New file.
32460         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
32461         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
32462         REPLACE_PWRITE.
32463         * modules/pwrite: New file.
32464         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
32465         REPLACE_PWRITE.
32466         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
32467         * doc/posix-functions/pwrite.texi: Mention the new module.
32468
32469 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32470
32471         pread: Update documentation.
32472         * doc/posix-functions/pread.texi: Mention the 'pread' module.
32473
32474 2010-05-04  Eric Blake  <eblake@redhat.com>
32475
32476         docs: update cygwin progress
32477         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
32478         this bug.
32479         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
32480         Added in cygwin 1.7.2.
32481         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
32482         Likewise.
32483         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
32484         Likewise.
32485         * doc/glibc-functions/dup3.texi (dup3): Likewise.
32486         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
32487         * doc/glibc-functions/accept4.texi (accept4): Likewise.
32488         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
32489         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
32490         Mention nproc module.
32491         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
32492         bug in cygwin 1.7.5 addition.
32493         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
32494         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
32495         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
32496         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
32497         1.7.5.
32498         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
32499         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
32500         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
32501         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
32502         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
32503         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
32504         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
32505         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
32506         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
32507         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
32508         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
32509         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
32510         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
32511         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
32512         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
32513         Likewise.
32514         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
32515         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
32516         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
32517         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
32518         Likewise.
32519         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
32520         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
32521         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
32522         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
32523         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
32524         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
32525         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
32526         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
32527         Likewise.
32528         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
32529         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
32530         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
32531         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
32532         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
32533         Likewise.
32534         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
32535         Likewise.
32536         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
32537         Likewise.
32538         * doc/glibc-functions/xdrrec_endofrecord.texi
32539         (xdrrec_endofrecord): Likewise.
32540         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
32541         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
32542         Likewise.
32543         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
32544         Likewise.
32545
32546 2010-05-04  Jim Meyering  <meyering@redhat.com>
32547
32548         gendocs.sh: make its "-s FILE" option more useful
32549         * build-aux/gendocs.sh: When honoring the -s FILE option, update
32550         $PACKAGE to reflect the probably-different basename of "FILE".
32551
32552 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32553
32554         bootstrap: don't ignore download_po_files failure
32555         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
32556         failure.
32557
32558 2010-05-03  Jim Meyering  <meyering@redhat.com>
32559
32560         maint.mk: allow to pass options to gendocs.sh
32561         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
32562         (gendocs_options_): New overridable variable.
32563
32564         gnu-web-doc-update: don't ignore configure or build failure
32565         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
32566
32567         announce-gen: backslash-escape '@'s in --help output
32568         * build-aux/announce-gen: Fix syntax errors.
32569
32570         maint.mk, announce-gen: allow project-specific announcement mail headers
32571         * top/maint.mk (translation_project_): Define default.
32572         (announcement_Cc_, announcement_mail_headers_): Likewise.
32573         (announcement): Invoke announce-gen with new --mail-headers option.
32574         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
32575
32576         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
32577         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
32578         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
32579         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
32580         line in the "err2" output file when running "make check" in verbose
32581         mode (i.e., with set -x enabled).
32582
32583 2010-05-03  Bruno Haible  <bruno@clisp.org>
32584
32585         wctob: Fix for weird platforms.
32586         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
32587         argument value.
32588
32589 2010-05-03  Jim Meyering  <meyering@redhat.com>
32590
32591         maint.mk: prohibit unwarranted use of <strings.h>
32592         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
32593         strings.h in a file that does not also use strcasecmp, strncasecmp,
32594         ffs or ffsll.
32595
32596         maint.mk: remove obsolete comments
32597         * top/maint.mk: Remove stale, commented-out rules.
32598
32599 2010-05-02  Bruno Haible  <bruno@clisp.org>
32600
32601         wcwidth: Declare also when it's aliased.
32602         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
32603         macro.
32604
32605 2010-05-02  Bruno Haible  <bruno@clisp.org>
32606
32607         Fix regression from 2010-04-25.
32608         * gnulib-tool (func_modules_transitive_closure): Check the status of
32609         all modules, not only of the tests that are of the form foo-tests where
32610         foo is a module.
32611
32612 2010-05-02  Bruno Haible  <bruno@clisp.org>
32613
32614         wctob: Work around nasty Cygwin 1.7.2 bug.
32615         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
32616         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
32617
32618 2010-05-01  Bruno Haible  <bruno@clisp.org>
32619
32620         fpurge: Sharper test.
32621         * tests/test-fpurge.c (main): Add one more ftell check.
32622         * modules/fpurge-tests (Depends-on): Add ftell.
32623         Suggested by Eric Blake.
32624
32625 2010-05-01  Bruno Haible  <bruno@clisp.org>
32626
32627         ftello: Another test.
32628         * tests/test-ftello3.c: New file.
32629         * modules/ftello-tests (Files): Add it.
32630         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32631         MOSTLYCLEANFILES.
32632
32633         ftell: Another test.
32634         * tests/test-ftell3.c: New file.
32635         * modules/ftell-tests (Files): Add it.
32636         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32637         MOSTLYCLEANFILES.
32638
32639 2010-05-01  Bruno Haible  <bruno@clisp.org>
32640
32641         ftell, ftello: Work around Solaris bug.
32642         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
32643         * lib/ftello.c: Include stdio-impl.h.
32644         (ftello): On Solaris, when _IOWRT is set, compute the result without
32645         looking at _IOREAD.
32646         * modules/ftello (Files): Add lib/stdio-impl.h.
32647         * doc/posix-functions/ftell.texi: Mention Solaris bug.
32648         * doc/posix-functions/ftello.texi: Likewise.
32649         Reported by Eric Blake.
32650
32651 2010-05-01  Bruno Haible  <bruno@clisp.org>
32652
32653         freading: Adapt to special meaning of _IOREAD flag on Solaris.
32654         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
32655         the _IOWRT flag is also set.
32656
32657 2010-05-01  Bruno Haible  <bruno@clisp.org>
32658
32659         Fix doc about a HP-UX stdio bug.
32660         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
32661         * doc/posix-functions/ftello.texi: Likewise.
32662
32663 2010-05-01  Bruno Haible  <bruno@clisp.org>
32664
32665         lseek test: Fix failure on Solaris.
32666         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
32667         output.
32668
32669 2010-04-30  Jim Meyering  <meyering@redhat.com>
32670
32671         bootstrap: don't ignore failure to generate po*/Makevars
32672         * build-aux/bootstrap (with_gettext): Don't ignore failure
32673         to create po/Makevars or runtime-po/Makevars.
32674
32675 2010-04-29  Eric Blake  <eblake@redhat.com>
32676
32677         headers: relax license to LGPLv2+
32678         * modules/fcntl-h (License): Relax license.
32679         * modules/getopt-posix (License): Likewise.
32680         * modules/locale (License): Likewise.
32681         * modules/math (License): Likewise.
32682         * modules/pty (License): Likewise.
32683         * modules/sched (License): Likewise.
32684         * modules/search (License): Likewise.
32685         * modules/spawn (License): Likewise.
32686         * modules/stdarg (License): Likewise.
32687         * modules/sysexits (License): Likewise.
32688
32689 2010-04-29  Jim Meyering  <meyering@redhat.com>
32690
32691         inttypes: relax license to LGPLv2+
32692         * modules/inttypes (License): Relax license.
32693
32694 2010-04-29  Simon Josefsson  <simon@josefsson.org>
32695
32696         * top/maint.mk (indent): Run twice to produce idempotent results.
32697
32698 2010-04-28  Bruno Haible  <bruno@clisp.org>
32699
32700         getdate: Generate getdate.c in the source directory.
32701         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
32702         MOSTLYCLEANFILES.
32703         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
32704
32705 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
32706
32707         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
32708         is not declared as a const *; avoid warnings in that case.
32709
32710 2010-04-28  Eric Blake  <eblake@redhat.com>
32711
32712         canonicalize-lgpl: avoid compiler warning
32713         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
32714         declaration' / 'extraneous semicolon' warning with some compilers.
32715         Reported by Andreas Gruenbacher.
32716
32717 2010-04-28  Jim Meyering  <meyering@redhat.com>
32718
32719         init.sh: ensure a more reliable exit status when exiting via trap
32720         * tests/init.sh (setup_): Don't rely on $? in signal handler.
32721         Inspired by patches from Dmitry V. Levin.
32722         Also trap on signal 3 (SIGQUIT).
32723
32724 2010-04-27  Bruno Haible  <bruno@clisp.org>
32725
32726         Update doc about utimes().
32727         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
32728         'utimens' module.
32729         Reported by Andreas Gruenbacher <agruen@suse.de>.
32730
32731 2010-04-27  Eric Blake  <eblake@redhat.com>
32732
32733         full-read, full-write: relax license
32734         * modules/full-read (License): Drop to LGPLv2+.
32735         * modules/full-write (License): Likewise.
32736         * modules/safe-read (License): Likewise.
32737         * modules/safe-write (License): Likewise.
32738
32739         pthread: mention library for linking
32740         * modules/pthread (Link): Mention $(LIB_PTHREAD).
32741
32742 2010-04-27  Jim Meyering  <meyering@redhat.com>
32743
32744         maint.mk: fix a bug introduced in last change
32745         * top/maint.mk (gl_assured_headers_): Now that all names are on
32746         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
32747         is not anchored to end of word, it should be adequate.
32748
32749         maint.mk: avoid side-effect in latest syntax-check
32750         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
32751         to run commands via $(shell...), and hence to incur cost only when
32752         the new rule is actually run.
32753
32754         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
32755         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
32756         and use that to create a regexp used to detect all #if HAVE_..._H uses.
32757         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
32758         (gl_assured_headers_, az_, AZ_): Define.
32759         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
32760
32761 2010-04-26  Jim Meyering  <jim@meyering.net>
32762             Bruno Haible  <bruno@clisp.org>
32763
32764         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
32765         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
32766         Prompted by an exchange with Gilles Espinasse.
32767
32768 2010-04-26  Jim Meyering  <meyering@redhat.com>
32769
32770         git-version-gen: aesthetic tweak
32771         * build-aux/git-version-gen: Use "$nl" rather than a literal,
32772         so that the command remains on a single line.
32773
32774 2010-04-26  Eric Blake  <eblake@redhat.com>
32775
32776         git-version-gen: allow use on EBCDIC hosts
32777         * build-aux/git-version-gen (dirty): Use literal rather than tying
32778         ourselves to ascii.
32779         Reported by Steve Goetze.
32780
32781 2010-04-25  Bruno Haible  <bruno@clisp.org>
32782
32783         netdb: Add support for GNULIB_POSIXCHECK.
32784         * lib/netdb.in.h: Include warn-on-use.h.
32785         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
32786         functions are used when GNULIB_POSIXCHECK is defined and the
32787         getaddrinfo module is not in use.
32788         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
32789         freeaddrinfo, gai_strerror, getnameinfo are declared.
32790         * modules/netdb (Depends-on): Add warn-on-use.
32791         (Makefile.am): Include warn-on-use.h in netdb.h.
32792
32793 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
32794
32795         build: avoid "make check" failure without .git/ directory
32796         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
32797         there is no .git/ directory.
32798
32799 2010-04-25  Bruno Haible  <bruno@clisp.org>
32800
32801         ptsname: Fix misuse of ttyname_r.
32802         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
32803         of errno.
32804
32805 2010-04-25  Bruno Haible  <bruno@clisp.org>
32806
32807         ttyname_r: Make it work on Solaris 10.
32808         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
32809         if the system function has the POSIX declaration. Test whether the
32810         function fails if the buffer is less than 128 bytes large.
32811         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
32812         system's ttyname_r function. Provide a reasonably large buffer.
32813         * modules/ttyname_r (Depends-on): Add extensions.
32814         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
32815
32816 2010-04-25  Bruno Haible  <bruno@clisp.org>
32817
32818         Use the 'extensions' module for some more functions on Solaris.
32819         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
32820         module.
32821         * doc/posix-functions/ctime_r.texi: Likewise.
32822         * doc/posix-functions/getgrgid_r.texi: Likewise.
32823         * doc/posix-functions/getgrnam_r.texi: Likewise.
32824         * doc/posix-functions/getpwnam_r.texi: Likewise.
32825         * doc/posix-functions/getpwuid_r.texi: Likewise.
32826         * doc/posix-functions/readdir_r.texi: Likewise.
32827         * doc/posix-functions/sigwait.texi: Likewise.
32828         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
32829         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
32830
32831 2010-04-25  Bruno Haible  <bruno@clisp.org>
32832
32833         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
32834         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
32835         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
32836         * lib/ttyname_r.c: Include <limits.h>.
32837         (ttyname_r): Define using the system's ttyname_r function, if it exists
32838         and not on Solaris.
32839         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
32840         set.
32841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
32842         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
32843         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
32844         Reported by Simon Josefsson.
32845
32846 2010-04-25  Bruno Haible  <bruno@clisp.org>
32847
32848         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
32849         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
32850         * doc/posix-functions/ctime_r.texi: Likewise.
32851         * doc/posix-functions/getgrgid_r.texi: Likewise.
32852         * doc/posix-functions/getgrnam_r.texi: Likewise.
32853         * doc/posix-functions/getlogin_r.texi: Likewise.
32854         * doc/posix-functions/getpwnam_r.texi: Likewise.
32855         * doc/posix-functions/getpwuid_r.texi: Likewise.
32856         * doc/posix-functions/readdir_r.texi: Likewise.
32857         * doc/posix-functions/sigwait.texi: Likewise.
32858         * doc/posix-functions/ttyname_r.texi: Likewise.
32859         Reported by Simon Josefsson.
32860
32861 2010-04-25  Bruno Haible  <bruno@clisp.org>
32862
32863         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
32864         * gnulib-tool (func_usage): Document that --with-*-tests options apply
32865         also to --create-testdir.
32866         (func_acceptable): Don't consider the status of *-tests modules here.
32867         (func_modules_transitive_closure): Consider it here, before including a
32868         test module.
32869         (func_import, func_create_testdir): Set inc_all_direct_tests,
32870         inc_all_indirect_tests.
32871         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
32872         --create-testdir and --create-megatestdir.
32873
32874 2010-04-25  Bruno Haible  <bruno@clisp.org>
32875
32876         gnulib-tool: Add --without-*-tests options.
32877         * gnulib-tool (func_usage): Document the --without-*-tests options.
32878         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
32879         excl_unportable_tests): New variables.
32880         Fail if they are specified with --import or --update.
32881         (func_acceptable): Respect the excl_*_tests variables.
32882         (func_import): Set the excl_*_tests variables to empty.
32883
32884 2010-04-25  Simon Josefsson  <simon@josefsson.org>
32885             Bruno Haible  <bruno@clisp.org>
32886
32887         Work around a MacOS X 10.4 bug with openpty.
32888         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
32889         * tests/test-openpty.c (main): Close the master side explicitly.
32890
32891 2010-04-25  Bruno Haible  <bruno@clisp.org>
32892
32893         strnlen: Fix a C++ test error on MacOS X and Solaris.
32894         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
32895         the function is not declared.
32896         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
32897         Simon Josefsson.
32898
32899 2010-04-24  Bruno Haible  <bruno@clisp.org>
32900
32901         Avoid a gcc warning.
32902         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
32903         of correct type for %08lx directive.
32904         Reported by Eric Blake.
32905
32906 2010-04-24  Bruno Haible  <bruno@clisp.org>
32907
32908         vasnprintf: Correct errno value in case of out-of-memory.
32909         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
32910         or sprintf. Use the errno value from SNPRINTF or sprintf.
32911         Reported by Ian Beckwith <ianb@erislabs.net>.
32912
32913 2010-04-24  Bruno Haible  <bruno@clisp.org>
32914
32915         ansi-c++-opt: Find correct compiler when cross-compiling.
32916         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
32917         AC_CHECK_PROGS.
32918         Reported by Simon Josefsson.
32919
32920 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
32921
32922         vc-list-files: Add support for subversion
32923         * build-aux/vc-list-files: Use "svn list" to generate the list of
32924         files controlled by subversion.
32925
32926 2010-04-23  Jim Meyering  <meyering@redhat.com>
32927
32928         vc-list-files tests: convert to use init.sh
32929         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
32930         path_prepend_.
32931         Use Exit, not exit.
32932         Use skip_ rather than open coding it.
32933         Remove trap set-up and compare definitions.
32934         * tests/test-vc-list-files-git.sh: Likewise.
32935         * modules/vc-list-files-tests (Files): Add tests/init.sh.
32936
32937 2010-04-22  Simon Josefsson  <simon@josefsson.org>
32938
32939         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
32940         backup files.
32941
32942 2010-04-21  Simon Josefsson  <simon@josefsson.org>
32943
32944         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
32945
32946 2010-04-20  Eric Blake  <eblake@redhat.com>
32947
32948         tests: be robust to ignored SIGPIPE
32949         * tests/test-select-in.sh: Consume all output.
32950         * tests/test-lseek.sh: Check correct exit status, while avoiding
32951         EPIPE.
32952
32953 2010-04-20  Simon Josefsson  <simon@josefsson.org>
32954             Bruno Haible  <bruno@clisp.org>
32955
32956         visibility: Don't use -fvisibility if it leads to a warning.
32957         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
32958         yes, don't pretend that visibility works if it leads to a warning.
32959         Reported by Mike Gran <spk121@yahoo.com>.
32960
32961 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
32962
32963         * build-aux/bootstrap: Use "git -h" for testing for supported options
32964         instead of "git --help".  The short-form option only shows a summary,
32965         and doesn't layout the full man page.  Grep for the full option name
32966         in the summary, too.
32967
32968 2010-04-19  Bruno Haible  <bruno@clisp.org>
32969
32970         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
32971         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
32972         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
32973         mention of RELOCATABLE_STRIP.
32974         Reported by Sylvain Beucler <beuc@beuc.net>.
32975
32976 2010-04-19  Bruno Haible  <bruno@clisp.org>
32977
32978         * lib/diffseq.h: Fix typo in comment.
32979         Reported by Eric Blake.
32980
32981 2010-04-19  Bruno Haible  <bruno@clisp.org>
32982
32983         ioctl: Move autoconf macro to a .m4 file.
32984         * m4/ioctl.m4: New file, extracted from modules/ioctl.
32985         * modules/ioctl (Files): Add it.
32986         (configure.ac): Simply invoke gl_FUNC_IOCTL.
32987         Reported by Ian Beckwith <ianb@erislabs.net>.
32988
32989 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
32990             Bruno Haible  <bruno@clisp.org>
32991
32992         diffseq: Accommodate use-case with abstract arrays.
32993         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
32994         is not defined.
32995         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
32996         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
32997
32998 2010-04-18  Bruno Haible  <bruno@clisp.org>
32999
33000         * doc/posix-headers/stdbool.texi: More precise wording.
33001
33002 2010-04-17  Jim Meyering  <meyering@redhat.com>
33003
33004         maint.mk: use gnu-style indentation in an embedded perl script
33005         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
33006         Rename variable: s/two/last_two_bytes/
33007
33008 2010-04-16  Eric Blake  <eblake@redhat.com>
33009
33010         test-stdbool: skip test that fails with Solaris CC
33011         * tests/test-stdbool.c (f): Skip test that causes compilation
33012         error under buggy C++ compiler.
33013         * lib/stdbool.in.h: Document the limitation.
33014         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
33015
33016         setenv: allow compilation with C++
33017         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
33018         register keyword.
33019
33020         stdint: allow test to pass with C++
33021         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
33022
33023         getopt: allow compilation with C++
33024         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
33025         struct.
33026         * lib/getopt.c (_getopt_internal_r): Use correct type.
33027         Reported by Dagobert Michelson, via Joel E. Denny.
33028
33029 2010-04-16  Bruno Haible  <bruno@clisp.org>
33030
33031         Override netdb.h always.
33032         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
33033         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
33034         Reported by Ludovic Courtès <ludo@gnu.org>.
33035
33036 2010-04-15  Bruno Haible  <bruno@clisp.org>
33037
33038         openpty: Fix mistake from 2010-03-21.
33039         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
33040         Reported by Simon Josefsson.
33041
33042 2010-04-15  Eric Blake  <eblake@redhat.com>
33043
33044         test-forkpty: fix expected signature
33045         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
33046         Reported by Simon Josefsson.
33047
33048 2010-04-15  Jim Meyering  <meyering@redhat.com>
33049
33050         maint.mk: texinfo_suffix_re_: correct the default regexp
33051         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
33052
33053         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
33054         make it configurable via texinfo_suffix_re_.
33055
33056 2010-04-14  Eric Blake  <eblake@redhat.com>
33057
33058         strtok_r: relax license to LGPLv2+
33059         * modules/strtok_r (License): Relax license.
33060         Reported by Matthias Bolte.
33061
33062 2010-04-14  Simon Josefsson  <simon@josefsson.org>
33063
33064         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
33065         version 1.4.4 by default instead of requiring the libgcrypt
33066         version used during build.  This makes it possible to use the
33067         application with older but still binary compatible libgcrypt
33068         versions.
33069
33070 2010-04-13  Eric Blake  <eblake@redhat.com>
33071
33072         getopt-gnu: match recent glibc fixes and posix ruling
33073         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
33074         '+' handling, when requesting extensions.
33075         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
33076         'W;' handling.
33077         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
33078         * doc/posix-functions/getopt.texi (getopt): Document this.
33079         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33080         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33081         Likewise.
33082
33083         getopt: merge bug fixes from glibc
33084         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
33085         diagnostics.  Honor '+:' correctly.  Reject ';'.
33086
33087         getopt-posix: detect MacOS bug
33088         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
33089         optind when missing a required argument.
33090         * doc/posix-functions/getopt.texi (getopt): Document the bug.
33091         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33092         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33093         Likewise.
33094
33095         getopt-posix: avoid spurious failure on Solaris
33096         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
33097         an indicator that setting optind=1 is sufficient for reset.
33098
33099         getopt-posix: avoid spurious failure on FreeBSD
33100         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
33101         in POSIX mode, since the m4 test uses it.
33102
33103         gnulib-tool: silence warning on BSD sh
33104         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
33105
33106 2010-04-13  Jim Meyering  <meyering@redhat.com>
33107
33108         doc: users.txt: GNU patch now uses gnulib
33109         * users.txt: Add patch.
33110
33111 2010-04-12  Jim Meyering  <meyering@redhat.com>
33112
33113         maint.mk: generate more concise timing data for syntax-check rules
33114         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
33115         " done" from each line that reports a syntax-check test duration.
33116
33117 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
33118
33119         git-version-gen: use "git update-index..." rather than "git status"
33120         * build-aux/git-version-gen: Use git update-index --refresh, not
33121         "git status".  With some versions of git, "git status" would fail
33122         to update the index and result in an unwarranted "-dirty" suffix.
33123
33124 2010-04-11  Jim Meyering  <meyering@redhat.com>
33125
33126         openat: correct formatting (no semantic change)
33127         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
33128         Suggested by Bruno Haible.
33129
33130 2010-04-11  Bruno Haible  <bruno@clisp.org>
33131
33132         Stricter declaration checking in testdirs.
33133         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33134         If for_tests is true, augment AM_CPPFLAGS to define
33135         GNULIB_STRICT_CHECKING.
33136         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
33137         GNULIB_STRICT_CHECKING is defined, verify that the function is
33138         declared.
33139
33140 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
33141             Bruno Haible  <bruno@clisp.org>
33142
33143         libunistring: Improve configure output.
33144         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
33145         Don't say "consider installing GNU libunistring" when checking again
33146         with libiconv.
33147
33148 2010-04-11  Bruno Haible  <bruno@clisp.org>
33149
33150         libunistring: Correct value of $LTLIBUNISTRING.
33151         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
33152         correct the value of $LTLIBUNISTRING.
33153
33154 2010-04-11  Bruno Haible  <bruno@clisp.org>
33155
33156         havelib: Add static libraries to LIBS in the right order.
33157         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
33158         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
33159
33160 2010-04-11  Bruno Haible  <bruno@clisp.org>
33161
33162         libunistring: Detect libunistring also when it depends on libiconv.
33163         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
33164         the second AC_LIB_HAVE_LINKFLAGS invocation.
33165
33166 2010-04-11  James Youngman  <jay@gnu.org>
33167
33168         close-stream: declare local scalars to be "const"
33169         * lib/close-stream.c (close_stream): Make boolean variables const
33170         to document the fact that we set but do not change them.
33171
33172 2010-04-11  Bruno Haible  <bruno@clisp.org>
33173
33174         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
33175
33176 2010-04-11  Jim Meyering  <meyering@redhat.com>
33177
33178         maint.mk: don't include dist-check.mk
33179         * top/maint.mk: Remove bogus include directive.
33180
33181         maint.mk: improve empty-line-at-EOF check
33182         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
33183         solution, rather than tail+Perl-based one.  The latter would read
33184         a few kilobytes from the end of each file, and did not handle empty
33185         files properly.
33186
33187         maint.mk: print the elapsed time for each syntax-check rule
33188         * top/maint.mk (sc_m_rules_): Save start time in a file.
33189         (sc_z_rules_): New rules: remove temp file and print elapsed time.
33190         (local-check): Interpose the .z rules
33191
33192 2010-04-11  Jim Meyering  <meyering@redhat.com>
33193
33194         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
33195         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
33196         empty file with one that ends in an empty line.
33197
33198 2010-04-10  Bruno Haible  <bruno@clisp.org>
33199
33200         mkdir: Make it work on mingw64.
33201         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
33202         * lib/mkdir.c: Update comment.
33203         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
33204
33205 2010-04-10  Bruno Haible  <bruno@clisp.org>
33206
33207         Don't override improved macro from newer autoconf.
33208         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
33209         autoconf >= 2.62.
33210         Reported by Joel E. Denny <jdenny@clemson.edu>.
33211
33212 2010-04-10  Jim Meyering  <meyering@redhat.com>
33213
33214         maint.mk: new syntax-check rule: prohibit empty lines at end of file
33215         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
33216
33217         maint.mk: correct a diagnostic
33218         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
33219         in diagnostic; now use $prohibit.
33220
33221 2010-04-10  Bruno Haible  <address@hidden>
33222
33223         fchownat: Fix a C++ test error on Solaris 8.
33224         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
33225         the function does not exist.
33226
33227 2010-04-10  Bruno Haible  <bruno@clisp.org>
33228
33229         vasnprintf: Add more tests.
33230         * tests/test-vasnprintf-posix.c: Include <errno.h>.
33231         (test_function): Test converting an invalid wide string.
33232
33233         vasnprintf: Correct handling of unconvertible wide string arguments.
33234         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
33235         VASNPRINTF.
33236         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
33237         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
33238         smaller than the expected maximum need for the directive. Set errno to
33239         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
33240         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
33241         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
33242         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
33243         * modules/vasnprintf (Files): Add m4/printf.m4.
33244         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33245
33246 2010-04-10  Bruno Haible  <bruno@clisp.org>
33247
33248         vasnprintf: Fix crash in %ls directive.
33249         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
33250         string is passed as argument to %ls, with no precision and no width.
33251         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33252
33253 2010-04-10  Bruno Haible  <bruno@clisp.org>
33254
33255         vasnprintf: Fix multiple test failures on mingw.
33256         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
33257         _snprintf, or snwprintf, not _snwprintf.
33258
33259 2010-04-10  Bruno Haible  <bruno@clisp.org>
33260
33261         write: Fix a C++ test error on mingw.
33262         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
33263
33264 2010-04-10  Bruno Haible  <bruno@clisp.org>
33265
33266         vasnprintf test: Reduce code duplication.
33267         * tests/test-vasnprintf.c (test_function): New function, extracted from
33268         test_vasnprintf.
33269         (test_vasnprintf, test_asnprintf): Invoke it.
33270
33271 2010-04-10  Bruno Haible  <bruno@clisp.org>
33272
33273         strnlen: Fix warning in C++ mode on MacOS X.
33274         * lib/string.in.h (strnlen): Use the modern idiom.
33275         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
33276         defining strnlen as a macro already in <config.h>.
33277         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33278         REPLACE_STRNLEN.
33279         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
33280         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33281
33282 2010-04-08  James Youngman  <jay@gnu.org>
33283
33284         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
33285         the example.
33286
33287 2010-04-09  Jim Meyering  <meyering@redhat.com>
33288
33289         maint.mk: print better diagnostic when there is no $(_hv_file)
33290         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
33291         announce that when $(_hv_file) (aka help-version) does not exist.
33292
33293         init.sh: run tr in the "C" locale to avoid multibyte interpretation
33294         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
33295         not try to interpret its random input bytes.  Jarno Rajahalme reported
33296         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
33297         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
33298         (mktempd_): Likewise, just in case.
33299
33300         ftruncate: add two years to projected module removal date: 2012
33301         * m4/ftruncate.m4: Adjust comments.
33302
33303         ftruncate: mark module as obsolete; even MinGW provides it, now
33304         * modules/ftruncate (Status): Obsolete.
33305         (Notice): Say that.
33306         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
33307         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
33308
33309 2010-04-08  Bruno Haible  <bruno@clisp.org>
33310
33311         Fix side effects from tests-related modules.
33312         * modules/dprintf-posix (Comment): New section.
33313         * modules/fprintf-posix (Comment): Likewise.
33314         * modules/obstack-printf-posix (Comment): Likewise.
33315         * modules/printf-posix (Comment): Likewise.
33316         * modules/snprintf-posix (Comment): Likewise.
33317         * modules/sprintf-posix (Comment): Likewise.
33318         * modules/vasnprintf-posix (Comment): Likewise.
33319         * modules/vasprintf-posix (Comment): Likewise.
33320         * modules/vdprintf-posix (Comment): Likewise.
33321         * modules/vfprintf-posix (Comment): Likewise.
33322         * modules/vprintf-posix (Comment): Likewise.
33323         * modules/vsnprintf-posix (Comment): Likewise.
33324         * modules/vsprintf-posix (Comment): Likewise.
33325         * modules/xprintf-posix (Comment): Likewise.
33326         * modules/xvasprintf-posix (Comment): Likewise.
33327         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
33328         * modules/floorf-tests (Depends-on): Likewise.
33329         * modules/round-tests (Depends-on): Likewise.
33330         * modules/roundf-tests (Depends-on): Likewise.
33331         * modules/trunc-tests (Depends-on): Likewise.
33332         * modules/truncf-tests (Depends-on): Likewise.
33333         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
33334         'fprintf-posix' module is not present.
33335         * tests/test-floorf2.c (check): Likewise.
33336         * tests/test-trunc2.c (check): Likewise.
33337         * tests/test-truncf2.c (check): Likewise.
33338         * tests/test-round2.c (equal): Likewise.
33339         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33340
33341 2010-04-07  Karl Berry  <karl@gnu.org>
33342
33343         * config/srclist.txt,
33344         * config/srclistvars.sh,
33345         * config/srclist-update: doc fixes.
33346
33347 2010-04-07  Jim Meyering  <meyering@redhat.com>
33348
33349         maint.mk: add a PATH crosschecking syntax-check rule
33350         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
33351         Useful if you use a test like the one in help-version (coreutils,
33352         diffutils, grep, gzip) that ensures $(VERSION) matches what is
33353         printed by prog --version.
33354
33355 2010-04-06  Bruno Haible  <bruno@clisp.org>
33356
33357         Fix link error on mingw.
33358         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
33359         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
33360
33361 2010-04-06  Bruno Haible  <bruno@clisp.org>
33362
33363         Assume rmdir exists.
33364         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
33365
33366 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
33367
33368         doc: update users.txt
33369         * users.txt: Add gcal.
33370
33371 2010-04-06  Jim Meyering  <meyering@redhat.com>
33372
33373         init.sh: simply unset TMPDIR rather than risking env -i
33374         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
33375         although it probably works fine on all Unix-based systems, some
33376         systems (Cygwin?) cannot tolerate a totally cleared environment.
33377         Suggestion from Eric Blake.
33378
33379 2010-04-06  Jim Meyering  <meyering@redhat.com>
33380
33381         init.sh: portability fix: use env's POSIX-specified -i option not -u
33382         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
33383         than unportable env -u.  Solaris 5.11's env lacks support for -u.
33384
33385 2010-04-05  Bruno Haible  <bruno@clisp.org>
33386
33387         btowc: Work around Cygwin 1.7.2 bug.
33388         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
33389         does not map NUL to 0.
33390         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
33391
33392 2010-04-05  Bruno Haible  <bruno@clisp.org>
33393
33394         Make the multithread modules work on Cygwin 1.7.2.
33395         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
33396         imported symbols can be declared weak, so that it returns "no" on
33397         Cygwin 1.7.2.
33398
33399 2010-04-05  Bruno Haible  <bruno@clisp.org>
33400
33401         Use the module 'strncat'.
33402         * modules/unistr/u8-strncat (Depends-on): Add strncat.
33403
33404         Tests for module 'strncat'.
33405         * modules/strncat-tests: New file.
33406         * tests/test-strncat.c: New file.
33407
33408         New module 'strncat'.
33409         * lib/string.in.h (strncat): New declaration.
33410         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
33411         * m4/strncat.m4: New file, based on m4/memchr.m4.
33412         * modules/strncat: New file.
33413         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
33414         is declared.
33415         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
33416         REPLACE_STRNCAT.
33417         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
33418         REPLACE_STRNCAT.
33419         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
33420         module.
33421         * tests/test-string-c++.cc: Check signature of strncat.
33422
33423 2010-04-05  Jim Meyering  <meyering@redhat.com>
33424
33425         xstrtoumax-tests: convert to use init.sh
33426         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
33427         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33428         Use Exit, not exit.
33429         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33430
33431         xstrtoimax-tests: convert to use init.sh
33432         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
33433         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33434         Use Exit, not exit.
33435         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33436
33437 2010-04-05  Bruno Haible  <bruno@clisp.org>
33438
33439         sys_socket: Avoid #define replacements in C++ mode.
33440         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
33441         warning to the function if possible, rather than #defining the symbol
33442         to a dysfunctional alias.
33443
33444 2010-04-05  Bruno Haible  <bruno@clisp.org>
33445
33446         fseeko: Fix C++ test error on mingw.
33447         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
33448         gl_FUNC_FSEEKO.
33449         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
33450         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
33451         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
33452         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
33453
33454 2010-04-05  Bruno Haible  <bruno@clisp.org>
33455
33456         duplocale: Improve test output.
33457         * tests/test-duplocale.c (main): Print reason for skipped test.
33458
33459 2010-04-05  Bruno Haible  <bruno@clisp.org>
33460
33461         Assume rmdir exists.
33462         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
33463         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
33464
33465 2010-04-05  Bruno Haible  <bruno@clisp.org>
33466
33467         Fix link error on Solaris 8 with cc.
33468         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
33469
33470 2010-04-05  Bruno Haible  <bruno@clisp.org>
33471
33472         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33473         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
33474
33475 2010-04-05  Bruno Haible  <bruno@clisp.org>
33476
33477         vasprintf: Update documentation.
33478         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
33479
33480 2010-04-05  Bruno Haible  <bruno@clisp.org>
33481
33482         ptsname: Improve test.
33483         * tests/test-ptsname.c (main): Also try the various master names of BSD
33484         systems.
33485
33486 2010-04-05  Bruno Haible  <bruno@clisp.org>
33487
33488         memchr: Avoid a possible C++ test error.
33489         * lib/string.in.h (memchr): Provide declaration if function is missing.
33490         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
33491         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
33492         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
33493         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
33494
33495 2010-04-05  Bruno Haible  <bruno@clisp.org>
33496
33497         strtok_r: Improve idiom.
33498         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
33499         AC_LIBOBJ is used.
33500
33501 2010-04-05  Bruno Haible  <bruno@clisp.org>
33502
33503         strdup: Improve idiom.
33504         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
33505         AC_LIBOBJ is used.
33506         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
33507         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
33508         when AC_LIBOBJ is used.
33509
33510 2010-04-05  Bruno Haible  <bruno@clisp.org>
33511
33512         mbsinit, mbrtowc, wcrtomb: Improve idioms.
33513         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
33514         don't set REPLACE_MBSINIT to 1.
33515         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
33516         don't set REPLACE_MBRTOWC to 1.
33517         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
33518         exist, don't set REPLACE_MBSRTOWCS to 1.
33519         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
33520         exist, don't set REPLACE_MBSNRTOWCS to 1.
33521         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
33522         don't set REPLACE_WCRTOMB to 1.
33523         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
33524         exist, don't set REPLACE_WCSRTOMBS to 1.
33525         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
33526         exist, don't set REPLACE_WCSNRTOMBS to 1.
33527
33528 2010-04-05  Bruno Haible  <bruno@clisp.org>
33529
33530         ldexpl: Improve idiom.
33531         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
33532         make sure to set HAVE_DECL_LDEXPL to 0.
33533
33534 2010-04-05  Jim Meyering  <meyering@redhat.com>
33535
33536         xstrtol-tests: convert to use init.sh
33537         * modules/xstrtol-tests (Files): Add tests/init.sh.
33538         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33539         Use Exit, not exit.
33540         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33541
33542         atexit-tests: convert to use init.sh
33543         * modules/atexit-tests (Files): Add tests/init.sh.
33544         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33545         Use Exit, not exit.
33546         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33547
33548         init.sh: fix typo
33549         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
33550
33551         init.sh: make it easier for a test script to write to the tty, ...
33552         when using automake's parallel-tests mode.
33553         * tests/init.sh (stderr_fileno_): Define overridable variable.
33554         (warn_): New function, to use it.
33555         (fail_, skip_, framework_failure_): Use warn_.
33556
33557 2010-04-04  Bruno Haible  <bruno@clisp.org>
33558
33559         btowc: Avoid warning.
33560         * lib/btowc.c: Include <stdlib.h>.
33561         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
33562
33563 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33564             Bruno Haible  <bruno@clisp.org>
33565
33566         wchar: Port to NetBSD 1.5.
33567         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
33568         * lib/wctype.in.h (WEOF): Likewise.
33569
33570 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33571             Bruno Haible  <bruno@clisp.org>
33572
33573         Port extended stdio to NetBSD 1.5.
33574         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
33575         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
33576         older.
33577
33578 2010-04-04  Bruno Haible  <bruno@clisp.org>
33579
33580         string: Remove unused substitution.
33581         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
33582         HAVE_DECL_STRERROR.
33583         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
33584
33585 2010-04-04  Bruno Haible  <bruno@clisp.org>
33586
33587         strtod: Avoid a possible C++ test error.
33588         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
33589         set REPLACE_STRTOD.
33590
33591 2010-04-04  Bruno Haible  <bruno@clisp.org>
33592
33593         strerror: Update documentation.
33594         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
33595
33596 2010-04-04  Bruno Haible  <bruno@clisp.org>
33597
33598         stdio: Fix some C++ test errors on Solaris 8 with GCC.
33599         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
33600         _GL_CXXALIAS_SYS_CAST.
33601
33602 2010-04-04  Bruno Haible  <bruno@clisp.org>
33603
33604         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33605         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
33606         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
33607         REPLACE_FREXPL to 1.
33608         * doc/posix-functions/frexpl.texi: Update documentation.
33609
33610 2010-04-04  Bruno Haible  <bruno@clisp.org>
33611
33612         math: Fix some C++ test errors on Solaris 8 and Cygwin.
33613         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
33614
33615 2010-04-04  Bruno Haible  <bruno@clisp.org>
33616
33617         Implement nanosleep for native Windows.
33618         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
33619
33620 2010-04-04  Bruno Haible  <bruno@clisp.org>
33621
33622         math: Fix some C++ test errors on Solaris 8.
33623         * lib/math.in.h (truncf, trunc): Use simpler idiom.
33624
33625 2010-04-04  Bruno Haible  <bruno@clisp.org>
33626
33627         math: Fix some C++ test errors on Cygwin.
33628         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
33629         truncl): Provide declaration if the system does not have it.
33630         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
33631         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
33632         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
33633         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
33634         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
33635         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
33636         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
33637         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
33638         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
33639         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
33640         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
33641         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
33642         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
33643         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
33644         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
33645         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
33646         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
33647         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33648         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33649         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
33650         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33651         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33652
33653 2010-04-04  Bruno Haible  <bruno@clisp.org>
33654
33655         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
33656         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
33657         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
33658         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33659         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33660         * m4/isinf.m4 (gl_ISINF): Likewise.
33661         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
33662
33663 2010-04-04  Bruno Haible  <bruno@clisp.org>
33664
33665         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
33666         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
33667
33668 2010-04-04  Bruno Haible  <bruno@clisp.org>
33669
33670         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
33671         * modules/tmpfile (configure.ac): Update.
33672
33673         tmpfile: Fix C++ test error on mingw.
33674         * lib/stdio.in.h (tmpfile): New declaration.
33675         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
33676         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
33677         * modules/tmpfile (Depends-on): Add stdio.
33678         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
33679         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
33680         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
33681         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
33682         REPLACE_TMPFILE.
33683         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
33684
33685 2010-04-04  Bruno Haible  <bruno@clisp.org>
33686
33687         ioctl: Fix C++ test error on mingw.
33688         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
33689         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
33690         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
33691
33692 2010-04-03  Bruno Haible  <bruno@clisp.org>
33693
33694         wcwidth: Fix C++ test error on mingw.
33695         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
33696         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
33697         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
33698
33699 2010-04-03  Bruno Haible  <bruno@clisp.org>
33700
33701         nanosleep: Fix C++ test error on mingw.
33702         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
33703         * lib/time.in.h (nanosleep): Use modern idiom.
33704         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
33705         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
33706         REPLACE_NANOSLEEP to 1.
33707         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
33708         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
33709
33710 2010-04-03  Bruno Haible  <bruno@clisp.org>
33711
33712         strptime: Fix C++ test error on mingw.
33713         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
33714         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
33715         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
33716         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
33717         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
33718         not REPLACE_STRPTIME.
33719         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
33720         REPLACE_STRPTIME.
33721
33722 2010-04-03  Bruno Haible  <bruno@clisp.org>
33723
33724         timegm: Fix C++ test error on mingw.
33725         * lib/time.in.h (timegm): Use modern idiom.
33726         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
33727         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
33728         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
33729         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
33730
33731 2010-04-03  Bruno Haible  <bruno@clisp.org>
33732
33733         timegm: Assume declaration if function exists.
33734         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
33735         if it exists. Don't clobber ac_cv_func_timegm.
33736
33737 2010-04-03  Bruno Haible  <bruno@clisp.org>
33738
33739         time_r: Fix C++ test error on mingw.
33740         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
33741         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
33742         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
33743         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
33744         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
33745
33746 2010-04-03  Bruno Haible  <bruno@clisp.org>
33747
33748         time_r: Minor updates.
33749         * modules/time_r (Description): Mention the provided functions.
33750         * lib/time_r.c: Don't include <string.h>.
33751         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
33752         * doc/posix-functions/localtime_r.texi: Likewise.
33753
33754 2010-04-03  Bruno Haible  <bruno@clisp.org>
33755
33756         time: Fix regression introduced on 2010-03-08.
33757         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
33758         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
33759
33760 2010-04-03  Jim Meyering  <meyering@redhat.com>
33761
33762         maint.mk: don't silently disable project-specific syntax-check rules
33763         * top/maint.mk (_prohibit_regexp): Define, to help people realize
33764         that they need to convert their project-specific syntax-check rules
33765         to use the new _sc_search_regexp.
33766
33767 2010-04-03  Bruno Haible  <bruno@clisp.org>
33768
33769         fchdir: Fix regression introduced on 2010-03-08.
33770         * lib/unistd.in.h (fchdir): Fix declaration.
33771         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
33772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
33773         REPLACE_FCHDIR.
33774         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
33775         REPLACE_FCHDIR.
33776
33777 2010-04-03  Bruno Haible  <bruno@clisp.org>
33778
33779         getpagesize: Fix C++ test error on mingw.
33780         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
33781         system does not declare the function.
33782         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
33783         declared.
33784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33785         HAVE_DECL_GETPAGESIZE.
33786         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
33787
33788 2010-04-03  Bruno Haible  <bruno@clisp.org>
33789
33790         stdio: Make C++ tests work on mingw.
33791         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
33792         does not declare the function.
33793
33794 2010-04-03  Bruno Haible  <bruno@clisp.org>
33795
33796         ftello: Fix C++ test error on mingw.
33797         * lib/stdio.in.h (ftello): Use modern idiom.
33798         * lib/ftello.c (ftello): Renamed from rpl_ftello.
33799         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
33800         is missing and that it needs to be replaced.
33801         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
33802         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
33803         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
33804
33805 2010-04-03  Bruno Haible  <bruno@clisp.org>
33806
33807         fseeko: Fix C++ test error on mingw.
33808         * lib/stdio.in.h (fseeko): Use modern idiom.
33809         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
33810         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
33811         is missing and that it needs to be replaced.
33812         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
33813         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
33814         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
33815
33816 2010-04-03  Bruno Haible  <bruno@clisp.org>
33817
33818         mkstemp: Fix C++ test error on mingw.
33819         * lib/stdlib.in.h (mkstemp): Use modern idiom.
33820         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
33821         function is missing and that it needs to be replaced.
33822         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
33823         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
33824
33825 2010-04-03  Bruno Haible  <bruno@clisp.org>
33826
33827         stpncpy: Fix C++ test error on mingw.
33828         * lib/string.in.h (stpncpy): Use modern idiom.
33829         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
33830         function is missing and that it needs to be replaced.
33831         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33832         REPLACE_STPNCPY.
33833         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
33834
33835 2010-04-03  Bruno Haible  <bruno@clisp.org>
33836
33837         sys_stat: Fix C++ test error on mingw.
33838         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
33839         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
33840
33841 2010-04-03  Bruno Haible  <bruno@clisp.org>
33842
33843         pty: Update doc.
33844         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
33845
33846 2010-04-03  Bruno Haible  <bruno@clisp.org>
33847
33848         unistd: Fix C++ test error on mingw.
33849         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
33850
33851 2010-04-03  Bruno Haible  <bruno@clisp.org>
33852
33853         Update doc regarding mingw.
33854         * doc/glibc-functions/openpty.texi: Update regarding mingw.
33855         * doc/glibc-functions/login_tty.texi: Likewise.
33856         * doc/glibc-functions/forkpty.texi: Likewise.
33857
33858 2010-04-03  Bruno Haible  <bruno@clisp.org>
33859
33860         stdlib: Avoid compilation failure of c-strtold on mingw.
33861         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
33862
33863 2010-04-03  Bruno Haible  <bruno@clisp.org>
33864
33865         locale: Make C++ tests work on Cygwin and mingw.
33866         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
33867         cannot provide the function.
33868         Reported by Simon Josefsson.
33869
33870 2010-04-03  Bruno Haible  <bruno@clisp.org>
33871
33872         localename: Port to MacOS X 10.6.
33873         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
33874         memory layout of the locales in MacOS X 10.6 as well.
33875         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
33876
33877 2010-04-02  Bruno Haible  <bruno@clisp.org>
33878
33879         gnulib-tool: Ensure that long-running tests are executed last.
33880         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
33881         running tests after the one for the other tests.
33882
33883 2010-04-02  Bruno Haible  <bruno@clisp.org>
33884
33885         gnulib-tool: Ensure the tests in the main directory are executed first.
33886         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
33887         start with the current directory.
33888
33889 2010-04-02  Bruno Haible  <bruno@clisp.org>
33890
33891         Tests for module 'havelib', moved here from GNU gettext.
33892         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
33893         modifications.
33894         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
33895         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
33896         with modifications.
33897         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
33898         modifications.
33899         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
33900         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
33901         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
33902         with modifications.
33903         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
33904         with modifications.
33905         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
33906         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
33907         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
33908         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
33909         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
33910         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
33911         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
33912         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
33913         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
33914         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
33915         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
33916         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
33917         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
33918         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
33919         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
33920         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
33921         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
33922         with modifications.
33923         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
33924         with modifications.
33925         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
33926         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
33927         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
33928         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
33929         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
33930         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
33931         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
33932         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
33933         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
33934         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
33935         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
33936         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
33937         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
33938         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
33939         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
33940         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
33941         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
33942         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
33943         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
33944         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
33945         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
33946         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
33947         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
33948         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
33949         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
33950         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
33951         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
33952         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
33953         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
33954         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
33955         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
33956         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
33957         * tests/havelib/rpathx/rpathx.c: New file, from
33958         gettext/autoconf-lib-link.
33959         * tests/havelib/rpathx/Makefile.am: New file, from
33960         gettext/autoconf-lib-link.
33961         * tests/havelib/rpathx/configure.ac: New file, from
33962         gettext/autoconf-lib-link with modifications.
33963         * tests/havelib/rpathy/rpathy.c: New file, from
33964         gettext/autoconf-lib-link.
33965         * tests/havelib/rpathy/Makefile.am: New file, from
33966         gettext/autoconf-lib-link.
33967         * tests/havelib/rpathy/configure.ac: New file, from
33968         gettext/autoconf-lib-link with modifications.
33969         * tests/havelib/rpathz/rpathz.c: New file, from
33970         gettext/autoconf-lib-link.
33971         * tests/havelib/rpathz/Makefile.am: New file, from
33972         gettext/autoconf-lib-link.
33973         * tests/havelib/rpathz/configure.ac: New file, from
33974         gettext/autoconf-lib-link with modifications.
33975         * tests/havelib/rpathlx/usex.c: New file, from
33976         gettext/autoconf-lib-link.
33977         * tests/havelib/rpathlx/Makefile.am: New file, from
33978         gettext/autoconf-lib-link.
33979         * tests/havelib/rpathlx/configure.ac: New file, from
33980         gettext/autoconf-lib-link with modifications.
33981         * tests/havelib/rpathly/usey.c: New file, from
33982         gettext/autoconf-lib-link.
33983         * tests/havelib/rpathly/Makefile.am: New file, from
33984         gettext/autoconf-lib-link.
33985         * tests/havelib/rpathly/configure.ac: New file, from
33986         gettext/autoconf-lib-link with modifications.
33987         * tests/havelib/rpathlz/usez.c: New file, from
33988         gettext/autoconf-lib-link.
33989         * tests/havelib/rpathlz/Makefile.am: New file, from
33990         gettext/autoconf-lib-link.
33991         * tests/havelib/rpathlz/configure.ac: New file, from
33992         gettext/autoconf-lib-link with modifications.
33993         * tests/havelib/rpathlyx/usey.c: New file, from
33994         gettext/autoconf-lib-link.
33995         * tests/havelib/rpathlyx/Makefile.am: New file, from
33996         gettext/autoconf-lib-link.
33997         * tests/havelib/rpathlyx/configure.ac: New file, from
33998         gettext/autoconf-lib-link with modifications.
33999         * tests/havelib/rpathlzyx/usez.c: New file, from
34000         gettext/autoconf-lib-link.
34001         * tests/havelib/rpathlzyx/Makefile.am: New file, from
34002         gettext/autoconf-lib-link.
34003         * tests/havelib/rpathlzyx/configure.ac: New file, from
34004         gettext/autoconf-lib-link with modifications.
34005         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
34006         with modifications.
34007
34008 2010-04-02  Bruno Haible  <bruno@clisp.org>
34009
34010         gnulib-tool: Create distributed built sources also for the tests.
34011         * gnulib-tool (func_create_testdir): Also generate distributed built
34012         sources in the tests directory.
34013
34014 2010-04-02  Bruno Haible  <bruno@clisp.org>
34015
34016         gnulib-tool: Obey user's environment variables.
34017         * gnulib-tool (func_create_testdir): When creating built sources,
34018         respect the environment variables for autoconf, automake, etc. given by
34019         the user.
34020
34021 2010-04-02  Bruno Haible  <bruno@clisp.org>
34022
34023         gnulib-tool: Provide the value of --m4-base to modules.
34024         * gnulib-tool (func_import, func_create_testdir): Emit a definition
34025         of gl_m4_base.
34026
34027 2010-04-02  Eric Blake  <eblake@redhat.com>
34028
34029         maint.mk: fix some fallout
34030         * NEWS: Document the incompatible change, and its effect on cfg.mk.
34031         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
34032
34033 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34034
34035         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
34036         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
34037         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
34038         (sc_cast_of_x_alloc_return_value): Likewise.
34039         (sc_cast_of_alloca_return_value): Likewise.
34040         (sc_space_tab): Likewise.
34041         (sc_prohibit_atoi_atof): Likewise.
34042         (sc_prohibit_magic_number_exit): Likewise.
34043         (sc_error_exit_success): Likewise.
34044         (sc_file_system): Likewise.
34045         (sc_prohibit_have_config_h): Likewise.
34046         (sc_require_config_h): Likewise.
34047         (sc_prohibit_HAVE_MBRTOWC): Likewise.
34048         (sc_obsolete_symbols): Likewise.
34049         (sc_changelog): Likewise.
34050         (sc_program_name): Likewise.
34051         (sc_the_the): Likewise.
34052         (sc_trailing_blank): Likewise.
34053         (sc_two_space_separator_in_usage): Likewise.
34054         (sc_useless_cpp_parens): Likewise.
34055         (sc_GPL_version): Likewise.
34056         (sc_GFDL_version): Likewise.
34057         (sc_texinfo_acronym): Likewise.
34058         (sc_prohibit_cvs_keyword): Likewise.
34059         (sc_prohibit_stat_st_blocks): Likewise.
34060         (sc_prohibit_S_IS_definition): Likewise.
34061         (sc_redundant_const): Likewise.
34062         (sc_makefile_TAB_only_indentation): Likewise.
34063         (sc_m4_quote_check): Likewise.
34064         (sc_makefile_path_separator_check): Likewise.
34065         (sc_copyright_check): Likewise.
34066         (sc_Wundef_boolean): Likewise.
34067         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
34068
34069         maint.mk: match 0 or more whitespace-before-function-call '('
34070         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
34071         that have zero or two-and-more spaces between the function name
34072         and the open parenthesis.
34073         (sc_error_message_warn_fatal): Likewise.
34074         (sc_error_message_uppercase): Likewise.
34075         (sc_error_message_period): Likewise.
34076
34077 2010-03-31  Eric Blake  <eblake@redhat.com>
34078
34079         maint.mk: check for [ as well as test
34080         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
34081         Based on a libvirt report by Matthias Bolte.
34082
34083         gnumakefile: don't squelch _version output
34084         * top/GNUmakefile (_version): Create one-shot dependency rather
34085         than using $(shell) when version must be regenerated.
34086         (_autoreconf): Run verbosely, by default.
34087
34088         sys_time: avoid compiler warnings
34089         * lib/sys_time.in.h (includes): Ensure gcc pragma is
34090         unconditional, fixing regression from 2010-03-29.
34091         Reported by Simon Josefsson.
34092
34093 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34094
34095         maint.mk: s/_header_without_use/_sc_header_without_use/
34096         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
34097         (sc_prohibit_assert_without_use): Use the new name.
34098         (sc_prohibit_close_stream_without_use): Likewise.
34099         (sc_prohibit_getopt_without_use): Likewise.
34100         (sc_prohibit_quotearg_without_use): Likewise.
34101         (sc_prohibit_quote_without_use): Likewise.
34102         (sc_prohibit_long_options_without_use): Likewise.
34103         (sc_prohibit_inttostr_without_use): Likewise.
34104         (sc_prohibit_ignore_value_without_use): Likewise.
34105         (sc_prohibit_error_without_use): Likewise.
34106         (sc_prohibit_xalloc_without_use): Likewise.
34107         (sc_prohibit_hash_without_use): Likewise.
34108         (sc_prohibit_hash_pjw_without_use): Likewise.
34109         (sc_prohibit_safe_read_without_use): Likewise.
34110         (sc_prohibit_argmatch_without_use): Likewise.
34111         (sc_prohibit_canonicalize_without_use): Likewise.
34112         (sc_prohibit_root_dev_ino_without_use): Likewise.
34113         (sc_prohibit_openat_without_use): Likewise.
34114         (sc_prohibit_c_ctype_without_use): Likewise.
34115         (sc_prohibit_signal_without_use): Likewise.
34116         (sc_prohibit_intprops_without_use): Likewise.
34117
34118 2010-03-30  Eric Blake  <eblake@redhat.com>
34119
34120         maint: improve module indicators
34121         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
34122         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
34123         columns, and avoid extra macro expansion.
34124
34125         fdopendir: work around FreeBSD bug
34126         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34127         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
34128         * modules/dirent (Makefile.am): Substitute it.
34129         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
34130         declaration.
34131         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
34132         fix.
34133         Reported by Christian Weisgerber <naddy@mips.inka.de>.
34134
34135 2010-03-29  Bruno Haible  <bruno@clisp.org>
34136
34137         Emit #pragma system_header after the inclusion guard, not before.
34138         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
34139         guard that spans the entire file, not before. This enables an
34140         optimization in GCC's preprocessor.
34141         * lib/ctype.in.h: Likewise.
34142         * lib/dirent.in.h: Likewise.
34143         * lib/errno.in.h: Likewise.
34144         * lib/float.in.h: Likewise.
34145         * lib/getopt.in.h: Likewise.
34146         * lib/iconv.in.h: Likewise.
34147         * lib/langinfo.in.h: Likewise.
34148         * lib/locale.in.h: Likewise.
34149         * lib/math.in.h: Likewise.
34150         * lib/netdb.in.h: Likewise.
34151         * lib/netinet_in.in.h: Likewise.
34152         * lib/pty.in.h: Likewise.
34153         * lib/sched.in.h: Likewise.
34154         * lib/se-selinux.in.h: Likewise.
34155         * lib/search.in.h: Likewise.
34156         * lib/spawn.in.h: Likewise.
34157         * lib/stdarg.in.h: Likewise.
34158         * lib/stdint.in.h: Likewise.
34159         * lib/string.in.h: Likewise.
34160         * lib/strings.in.h: Likewise.
34161         * lib/sys_file.in.h: Likewise.
34162         * lib/sys_ioctl.in.h: Likewise.
34163         * lib/sys_time.in.h: Likewise.
34164         * lib/sys_times.in.h: Likewise.
34165         * lib/sys_utsname.in.h: Likewise.
34166         * lib/sys_wait.in.h: Likewise.
34167         * lib/sysexits.in.h: Likewise.
34168         * lib/wctype.in.h: Likewise.
34169
34170 2010-03-28  James Youngman  <jay@gnu.org>
34171
34172         save-cwd: don't leak a file descriptor when the caller execs.
34173         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
34174         saved file descriptor.
34175         * modules/save-cwd (Depends-on): Depend on cloexec.
34176
34177 2010-03-29  Bruno Haible  <bruno@clisp.org>
34178
34179         Remove vestiges of fts-lgpl module.
34180         * lib/fts_.h: Assume GNULIB_FTS is 1.
34181         * lib/fts.c: Likewise.
34182         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34183
34184 2010-03-28  Bruno Haible  <bruno@clisp.org>
34185
34186         Fix definition of tests witness macro.
34187         * gnulib-tool (func_import): Fix definition of witness macro.
34188
34189 2010-03-28  Bruno Haible  <bruno@clisp.org>
34190
34191         Fix ioctl's protoype on glibc systems.
34192         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
34193         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
34194         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
34195         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
34196         signature. If not, arrange to replace the ioctl function.
34197         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34198         REPLACE_IOCTL.
34199         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
34200         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
34201         Reported by Ludovic Courtès <ludo@gnu.org>.
34202
34203 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
34204
34205         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
34206         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
34207         made it so grep -r --include=GLOB* ... did not work.
34208
34209 2010-03-26  Jim Meyering  <meyering@redhat.com>
34210             Eric Blake  <eblake@redhat.com>
34211
34212         maint.mk: prohibit use of test's -o and -a operators
34213         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
34214
34215 2010-03-28  Bruno Haible  <bruno@clisp.org>
34216
34217         Remove unused GNULIB_XYZ macro definitions.
34218         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
34219         invocation.
34220
34221 2010-03-28  Bruno Haible  <bruno@clisp.org>
34222
34223         Mark privileged tests modules.
34224         * modules/idpriv-drop-tests (Status): New section.
34225         * modules/idpriv-droptemp-tests (Status): New section.
34226
34227 2010-03-28  Bruno Haible  <bruno@clisp.org>
34228
34229         Split C++ tests into separate tests modules.
34230         * modules/dirent-c++-tests: New file, extracted from
34231         modules/dirent-tests.
34232         * modules/dirent-tests: Depend on it.
34233         * modules/fcntl-h-c++-tests: New file, extracted from
34234         modules/fcntl-h-tests.
34235         * modules/fcntl-h-tests: Depend on it.
34236         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
34237         * modules/glob-tests: Depend on it.
34238         * modules/iconv-h-c++-tests: New file, extracted from
34239         modules/iconv-h-tests.
34240         * modules/iconv-h-tests: Depend on it.
34241         * modules/langinfo-c++-tests: New file, extracted from
34242         modules/langinfo-tests.
34243         * modules/langinfo-tests: Depend on it.
34244         * modules/locale-c++-tests: New file, extracted from
34245         modules/locale-tests.
34246         * modules/locale-tests: Depend on it.
34247         * modules/math-c++-tests: New file, extracted from modules/math-tests.
34248         * modules/math-tests: Depend on it.
34249         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
34250         * modules/pty-tests: Depend on it.
34251         * modules/search-c++-tests: New file, extracted from
34252         modules/search-tests.
34253         * modules/search-tests: Depend on it.
34254         * modules/signal-c++-tests: New file, extracted from
34255         modules/signal-tests.
34256         * modules/signal-tests: Depend on it.
34257         * modules/spawn-c++-tests: New file, extracted from
34258         modules/spawn-tests.
34259         * modules/spawn-tests: Depend on it.
34260         * modules/stdio-c++-tests: New file, extracted from
34261         modules/stdio-tests.
34262         * modules/stdio-tests: Depend on it.
34263         * modules/stdlib-c++-tests: New file, extracted from
34264         modules/stdlib-tests.
34265         * modules/stdlib-tests: Depend on it.
34266         * modules/string-c++-tests: New file, extracted from
34267         modules/string-tests.
34268         * modules/string-tests: Depend on it.
34269         * modules/sys_ioctl-c++-tests: New file, extracted from
34270         modules/sys_ioctl-tests.
34271         * modules/sys_ioctl-tests: Depend on it.
34272         * modules/sys_select-c++-tests: New file, extracted from
34273         modules/sys_select-tests.
34274         * modules/sys_select-tests: Depend on it.
34275         * modules/sys_socket-c++-tests: New file, extracted from
34276         modules/sys_socket-tests.
34277         * modules/sys_socket-tests: Depend on it.
34278         * modules/sys_stat-c++-tests: New file, extracted from
34279         modules/sys_stat-tests.
34280         * modules/sys_stat-tests: Depend on it.
34281         * modules/sys_time-c++-tests: New file, extracted from
34282         modules/sys_time-tests.
34283         * modules/sys_time-tests: Depend on it.
34284         * modules/time-c++-tests: New file, extracted from modules/time-tests.
34285         * modules/time-tests: Depend on it.
34286         * modules/unistd-c++-tests: New file, extracted from
34287         modules/unistd-tests.
34288         * modules/unistd-tests: Depend on it.
34289         * modules/wchar-c++-tests: New file, extracted from
34290         modules/wchar-tests.
34291         * modules/wchar-tests: Depend on it.
34292         * modules/wctype-c++-tests: New file, extracted from
34293         modules/wctype-tests.
34294         * modules/wctype-tests: Depend on it.
34295         Reported by Simon Josefsson.
34296
34297 2010-03-28  Bruno Haible  <bruno@clisp.org>
34298
34299         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
34300         * gnulib-tool (func_exists_module): New function, extracted from
34301         func_verify_module.
34302         (func_verify_module): Use it.
34303         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
34304         'foo' only if 'foo' exists.
34305         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
34306         module.
34307
34308 2010-03-28  Bruno Haible  <bruno@clisp.org>
34309
34310         gnulib-tool: Add support for special categories of tests.
34311         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
34312         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
34313         (func_usage): Document them.
34314         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
34315         inc_unportable_tests, inc_all_tests): New variables.
34316         (func_acceptable): Consider these variables.
34317         (func_modules_transitive_closure): Make it work when the 'Status' field
34318         consists of multiple words.
34319         (func_import): Store and restore the values of inc_cxx_tests,
34320         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
34321         inc_all_tests in gnulib-comp.m4.
34322         (func_create_testdir): Set inc_all_tests to true.
34323         * doc/gnulib.texi (Extra tests modules): New section.
34324         Suggested by Jim Meyering.
34325
34326 2010-03-28  Bruno Haible  <bruno@clisp.org>
34327
34328         ansi-c++-opt: Allow turning off the C++ build by default.
34329         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
34330         gl_CXX_CHOICE_DEFAULT_NO is defined.
34331         Requested by Eric Blake.
34332
34333 2010-03-28  Bruno Haible  <bruno@clisp.org>
34334
34335         unistd: Avoid #define replacements in C++ mode.
34336         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
34337         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
34338         setsockopt, shutdown, select): In C++, attach a warning to the function
34339         if possible, rather than #defining the symbol to a dysfunctional alias.
34340         Reported by John W. Eaton <jwe@gnu.org>.
34341
34342 2010-03-28  Bruno Haible  <bruno@clisp.org>
34343
34344         Fix link errors on mingw.
34345         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
34346         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
34347         $(LIBSOCKET).
34348         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
34349         $(LIBSOCKET).
34350
34351 2010-03-28  Bruno Haible  <bruno@clisp.org>
34352             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34353
34354         lib-ignore: Determine different options for different compilers.
34355         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
34356         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
34357         Add comments.
34358         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
34359         * NEWS: Mention the change.
34360
34361 2010-03-27  Bruno Haible  <bruno@clisp.org>
34362
34363         Remove unused GNULIB_XYZ macro definitions.
34364         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34365         * modules/fseek (configure.ac): Likewise.
34366         * modules/ioctl (configure.ac): Likewise.
34367         * modules/open (configure.ac): Likewise.
34368         * modules/stdlib-safer (configure.ac): Likewise.
34369
34370 2010-03-27  Bruno Haible  <bruno@clisp.org>
34371
34372         Add a remark about certain modules.
34373         * modules/malloc (Comment): New section.
34374         * modules/realloc (Comment): Likewise.
34375         * modules/sigpipe (Comment): Likewise.
34376
34377 2010-03-27  Bruno Haible  <bruno@clisp.org>
34378
34379         Resolve conflict between the two kinds of module indicators.
34380         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
34381         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
34382         * modules/canonicalize (configure.ac): Invoke
34383         gl_MODULE_INDICATOR_FOR_TESTS.
34384         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
34385         GNULIB_XYZ.
34386         * tests/test-dirent-c++.cc: Likewise.
34387         * tests/test-dirent-safer.c: Likewise.
34388         * tests/test-dup2.c: Likewise.
34389         * tests/test-fchdir.c: Likewise.
34390         * tests/test-fcntl-h-c++.cc: Likewise.
34391         * tests/test-getopt.c: Likewise.
34392         * tests/test-getopt.h: Likewise.
34393         * tests/test-langinfo-c++.cc: Likewise.
34394         * tests/test-locale-c++.cc: Likewise.
34395         * tests/test-math-c++.cc: Likewise.
34396         * tests/test-pty-c++.cc: Likewise.
34397         * tests/test-search-c++.cc: Likewise.
34398         * tests/test-signal-c++.cc: Likewise.
34399         * tests/test-spawn-c++.cc: Likewise.
34400         * tests/test-stdio-c++.cc: Likewise.
34401         * tests/test-stdlib-c++.cc: Likewise.
34402         * tests/test-string-c++.cc: Likewise.
34403         * tests/test-sys_ioctl-c++.cc: Likewise.
34404         * tests/test-sys_select-c++.cc: Likewise.
34405         * tests/test-sys_socket-c++.cc: Likewise.
34406         * tests/test-sys_stat-c++.cc: Likewise.
34407         * tests/test-sys_time-c++.cc: Likewise.
34408         * tests/test-time-c++.cc: Likewise.
34409         * tests/test-unistd-c++.cc: Likewise.
34410         * tests/test-wchar-c++.cc: Likewise.
34411         * tests/uninorm/test-u8-nfc.c: Likewise.
34412         * tests/uninorm/test-u8-nfd.c: Likewise.
34413         * tests/uninorm/test-u8-nfkc.c: Likewise.
34414         * tests/uninorm/test-u8-nfkd.c: Likewise.
34415         * tests/uninorm/test-u16-nfc.c: Likewise.
34416         * tests/uninorm/test-u16-nfd.c: Likewise.
34417         * tests/uninorm/test-u16-nfkc.c: Likewise.
34418         * tests/uninorm/test-u16-nfkd.c: Likewise.
34419         * tests/uninorm/test-u32-nfc.c: Likewise.
34420         * tests/uninorm/test-u32-nfc-big.c: Likewise.
34421         * tests/uninorm/test-u32-nfd.c: Likewise.
34422         * tests/uninorm/test-u32-nfd-big.c: Likewise.
34423         * tests/uninorm/test-u32-nfkc.c: Likewise.
34424         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
34425         * tests/uninorm/test-u32-nfkd.c: Likewise.
34426         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
34427         * tests/uninorm/test-u32-normalize-big.c: Likewise.
34428
34429 2010-03-27  Bruno Haible  <bruno@clisp.org>
34430
34431         Distinguish two kinds of module indicators.
34432         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
34433         gl_MODULE_INDICATOR.
34434         (gl_MODULE_INDICATOR): New macro.
34435         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34436         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
34437         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34438         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34439         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34440         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34441         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34442         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34443         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34444         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34445         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34446         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34447         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34448         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34449         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34450         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34451         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34452         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34453         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34454         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34455         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34456         * modules/cloexec (configure.ac): Likewise.
34457         * modules/getopt-gnu (configure.ac): Likewise.
34458         * modules/uninorm/u8-normalize (configure.ac): Likewise.
34459         * modules/uninorm/u16-normalize (configure.ac): Likewise.
34460         * modules/uninorm/u32-normalize (configure.ac): Likewise.
34461         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
34462
34463 2010-03-27  Bruno Haible  <bruno@clisp.org>
34464
34465         New module description field 'Comment'.
34466         * gnulib-tool: New option --extract-comment.
34467         (func_usage): Document it.
34468         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
34469         (func_get_comment): New function.
34470         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
34471
34472 2010-03-27  Bruno Haible  <bruno@clisp.org>
34473
34474         Addendum to 2010-02-07 commit.
34475         * gnulib-tool (func_usage): Document --extract-applicability option.
34476
34477 2010-03-27  Bruno Haible  <bruno@clisp.org>
34478
34479         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
34480         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
34481         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
34482         rather than link errors.
34483
34484 2010-03-27  Bruno Haible  <bruno@clisp.org>
34485
34486         Avoid side effects from tests-related modules on the compilation of lib.
34487         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
34488         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
34489         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
34490         parameter. Emit into AM_CPPFLAGS a definition of the designated C
34491         macro.
34492         (func_import): Define a witness macro. Assign it a value that depends
34493         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
34494         tests-related modules.
34495         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
34496         Reported by Jim Meyering.
34497
34498 2010-03-27  Bruno Haible  <bruno@clisp.org>
34499
34500         Factorize common .m4 code.
34501         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
34502         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
34503         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
34504         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
34505         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34506         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
34507         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
34508         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34509         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34510         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34511         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
34512         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34513         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34514         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34515         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34516         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
34517         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34518         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34519         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34520         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
34521         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
34522         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34523         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34524         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34525         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34526         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34527         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
34528         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
34529         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
34530         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34531         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34532         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34533
34534 2010-03-27  Bruno Haible  <bruno@clisp.org>
34535
34536         Fix a compilation error on Cygwin with g++ >= 4.3.
34537         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
34538         if it is undefined or if we alias it to chmod.
34539         (lstat): Don't warn about the use of this function if it is undefined
34540         or if we alias it to stat.
34541         Reported by Simon Josefsson.
34542
34543 2010-03-27  Bruno Haible  <bruno@clisp.org>
34544
34545         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
34546         * modules/getlogin (configure.ac): Update.
34547
34548         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
34549         * modules/getlogin_r (configure.ac): Update.
34550
34551         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
34552         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
34553         * modules/inet_ntop (configure.ac): Update.
34554
34555         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
34556         * modules/inet_pton (configure.ac): Update.
34557
34558         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
34559         * modules/mbslen (configure.ac): Update.
34560
34561         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
34562         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
34563         * modules/forkpty (configure.ac): Update.
34564         * modules/openpty (configure.ac): Update.
34565
34566 2010-03-26  Simon Josefsson  <simon@josefsson.org>
34567
34568         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
34569         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
34570
34571 2010-03-25  Eric Blake  <eblake@redhat.com>
34572
34573         maint: use pragma consistently across replacement headers
34574         * lib/ctype.in.h (system_header): Hoist for consistent placement.
34575         * lib/dirent.in.h (system_header): Likewise.
34576         * lib/errno.in.h (system_header): Likewise.
34577         * lib/float.in.h (system_header): Likewise.
34578         * lib/getopt.in.h (system_header): Likewise.
34579         * lib/iconv.in.h (system_header): Likewise.
34580         * lib/inttypes.in.h (system_header): Likewise.
34581         * lib/langinfo.in.h (system_header): Likewise.
34582         * lib/locale.in.h (system_header): Likewise.
34583         * lib/math.in.h (system_header): Likewise.
34584         * lib/netdb.in.h (system_header): Likewise.
34585         * lib/netinet_in.in.h (system_header): Likewise.
34586         * lib/pty.in.h (system_header): Likewise.
34587         * lib/sched.in.h (system_header): Likewise.
34588         * lib/se-selinux.in.h (system_header): Likewise.
34589         * lib/search.in.h (system_header): Likewise.
34590         * lib/spawn.in.h (system_header): Likewise.
34591         * lib/stdarg.in.h (system_header): Likewise.
34592         * lib/stdint.in.h (system_header): Likewise.
34593         * lib/string.in.h (system_header): Likewise.
34594         * lib/strings.in.h (system_header): Likewise.
34595         * lib/sys_file.in.h (system_header): Likewise.
34596         * lib/sys_ioctl.in.h (system_header): Likewise.
34597         * lib/sys_socket.in.h (system_header): Likewise.
34598         * lib/sys_times.in.h (system_header): Likewise.
34599         * lib/sys_utsname.in.h (system_header): Likewise.
34600         * lib/sys_wait.in.h (system_header): Likewise.
34601         * lib/sysexits.in.h (system_header): Likewise.
34602         * lib/unistd.in.h (system_header): Likewise.
34603         * lib/wctype.in.h (system_header): Likewise.
34604
34605         arpa/inet: fix mingw compilation warning
34606         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
34607         Reported by Matthew Bolte.
34608
34609 2010-03-25  Bruno Haible  <bruno@clisp.org>
34610
34611         Avoid collision between gnulib wrapper and libintl wrapper.
34612         * lib/printf.c (printf): Don't define if a printf wrapper is already
34613         defined in intl/printf.c.
34614         Reported by Michel Boaventura <michel@michelboaventura.com>.
34615
34616 2010-03-25  Bruno Haible  <bruno@clisp.org>
34617
34618         Use ANSI C.
34619         * lib/readutmp.h (getutent): Provide ANSI C prototype.
34620
34621 2010-03-25  Bruno Haible  <bruno@clisp.org>
34622
34623         Minor formatting changes.
34624         * lib/acosl.c: Insert space before function argument list.
34625         * lib/argz.c: Likewise.
34626         * lib/asinl.c: Likewise.
34627         * lib/expl.c: Likewise.
34628         * lib/gen-uni-tables.c: Likewise.
34629         * lib/gettext.h: Likewise.
34630         * lib/glthread/lock.h: Likewise.
34631         * lib/tanl.c: Likewise.
34632         * lib/uniname/uniname.c: Likewise.
34633         * tests/test-idpriv-drop.c: Likewise.
34634         * tests/test-idpriv-droptemp.c: Likewise.
34635         * tests/test-lock.c: Likewise.
34636         * tests/test-tls.c: Likewise.
34637         * lib/argp-help.c: Insert space before function-like macro argument
34638         list.
34639         * lib/memcmp.c: Likewise.
34640         * tests/test-base64.c: Likewise.
34641         * lib/localename.c: Insert space before sizeof's argument list.
34642         * lib/safe-alloc.h: Likewise.
34643         * lib/file-set.h: Insert space before macro argument list.
34644         * tests/test-argp.c: Likewise.
34645         * lib/argp-namefrob.h: Insert space before function parameter list.
34646         * lib/getaddrinfo.c: Likewise.
34647         * lib/netdb.in.h: Likewise.
34648         * lib/parse-duration.h: Likewise.
34649         * lib/parse-duration.c: Likewise.
34650         * lib/poll.c: Likewise.
34651         * lib/select.c: Likewise.
34652         * lib/trim.h: Likewise.
34653         * tests/test-usleep.c: Likewise.
34654         * lib/ldexpl.c: Insert space before function parameter list and before
34655         function argument list.
34656         * lib/logl.c: Likewise.
34657         * lib/sqrtl.c: Likewise.
34658         * lib/trim.c: Likewise.
34659         * lib/cosl.c: Use GNU style indentation. Insert space before function
34660         argument list.
34661         * lib/sinl.c: Likewise.
34662         * lib/tsearch.c: Insert space after 'for'.
34663         Reported by Jim Meyering.
34664
34665 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
34666
34667         * maint.mk (sc_Wundef_boolean): Check for the presence of the
34668         config header before grepping, as it's not present before
34669         autoreconf/configure are run.  Reported by Simon Josefsson.
34670
34671 2010-03-23  Bruno Haible  <bruno@clisp.org>
34672
34673         pt_chown: Make it work with automake < 1.11.
34674         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
34675         Reported by Simon Josefsson.
34676
34677 2010-03-23  Bruno Haible  <bruno@clisp.org>
34678
34679         pt_chown: Don't depend on GPLed modules.
34680         * lib/pt_chown.c: Don't include idpriv.h.
34681         (main): Don't drop privileges.
34682         * modules/pt_chown (Depends-on): Remove idpriv-drop.
34683         Reported by Simon Josefsson.
34684
34685 2010-03-24  Simon Josefsson  <simon@josefsson.org>
34686
34687         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
34688         suggestions from karl@freefriends.org (Karl Berry).
34689
34690 2010-03-22  Eric Blake  <eblake@redhat.com>
34691
34692         gethostname: further tweaks
34693         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
34694         are overriding gethostname.
34695         Suggested by Bruno Haible.
34696
34697 2010-03-21  Bruno Haible  <bruno@clisp.org>
34698
34699         Fix comments.
34700         * lib/forkpty.c (rpl_forkpty): Fix comment.
34701         * lib/openpty.c (rpl_openpty): Likewise.
34702         Reported by Eric Blake.
34703
34704 2010-03-22  Eric Blake  <eblake@redhat.com>
34705
34706         gethostname: fix build on mingw
34707         * lib/unistd.in.h (includes): Work around fact that mingw
34708         <winsock2.h> re-includes <unistd.h>, by avoiding any
34709         redeclarations if we are being included by <winsock2.h>.
34710         Reported by Matthias Bolte.
34711
34712 2010-03-21  Bruno Haible  <bruno@clisp.org>
34713
34714         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34715         * lib/forkpty.c (forkpty): New replacement function, from glibc with
34716         modifications.
34717         * lib/pty.in.h (forkpty): Update declaration. Add comments.
34718         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
34719         provide the replacement.
34720         * modules/forkpty (Depends-on): Add openpty, login_tty.
34721         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
34722         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
34723         * doc/glibc-functions/forkpty.texi: More supported platforms.
34724         * config/srclist.txt: Add forkpty.c (commented).
34725
34726 2010-03-21  Bruno Haible  <bruno@clisp.org>
34727
34728         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
34729         (Makefile.am): Verify that PTY_LIB is defined.
34730
34731         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
34732
34733 2010-03-21  Bruno Haible  <bruno@clisp.org>
34734
34735         Tests for module 'login_tty'.
34736         * modules/login_tty-tests: New file.
34737         * tests/test-login_tty.c: New file.
34738
34739         New module 'login_tty'.
34740         * lib/login_tty.c: New file.
34741         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
34742         * modules/login_tty: New file.
34743         * doc/glibc-functions/login_tty.texi: Mention the new module.
34744
34745 2010-03-21  Bruno Haible  <bruno@clisp.org>
34746
34747         login_tty: Documentation.
34748         * doc/glibc-functions/login_tty.texi: New file.
34749         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
34750
34751 2010-03-21  Bruno Haible  <bruno@clisp.org>
34752
34753         pty: Consistent macro naming.
34754         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
34755         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
34756         * modules/pty (configure.ac): Update.
34757
34758 2010-03-21  Bruno Haible  <bruno@clisp.org>
34759
34760         Tests for openpty: Make stricter.
34761         * tests/test-openpty.c (main): Add test of canonical processing and
34762         erase.
34763         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
34764
34765         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34766         * lib/openpty.c (openpty): New replacement function.
34767         * lib/pty.in.h: Include <termios.h>.
34768         (openpty): Update declaration. Add comments.
34769         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
34770         is not declared, arrange to provide the replacement. Check for _getpty
34771         and posix_openpt.
34772         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
34773         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
34774         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
34775         * modules/pty-tests (test_pty_c___LDADD): New variable.
34776         * doc/glibc-functions/openpty.texi: More supported platforms.
34777
34778 2010-03-21  Bruno Haible  <bruno@clisp.org>
34779
34780         setenv: Tweaks.
34781         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
34782         the test program.
34783         * doc/posix-functions/setenv.texi: Update platforms list.
34784
34785 2010-03-21  Bruno Haible  <bruno@clisp.org>
34786
34787         New module 'unlockpt'.
34788         * lib/unlockpt.c: New file, from glibc with modifications.
34789         * m4/unlockpt.m4: New file.
34790         * modules/unlockpt: New file.
34791         * lib/stdlib.in.h (unlockpt): New declaration.
34792         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
34793         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
34794         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
34795         HAVE_UNLOCKPT.
34796         * doc/posix-functions/unlockpt.texi: Mention the new module.
34797         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
34798         * config/srclist.txt: Add unlockpt.c (commented).
34799
34800 2010-03-21  Jim Meyering  <meyering@redhat.com>
34801
34802         maint.mk: prohibit inclusion of "intprops.h" without use
34803         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
34804
34805 2010-03-21  Bruno Haible  <bruno@clisp.org>
34806
34807         New module 'grantpt'.
34808         * lib/grantpt.c: New file, from glibc with modifications.
34809         * m4/grantpt.m4: New file.
34810         * modules/grantpt: New file.
34811         * lib/stdlib.in.h (grantpt): New declaration.
34812         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
34813         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
34814         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
34815         HAVE_GRANTPT.
34816         * doc/posix-functions/grantpt.texi: Mention the new module.
34817         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
34818         * config/srclist.txt: Add grantpt.c (commented).
34819
34820 2010-03-21  Bruno Haible  <bruno@clisp.org>
34821
34822         New module 'pt_chown'.
34823         * lib/pt_chown.c: New file, from glibc with modifications.
34824         * lib/pty-private.h: New file, from glibc with modifications.
34825         * modules/pt_chown: New file.
34826         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
34827
34828 2010-03-21  Bruno Haible  <bruno@clisp.org>
34829
34830         Tests for module 'ptsname'.
34831         * modules/ptsname-tests: New file.
34832         * tests/test-ptsname.c: New file.
34833
34834         New module 'ptsname'.
34835         * lib/ptsname.c: New file, from glibc with modifications.
34836         * m4/ptsname.m4: New file.
34837         * modules/ptsname: New file.
34838         * lib/stdlib.in.h (ptsname): New declaration.
34839         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
34840         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
34841         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
34842         HAVE_PTSNAME.
34843         * doc/posix-functions/ptsname.texi: Mention the new module.
34844         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
34845         * config/srclist.txt: Add ptsname.c (commented).
34846
34847 2010-03-21  Bruno Haible  <bruno@clisp.org>
34848
34849         Tests for module 'ttyname_r'.
34850         * modules/ttyname_r-tests: New file.
34851         * tests/test-ttyname_r.c: New file.
34852
34853         New module 'ttyname_r'.
34854         * lib/ttyname_r.c: New file.
34855         * m4/ttyname_r.m4: New file.
34856         * modules/ttyname_r: New file.
34857         * lib/unistd.in.h (ttyname_r): New declaration.
34858         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
34859         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
34860         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
34861         HAVE_TTYNAME_R.
34862         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
34863         * doc/posix-functions/ttyname_r.texi: Mention the new module.
34864
34865 2010-03-20  Bruno Haible  <bruno@clisp.org>
34866
34867         signal: Undefine macro definitions in C++ mode.
34868         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
34869         sigfillset): Undefine macro definitions from the system header in C++
34870         mode.
34871         Reported by John W. Eaton <jwe@gnu.org>.
34872
34873 2010-03-20  Bruno Haible  <bruno@clisp.org>
34874
34875         Ensure no #include statements inside extern "C" { ... }.
34876         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
34877         contain #include statements.
34878         * lib/time.in.h: Likewise.
34879
34880 2010-03-20  Bruno Haible  <bruno@clisp.org>
34881
34882         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
34883         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
34884         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
34885         Reported by John W. Eaton <jwe@gnu.org>.
34886
34887 2010-03-20  Bruno Haible  <bruno@clisp.org>
34888
34889         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
34890         Reported by Jim Meyering.
34891
34892 2010-03-20  Bruno Haible  <bruno@clisp.org>
34893
34894         pipe: Set errno upon failure.
34895         * lib/pipe.h: Specify that when -1 is returned, errno is set.
34896         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
34897         errno value in error message.
34898
34899 2010-03-20  Bruno Haible  <bruno@clisp.org>
34900             Jim Meyering  <meyering@redhat.com>
34901
34902         lchown: Avoid "unused variable" warning.
34903         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
34904
34905 2010-03-20  Bruno Haible  <bruno@clisp.org>
34906
34907         Work around unlink() bug on MacOS X 10.5.6.
34908         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
34909         attempting to unlink a parent directory.
34910         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
34911         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
34912         activate for the replacement function.
34913         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
34914
34915 2010-03-20  Bruno Haible  <bruno@clisp.org>
34916
34917         Fix link errors on Solaris 8.
34918         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
34919         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
34920
34921 2010-03-19  Jim Meyering  <meyering@redhat.com>
34922
34923         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
34924         The _LIBC implementation of build_range_exp correctly honors the
34925         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
34926         However, the non-_LIBC implementation would ignore that syntax-bit
34927         flag and return REG_ERANGE unconditionally.
34928         This change makes it honor that flag.
34929         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
34930         Make two pointer parameters "const".
34931         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
34932         (parse_bracket_exp): Update caller.
34933
34934         regex.m4: correct the reversed range endpoint ([b-a]) test
34935         * m4/regex.m4: When requiring that [b-a] evoke failure,
34936         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
34937         test pass once again for x86-based systems.
34938
34939 2010-03-19  Bruno Haible  <bruno@clisp.org>
34940
34941         scandir: Fix link error on Solaris 8.
34942         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
34943         macros.
34944
34945 2010-03-19  Bruno Haible  <bruno@clisp.org>
34946
34947         getusershell: Fix documentation.
34948         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
34949         module.
34950         * doc/glibc-functions/setusershell.texi: Likewise.
34951
34952         getusershell: Provide declaration, missing on Solaris 9.
34953         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
34954         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
34955         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
34956         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
34957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34958         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
34959         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
34960         HAVE_GETUSERSHELL.
34961         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
34962
34963 2010-03-19  Bruno Haible  <bruno@clisp.org>
34964
34965         wctype: Provide iswblank function.
34966         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
34967         exists and is fine.
34968         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
34969         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
34970         * tests/test-wctype.c (main): Re-enable the iswblank tests.
34971         * doc/posix-functions/iswblank.texi: Update.
34972
34973 2010-03-19  Bruno Haible  <bruno@clisp.org>
34974
34975         Tests of module 'pty' in C++ mode.
34976         * modules/pty-tests: New file.
34977         * tests/test-pty-c++.cc: New file.
34978         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34979
34980 2010-03-19  Eric Blake  <eblake@redhat.com>
34981
34982         logb: fix documentation
34983         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
34984         1.5 declaration bug.
34985
34986         forkpty, openpty: prefer glibc's const-safe prototype
34987         * lib/forkpty.c (rpl_forkpty): New file.
34988         * lib/openpty.c (rpl_openpty): Likewise.
34989         * modules/forkpty (Files): Distribute it.
34990         * modules/openpty (Files): Likewise.
34991         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
34992         check...
34993         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
34994         replacement for for non-const BSD signature.
34995         * modules/pty (Makefile.am): Substitute witnesses.
34996         * lib/pty.in.h (forkpty, openpty): Declare replacements.
34997         * tests/test-forkpty.c: Update signature check.
34998         * tests/test-openpty.c: Likewise.
34999         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
35000         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35001
35002         forkpty, openpty: split functions into new modules
35003         * modules/pty (Makefile.am): Substitute new witnesses.
35004         (Libraries): Move library detection...
35005         * modules/forkpty: ...into new module.
35006         * modules/openpty: Another new module.
35007         * modules/pty-tests: Rename and split...
35008         * modules/forkpty-tests: ...to this...
35009         * modules/openpty-tests: ...and this.
35010         * tests/test-pty.c: Rename and split...
35011         * tests/test-forkpty.c: ...to this...
35012         * tests/test-openpty.c: ...and this.
35013         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
35014         (gl_PTY): Split library searching...
35015         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
35016         (gl_FORKPTY, gl_OPENPTY): New macros.
35017         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
35018         * NEWS: Mention the split.
35019         * MODULES.html.sh (Misc): Document the modules.
35020         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
35021         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35022
35023         pty: improve replacement header
35024         * lib/pty.in.h: New file.
35025         * modules/pty (Files): Ship it.
35026         (Makefile.am): Always build replacement.
35027         * m4/pty.m4: Rename...
35028         * m4/pty_h.m4: ...to this.
35029         (gl_PTY): Modernize setting of witness macros; update check of
35030         forkpty to take proper advantage of cache.
35031         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
35032
35033         getopt: avoid compiler warning
35034         * lib/getopt.c (attribute_hidden): Remove unused macro.
35035
35036 2010-03-18  Bruno Haible  <bruno@clisp.org>
35037
35038         Fix link errors on Solaris 8.
35039         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
35040         * modules/search-tests (test_search_c___LDADD): Likewise.
35041         * modules/signal-tests (test_signal_c___LDADD): Likewise.
35042         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
35043         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
35044         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
35045         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
35046         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
35047         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
35048
35049 2010-03-18  Bruno Haible  <bruno@clisp.org>
35050
35051         Fix bug introduced on 2010-03-14.
35052         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
35053         (gl_SPAWN_H): Require it.
35054         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
35055         Reported by Simon Josefsson.
35056
35057 2010-03-18  Bruno Haible  <bruno@clisp.org>
35058
35059         Fix typo introduced on 2009-12-31.
35060         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
35061         posix_spawn_file_actions_adddup2.
35062
35063 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
35064         and Eric Blake  <eblake@redhat.com>
35065
35066         test-vc-list-files-git: make more robust
35067         * tests/test-vc-list-files-git.sh: Unset problematic environment
35068         variables.  Chain commands together.
35069
35070 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
35071
35072         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
35073         `AC_CHECK_DECL' invocation.
35074
35075 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
35076
35077         * lib/inttostr.c (inttostr): Make sure the invocation of verify
35078         appears before executable statements. Suggested by Petr Sumbera
35079         <Petr.Sumbera@Sun.COM>.
35080
35081 2010-03-14  Bruno Haible  <bruno@clisp.org>
35082
35083         * tests/test-flock.c (test_exclusive): Comment out a test that causes
35084         portability problems. Instead use a simpler test.
35085         (main): Check that invalid arguments are rejected only on Linux.
35086
35087 2010-03-14  Bruno Haible  <bruno@clisp.org>
35088
35089         Fix bug introduced on 2009-12-31.
35090         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35091         gl_PREREQ_SYS_H_WINSOCK2 always.
35092         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
35093         SYS_SOCKET_H variable.
35094         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
35095         Update comments.
35096         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
35097         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35098         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35099         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35100         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
35101
35102 2010-03-14  Bruno Haible  <bruno@clisp.org>
35103
35104         Fix values returned by sinl, cosl.
35105         * lib/trigl.h: Add specification comments.
35106         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
35107         that combines the values from the precomputed table with the values of
35108         the Chebyshev polynomials.
35109
35110 2010-03-14  Bruno Haible  <bruno@clisp.org>
35111
35112         Fix compilation error when modules 'posix_spawn[p]' are not used.
35113         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
35114         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
35115
35116 2010-03-14  Bruno Haible  <bruno@clisp.org>
35117
35118         Fix compilation error on mingw when module 'time_r' is not used.
35119         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
35120         is 1.
35121         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
35122         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35123         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
35124         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
35125
35126 2010-03-14  Bruno Haible  <bruno@clisp.org>
35127
35128         Fix compilation error with Sun C.
35129         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
35130         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
35131         instead of GCC specific ULONG_LONG_MAX.
35132         * lib/xstrtoll.c: Likewise.
35133         * lib/xstrtoull.c: Likewise.
35134
35135 2010-03-13  Bruno Haible  <bruno@clisp.org>
35136
35137         Allow the user to disable C++ code and tests.
35138         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
35139         (gl_PROG_ANSI_CXX): Require it.
35140
35141 2010-03-13  Bruno Haible  <bruno@clisp.org>
35142
35143         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
35144         cases.
35145
35146 2010-03-13  Bruno Haible  <bruno@clisp.org>
35147
35148         Test that gnulib does not break the standard C++ headers.
35149         * tests/test-locale-c++2.cc: New file.
35150         * modules/locale-tests (Files): Add it.
35151         (Makefile.am): Compile it for test-locale-c++.
35152         * tests/test-math-c++2.cc: New file.
35153         * modules/math-tests (Files): Add it.
35154         (Makefile.am): Compile it for test-math-c++.
35155         * tests/test-signal-c++2.cc: New file.
35156         * modules/signal-tests (Files): Add it.
35157         (Makefile.am): Compile it for test-signal-c++.
35158         * tests/test-stdio-c++2.cc: New file.
35159         * modules/stdio-tests (Files): Add it.
35160         (Makefile.am): Compile it for test-stdio-c++.
35161         * tests/test-stdlib-c++2.cc: New file.
35162         * modules/stdlib-tests (Files): Add it.
35163         (Makefile.am): Compile it for test-stdlib-c++.
35164         * tests/test-string-c++2.cc: New file.
35165         * modules/string-tests (Files): Add it.
35166         (Makefile.am): Compile it for test-string-c++.
35167         * tests/test-time-c++2.cc: New file.
35168         * modules/time-tests (Files): Add it.
35169         (Makefile.am): Compile it for test-time-c++.
35170         Reported by John W. Eaton <jwe@gnu.org>.
35171
35172 2010-03-13  Bruno Haible  <bruno@clisp.org>
35173
35174         * gnulib-tool (func_usage): Clarify which options are available for
35175         --create-testdir and --create-megatestdir.
35176
35177 2010-03-13  Bruno Haible  <bruno@clisp.org>
35178
35179         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
35180         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
35181         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
35182         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
35183         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
35184         when appropriate.
35185         Reported by Jim Meyering.
35186
35187 2010-03-12  Simon Josefsson  <simon@josefsson.org>
35188
35189         * gnulib-tool (func_import): Explain origin of code.
35190
35191 2010-03-12  Bruno Haible  <bruno@clisp.org>
35192
35193         Fix problem with automake's definition of CXXLINK.
35194         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
35195         Reported by Simon Josefsson and Ludovic Courtès.
35196
35197 2010-03-12  Bruno Haible  <bruno@clisp.org>
35198
35199         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
35200         stable releases.
35201
35202 2010-03-11  Bruno Haible  <bruno@clisp.org>
35203
35204         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
35205         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
35206         whether the system provides one variant or multiple variants of the
35207         function.
35208         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
35209         C++ compilers.
35210         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
35211         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
35212         Reported by Jim Meyering.
35213
35214 2010-03-09  Simon Josefsson  <simon@josefsson.org>
35215
35216         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
35217
35218 2010-03-08  Bruno Haible  <bruno@clisp.org>
35219
35220         gnulib-tool: Add support for --libtool in --create-testdir.
35221         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
35222         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
35223
35224 2010-03-08  Eric Blake  <eblake@redhat.com>
35225
35226         gnulib-tool.texi: mention possibility of git submodule
35227         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
35228         submodules.
35229         * doc/.gitignore: Ignore another generated file.
35230
35231 2010-03-08  Karl Berry  <karl@gnu.org>
35232
35233         * doc/gnulib-tool.texi (VCS Issues): Mention third option
35234         of committing gnulib files while skipping others.
35235
35236 2010-03-07  Bruno Haible  <bruno@clisp.org>
35237
35238         Tests of module 'wctype' in C++ mode.
35239         * tests/test-wctype-c++.cc: New file.
35240         * modules/wctype-tests (Files): Add it and tests/signature.h.
35241         (Depends-on): Add ansi-c++-opt.
35242         (Makefile.am): Arrange to compile and run test-wctype-c++.
35243
35244         Tests of module 'wchar' in C++ mode.
35245         * tests/test-wchar-c++.cc: New file.
35246         * modules/wchar-tests (Files): Add it and tests/signature.h.
35247         (Depends-on): Add ansi-c++-opt.
35248         (Makefile.am): Arrange to compile and run test-wchar-c++.
35249         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
35250         gl_MODULE_INDICATOR.
35251
35252         Tests of module 'unistd' in C++ mode.
35253         * tests/test-unistd-c++.cc: New file.
35254         * modules/unistd-tests (Files): Add it and tests/signature.h.
35255         (Depends-on): Add ansi-c++-opt.
35256         (Makefile.am): Arrange to compile and run test-unistd-c++.
35257         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
35258         gl_MODULE_INDICATOR.
35259
35260         Tests of module 'time' in C++ mode.
35261         * tests/test-time-c++.cc: New file.
35262         * modules/time-tests (Files): Add it and tests/signature.h.
35263         (Depends-on): Add ansi-c++-opt.
35264         (Makefile.am): Arrange to compile and run test-time-c++.
35265         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35266
35267         Tests of module 'sys_time' in C++ mode.
35268         * tests/test-sys_time-c++.cc: New file.
35269         * modules/sys_time-tests (Files): Add it and tests/signature.h.
35270         (Depends-on): Add ansi-c++-opt.
35271         (Makefile.am): Arrange to compile and run test-sys_time-c++.
35272         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
35273         gl_MODULE_INDICATOR.
35274
35275         Tests of module 'sys_stat' in C++ mode.
35276         * tests/test-sys_stat-c++.cc: New file.
35277         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
35278         (Depends-on): Add ansi-c++-opt.
35279         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
35280         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
35281         gl_MODULE_INDICATOR.
35282
35283         Tests of module 'sys_socket' in C++ mode.
35284         * tests/test-sys_socket-c++.cc: New file.
35285         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
35286         (Depends-on): Add ansi-c++-opt.
35287         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
35288         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
35289         gl_MODULE_INDICATOR.
35290
35291         Tests of module 'sys_select' in C++ mode.
35292         * tests/test-sys_select-c++.cc: New file.
35293         * modules/sys_select-tests (Files): Add it and tests/signature.h.
35294         (Depends-on): Add ansi-c++-opt.
35295         (Makefile.am): Arrange to compile and run test-sys_select-c++.
35296         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
35297         gl_MODULE_INDICATOR.
35298
35299         Tests of module 'sys_ioctl' in C++ mode.
35300         * tests/test-sys_ioctl-c++.cc: New file.
35301         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
35302         (Depends-on): Add ansi-c++-opt.
35303         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
35304         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
35305         gl_MODULE_INDICATOR.
35306
35307         Tests of module 'string' in C++ mode.
35308         * tests/test-string-c++.cc: New file.
35309         * modules/string-tests (Files): Add it and tests/signature.h.
35310         (Depends-on): Add ansi-c++-opt.
35311         (Makefile.am): Arrange to compile and run test-string-c++.
35312         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
35313         gl_MODULE_INDICATOR.
35314
35315         Tests of module 'stdlib' in C++ mode.
35316         * tests/test-stdlib-c++.cc: New file.
35317         * modules/stdlib-tests (Files): Add it and tests/signature.h.
35318         (Depends-on): Add ansi-c++-opt.
35319         (Makefile.am): Arrange to compile and run test-stdlib-c++.
35320         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
35321         gl_MODULE_INDICATOR.
35322
35323         Tests of module 'stdio' in C++ mode.
35324         * tests/test-stdio-c++.cc: New file.
35325         * modules/stdio-tests (Files): Add it and tests/signature.h.
35326         (Depends-on): Add ansi-c++-opt.
35327         (Makefile.am): Arrange to compile and run test-stdio-c++.
35328         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
35329         gl_MODULE_INDICATOR.
35330
35331         Tests of module 'spawn' in C++ mode.
35332         * tests/test-spawn-c++.cc: New file.
35333         * modules/spawn-tests (Files): Add it and tests/signature.h.
35334         (Depends-on): Add ansi-c++-opt.
35335         (Makefile.am): Arrange to compile and run test-spawn-c++.
35336         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
35337         gl_MODULE_INDICATOR.
35338
35339         Tests of module 'signal' in C++ mode.
35340         * tests/test-signal-c++.cc: New file.
35341         * modules/signal-tests (Files): Add it and tests/signature.h.
35342         (Depends-on): Add ansi-c++-opt.
35343         (Makefile.am): Arrange to compile and run test-signal-c++.
35344         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
35345         gl_MODULE_INDICATOR.
35346
35347         Tests of module 'search' in C++ mode.
35348         * tests/test-search-c++.cc: New file.
35349         * modules/search-tests (Files): Add it and tests/signature.h.
35350         (Depends-on): Add ansi-c++-opt.
35351         (Makefile.am): Arrange to compile and run test-search-c++.
35352         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
35353         gl_MODULE_INDICATOR.
35354
35355         Tests of module 'math' in C++ mode.
35356         * tests/test-math-c++.cc: New file.
35357         * modules/math-tests (Files): Add it and tests/signature.h.
35358         (Depends-on): Add ansi-c++-opt.
35359         (Makefile.am): Arrange to compile and run test-math-c++.
35360         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35361
35362         Tests of module 'locale' in C++ mode.
35363         * tests/test-locale-c++.cc: New file.
35364         * modules/locale-tests (Files): Add it and tests/signature.h.
35365         (Depends-on): Add ansi-c++-opt.
35366         (Makefile.am): Arrange to compile and run test-locale-c++.
35367         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
35368         gl_MODULE_INDICATOR.
35369
35370         Tests of module 'langinfo' in C++ mode.
35371         * tests/test-langinfo-c++.cc: New file.
35372         * modules/langinfo-tests (Files): Add it and tests/signature.h.
35373         (Depends-on): Add ansi-c++-opt.
35374         (Makefile.am): Arrange to compile and run test-langinfo-c++.
35375         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
35376         gl_MODULE_INDICATOR.
35377
35378         Tests of module 'iconv-h' in C++ mode.
35379         * tests/test-iconv-h-c++.cc: New file.
35380         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
35381         (Depends-on): Add ansi-c++-opt.
35382         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
35383
35384         Tests of module 'glob' in C++ mode.
35385         * tests/test-glob-c++.cc: New file.
35386         * modules/glob-tests (Files): Add it.
35387         (Depends-on): Add ansi-c++-opt.
35388         (Makefile.am): Arrange to compile and run test-glob-c++.
35389
35390         Tests of module 'fcntl-h' in C++ mode.
35391         * tests/test-fcntl-h-c++.cc: New file.
35392         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
35393         (Depends-on): Add ansi-c++-opt.
35394         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
35395         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
35396         gl_MODULE_INDICATOR.
35397
35398         Tests of module 'dirent' in C++ mode.
35399         * tests/test-dirent-c++.cc: New file.
35400         * modules/dirent-tests (Files): Add it and tests/signature.h.
35401         (Depends-on): Add ansi-c++-opt.
35402         (Makefile.am): Arrange to compile and run test-dirent-c++.
35403         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35404         gl_MODULE_INDICATOR.
35405
35406         New module 'ansi-c++-opt'.
35407         * modules/ansi-c++-opt: New file.
35408         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
35409
35410         Document C++ namespace mode.
35411         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
35412
35413         wctype: Avoid #define replacements in C++ mode.
35414         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
35415         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
35416         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
35417         In C++, define a namespaced alias symbol.
35418         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
35419         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
35420         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
35421         rule.
35422
35423         wchar: Avoid #define replacements in C++ mode.
35424         * lib/wchar.in.h: Include c++defs.h.
35425         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
35426         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
35427         symbol.
35428         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
35429         * modules/wchar (Depends-on): Add c++defs.
35430         (Makefile.am): Update wchar.h rule.
35431
35432         unistd: Avoid #define replacements in C++ mode.
35433         * lib/unistd.in.h: Include c++defs.h.
35434         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
35435         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
35436         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
35437         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
35438         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
35439         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
35440         symbol.
35441         (environ): Update.
35442         * modules/unistd (Depends-on): Add c++defs.
35443         (Makefile.am): Update unistd.h rule.
35444
35445         time: Avoid #define replacements in C++ mode.
35446         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
35447         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
35448         define a namespaced alias symbol.
35449         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
35450         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
35451         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
35452         * modules/time (Depends-on): Add c++defs, warn-on-use.
35453         (Makefile.am): Update time.h rule.
35454         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35455         * modules/nanosleep (configure.ac): Likewise.
35456         * modules/strptime (configure.ac): Likewise.
35457         * modules/timegm (configure.ac): Likewise.
35458
35459         sys_time: Avoid #define replacements in C++ mode.
35460         * lib/sys_time.in.h: Include c++defs.h.
35461         (gettimeofday): In C++, define a namespaced alias symbol.
35462         * modules/sys_time (Depends-on): Add c++defs.
35463         (Makefile.am): Update sys/time.h rule.
35464
35465         sys_stat: Avoid #define replacements in C++ mode.
35466         * lib/sys_stat.in.h: Include c++defs.h.
35467         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
35468         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
35469         namespaced alias symbol.
35470         In C++, define a namespaced alias symbol.
35471         * modules/sys_stat (Depends-on): Add c++defs.
35472         (Makefile.am): Update sys/stat.h rule.
35473
35474         sys_socket: Avoid #define replacements in C++ mode.
35475         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
35476         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
35477         definitions also when the system has a <sys/socket.h>.
35478         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35479         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
35480         In C++, define a namespaced alias symbol.
35481         * modules/sys_socket (Depends-on): Add c++defs.
35482         (Makefile.am): Update sys/socket.h rule.
35483
35484         sys_select: Avoid #define replacements in C++ mode.
35485         * lib/sys_select.in.h: Include c++defs.h. Enable the function
35486         definitions also when the system has a <sys/select.h>.
35487         (select): In C++, define a namespaced alias symbol.
35488         * modules/sys_select (Depends-on): Add c++defs.
35489         (Makefile.am): Update sys/select.h rule.
35490
35491         sys_ioctl: Avoid #define replacements in C++ mode.
35492         * lib/sys_ioctl.in.h: Include c++defs.h.
35493         (ioctl): In C++, define a namespaced alias symbol.
35494         * modules/sys_ioctl (Depends-on): Add c++defs.
35495         (Makefile.am): Update sys/ioctl.h rule.
35496
35497         string: Avoid #define replacements in C++ mode.
35498         * lib/string.in.h: Include c++defs.h.
35499         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
35500         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
35501         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
35502         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
35503         strsignal, strverscmp): In C++, define a namespaced alias symbol.
35504         * modules/string (Depends-on): Add c++defs.
35505         (Makefile.am): Update string.h rule.
35506
35507         stdlib: Avoid #define replacements in C++ mode.
35508         * lib/stdlib.in.h: Include c++defs.h.
35509         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
35510         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
35511         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
35512         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
35513         symbol.
35514         * modules/stdlib (Depends-on): Add c++defs.
35515         (Makefile.am): Update stdlib.h rule.
35516
35517         stdio: Avoid #define replacements in C++ mode.
35518         * lib/stdio.in.h: Include c++defs.h.
35519         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
35520         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
35521         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
35522         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
35523         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
35524         namespaced alias symbol.
35525         * modules/stdio (Depends-on): Add c++defs.
35526         (Makefile.am): Update stdio.h rule.
35527
35528         spawn: Avoid #define replacements in C++ mode.
35529         * lib/spawn.in.h: Include c++defs.h.
35530         (posix_spawn, posix_spawnp, posix_spawnattr_init,
35531         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
35532         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
35533         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
35534         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
35535         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
35536         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
35537         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
35538         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
35539         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
35540         In C++, define a namespaced alias symbol.
35541         * modules/spawn (Depends-on): Add c++defs.
35542         (Makefile.am): Update spawn.h rule.
35543
35544         signal: Avoid #define replacements in C++ mode.
35545         * lib/signal.in.h: Include c++defs.h.
35546         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
35547         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
35548         namespaced alias symbol.
35549         * modules/signal (Depends-on): Add c++defs.
35550         (Makefile.am): Update signal.h rule.
35551
35552         search: Avoid #define replacements in C++ mode.
35553         * lib/search.in.h: Include c++defs.h.
35554         (_gl_search_compar_fn, _gl_search_action_fn): New types.
35555         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
35556         symbol.
35557         * modules/search (Depends-on): Add c++defs.
35558         (Makefile.am): Update search.h rule.
35559
35560         math: Avoid #define replacements in C++ mode.
35561         * lib/math.in.h: Include c++defs.h.
35562         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
35563         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
35564         trunc, truncl): In C++, define a namespaced alias symbol.
35565         * modules/math (Depends-on): Add c++defs.
35566         (Makefile.am): Update math.h rule.
35567
35568         locale: Avoid #define replacements in C++ mode.
35569         * lib/locale.in.h: Include c++defs.h.
35570         (duplocale): In C++, define a namespaced alias symbol.
35571         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
35572         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
35573         * modules/locale (Depends-on): Add c++defs.
35574         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
35575
35576         langinfo: Avoid #define replacements in C++ mode.
35577         * lib/langinfo.in.h: Include c++defs.h.
35578         (nl_langinfo): In C++, define a namespaced alias symbol.
35579         * modules/langinfo (Depends-on): Add c++defs.
35580         (Makefile.am): Update langinfo.h rule.
35581
35582         iconv-h: Avoid #define replacements in C++ mode.
35583         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
35584         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
35585         symbol.
35586         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35587         whenever iconv is present.
35588         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
35589         (Makefile.am): Update iconv.h rule.
35590
35591         glob: Avoid #define replacements in C++ mode.
35592         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
35593         (_gl_glob_errfunc_fn): New type.
35594         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
35595         symbol.
35596         * modules/glob (Depends-on): Add c++defs, warn-on-use.
35597         (Makefile.am): Update glob.h rule.
35598
35599         fcntl-h: Avoid #define replacements in C++ mode.
35600         * lib/fcntl.in.h: Include c++defs.h.
35601         (fcntl, open, openat): In C++, define a namespaced alias symbol.
35602         * modules/fcntl-h (Depends-on): Add c++defs.
35603         (Makefile.am): Update fcntl.h rule.
35604
35605         dirent: Avoid #define replacements in C++ mode.
35606         * lib/dirent.in.h: Include c++defs.h.
35607         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
35608         namespaced alias symbol.
35609         (dirfd): Update declaration.
35610         * modules/dirent (Depends-on): Add c++defs.
35611         (Makefile.am): Update dirent.h rule.
35612
35613         ctype: Make it usable in C++ code.
35614         * lib/ctype.in.h: Include c++defs.h.
35615         (isblank): Declare as extern "C".
35616         * modules/ctype (Depends-on): Add c++defs.
35617         (Makefile.am): Update ctype.h rule.
35618
35619         New module 'c++defs'.
35620         * modules/c++defs: New file.
35621         * build-aux/c++defs.h: New file.
35622         Reported by John W. Eaton <jwe@gnu.org>.
35623
35624 2010-03-07  Bruno Haible  <bruno@clisp.org>
35625
35626         logb: Provide missing declaration for Cygwin.
35627         * lib/math.in.h (logb): New declaration.
35628         * m4/logb.m4: New file.
35629         * modules/logb (Files): Add m4/logb.m4.
35630         (Depends-on): Add math.
35631         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
35632         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
35633         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
35634         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
35635         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
35636
35637 2010-03-07  Bruno Haible  <bruno@clisp.org>
35638
35639         Fix test-cond link error.
35640         * tests/test-cond.c: Include <stdio.h>.
35641
35642 2010-03-07  Bruno Haible  <bruno@clisp.org>
35643
35644         Fix test-dirent-safer link error.
35645         * modules/dirent-safer-tests (Makefile.am): Define
35646         test_dirent_safer_LDADD.
35647
35648 2010-03-07  Bruno Haible  <bruno@clisp.org>
35649
35650         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
35651         among default module list.
35652
35653 2010-03-07  Bruno Haible  <bruno@clisp.org>
35654
35655         Fix link error on platforms with GNU libiconv.
35656         * modules/unistr/u8-strcoll-tests (Makefile): Define
35657         test_u8_strcoll_LDADD.
35658         * modules/unistr/u16-strcoll-tests (Makefile): Define
35659         test_u16_strcoll_LDADD.
35660         * modules/unistr/u32-strcoll-tests (Makefile): Define
35661         test_u32_strcoll_LDADD.
35662
35663 2010-03-07  Bruno Haible  <bruno@clisp.org>
35664
35665         Use POSIX declarations for socket functions.
35666         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
35667         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
35668         rpl_sendto): Change declaration to match POSIX.
35669         * lib/connect.c (rpl_connect): Likewise.
35670         * lib/accept.c (rpl_accept): Likewise.
35671         * lib/bind.c (rpl_bind): Likewise.
35672         * lib/getpeername.c (rpl_getpeername): Likewise.
35673         * lib/getsockname.c (rpl_getsockname): Likewise.
35674         * lib/recv.c (rpl_recv): Likewise.
35675         * lib/send.c (rpl_send): Likewise.
35676         * lib/recvfrom.c (rpl_recvfrom): Likewise.
35677         * lib/sendto.c (rpl_sendto): Likewise.
35678
35679 2010-03-06  Bruno Haible  <bruno@clisp.org>
35680
35681         Clarify access, euidaccess, faccessat.
35682         * doc/posix-functions/faccessat.texi: Mention security problem under
35683         "Other problems", not "Portability problems".
35684         * doc/posix-functions/access.texi: Likewise. Mention a related security
35685         problem.
35686         * doc/glibc-functions/euidaccess.texi: Mention security problems.
35687         * lib/euidaccess.c: Add comments about platforms.
35688         * lib/unistd.in.h (access, euidaccess): Add warnings.
35689
35690 2010-03-07  Bruno Haible  <bruno@clisp.org>
35691
35692         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
35693         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
35694         (POSIX_SPAWN_SETSCHEDULER): Likewise.
35695         (POSIX_SPAWN_USEVFORK): Define in a way that works when
35696         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35697         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
35698         declare when POSIX_SPAWN_SETSCHEDULER is zero.
35699         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
35700         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
35701         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
35702         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
35703         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
35704         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
35705         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
35706         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
35707         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
35708         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
35709         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
35710         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
35711         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
35712         Likewise.
35713         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
35714         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
35715         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
35716         Likewise.
35717         * tests/test-spawn.c (main): Make it work when
35718         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35719
35720 2010-03-07  Bruno Haible  <bruno@clisp.org>
35721
35722         Fix incorrect Makefile.am generation in German locale.
35723         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35724         Execute sed command with character range in C locale.
35725
35726 2010-03-06  Bruno Haible  <bruno@clisp.org>
35727
35728         Tests for module 'iconv-h'.
35729         * modules/iconv-h-tests: New file.
35730         * tests/test-iconv-h.c: New file.
35731
35732         New module 'iconv-h'.
35733         * modules/iconv-h: New file.
35734         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
35735         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
35736         (configure.ac): Remove gl_ICONV_H.
35737         (Makefile.am): Remove rule for iconv.h.
35738
35739 2010-03-06  Bruno Haible  <bruno@clisp.org>
35740
35741         More consistent naming of *.m4 files.
35742         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
35743         * modules/wctype (Files): Update.
35744
35745         More consistent naming of *.m4 files.
35746         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
35747         * modules/wchar (Files): Update.
35748
35749 2010-03-06  Jim Meyering  <meyering@redhat.com>
35750
35751         euidaccess: relax license to LGPLv2+
35752         * modules/euidaccess (License): Relax to LGPLv2+.
35753
35754 2010-03-06  Bruno Haible  <bruno@clisp.org>
35755
35756         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
35757         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
35758         (Makefile.am): Augment lib_SOURCES instead.
35759
35760 2010-03-04  Jim Meyering  <meyering@redhat.com>
35761
35762         utime: remove obsolete module
35763         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
35764         unnecessary for years, and has been marked as obsolete for 10 months.
35765         * modules/utime: Remove file.
35766         * lib/utime.c: Remove file.
35767         * m4/utime.m4: Remove file.
35768         * m4/utimes-null.m4: Remove file.
35769         * doc/posix-functions/utime.texi (utime): Remove reference to
35770         the module.  Move the sole "fixed by gnulib" item into the
35771         "problems not fixed by Gnulib" list.
35772         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
35773
35774 2010-03-05  Simon Josefsson  <simon@josefsson.org>
35775
35776         * modules/exit (License): Relax license to LGPLv2+.
35777         (Status): Mark as obsolete.
35778         * NEWS: Mention deprecated 'exit' module.
35779         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
35780         of now obsolete 'exit'.
35781
35782 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35783
35784         fts-lgpl: remove unused module
35785         * modules/fts-lgpl: Remove.
35786         * MODULES.html.sh (func_all_modules): Adjust.
35787         * check-module (find_included_lib_files): Adjust.
35788         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
35789
35790 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
35791
35792         copy-acl: enhance Solaris ACL error handling
35793         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
35794         * lib/set-mode-acl.c (qset_acl): Likewise.
35795
35796 2010-03-02  Bruno Haible  <bruno@clisp.org>
35797
35798         spawn: Don't override the system defined values on FreeBSD 8.
35799         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
35800         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
35801         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
35802         if HAVE_POSIX_SPAWN is 1.
35803         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
35804
35805 2010-03-01  Bruno Haible  <bruno@clisp.org>
35806
35807         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
35808         regarding Automake.
35809
35810 2010-02-25  Bruno Haible  <bruno@clisp.org>
35811
35812         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
35813         * gnulib-tool: Define 'echo' as a function only before the ksh alias
35814         setting, not afterwards.
35815         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
35816
35817 2010-02-24  Eric Blake  <eblake@redhat.com>
35818
35819         bootstrap, git-version-gen: use timestamp
35820         * build-aux/git-version-gen (scriptversion): Force UTC.
35821         * build-aux/bootstrap (scriptversion): New variable.
35822
35823         bootstrap: allow older git
35824         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
35825         older than 1.6.4.  Requested by the libvirt project.
35826
35827 2010-02-23  Eric Blake  <eblake@redhat.com>
35828
35829         warn-on-use: work with old autoconf
35830         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
35831         AS_VAR semantics of autoconf 2.60.
35832         Reported by Bruno Haible.
35833
35834         bootstrap: improve some comments
35835         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
35836         clarification comments.
35837
35838         gettimeofday: provide correct function
35839         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
35840         when replacement is declared, otherwise provide gettimeofday.
35841         Reported by Michael Goffioul.
35842
35843 2010-02-23  Jim Meyering  <meyering@redhat.com>
35844
35845         lib-ignore: relax license to "unlimited", not LGPLv2+
35846         * modules/lib-ignore (License): Relax to "unlimited".
35847
35848 2010-02-23  Jim Meyering  <meyering@redhat.com>
35849
35850         lib-ignore: relax license to LGPLv2+
35851         * modules/lib-ignore (License): Relax to LGPLv2+.
35852
35853 2010-02-22  Eric Blake  <eblake@redhat.com>
35854
35855         lseek: avoid bash 3.2 broken pipe bug
35856         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
35857         warning from bash 3.2.
35858         Reported by Ben Pfaff, with analysis from Bruno Haible.
35859
35860         bootstrap: support non-FSF copyright holder
35861         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
35862         bootstrap.conf override of COPYRIGHT_HOLDER.
35863         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
35864
35865         bootstrap: interoperate with gettext 0.14.1
35866         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
35867
35868         bootstrap: allow for alternate submodule location
35869         * build-aux/bootstrap (gnulib_path): New variable; use instead of
35870         hardcoding submodule location.
35871         (gnulib_mk): Allow direct use of Makefile.am.
35872
35873         bootstrap: use GNULIB_SRCDIR to reduce disk usage
35874         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
35875         rather than reconfiguring where the submodule points.
35876
35877         gettimeofday: restore support for platforms that lack function
35878         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
35879         replacement if function is missing.
35880         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
35881         * modules/sys_time (Makefile.am): Substitute it.
35882         * lib/sys_time.in.h (gettimeofday): Check it.
35883         Reported by Michael Goffioul.
35884
35885 2010-02-21  Bruno Haible  <bruno@clisp.org>
35886
35887         * lib/stdio.in.h (obstack_printf): Fix typo.
35888
35889 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
35890
35891         vc-list-files: use bzr ls's -R option
35892         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
35893         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
35894
35895 2010-02-21  Jim Meyering  <meyering@redhat.com>
35896
35897         init.sh: fix EXEEXT shims to work also for names like test-prog
35898         * tests/init.sh: Re-exec a better shell, when needed.
35899         If the current shell lacks support for posix $(...), an init.sh-using
35900         test will now try to find a shell that supports that.  If EXEEXT is
35901         nonempty, we also require support for hyphen-in-alias-name and shell
35902         substitutions like ${var#glob}.  Failure to find such a shell results
35903         in a skipped test.
35904
35905 2010-02-21  Bruno Haible  <bruno@clisp.org>
35906
35907         Really work around around "broken pipe" error message from bash 3.2.
35908         * gnulib-tool (func_reset_sigpipe): Remove function.
35909         (echo): In bash 3.2, define to a function that uses printf.
35910         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
35911
35912 2010-02-20  Bruno Haible  <bruno@clisp.org>
35913
35914         Restore support for automake 1.9.6 with autoconf 2.61.
35915         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
35916         Reported by James Youngman <jay@gnu.org>.
35917
35918 2010-02-20  Bruno Haible  <bruno@clisp.org>
35919
35920         Improve *printf warning condition.
35921         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
35922         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
35923         and the function is overridden due to SIGPIPE emulation.
35924
35925 2010-02-20  Bruno Haible  <bruno@clisp.org>
35926
35927         * lib/stdio.in.h: Tweak comments.
35928
35929 2010-02-19  Bruno Haible  <bruno@clisp.org>
35930
35931         Make it easier to find modules. New gnulib-tool option '--find'.
35932         * gnulib-tool: New option --find.
35933         (func_usage): Document it.
35934         (func_sanitize_modulelist): New function, extracted from
35935         func_all_modules.
35936         (func_all_modules): Invoke it.
35937         * doc/gnulib-tool.texi (Which modules?): New node.
35938
35939 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
35940
35941         * lib/sys_select.in.h: Provide select replacement even if
35942         sys/select.h exists on a system, for Interix.
35943
35944 2010-02-18  Jim Meyering  <meyering@redhat.com>
35945
35946         init.sh: don't use $(...) just yet
35947         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
35948         to accommodate e.g., Solaris' /bin/sh.
35949
35950 2010-02-17  Bruno Haible  <bruno@clisp.org>
35951
35952         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
35953         Reported by Ludovic Courtès <ludo@gnu.org>.
35954
35955 2010-02-16  Simon Josefsson  <simon@josefsson.org>
35956
35957         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
35958         linking with -lintl.
35959
35960 2010-02-17  Simon Josefsson  <simon@josefsson.org>
35961
35962         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
35963         if not provided by the system's netdb.h.  Reported by
35964         ludo@gnu.org (Ludovic Courtès).
35965
35966 2010-02-15  Jim Meyering  <meyering@redhat.com>
35967
35968         init.sh: improve portability and efficiency
35969         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
35970         "dummy" in a for loop.
35971         Use '!', not '^' to select the complement of a character set used
35972         in a "case" statement.
35973         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
35974         Suggestions from Eric Blake.
35975
35976         init.sh: automatically accommodate programs with the .exe suffix
35977         Automatically arrange for an invocation of "prog" to execute the
35978         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
35979         may use the simpler "prog", yet still work when built on a system
35980         that requires specifying the added suffix.
35981         Do this by constructing a function named "prog" that invokes
35982         "prog.exe" for each .exe file in selected directories.
35983         * tests/init.sh (find_exe_basenames_): New function.
35984         (create_exe_shim_functions_): New function.
35985         (path_prepend_): Use it.
35986
35987         maint.mk: mark syntax-check sc_*.m rules as .PHONY
35988         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
35989         "make -t syntax-check" doesn't create a ton of sc_*.m files.
35990
35991 2010-02-14  Jim Meyering  <meyering@redhat.com>
35992
35993         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
35994         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
35995         (sc_prohibit_hash_pjw_without_use): New rule.
35996
35997         maint.mk: allow the default upload destination dir to be overridden
35998         * top/maint.mk (upload_dest_dir_): Define with a default that
35999         preserves the status quo.
36000         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
36001         Reported by Peter Simons.
36002
36003         maint.mk: prohibit inclusion of "hash.h" without_use
36004         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
36005
36006 2010-02-10  Jim Meyering  <meyering@redhat.com>
36007
36008         maint.mk: prohibit inclusion of "ignore-value.h" without_use
36009         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
36010
36011 2010-02-09  Eric Blake  <ebb9@byu.net>
36012         and Bruno Haible  <bruno@clisp.org>
36013
36014         obstack-printf-posix: ensure declaration
36015         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
36016         extracted from gl_FUNC_OBSTACK_PRINTF.
36017         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
36018         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36019         Likewise.
36020         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
36021         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
36022         0.
36023
36024 2010-02-08  Bruno Haible  <bruno@clisp.org>
36025
36026         gnulib-tool: Fix typo in 2010-02-07 commit.
36027         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
36028         Reported by Eric Blake.
36029
36030 2010-02-07  Bruno Haible  <bruno@clisp.org>
36031
36032         gnulib-tool: Fix up caching patches.
36033         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
36034         option --no-cache. Use associative arrays when supported by the shell.
36035         (sed_comments): New variable.
36036         (modcache): Renamed from do_cache.
36037         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
36038         abbreviate unnecessarily.
36039         (have_associative): New variable.
36040         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
36041         way also for ksh and zsh.
36042         (func_init_sed_convert_to_cache_statements): New function, extracted
36043         from func_cache_lookup_module. Add support for associative arrays.
36044         Don't set the c_MODULE_cached variable here. Ignore all lines before
36045         the first field header. Remove only the final newline, not all trailing
36046         newlines. Support empty fields correctly. Limit the use of 'eval' to
36047         assignments.
36048         (func_get_description, func_get_status, func_get_notice,
36049         func_get_applicability, func_get_filelist, func_get_dependencies,
36050         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
36051         func_get_automake_snippet, func_get_include_directive,
36052         func_get_link_directive, func_get_license, func_get_maintainer):
36053         Update documentation. List the unoptimized code first. Add support for
36054         associative arrays. Limit the use of 'eval' to assignments.
36055         (func_get_applicability): Undo stylistic pessimisations.
36056         (func_get_automake_snippet, func_get_include_directive): Reduce code
36057         duplication.
36058         (func_modules_transitive_closure, func_modules_add_dummy,
36059         func_modules_notice, func_modules_to_filelist, func_add_file,
36060         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
36061         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
36062         func_create_testdir, func_create_megatestdir): Update documentation.
36063
36064 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36065
36066         * gnulib-tool (func_cache_lookup_module): Store the module name
36067         belonging to the cache variable; error out if two different
36068         module names map to the same cache variable name.
36069
36070 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36071
36072         gnulib-tool: Make caching optional.
36073         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
36074         Update matching short versions of --no-changelog.
36075         (func_usage): Update.
36076         (sed_extract_cache_prog): Renamed from ...
36077         (sed_extract_prog): ... this; revert to old extraction script.
36078         (func_get_description, func_get_status)
36079         (func_get_notice, func_get_applicability, func_get_filelist)
36080         (func_get_dependencies, func_get_autoconf_early_snippet)
36081         (func_get_autoconf_snippet, func_get_automake_snippet)
36082         (func_get_include_directive, func_get_link_directive)
36083         (func_get_license, func_get_maintainer): If $do_cache is false,
36084         use old, non-caching extraction scripts.
36085         Suggestion by Bruno Haible.
36086
36087 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36088
36089         gnulib-tool: cache module metainformation.
36090         * gnulib-tool (sed_extract_prog): Match newline before each
36091         header, and rewrite header to a shell variable suffix.
36092         (func_cache_var, func_cache_lookup_module): New functions,
36093         to turn a module name into a cache variable prefix, and to
36094         look up and cache module metainformation.
36095         (func_get_description, func_get_status)
36096         (func_get_notice, func_get_applicability, func_get_filelist)
36097         (func_get_dependencies, func_get_autoconf_early_snippet)
36098         (func_get_autoconf_snippet, func_get_automake_snippet)
36099         (func_get_include_directive, func_get_link_directive)
36100         (func_get_license, func_get_maintainer): Use
36101         func_cache_lookup_module.
36102
36103 2010-02-07  Bruno Haible  <bruno@clisp.org>
36104
36105         fnctl: Fix missing dependency.
36106         * modules/fcntl (Depends-on): Add getdtablesize.
36107         Reported by John W. Eaton <jwe@gnu.org>.
36108
36109 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36110
36111         Argp: fix recognition of short alias options.
36112
36113         * lib/argp-parse.c (convert_options): Fix improper use of
36114         `|' between character values.
36115         * tests/test-argp.c (group1_option): New alias option
36116         --read (-r).
36117         (group1_parser): Special handling for 'r'.
36118         (test15): New test case.
36119         (test_fun): Add test15.
36120         * tests/test-argp-2.sh: Update expected --help and --usage
36121         outputs.
36122
36123 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36124
36125         * tests/test-argp.c: Fix indentation.
36126
36127 2010-02-04  Eric Blake  <ebb9@byu.net>
36128
36129         gettimeofday: expose type of second argument
36130         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
36131         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
36132         * tests/test-gettimeofday.c: Use it to silence warning.
36133         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
36134         the issue.
36135
36136 2010-02-03  Jim Meyering  <meyering@redhat.com>
36137
36138         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
36139         * lib/regcomp.c (TYPE_SIGNED): Define.
36140         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
36141
36142         regcomp.c: avoid a new -Wshadow warning
36143         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
36144
36145 2010-02-01  Jim Meyering  <meyering@redhat.com>
36146
36147         removing useless parentheses in cpp #define directives
36148         For motivation, see commit c0221df4, "define STREQ(a,b)
36149         consistently, removing useless parentheses"
36150         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
36151         * lib/mountlist.c (MNT_IGNORE): Likewise.
36152         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
36153
36154 2010-02-01  Eric Blake  <ebb9@byu.net>
36155
36156         sys_time: use link-warning
36157         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
36158         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
36159         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
36160         * modules/sys_time (Depends-on): Add warn-on-use.
36161         (Makefile.am): Always build replacement.
36162         (configure.ac): Update substitutions.
36163         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
36164         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
36165         bother with SYS_TIME_H.
36166         * modules/gettimeofday (configure.ac): Declare indicator.
36167         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
36168         in use.
36169
36170         closein-tests: silence compiler warning
36171         * tests/test-closein.c (main): Ignore fread result.
36172         * modules/closein-tests (Depends-on): Add ignore-value.
36173
36174         tests: silence warning about system return
36175         * tests/test-areadlink-with-size.c (main): Ignore system result.
36176         * tests/test-areadlink.c (main): Likewise.
36177         * tests/test-areadlinkat-with-size.c (main): Likewise.
36178         * tests/test-areadlinkat.c (main): Likewise.
36179         * tests/test-canonicalize-lgpl.c (main): Likewise.
36180         * tests/test-canonicalize.c (main): Likewise.
36181         * tests/test-chown.c (main): Likewise.
36182         * tests/test-fchownat.c (main): Likewise.
36183         * tests/test-fdutimensat.c (main): Likewise.
36184         * tests/test-fstatat.c (main): Likewise.
36185         * tests/test-futimens.c (main): Likewise.
36186         * tests/test-lchown.c (main): Likewise.
36187         * tests/test-link.c (main): Likewise.
36188         * tests/test-linkat.c (main): Likewise.
36189         * tests/test-lstat.c (main): Likewise.
36190         * tests/test-mkdir.c (main): Likewise.
36191         * tests/test-mkdirat.c (main): Likewise.
36192         * tests/test-mkfifo.c (main): Likewise.
36193         * tests/test-mkfifoat.c (main): Likewise.
36194         * tests/test-mknod.c (main): Likewise.
36195         * tests/test-readlink.c (main): Likewise.
36196         * tests/test-remove.c (main): Likewise.
36197         * tests/test-rename.c (main): Likewise.
36198         * tests/test-renameat.c (main): Likewise.
36199         * tests/test-rmdir.c (main): Likewise.
36200         * tests/test-symlink.c (main): Likewise.
36201         * tests/test-symlinkat.c (main): Likewise.
36202         * tests/test-unlink.c (main): Likewise.
36203         * tests/test-unlinkat.c (main): Likewise.
36204         * tests/test-utimens.c (main): Likewise.
36205         * tests/test-utimensat.c (main): Likewise.
36206         * modules/areadlink-tests (Depends-on): Add ignore-value.
36207         * modules/areadlink-with-size-tests (Depends-on): Likewise.
36208         * modules/areadlinkat-tests (Depends-on): Likewise.
36209         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
36210         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36211         * modules/canonicalize-tests (Depends-on): Likewise.
36212         * modules/chown-tests (Depends-on): Likewise.
36213         * modules/fdutimensat-tests (Depends-on): Likewise.
36214         * modules/futimens-tests (Depends-on): Likewise.
36215         * modules/lchown-tests (Depends-on): Likewise.
36216         * modules/link-tests (Depends-on): Likewise.
36217         * modules/linkat-tests (Depends-on): Likewise.
36218         * modules/lstat-tests (Depends-on): Likewise.
36219         * modules/mkdir-tests (Depends-on): Likewise.
36220         * modules/mkfifo-tests (Depends-on): Likewise.
36221         * modules/mkfifoat-tests (Depends-on): Likewise.
36222         * modules/mknod-tests (Depends-on): Likewise.
36223         * modules/openat-tests (Depends-on): Likewise.
36224         * modules/readlink-tests (Depends-on): Likewise.
36225         * modules/remove-tests (Depends-on): Likewise.
36226         * modules/rename-tests (Depends-on): Likewise.
36227         * modules/renameat-tests (Depends-on): Likewise.
36228         * modules/rmdir-tests (Depends-on): Likewise.
36229         * modules/symlink-tests (Depends-on): Likewise.
36230         * modules/symlinkat-tests (Depends-on): Likewise.
36231         * modules/unlink-tests (Depends-on): Likewise.
36232         * modules/utimens-tests (Depends-on): Likewise.
36233         * modules/utimensat-tests (Depends-on): Likewise.
36234
36235 2010-01-31  Bruno Haible  <bruno@clisp.org>
36236
36237         Perform the same test for many <math.h> functions.
36238         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
36239         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
36240         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
36241         of gl_MATHFUNC.
36242         * modules/acos (configure.ac): Likewise.
36243         * modules/asin (configure.ac): Likewise.
36244         * modules/atan (configure.ac): Likewise.
36245         * modules/atan2 (configure.ac): Likewise.
36246         * modules/cbrt (configure.ac): Likewise.
36247         * modules/copysign (configure.ac): Likewise.
36248         * modules/cos (configure.ac): Likewise.
36249         * modules/cosh (configure.ac): Likewise.
36250         * modules/erf (configure.ac): Likewise.
36251         * modules/erfc (configure.ac): Likewise.
36252         * modules/exp (configure.ac): Likewise.
36253         * modules/fmod (configure.ac): Likewise.
36254         * modules/hypot (configure.ac): Likewise.
36255         * modules/j0 (configure.ac): Likewise.
36256         * modules/j1 (configure.ac): Likewise.
36257         * modules/jn (configure.ac): Likewise.
36258         * modules/lgamma (configure.ac): Likewise.
36259         * modules/log (configure.ac): Likewise.
36260         * modules/log10 (configure.ac): Likewise.
36261         * modules/log1p (configure.ac): Likewise.
36262         * modules/pow (configure.ac): Likewise.
36263         * modules/remainder (configure.ac): Likewise.
36264         * modules/sin (configure.ac): Likewise.
36265         * modules/sinh (configure.ac): Likewise.
36266         * modules/tan (configure.ac): Likewise.
36267         * modules/tanh (configure.ac): Likewise.
36268         * modules/y0 (configure.ac): Likewise.
36269         * modules/y1 (configure.ac): Likewise.
36270         * modules/yn (configure.ac): Likewise.
36271         Suggested by Paolo Bonzini.
36272
36273 2010-01-31  Bruno Haible  <bruno@clisp.org>
36274
36275         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
36276
36277 2010-01-31  Bruno Haible  <bruno@clisp.org>
36278
36279         Work around getdelim() bug on FreeBSD 8.0.
36280         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
36281         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
36282         not work.
36283         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
36284         is 1.
36285         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
36286         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
36287         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
36288         a non-zero size.
36289         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
36290
36291 2010-01-31  Bruno Haible  <bruno@clisp.org>
36292
36293         Work around getline() bug on FreeBSD 8.0.
36294         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
36295         and a non-zero size.
36296         * tests/test-getline.c (main): Likewise.
36297         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
36298         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
36299
36300 2010-01-28  Eric Blake  <ebb9@byu.net>
36301
36302         regex: fix build failure
36303         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
36304         platforms.
36305
36306 2010-01-28  Jim Meyering  <meyering@redhat.com>
36307
36308         regex: do not ignore memory allocation failure
36309         * lib/regex_internal.c (create_cd_newstate): Detect
36310         re_node_set_init_copy failure.   Extracted from glibc commit
36311         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36312
36313         regex: sync more white-space changes from libc
36314         * lib/regex_internal.c: White-space only changes.
36315         * lib/regexec.c: Likewise.
36316
36317         regex: add many uses of __attribute_warn_unused_result__
36318         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
36319         * lib/regexec.c: Likewise.
36320         Extracted from a messy glibc commit.
36321
36322         regcomp.c: spelling and merge-artifact from glibc
36323         * lib/regcomp.c: Merge remainder of glibc's
36324         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36325
36326         regcomp.c: sync white-space changes from glibc
36327         * lib/regcomp.c: Merge to accommodate white space
36328         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36329
36330         regcomp.c: do not ignore internal return values
36331         * lib/regcomp.c: Do not ignore internal return values.
36332         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
36333         but without its white-space changes and spelling fixes.
36334
36335         regex_internal.h: define __attribute_warn_unused_result__
36336         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
36337
36338         maint: add a syntax-check rule to check for vulnerable Makefile.in
36339         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
36340
36341 2010-01-27  Jim Meyering  <meyering@redhat.com>
36342
36343         ncftpput-ftp: clean up spaces
36344         * build-aux/ncftpput-ftp: Make Copyright line consistent.
36345         Remove trailing blanks.
36346
36347 2010-01-27  Simon Josefsson  <simon@josefsson.org>
36348
36349         * build-aux/git-version-gen: Fix copyright statement.
36350         * build-aux/gnupload: Likewise.
36351         * tests/test-arcfour.c: Likewise.
36352         * tests/test-arctwo.c: Likewise.
36353         * tests/test-count-one-bits.c: Likewise.
36354         * tests/test-crc.c: Likewise.
36355         * tests/test-des.c: Likewise.
36356         * tests/test-gc-arcfour.c: Likewise.
36357         * tests/test-gc-arctwo.c: Likewise.
36358         * tests/test-gc-des.c: Likewise.
36359         * tests/test-gc-hmac-md5.c: Likewise.
36360         * tests/test-gc-hmac-sha1.c: Likewise.
36361         * tests/test-gc-md2.c: Likewise.
36362         * tests/test-gc-md4.c: Likewise.
36363         * tests/test-gc-md5.c: Likewise.
36364         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36365         * tests/test-gc-rijndael.c: Likewise.
36366         * tests/test-gc-sha1.c: Likewise.
36367         * tests/test-gc.c: Likewise.
36368         * tests/test-gethostname.c: Likewise.
36369         * tests/test-gettimeofday.c: Likewise.
36370         * tests/test-hash.c: Likewise.
36371         * tests/test-hmac-md5.c: Likewise.
36372         * tests/test-hmac-sha1.c: Likewise.
36373         * tests/test-md2.c: Likewise.
36374         * tests/test-md4.c: Likewise.
36375         * tests/test-md5.c: Likewise.
36376         * tests/test-memchr.c: Likewise.
36377         * tests/test-memchr2.c: Likewise.
36378         * tests/test-memcmp.c: Likewise.
36379         * tests/test-memmem.c: Likewise.
36380         * tests/test-memrchr.c: Likewise.
36381         * tests/test-rawmemchr.c: Likewise.
36382         * tests/test-read-file.c: Likewise.
36383         * tests/test-rijndael.c: Likewise.
36384         * tests/test-sockets.c: Likewise.
36385         * tests/test-strchrnul.c: Likewise.
36386         * tests/test-strstr.c: Likewise.
36387         * tests/test-strtod.c: Likewise.
36388         * build-aux/ncftpput-ftp: Likewise.
36389
36390 2010-01-26  Eric Blake  <ebb9@byu.net>
36391
36392         ignore-value: update recommended header name
36393         * modules/ignore-value (Include): Only use <> for headers that
36394         exist in glibc.
36395
36396 2010-01-26  Jim Meyering  <meyering@redhat.com>
36397
36398         test-userspec.c: avoid compiler warnings
36399         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
36400         and "initialization discards qualifiers..." warnings.
36401         Put the first "uid" in its own scope, and make char* members "const".
36402
36403 2010-01-25  Bruno Haible  <bruno@clisp.org>
36404
36405         gnulib-tool: Make warning diagnostics consistent.
36406         * gnulib-tool (func_warning): New function.
36407         Use it everywhere where gnulib-tool produces output to stderr and it is
36408         not a fatal error.
36409
36410 2010-01-25  Bruno Haible  <bruno@clisp.org>
36411
36412         Fix test dependencies.
36413         * modules/xstrtol-tests (Depends-on): Add inttypes.
36414         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
36415
36416 2010-01-25 Pádraig Brady <P@draigBrady.com>
36417
36418         syntax-check: detect incorrect boolean macro values in config.h
36419         * modules/maintainer-makefile (configure.ac): Parameterize the location
36420         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
36421         The logic is from Eric Blake and the location indicated by Jim Meyering.
36422         Note the more natural CONFIG_HEADER name is prohibited by automake
36423         for backwards compatibility reasons.
36424         * top/maint.mk (sc_Wundef_boolean): New rule.
36425
36426 2010-01-25  Jim Meyering  <meyering@redhat.com>
36427
36428         bootstrap: detect MacOS 10.6's shasum, too
36429         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
36430         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
36431
36432 2010-01-23  Jim Meyering  <meyering@redhat.com>
36433
36434         xstrtoll: new module
36435         * modules/xstrtoll: New file.
36436         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
36437         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
36438         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
36439         ./configure fails if you use this module and lack "long long".
36440         * modules/xstrtoll-tests: New module.
36441         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
36442         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
36443         new init.sh-based test framework.
36444
36445 2010-01-24  Bruno Haible  <bruno@clisp.org>
36446
36447         Tests for module 'yn'.
36448         * modules/yn-tests: New file.
36449         * tests/test-yn.c: New file.
36450
36451         Tests for module 'y1'.
36452         * modules/y1-tests: New file.
36453         * tests/test-y1.c: New file.
36454
36455         Tests for module 'y0'.
36456         * modules/y0-tests: New file.
36457         * tests/test-y0.c: New file.
36458
36459         Tests for module 'tanh'.
36460         * modules/tanh-tests: New file.
36461         * tests/test-tanh.c: New file.
36462
36463         Tests for module 'tan'.
36464         * modules/tan-tests: New file.
36465         * tests/test-tan.c: New file.
36466
36467         Tests for module 'sqrt'.
36468         * modules/sqrt-tests: New file.
36469         * tests/test-sqrt.c: New file.
36470
36471         Tests for module 'sinh'.
36472         * modules/sinh-tests: New file.
36473         * tests/test-sinh.c: New file.
36474
36475         Tests for module 'sin'.
36476         * modules/sin-tests: New file.
36477         * tests/test-sin.c: New file.
36478
36479         Tests for module 'rint'.
36480         * modules/rint-tests: New file.
36481         * tests/test-rint.c: New file.
36482
36483         Tests for module 'remainder'.
36484         * modules/remainder-tests: New file.
36485         * tests/test-remainder.c: New file.
36486
36487         Tests for module 'pow'.
36488         * modules/pow-tests: New file.
36489         * tests/test-pow.c: New file.
36490
36491         Tests for module 'nextafter'.
36492         * modules/nextafter-tests: New file.
36493         * tests/test-nextafter.c: New file.
36494
36495         Tests for module 'modf'.
36496         * modules/modf-tests: New file.
36497         * tests/test-modf.c: New file.
36498
36499         Tests for module 'logb'.
36500         * modules/logb-tests: New file.
36501         * tests/test-logb.c: New file.
36502
36503         Tests for module 'log1p'.
36504         * modules/log1p-tests: New file.
36505         * tests/test-log1p.c: New file.
36506
36507         Tests for module 'log10'.
36508         * modules/log10-tests: New file.
36509         * tests/test-log10.c: New file.
36510
36511         Tests for module 'log'.
36512         * modules/log-tests: New file.
36513         * tests/test-log.c: New file.
36514
36515         Tests for module 'lgamma'.
36516         * modules/lgamma-tests: New file.
36517         * tests/test-lgamma.c: New file.
36518
36519         Tests for module 'ldexp'.
36520         * modules/ldexp-tests: New file.
36521         * tests/test-ldexp.c: New file.
36522
36523         Tests for module 'jn'.
36524         * modules/jn-tests: New file.
36525         * tests/test-jn.c: New file.
36526
36527         Tests for module 'j1'.
36528         * modules/j1-tests: New file.
36529         * tests/test-j1.c: New file.
36530
36531         Tests for module 'j0'.
36532         * modules/j0-tests: New file.
36533         * tests/test-j0.c: New file.
36534
36535         Tests for module 'hypot'.
36536         * modules/hypot-tests: New file.
36537         * tests/test-hypot.c: New file.
36538
36539         Tests for module 'fmod'.
36540         * modules/fmod-tests: New file.
36541         * tests/test-fmod.c: New file.
36542
36543         Tests for module 'fabs'.
36544         * modules/fabs-tests: New file.
36545         * tests/test-fabs.c: New file.
36546
36547         Tests for module 'exp'.
36548         * modules/exp-tests: New file.
36549         * tests/test-exp.c: New file.
36550
36551         Tests for module 'erfc'.
36552         * modules/erfc-tests: New file.
36553         * tests/test-erfc.c: New file.
36554
36555         Tests for module 'erf'.
36556         * modules/erf-tests: New file.
36557         * tests/test-erf.c: New file.
36558
36559         Tests for module 'cosh'.
36560         * modules/cosh-tests: New file.
36561         * tests/test-cosh.c: New file.
36562
36563         Tests for module 'cos'.
36564         * modules/cos-tests: New file.
36565         * tests/test-cos.c: New file.
36566
36567         Tests for module 'copysign'.
36568         * modules/copysign-tests: New file.
36569         * tests/test-copysign.c: New file.
36570
36571         Tests for module 'cbrt'.
36572         * modules/cbrt-tests: New file.
36573         * tests/test-cbrt.c: New file.
36574
36575         Tests for module 'atan2'.
36576         * modules/atan2-tests: New file.
36577         * tests/test-atan2.c: New file.
36578
36579         Tests for module 'atan'.
36580         * modules/atan-tests: New file.
36581         * tests/test-atan.c: New file.
36582
36583         Tests for module 'asin'.
36584         * modules/asin-tests: New file.
36585         * tests/test-asin.c: New file.
36586
36587         Tests for module 'acos'.
36588         * modules/acos-tests: New file.
36589         * tests/test-acos.c: New file.
36590
36591 2010-01-24  Bruno Haible  <bruno@clisp.org>
36592
36593         Fix tests for common <math.h> functions.
36594         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
36595         code snippet that references the function pointer, rather than merely
36596         calling the function. Substitute the FUNC_LIBM variable.
36597         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
36598         * modules/acos (configure.ac): Likewise.
36599         * modules/asin (configure.ac): Likewise.
36600         * modules/atan (configure.ac): Likewise.
36601         * modules/atan2 (configure.ac): Likewise.
36602         * modules/cbrt (configure.ac): Likewise.
36603         * modules/copysign (configure.ac): Likewise.
36604         * modules/cos (configure.ac): Likewise.
36605         * modules/cosh (configure.ac): Likewise.
36606         * modules/erf (configure.ac): Likewise.
36607         * modules/erfc (configure.ac): Likewise.
36608         * modules/exp (configure.ac): Likewise.
36609         * modules/fabs (configure.ac): Likewise.
36610         * modules/fmod (configure.ac): Likewise.
36611         * modules/hypot (configure.ac): Likewise.
36612         * modules/j0 (configure.ac): Likewise.
36613         * modules/j1 (configure.ac): Likewise.
36614         * modules/jn (configure.ac): Likewise.
36615         * modules/ldexp (configure.ac): Likewise.
36616         * modules/lgamma (configure.ac): Likewise.
36617         * modules/log (configure.ac): Likewise.
36618         * modules/log10 (configure.ac): Likewise.
36619         * modules/log1p (configure.ac): Likewise.
36620         * modules/logb (configure.ac): Likewise.
36621         * modules/modf (configure.ac): Likewise.
36622         * modules/nextafter (configure.ac): Likewise.
36623         * modules/pow (configure.ac): Likewise.
36624         * modules/remainder (configure.ac): Likewise.
36625         * modules/rint (configure.ac): Likewise.
36626         * modules/sin (configure.ac): Likewise.
36627         * modules/sinh (configure.ac): Likewise.
36628         * modules/tan (configure.ac): Likewise.
36629         * modules/tanh (configure.ac): Likewise.
36630         * modules/y0 (configure.ac): Likewise.
36631         * modules/y1 (configure.ac): Likewise.
36632         * modules/yn (configure.ac): Likewise.
36633
36634 2010-01-24  Bruno Haible  <bruno@clisp.org>
36635
36636         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
36637         * tests/test-acosl.c (x): New variable.
36638         (main): Store argument in x and fetch it from x.
36639         * tests/test-asinl.c (x): New variable.
36640         (main): Store argument in x and fetch it from x.
36641         * tests/test-atanl.c (x): New variable.
36642         (main): Store argument in x and fetch it from x.
36643         * tests/test-cosl.c (x): New variable.
36644         (main): Store argument in x and fetch it from x.
36645         * tests/test-expl.c (x): New variable.
36646         (main): Store argument in x and fetch it from x.
36647         * tests/test-logl.c (x): New variable.
36648         (main): Store argument in x and fetch it from x.
36649         * tests/test-sinl.c (x): New variable.
36650         (main): Store argument in x and fetch it from x.
36651         * tests/test-sqrtl.c (x): New variable.
36652         (main): Store argument in x and fetch it from x.
36653         * tests/test-tanl.c (x): New variable.
36654         (main): Store argument in x and fetch it from x.
36655
36656 2010-01-24  Bruno Haible  <bruno@clisp.org>
36657
36658         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
36659         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
36660         assignments to the initial TESTS_ENVIRONMENT.
36661         * doc/gnulib.texi (Unit test modules): Document it.
36662         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
36663         TESTS_ENVIRONMENT.
36664         * modules/btowc-tests (Makefile.am): Likewise.
36665         * modules/c-stack-tests (Makefile.am): Likewise.
36666         * modules/c-strcase-tests (Makefile.am): Likewise.
36667         * modules/copy-file-tests (Makefile.am): Likewise.
36668         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
36669         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
36670         * modules/mbrtowc-tests (Makefile.am): Likewise.
36671         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36672         * modules/mbscasestr-tests (Makefile.am): Likewise.
36673         * modules/mbschr-tests (Makefile.am): Likewise.
36674         * modules/mbscspn-tests (Makefile.am): Likewise.
36675         * modules/mbsinit-tests (Makefile.am): Likewise.
36676         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36677         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
36678         * modules/mbspbrk-tests (Makefile.am): Likewise.
36679         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36680         * modules/mbsrchr-tests (Makefile.am): Likewise.
36681         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
36682         * modules/mbsspn-tests (Makefile.am): Likewise.
36683         * modules/mbsstr-tests (Makefile.am): Likewise.
36684         * modules/nl_langinfo-tests (Makefile.am): Likewise.
36685         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
36686         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36687         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36688         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36689         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36690         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
36691         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36692         * modules/wcrtomb-tests (Makefile.am): Likewise.
36693         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
36694         * modules/wcsrtombs-tests (Makefile.am): Likewise.
36695         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
36696         assignments from TESTS_ENVIRONMENT.
36697         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
36698         augmentation.
36699         * modules/argp-version-etc-tests (Makefile.am): Likewise.
36700         * modules/atexit-tests (Makefile.am): Likewise.
36701         * modules/binary-io-tests (Makefile.am): Likewise.
36702         * modules/closein-tests (Makefile.am): Likewise.
36703         * modules/dprintf-posix-tests (Makefile.am): Likewise.
36704         * modules/exclude-tests (Makefile.am): Likewise.
36705         * modules/fflush-tests (Makefile.am): Likewise.
36706         * modules/fpending-tests (Makefile.am): Likewise.
36707         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36708         * modules/freadahead-tests (Makefile.am): Likewise.
36709         * modules/freadptr-tests (Makefile.am): Likewise.
36710         * modules/freadseek-tests (Makefile.am): Likewise.
36711         * modules/fseek-tests (Makefile.am): Likewise.
36712         * modules/fseeko-tests (Makefile.am): Likewise.
36713         * modules/ftell-tests (Makefile.am): Likewise.
36714         * modules/ftello-tests (Makefile.am): Likewise.
36715         * modules/idpriv-drop-tests (Makefile.am): Likewise.
36716         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
36717         * modules/lseek-tests (Makefile.am): Likewise.
36718         * modules/parse-duration-tests (Makefile.am): Likewise.
36719         * modules/perror-tests (Makefile.am): Likewise.
36720         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
36721         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
36722         * modules/pipe-tests (Makefile.am): Likewise.
36723         * modules/pread-tests (Makefile.am): Likewise.
36724         * modules/printf-posix-tests (Makefile.am): Likewise.
36725         * modules/select-tests (Makefile.am): Likewise.
36726         * modules/sigpipe-tests (Makefile.am): Likewise.
36727         * modules/tsearch-tests (Makefile.am): Likewise.
36728         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
36729         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
36730         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36731         * modules/uniwidth/width-tests (Makefile.am): Likewise.
36732         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
36733         * modules/version-etc-tests (Makefile.am): Likewise.
36734         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36735         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36736         * modules/xalloc-die-tests (Makefile.am): Likewise.
36737         * modules/xprintf-posix-tests (Makefile.am): Likewise.
36738         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36739         * modules/xstrtol-tests (Makefile.am): Likewise.
36740         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36741         * modules/yesno-tests (Makefile.am): Likewise.
36742         Suggested by Jim Meyering.
36743
36744 2010-01-24  Bruno Haible  <bruno@clisp.org>
36745
36746         More documentation.
36747         * doc/gnulib.texi (Writing modules): New chapter.
36748         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
36749         the new chapter.
36750
36751 2010-01-24  Jim Meyering  <meyering@redhat.com>
36752
36753         maint.mk: do not prepend "./" after filtering
36754         * top/maint.mk (_prepend_srcdir_prefix): New variable
36755         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
36756         "./" when $(srcdir) is ".".
36757
36758         define STREQ(a,b) consistently, removing useless parentheses
36759         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
36760         since the only risk is that "a" or "b" contains an unparenthesized
36761         comma, but if either did that, STREQ would have 3 or more arguments.
36762         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
36763         * lib/fts.c (STREQ): Remove unnecessary parentheses.
36764         * lib/hash-triple.c (STREQ): Likewise.
36765         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
36766         * lib/getugroups.c (STREQ): Likewise.
36767
36768 2010-01-23  Jim Meyering  <meyering@redhat.com>
36769
36770         maint.mk: fix syntax-check in a non-srcdir build directory
36771         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
36772         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
36773
36774 2010-01-22  Jim Meyering  <meyering@redhat.com>
36775
36776         userspec: add unit tests
36777         * tests/test-userspec.c: New file.
36778         * modules/userspec-tests: Likewise.
36779
36780 2010-01-21  Jim Meyering  <meyering@redhat.com>
36781
36782         maint.mk: handle source file names containing "." robustly
36783         * top/maint.mk (_dot_escaped_srcdir): Define.
36784         (VC_LIST): Use it in LHS of sed substitution.
36785
36786 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
36787
36788         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
36789         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
36790         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
36791         from a non-srcdir build.
36792
36793 2010-01-20  Eric Blake  <ebb9@byu.net>
36794
36795         warn-on-use: use instead of link-warning
36796         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
36797         * modules/unistd (Depends-on, Makefile.am): Likewise.
36798         * modules/arpa_inet (Depends-on): Replace link-warning with
36799         warn-on-use.
36800         (Makefile.am): Update rules accordingly.
36801         * modules/ctype (Depends-on, Makefile.am): Likewise.
36802         * modules/dirent (Depends-on, Makefile.am): Likewise.
36803         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
36804         * modules/inttypes (Depends-on, Makefile.am): Likewise.
36805         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36806         * modules/locale (Depends-on, Makefile.am): Likewise.
36807         * modules/math (Depends-on, Makefile.am): Likewise.
36808         * modules/search (Depends-on, Makefile.am): Likewise.
36809         * modules/signal (Depends-on, Makefile.am): Likewise.
36810         * modules/spawn (Depends-on, Makefile.am): Likewise.
36811         * modules/stdlib (Depends-on, Makefile.am): Likewise.
36812         * modules/string (Depends-on, Makefile.am): Likewise.
36813         * modules/strings (Depends-on, Makefile.am): Likewise.
36814         * modules/sys_file (Depends-on, Makefile.am): Likewise.
36815         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
36816         * modules/sys_select (Depends-on, Makefile.am): Likewise.
36817         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
36818         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
36819         * modules/sys_times (Depends-on, Makefile.am): Likewise.
36820         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36821         * modules/wchar (Depends-on, Makefile.am): Likewise.
36822         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
36823         should be poisoned.
36824         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
36825         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
36826         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
36827         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36828         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36829         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
36830         * m4/math_h.m4 (gl_MATH_H): Likewise.
36831         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36832         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
36833         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36834         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
36835         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
36836         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
36837         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
36838         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
36839         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
36840         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36841         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36842         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
36843         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36844         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36845         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36846         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36847         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
36848         GL_LINK_WARNING.
36849         * lib/ctype.in.h: Likewise.
36850         * lib/dirent.in.h: Likewise.
36851         * lib/fcntl.in.h: Likewise.
36852         * lib/inttypes.in.h: Likewise.
36853         * lib/langinfo.in.h: Likewise.
36854         * lib/locale.in.h: Likewise.
36855         * lib/math.in.h: Likewise.
36856         * lib/search.in.h: Likewise.
36857         * lib/signal.in.h: Likewise.
36858         * lib/spawn.in.h: Likewise.
36859         * lib/stdio.in.h: Likewise.
36860         * lib/stdlib.in.h: Likewise.
36861         * lib/string.in.h: Likewise.
36862         * lib/strings.in.h: Likewise.
36863         * lib/sys_file.in.h: Likewise.
36864         * lib/sys_ioctl.in.h: Likewise.
36865         * lib/sys_select.in.h: Likewise.
36866         * lib/sys_socket.in.h: Likewise.
36867         * lib/sys_stat.in.h: Likewise.
36868         * lib/sys_times.in.h: Likewise.
36869         * lib/sys_utsname.in.h: Likewise.
36870         * lib/unistd.in.h: Likewise.
36871         * lib/wchar.in.h: Likewise.
36872
36873 2010-01-20  Bruno Haible  <bruno@clisp.org>
36874
36875         Avoid duplicate -lm.
36876         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
36877         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
36878         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
36879         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
36880         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
36881         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
36882         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
36883         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
36884         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
36885         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
36886         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
36887         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
36888         Reported by Paolo Bonzini.
36889
36890 2010-01-19  Bruno Haible  <bruno@clisp.org>
36891
36892         langinfo, nl_langinfo: Relicense under LGPLv2+.
36893         * modules/langinfo (License): Change to LGPLv2+.
36894         * modules/nl_langinfo (License): Likewise.
36895         Patch by David Lutterkort <lutter@redhat.com>.
36896
36897 2010-01-19  Bruno Haible  <bruno@clisp.org>
36898
36899         Avoid compilation error with cc on OSF/1 5.1.
36900         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
36901         statement, not before.
36902         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36903
36904 2010-01-18  Bruno Haible  <bruno@clisp.org>
36905
36906         Avoid a link error due to the __printf__ symbol.
36907         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
36908         and 2.6.x.
36909         (__format__, __printf__): Remove definitions.
36910         * lib/argp-fmtstream.h: Likewise.
36911         * lib/argp.h: Likewise.
36912         * lib/error.h: Likewise.
36913         * lib/vasnprintf.h: Likewise.
36914         * lib/xprintf.h: Likewise.
36915         * lib/xvasprintf.h: Likewise.
36916         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36917
36918 2010-01-18  Bruno Haible  <bruno@clisp.org>
36919
36920         Tests for module 'tanl'.
36921         * modules/tanl-tests: New file.
36922         * tests/test-tanl.c: New file.
36923
36924         Tests for module 'sqrtl'.
36925         * modules/sqrtl-tests: New file.
36926         * tests/test-sqrtl.c: New file.
36927
36928         Tests for module 'sinl'.
36929         * modules/sinl-tests: New file.
36930         * tests/test-sinl.c: New file.
36931
36932         Tests for module 'logl'.
36933         * modules/logl-tests: New file.
36934         * tests/test-logl.c: New file.
36935
36936         Tests for module 'expl'.
36937         * modules/expl-tests: New file.
36938         * tests/test-expl.c: New file.
36939
36940         Tests for module 'cosl'.
36941         * modules/cosl-tests: New file.
36942         * tests/test-cosl.c: New file.
36943
36944         Tests for module 'atanl'.
36945         * modules/atanl-tests: New file.
36946         * tests/test-atanl.c: New file.
36947
36948         Tests for module 'asinl'.
36949         * modules/asinl-tests: New file.
36950         * tests/test-asinl.c: New file.
36951
36952         Tests for module 'acosl'.
36953         * modules/acosl-tests: New file.
36954         * tests/test-acosl.c: New file.
36955
36956         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36957         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
36958         tanl): Use the standard gnulib idiom.
36959         * lib/cosl.c: Don't include trigl.c and sincosl.c.
36960         * lib/sinl.c: Likewise.
36961         * lib/tanl.c: Don't include trigl.c.
36962         (kernel_tanl): Make static.
36963         * lib/sincosl.c: Include trigl.h first.
36964         * lib/trigl.c: Likewise.
36965         * m4/acosl.m4: New file.
36966         * m4/asinl.m4: New file.
36967         * m4/atanl.m4: New file.
36968         * m4/cosl.m4: New file.
36969         * m4/expl.m4: New file.
36970         * m4/logl.m4: New file.
36971         * m4/sinl.m4: New file.
36972         * m4/sqrtl.m4: New file.
36973         * m4/tanl.m4: New file.
36974         * m4/mathl.m4: Remove file.
36975         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
36976         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36977         Don't initialize GNULIB_MATHL.
36978         * modules/acosl: New file.
36979         * modules/asinl: New file.
36980         * modules/atanl: New file.
36981         * modules/cosl: New file.
36982         * modules/expl: New file.
36983         * modules/logl: New file.
36984         * modules/sinl: New file.
36985         * modules/sqrtl: New file.
36986         * modules/tanl: New file.
36987         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
36988         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
36989         substitute GNULIB_MATHL.
36990         * modules/mathl: Rewritten.
36991         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
36992         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
36993         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
36994         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
36995         * doc/posix-functions/expl.texi: Mention the 'expl' module.
36996         * doc/posix-functions/logl.texi: Mention the 'logl' module.
36997         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
36998         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
36999         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
37000
37001 2010-01-18  Bruno Haible  <bruno@clisp.org>
37002
37003         sqrt: Make gl_FUNC_SQRT requirable.
37004         * m4/sqrt.m4: New file.
37005         * modules/sqrt (Files): Add it.
37006         (configure.ac): Invoke gl_FUNC_SQRT.
37007
37008 2010-01-18  Bruno Haible  <bruno@clisp.org>
37009
37010         New modules for common <math.h> functions.
37011         * m4/mathfunc.m4: New file.
37012         * modules/acos: New file.
37013         * modules/asin: New file.
37014         * modules/atan: New file.
37015         * modules/atan2: New file.
37016         * modules/cbrt: New file.
37017         * modules/copysign: New file.
37018         * modules/cos: New file.
37019         * modules/cosh: New file.
37020         * modules/erf: New file.
37021         * modules/erfc: New file.
37022         * modules/exp: New file.
37023         * modules/fabs: New file.
37024         * modules/fmod: New file.
37025         * modules/hypot: New file.
37026         * modules/j0: New file.
37027         * modules/j1: New file.
37028         * modules/jn: New file.
37029         * modules/ldexp: New file.
37030         * modules/lgamma: New file.
37031         * modules/log: New file.
37032         * modules/log10: New file.
37033         * modules/log1p: New file.
37034         * modules/logb: New file.
37035         * modules/modf: New file.
37036         * modules/nextafter: New file.
37037         * modules/pow: New file.
37038         * modules/remainder: New file.
37039         * modules/rint: New file.
37040         * modules/sin: New file.
37041         * modules/sinh: New file.
37042         * modules/sqrt: New file.
37043         * modules/tan: New file.
37044         * modules/tanh: New file.
37045         * modules/y0: New file.
37046         * modules/y1: New file.
37047         * modules/yn: New file.
37048         * doc/posix-functions/acos.texi: Mention the 'acos' module.
37049         * doc/posix-functions/asin.texi: Mention the 'asin' module.
37050         * doc/posix-functions/atan.texi: Mention the 'atan' module.
37051         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
37052         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
37053         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
37054         * doc/posix-functions/cos.texi: Mention the 'cos' module.
37055         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
37056         * doc/posix-functions/erf.texi: Mention the 'erf' module.
37057         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
37058         * doc/posix-functions/exp.texi: Mention the 'exp' module.
37059         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
37060         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
37061         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
37062         * doc/posix-functions/j0.texi: Mention the 'j0' module.
37063         * doc/posix-functions/j1.texi: Mention the 'j1' module.
37064         * doc/posix-functions/jn.texi: Mention the 'jn' module.
37065         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
37066         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
37067         * doc/posix-functions/log.texi: Mention the 'log' module.
37068         * doc/posix-functions/log10.texi: Mention the 'log10' module.
37069         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
37070         * doc/posix-functions/logb.texi: Mention the 'logb' module.
37071         * doc/posix-functions/modf.texi: Mention the 'modf' module.
37072         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
37073         * doc/posix-functions/pow.texi: Mention the 'pow' module.
37074         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
37075         * doc/posix-functions/rint.texi: Mention the 'rint' module.
37076         * doc/posix-functions/sin.texi: Mention the 'sin' module.
37077         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
37078         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
37079         * doc/posix-functions/tan.texi: Mention the 'tan' module.
37080         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
37081         * doc/posix-functions/y0.texi: Mention the 'y0' module.
37082         * doc/posix-functions/y1.texi: Mention the 'y1' module.
37083         * doc/posix-functions/yn.texi: Mention the 'yn' module.
37084
37085 2010-01-18  Jim Meyering  <meyering@redhat.com>
37086
37087         ignore-value: relax license to LGPLv2+
37088         * modules/ignore-value (License): Relax to LGPLv2+.
37089
37090         getdate: don't leak when TZ contains two or more '"'s
37091         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
37092         double quote in TZ after the first one.
37093
37094         readtokens: do not leak internal token_lengths buffer
37095         * lib/readtokens.c (readtokens): Free the local, lengths,
37096         when the supplied "token_lengths" parameter is NULL.
37097
37098 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37099
37100         Fix a couple of missing LIBTHREAD link failures on AIX.
37101         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
37102         $(LIBTHREAD).
37103         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
37104
37105         Link test-poll against INET_PTON_LIB.
37106         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
37107         for inet_pton on Solaris 10.
37108
37109 2010-01-17  Bruno Haible  <bruno@clisp.org>
37110
37111         unistdio/*-sprintf: Fix typo in module description.
37112         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
37113         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
37114         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
37115         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
37116         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
37117         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
37118         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
37119         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37120
37121 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37122
37123         gnulib-tool: fix filelist for AIX, HP-UX ksh.
37124         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
37125         variables in shell case patterns, for AIX and HP-UX ksh.
37126
37127         Split large sed scripts, for HP-UX sed.
37128         * modules/stdio: Split sed scripts around 50 sed commands,
37129         to avoid HP-UX limit of 99 commands, in the near future.
37130         * modules/string: Likewise.
37131         * modules/unistd: Likewise.
37132
37133         gnulib-tool: avoid writing in the current directory.
37134         * gnulib-tool (func_emit_lib_Makefile_am)
37135         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
37136         not in the current directory, so concurrent gnulib-tool
37137         instances do not interfere.
37138
37139 2010-01-16  Jim Meyering  <meyering@redhat.com>
37140
37141         doc: update users.txt
37142         * users.txt: Add grep.
37143         (diffutils, gzip): Update URLs.
37144
37145 2010-01-12  Bruno Haible  <bruno@clisp.org>
37146
37147         posix_spawn: Avoid test failure on Cygwin.
37148         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
37149         characters.
37150         Reported by Simon Josefsson.
37151
37152 2010-01-12  Bruno Haible  <bruno@clisp.org>
37153
37154         * tests/test-cond.c (main): When skipping the test, show the reason.
37155
37156 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37157
37158         * lib/striconv.c (str_cd_iconv): Avoid if before free.
37159
37160 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37161
37162         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
37163         VC_LIST_ALWAYS_EXCLUDE_REGEX.
37164
37165 2010-01-12  Eric Blake  <ebb9@byu.net>
37166
37167         build: guarantee AS_VAR_IF
37168         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
37169         (gl_AS_VAR_IF): Move...
37170         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
37171         Reported by Simon Josefsson.
37172
37173 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37174
37175         * lib/stdio.in.h: Fix typo.
37176
37177 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37178
37179         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
37180         libgpg-error.
37181
37182 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37183
37184         * tests/test-xalloc-die.sh: Use $EXEEXT.
37185
37186 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37187             Bruno Haible  <bruno@clisp.org>
37188
37189         getlogin, getlogin_r: Avoid test failure.
37190         * tests/test-getlogin.c: Include <stdio.h>.
37191         (main): Skip the test when the function fails because stdin is not a
37192         tty.
37193         * tests/test-getlogin_r.c: Include <stdio.h>.
37194         (main): Skip the test when the function fails because stdin is not a
37195         tty.
37196
37197 2010-01-11  Eric Blake  <ebb9@byu.net>
37198
37199         tests: avoid more large file warnings
37200         * tests/test-fflush.c: Avoid warning about ftell use.
37201         * tests/test-fseek.c: Avoid warning about fseek use.
37202
37203 2010-01-10  Bruno Haible  <bruno@clisp.org>
37204
37205         nproc: Work better on Linux when /proc and /sys are not mounted.
37206         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
37207         as lower bound when, on glibc/Linux systems,
37208         sysconf (_SC_NPROCESSORS_CONF) returns 1.
37209         Suggested by Pádraig Brady <P@draigbrady.com>.
37210         Reported by Dmitry V. Levin <ldv@altlinux.org>.
37211
37212         nproc: Refactor.
37213         * lib/nproc.c (num_processors_via_affinity_mask): New function,
37214         extracted from num_processors.
37215         (num_processors): Call it.
37216
37217 2010-01-11  Jim Meyering  <meyering@redhat.com>
37218
37219         utimecmp: avoid new warning from upcoming gcc-4.5.0
37220         * lib/utimecmp.c (BILLION): Define using #define rather than an
37221         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
37222
37223 2010-01-11  Eric Blake  <ebb9@byu.net>
37224
37225         math: add portability warnings for classification macros
37226         * modules/math (Depends-on): Add warn-on-use.
37227         (Makefile.am): Provide new substitutions.
37228         * m4/math_h.m4 (gl_MATH_H): Require inline.
37229         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
37230         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
37231         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
37232         implement warnings.
37233
37234         unistd: warn on use of environ without module
37235         * modules/unistd (Depends-on): Add warn-on-use.
37236         (Makefile.am): Provide new substitutions.
37237         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
37238         * lib/unistd.in.h (environ): Wrap with a warning helper function.
37239
37240         stdio: warn on suspicious uses
37241         * modules/stdio (Depends-on): Add warn-on-use.
37242         (Makefile.am): Provide new substitutions.
37243         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
37244         fseeko.
37245         * lib/stdio.in.h (gets): Always warn on use.
37246         (fseek, ftell): Adjust when warnings are issued, and honor
37247         _GL_NO_LARGE_FILES as a way to silence the warning.
37248         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
37249         any warning about large file offsets.
37250         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
37251         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
37252         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
37253         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
37254         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
37255         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
37256         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
37257         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
37258
37259         warn-on-use: new module
37260         * modules/warn-on-use: New file.
37261         * build-aux/warn-on-use.h: Likewise.
37262         * m4/warn-on-use.m4: Likewise.
37263         * MODULES.html.sh (Support for building): Mention it.
37264
37265 2010-01-10  Bruno Haible  <bruno@clisp.org>
37266
37267         Tests for module 'unistr/u32-strdup'.
37268         * modules/unistr/u32-strdup-tests: New file.
37269         * tests/unistr/test-u32-strdup.c: New file.
37270
37271         Tests for module 'unistr/u16-strdup'.
37272         * modules/unistr/u16-strdup-tests: New file.
37273         * tests/unistr/test-u16-strdup.c: New file.
37274
37275         Tests for module 'unistr/u8-strdup'.
37276         * modules/unistr/u8-strdup-tests: New file.
37277         * tests/unistr/test-u8-strdup.c: New file.
37278         * tests/unistr/test-strdup.h: New file.
37279
37280         Tests for module 'unistr/u32-strncmp'.
37281         * modules/unistr/u32-strncmp-tests: New file.
37282         * tests/unistr/test-u32-strncmp.c: New file.
37283
37284         Tests for module 'unistr/u16-strncmp'.
37285         * modules/unistr/u16-strncmp-tests: New file.
37286         * tests/unistr/test-u16-strncmp.c: New file.
37287
37288         Tests for module 'unistr/u8-strncmp'.
37289         * modules/unistr/u8-strncmp-tests: New file.
37290         * tests/unistr/test-u8-strncmp.c: New file.
37291         * tests/unistr/test-strncmp.h: New file.
37292
37293         Tests for module 'unistr/u32-strcoll'.
37294         * modules/unistr/u32-strcoll-tests: New file.
37295         * tests/unistr/test-u32-strcoll.c: New file.
37296
37297         Tests for module 'unistr/u16-strcoll'.
37298         * modules/unistr/u16-strcoll-tests: New file.
37299         * tests/unistr/test-u16-strcoll.c: New file.
37300
37301         Tests for module 'unistr/u8-strcoll'.
37302         * modules/unistr/u8-strcoll-tests: New file.
37303         * tests/unistr/test-u8-strcoll.c: New file.
37304
37305         Tests for module 'unistr/u32-strcmp'.
37306         * modules/unistr/u32-strcmp-tests: New file.
37307         * tests/unistr/test-u32-strcmp.c: New file.
37308         * tests/unistr/test-u32-strcmp.h: New file.
37309
37310         Tests for module 'unistr/u16-strcmp'.
37311         * modules/unistr/u16-strcmp-tests: New file.
37312         * tests/unistr/test-u16-strcmp.c: New file.
37313         * tests/unistr/test-u16-strcmp.h: New file.
37314
37315         Tests for module 'unistr/u8-strcmp'.
37316         * modules/unistr/u8-strcmp-tests: New file.
37317         * tests/unistr/test-u8-strcmp.c: New file.
37318         * tests/unistr/test-u8-strcmp.h: New file.
37319         * tests/unistr/test-strcmp.h: New file.
37320
37321         Tests for module 'unistr/u32-strncat'.
37322         * modules/unistr/u32-strncat-tests: New file.
37323         * tests/unistr/test-u32-strncat.c: New file.
37324
37325         Tests for module 'unistr/u16-strncat'.
37326         * modules/unistr/u16-strncat-tests: New file.
37327         * tests/unistr/test-u16-strncat.c: New file.
37328
37329         Tests for module 'unistr/u8-strncat'.
37330         * modules/unistr/u8-strncat-tests: New file.
37331         * tests/unistr/test-u8-strncat.c: New file.
37332         * tests/unistr/test-strncat.h: New file.
37333
37334         Tests for module 'unistr/u32-strcat'.
37335         * modules/unistr/u32-strcat-tests: New file.
37336         * tests/unistr/test-u32-strcat.c: New file.
37337
37338         Tests for module 'unistr/u16-strcat'.
37339         * modules/unistr/u16-strcat-tests: New file.
37340         * tests/unistr/test-u16-strcat.c: New file.
37341
37342         Tests for module 'unistr/u8-strcat'.
37343         * modules/unistr/u8-strcat-tests: New file.
37344         * tests/unistr/test-u8-strcat.c: New file.
37345         * tests/unistr/test-strcat.h: New file.
37346
37347         Tests for module 'unistr/u32-stpncpy'.
37348         * modules/unistr/u32-stpncpy-tests: New file.
37349         * tests/unistr/test-u32-stpncpy.c: New file.
37350
37351         Tests for module 'unistr/u16-stpncpy'.
37352         * modules/unistr/u16-stpncpy-tests: New file.
37353         * tests/unistr/test-u16-stpncpy.c: New file.
37354
37355         Tests for module 'unistr/u8-stpncpy'.
37356         * modules/unistr/u8-stpncpy-tests: New file.
37357         * tests/unistr/test-u8-stpncpy.c: New file.
37358         * tests/unistr/test-stpncpy.h: New file.
37359
37360         Tests for module 'unistr/u32-strncpy'.
37361         * modules/unistr/u32-strncpy-tests: New file.
37362         * tests/unistr/test-u32-strncpy.c: New file.
37363
37364         Tests for module 'unistr/u16-strncpy'.
37365         * modules/unistr/u16-strncpy-tests: New file.
37366         * tests/unistr/test-u16-strncpy.c: New file.
37367
37368         Tests for module 'unistr/u8-strncpy'.
37369         * modules/unistr/u8-strncpy-tests: New file.
37370         * tests/unistr/test-u8-strncpy.c: New file.
37371         * tests/unistr/test-strncpy.h: New file.
37372
37373         Tests for module 'unistr/u32-stpcpy'.
37374         * modules/unistr/u32-stpcpy-tests: New file.
37375         * tests/unistr/test-u32-stpcpy.c: New file.
37376
37377         Tests for module 'unistr/u16-stpcpy'.
37378         * modules/unistr/u16-stpcpy-tests: New file.
37379         * tests/unistr/test-u16-stpcpy.c: New file.
37380
37381         Tests for module 'unistr/u8-stpcpy'.
37382         * modules/unistr/u8-stpcpy-tests: New file.
37383         * tests/unistr/test-u8-stpcpy.c: New file.
37384         * tests/unistr/test-stpcpy.h: New file.
37385
37386         Tests for module 'unistr/u32-strcpy'.
37387         * modules/unistr/u32-strcpy-tests: New file.
37388         * tests/unistr/test-u32-strcpy.c: New file.
37389
37390         Tests for module 'unistr/u16-strcpy'.
37391         * modules/unistr/u16-strcpy-tests: New file.
37392         * tests/unistr/test-u16-strcpy.c: New file.
37393
37394         Tests for module 'unistr/u8-strcpy'.
37395         * modules/unistr/u8-strcpy-tests: New file.
37396         * tests/unistr/test-u8-strcpy.c: New file.
37397         * tests/unistr/test-strcpy.h: New file.
37398
37399         Tests for module 'unistr/u32-strnlen'.
37400         * modules/unistr/u32-strnlen-tests: New file.
37401         * tests/unistr/test-u32-strnlen.c: New file.
37402
37403         Tests for module 'unistr/u16-strnlen'.
37404         * modules/unistr/u16-strnlen-tests: New file.
37405         * tests/unistr/test-u16-strnlen.c: New file.
37406
37407         Tests for module 'unistr/u8-strnlen'.
37408         * modules/unistr/u8-strnlen-tests: New file.
37409         * tests/unistr/test-u8-strnlen.c: New file.
37410         * tests/unistr/test-strnlen.h: New file.
37411
37412         Tests for module 'unistr/u32-strlen'.
37413         * modules/unistr/u32-strlen-tests: New file.
37414         * tests/unistr/test-u32-strlen.c: New file.
37415
37416         Tests for module 'unistr/u16-strlen'.
37417         * modules/unistr/u16-strlen-tests: New file.
37418         * tests/unistr/test-u16-strlen.c: New file.
37419
37420         Tests for module 'unistr/u8-strlen'.
37421         * modules/unistr/u8-strlen-tests: New file.
37422         * tests/unistr/test-u8-strlen.c: New file.
37423
37424         Tests for module 'unistr/u32-prev'.
37425         * modules/unistr/u32-prev-tests: New file.
37426         * tests/unistr/test-u32-prev.c: New file.
37427
37428         Tests for module 'unistr/u16-prev'.
37429         * modules/unistr/u16-prev-tests: New file.
37430         * tests/unistr/test-u16-prev.c: New file.
37431
37432         Tests for module 'unistr/u8-prev'.
37433         * modules/unistr/u8-prev-tests: New file.
37434         * tests/unistr/test-u8-prev.c: New file.
37435
37436         Tests for module 'unistr/u32-next'.
37437         * modules/unistr/u32-next-tests: New file.
37438         * tests/unistr/test-u32-next.c: New file.
37439
37440         Tests for module 'unistr/u16-next'.
37441         * modules/unistr/u16-next-tests: New file.
37442         * tests/unistr/test-u16-next.c: New file.
37443
37444         Tests for module 'unistr/u8-next'.
37445         * modules/unistr/u8-next-tests: New file.
37446         * tests/unistr/test-u8-next.c: New file.
37447
37448         Tests for module 'unistr/u32-strmbtouc'.
37449         * modules/unistr/u32-strmbtouc-tests: New file.
37450         * tests/unistr/test-u32-strmbtouc.c: New file.
37451
37452         Tests for module 'unistr/u16-strmbtouc'.
37453         * modules/unistr/u16-strmbtouc-tests: New file.
37454         * tests/unistr/test-u16-strmbtouc.c: New file.
37455
37456         Tests for module 'unistr/u8-strmbtouc'.
37457         * modules/unistr/u8-strmbtouc-tests: New file.
37458         * tests/unistr/test-u8-strmbtouc.c: New file.
37459
37460         Tests for module 'unistr/u32-strmblen'.
37461         * modules/unistr/u32-strmblen-tests: New file.
37462         * tests/unistr/test-u32-strmblen.c: New file.
37463
37464         Tests for module 'unistr/u16-strmblen'.
37465         * modules/unistr/u16-strmblen-tests: New file.
37466         * tests/unistr/test-u16-strmblen.c: New file.
37467
37468         Tests for module 'unistr/u8-strmblen'.
37469         * modules/unistr/u8-strmblen-tests: New file.
37470         * tests/unistr/test-u8-strmblen.c: New file.
37471
37472         Tests for module 'unistr/u32-cpy-alloc'.
37473         * modules/unistr/u32-cpy-alloc-tests: New file.
37474         * tests/unistr/test-u32-cpy-alloc.c: New file.
37475
37476         Tests for module 'unistr/u16-cpy-alloc'.
37477         * modules/unistr/u16-cpy-alloc-tests: New file.
37478         * tests/unistr/test-u16-cpy-alloc.c: New file.
37479
37480         Tests for module 'unistr/u8-cpy-alloc'.
37481         * modules/unistr/u8-cpy-alloc-tests: New file.
37482         * tests/unistr/test-u8-cpy-alloc.c: New file.
37483         * tests/unistr/test-cpy-alloc.h: New file.
37484
37485         Tests for module 'unistr/u32-mbsnlen'.
37486         * modules/unistr/u32-mbsnlen-tests: New file.
37487         * tests/unistr/test-u32-mbsnlen.c: New file.
37488
37489         Tests for module 'unistr/u16-mbsnlen'.
37490         * modules/unistr/u16-mbsnlen-tests: New file.
37491         * tests/unistr/test-u16-mbsnlen.c: New file.
37492
37493         Tests for module 'unistr/u8-mbsnlen'.
37494         * modules/unistr/u8-mbsnlen-tests: New file.
37495         * tests/unistr/test-u8-mbsnlen.c: New file.
37496
37497         Tests for module 'unistr/u32-chr'.
37498         * modules/unistr/u32-chr-tests: New file.
37499         * tests/unistr/test-u32-chr.c: New file.
37500
37501         Tests for module 'unistr/u16-chr'.
37502         * modules/unistr/u16-chr-tests: New file.
37503         * tests/unistr/test-u16-chr.c: New file.
37504
37505         Tests for module 'unistr/u8-chr'.
37506         * modules/unistr/u8-chr-tests: New file.
37507         * tests/unistr/test-u8-chr.c: New file.
37508         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
37509
37510         Tests for module 'unistr/u32-cmp2'.
37511         * modules/unistr/u32-cmp2-tests: New file.
37512         * tests/unistr/test-u32-cmp2.c: New file.
37513
37514         Tests for module 'unistr/u16-cmp2'.
37515         * modules/unistr/u16-cmp2-tests: New file.
37516         * tests/unistr/test-u16-cmp2.c: New file.
37517
37518         Tests for module 'unistr/u8-cmp2'.
37519         * modules/unistr/u8-cmp2-tests: New file.
37520         * tests/unistr/test-u8-cmp2.c: New file.
37521         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
37522
37523         Tests for module 'unistr/u32-cmp'.
37524         * modules/unistr/u32-cmp-tests: New file.
37525         * tests/unistr/test-u32-cmp.c: New file.
37526
37527         Tests for module 'unistr/u16-cmp'.
37528         * modules/unistr/u16-cmp-tests: New file.
37529         * tests/unistr/test-u16-cmp.c: New file.
37530
37531         Tests for module 'unistr/u8-cmp'.
37532         * modules/unistr/u8-cmp-tests: New file.
37533         * tests/unistr/test-u8-cmp.c: New file.
37534         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
37535
37536         Tests for module 'unistr/u32-set'.
37537         * modules/unistr/u32-set-tests: New file.
37538         * tests/unistr/test-u32-set.c: New file.
37539
37540         Tests for module 'unistr/u16-set'.
37541         * modules/unistr/u16-set-tests: New file.
37542         * tests/unistr/test-u16-set.c: New file.
37543
37544         Tests for module 'unistr/u8-set'.
37545         * modules/unistr/u8-set-tests: New file.
37546         * tests/unistr/test-u8-set.c: New file.
37547         * tests/unistr/test-set.h: New file.
37548
37549         Tests for module 'unistr/u32-move'.
37550         * modules/unistr/u32-move-tests: New file.
37551         * tests/unistr/test-u32-move.c: New file.
37552
37553         Tests for module 'unistr/u16-move'.
37554         * modules/unistr/u16-move-tests: New file.
37555         * tests/unistr/test-u16-move.c: New file.
37556
37557         Tests for module 'unistr/u8-move'.
37558         * modules/unistr/u8-move-tests: New file.
37559         * tests/unistr/test-u8-move.c: New file.
37560         * tests/unistr/test-move.h: New file.
37561
37562         Tests for module 'unistr/u32-cpy'.
37563         * modules/unistr/u32-cpy-tests: New file.
37564         * tests/unistr/test-u32-cpy.c: New file.
37565
37566         Tests for module 'unistr/u16-cpy'.
37567         * modules/unistr/u16-cpy-tests: New file.
37568         * tests/unistr/test-u16-cpy.c: New file.
37569
37570         Tests for module 'unistr/u8-cpy'.
37571         * modules/unistr/u8-cpy-tests: New file.
37572         * tests/unistr/test-u8-cpy.c: New file.
37573         * tests/unistr/test-cpy.h: New file.
37574
37575 2010-01-09  Bruno Haible  <bruno@clisp.org>
37576
37577         Tests for module 'unistr/u32-uctomb'.
37578         * modules/unistr/u32-uctomb-tests: New file.
37579         * tests/unistr/test-u32-uctomb.c: New file.
37580
37581         Tests for module 'unistr/u16-uctomb'.
37582         * modules/unistr/u16-uctomb-tests: New file.
37583         * tests/unistr/test-u16-uctomb.c: New file.
37584
37585         Tests for module 'unistr/u8-uctomb'.
37586         * modules/unistr/u8-uctomb-tests: New file.
37587         * tests/unistr/test-u8-uctomb.c: New file.
37588
37589         Tests for module 'unistr/u32-mbtoucr'.
37590         * modules/unistr/u32-mbtoucr-tests: New file.
37591         * tests/unistr/test-u32-mbtoucr.c: New file.
37592
37593         Tests for module 'unistr/u16-mbtoucr'.
37594         * modules/unistr/u16-mbtoucr-tests: New file.
37595         * tests/unistr/test-u16-mbtoucr.c: New file.
37596
37597         Tests for module 'unistr/u8-mbtoucr'.
37598         * modules/unistr/u8-mbtoucr-tests: New file.
37599         * tests/unistr/test-u8-mbtoucr.c: New file.
37600
37601         Tests for module 'unistr/u32-mbtouc'.
37602         * modules/unistr/u32-mbtouc-tests: New file.
37603         * tests/unistr/test-u32-mbtouc.c: New file.
37604
37605         Tests for module 'unistr/u16-mbtouc'.
37606         * modules/unistr/u16-mbtouc-tests: New file.
37607         * tests/unistr/test-u16-mbtouc.c: New file.
37608
37609         Tests for module 'unistr/u8-mbtouc'.
37610         * modules/unistr/u8-mbtouc-tests: New file.
37611         * tests/unistr/test-u8-mbtouc.c: New file.
37612
37613         Tests for module 'unistr/u32-mbtouc-unsafe'.
37614         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
37615         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
37616         * tests/unistr/test-u32-mbtouc.h: New file.
37617
37618         Tests for module 'unistr/u16-mbtouc-unsafe'.
37619         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
37620         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
37621         * tests/unistr/test-u16-mbtouc.h: New file.
37622
37623         Tests for module 'unistr/u8-mbtouc-unsafe'.
37624         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
37625         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
37626         * tests/unistr/test-u8-mbtouc.h: New file.
37627
37628         Tests for module 'unistr/u32-mblen'.
37629         * modules/unistr/u32-mblen-tests: New file.
37630         * tests/unistr/test-u32-mblen.c: New file.
37631
37632         Tests for module 'unistr/u16-mblen'.
37633         * modules/unistr/u16-mblen-tests: New file.
37634         * tests/unistr/test-u16-mblen.c: New file.
37635
37636         Tests for module 'unistr/u8-mblen'.
37637         * modules/unistr/u8-mblen-tests: New file.
37638         * tests/unistr/test-u8-mblen.c: New file.
37639
37640         Tests for module 'unistr/u32-to-u16'.
37641         * modules/unistr/u32-to-u16-tests: New file.
37642         * tests/unistr/test-u32-to-u16.c: New file.
37643
37644         Tests for module 'unistr/u32-to-u8'.
37645         * modules/unistr/u32-to-u8-tests: New file.
37646         * tests/unistr/test-u32-to-u8.c: New file.
37647
37648         Tests for module 'unistr/u16-to-u32'.
37649         * modules/unistr/u16-to-u32-tests: New file.
37650         * tests/unistr/test-u16-to-u32.c: New file.
37651
37652         Tests for module 'unistr/u16-to-u8'.
37653         * modules/unistr/u16-to-u8-tests: New file.
37654         * tests/unistr/test-u16-to-u8.c: New file.
37655
37656         Tests for module 'unistr/u8-to-u32'.
37657         * modules/unistr/u8-to-u32-tests: New file.
37658         * tests/unistr/test-u8-to-u32.c: New file.
37659
37660         Tests for module 'unistr/u8-to-u16'.
37661         * modules/unistr/u8-to-u16-tests: New file.
37662         * tests/unistr/test-u8-to-u16.c: New file.
37663
37664         Tests for module 'unistr/u32-check'.
37665         * modules/unistr/u32-check-tests: New file.
37666         * tests/unistr/test-u32-check.c: New file.
37667
37668         Tests for module 'unistr/u16-check'.
37669         * modules/unistr/u16-check-tests: New file.
37670         * tests/unistr/test-u16-check.c: New file.
37671
37672         Tests for module 'unistr/u8-check'.
37673         * modules/unistr/u8-check-tests: New file.
37674         * tests/unistr/test-u8-check.c: New file.
37675
37676         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
37677         (category_equals): New function.
37678         (main): Add more tests.
37679         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
37680
37681         * tests/unictype/test-bidi_byname.c (main): Add more tests.
37682
37683 2010-01-10  Bruno Haible  <bruno@clisp.org>
37684
37685         unistr/u*-strcoll: Try harder to distinguish different strings.
37686         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
37687         compare s1 and s2 to see if they are different.
37688
37689 2010-01-10  Bruno Haible  <bruno@clisp.org>
37690
37691         unistr/u*-stpncpy: Fix the return value.
37692         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
37693         description of the return value consistent with stpncpy in glibc.
37694         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
37695         written non-NUL unit.
37696
37697 2010-01-10  Bruno Haible  <bruno@clisp.org>
37698
37699         unistr/u*-next: Add missing dependencies.
37700         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
37701         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
37702         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
37703
37704 2010-01-10  Bruno Haible  <bruno@clisp.org>
37705
37706         unistr/u8-mbsnlen: Fix return value for incomplete character.
37707         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
37708         u8_mblen.
37709         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
37710         Remove unistr/u8-mblen.
37711         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
37712         u16_mblen.
37713         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
37714         Remove unistr/u16-mblen.
37715
37716 2010-01-10  Bruno Haible  <bruno@clisp.org>
37717
37718         wchar: Fix compilation error when <wchar.h> is used from coreutils.
37719         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
37720         Reported by Brian Gough <bjg@gnu.org> and
37721         Chris Clayton <chris2553@googlemail.com> via
37722         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
37723
37724 2010-01-09  Bruno Haible  <bruno@clisp.org>
37725
37726         unistr/u16-to-u32: Reject invalid input.
37727         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
37728         u16_mbtouc.
37729         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
37730         Remove unistr/u16-mbtouc.
37731
37732         unistr/u16-to-u8: Reject invalid input.
37733         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
37734         u16_mbtouc.
37735         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
37736         Remove unistr/u16-mbtouc.
37737
37738         unistr/u8-to-u32: Reject invalid input.
37739         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
37740         u8_mbtouc.
37741         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
37742         Remove unistr/u8-mbtouc.
37743
37744         unistr/u8-to-u16: Reject invalid input.
37745         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
37746         u8_mbtouc.
37747         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
37748         Remove unistr/u8-mbtouc.
37749
37750 2010-01-09  Bruno Haible  <bruno@clisp.org>
37751
37752         Tests for module 'getlogin'.
37753         * modules/getlogin-tests: New file.
37754         * tests/test-getlogin.c: New file.
37755
37756         New module 'getlogin'.
37757         * lib/unistd.in.h (getlogin): New declaration.
37758         * lib/getlogin.c: New file.
37759         * m4/getlogin.m4: New file.
37760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
37761         HAVE_GETLOGIN.
37762         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
37763         HAVE_GETLOGIN.
37764         * modules/getlogin: New file.
37765         * doc/posix-functions/getlogin.texi: Mention the new module.
37766         Reported by John W. Eaton <jwe@gnu.org>.
37767
37768 2010-01-09  Bruno Haible  <bruno@clisp.org>
37769
37770         getlogin_r: Support for native Windows.
37771         * lib/getlogin_r.c: Include <windows.h>
37772         (getlogin_r): Implement for native Windows.
37773         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
37774         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
37775         via John W. Eaton <jwe@gnu.org>.
37776
37777 2010-01-09  Bruno Haible  <bruno@clisp.org>
37778
37779         getlogin_r: Small fixes.
37780         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
37781         succeeds.
37782         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
37783         before testing whether getlogin_r is declared. No need to set
37784         HAVE_DECL_GETLOGIN_R to 1.
37785         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
37786
37787 2010-01-09  Bruno Haible  <bruno@clisp.org>
37788
37789         * lib/unistd.in.h (getlogin_r): Add comment.
37790
37791 2010-01-09  Bruno Haible  <bruno@clisp.org>
37792
37793         Tests for module 'getlogin_r'.
37794         * modules/getlogin_r-tests: New file.
37795         * tests/test-getlogin_r.c: New file.
37796
37797 2010-01-09  Jim Meyering  <meyering@redhat.com>
37798
37799         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
37800         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
37801         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
37802
37803 2010-01-08  Simon Josefsson  <simon@josefsson.org>
37804
37805         * lib/dup2.c (rpl_dup2): Improve comment.
37806
37807 2010-01-08  Eric Blake  <ebb9@byu.net>
37808
37809         maint.mk: allow packages to add makefile @@ exceptions
37810         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
37811         (sc_makefile_check): Rename...
37812         (sc_makefile_at_at_check): ...to this, and use hook.
37813
37814         dup2: work around mingw bug
37815         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
37816         Reported by Simon Josefsson.
37817
37818 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
37819
37820         glob: Fix C++ compilation.
37821         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
37822         C++.
37823
37824 2010-01-07  Bruno Haible  <bruno@clisp.org>
37825
37826         Fix indentation of wctype.in.h, broken since 2007-01-06.
37827         * lib/wctype.in.h: Fix indentation of preprocessor directives.
37828
37829 2010-01-07  Bruno Haible  <bruno@clisp.org>
37830
37831         mbslen: Avoid collision with system function.
37832         * lib/string.in.h [MirBSD]: Include <wchar.h>.
37833         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
37834         * m4/mbslen.m4: New file.
37835         * modules/mbslen (Files): Add it.
37836         (configure.ac): Invoke gl_MBSLEN.
37837         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
37838         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
37839         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
37840         via Ian Beckwith <ianb@erislabs.net>.
37841
37842 2010-01-07  Bruno Haible  <bruno@clisp.org>
37843
37844         dirent: Document the last fix.
37845         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
37846
37847 2010-01-07  Bruno Haible  <bruno@clisp.org>
37848
37849         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
37850         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
37851         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
37852         va_list are defined.
37853         * doc/posix-headers/stdio.texi: Document the bug of missing types.
37854         Reported by Eric Blake.
37855
37856 2010-01-07  Bruno Haible  <bruno@clisp.org>
37857
37858         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
37859         * modules/xlist (Depends-on): Add 'list',
37860         * modules/xoset (Depends-on): Add 'oset'.
37861         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37862
37863 2010-01-07  Bruno Haible  <bruno@clisp.org>
37864
37865         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
37866         * doc/posix-functions/strncasecmp.texi: Likewise.
37867
37868 2010-01-07  Bruno Haible  <bruno@clisp.org>
37869
37870         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
37871
37872 2010-01-07  John W. Eaton  <jwe@octave.org>
37873
37874         wctype: allow C++ use
37875         * lib/wctype.in.h: Add extern "C" block for C++.
37876
37877 2010-01-06  Eric Blake  <ebb9@byu.net>
37878
37879         maint.mk: detect incorrect GFDL usage
37880         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
37881
37882 2010-01-06  Jim Meyering  <meyering@redhat.com>
37883         and Eric Blake  <ebb9@byu.net>
37884
37885         maint.mk: ignore multi-line copyright in NEWS
37886         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
37887
37888 2010-01-06  Eric Blake  <ebb9@byu.net>
37889
37890         select: add missing dependency
37891         * modules/select-tests (Depends-on): Move sockets dependency...
37892         * modules/select (Depends-on): ...here.
37893         Reported by Ian Beckwith.
37894
37895         doc: regenerate INSTALL
37896         * doc/INSTALL: Reflect recent autoconf update.
37897         * doc/INSTALL.ISO: Likewise.
37898         * doc/INSTALL.UTF-8: Likewise.
37899
37900         pread: fix compilation on glibc
37901         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
37902         Reported by Ralf Wildenhues.
37903
37904         dirent: fix test failure
37905         * lib/dirent.in.h (includes): Guarantee ino_t.
37906         Reported by Ralf Wildenhues.
37907
37908 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
37909
37910         linkat, renameat: avoid bad free
37911         * lib/at-func2.c (at_func2): Fix typo.
37912         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
37913
37914 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37915
37916         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
37917         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
37918         to avoid failure of symlink test later.
37919
37920 2010-01-06  Eric Blake  <ebb9@byu.net>
37921
37922         stdio, unistd: guarantee ssize_t
37923         * lib/unistd.in.h (includes): Ensure that types required by POSIX
37924         2008 are exposed when needed.
37925         * lib/stdio.in.h (includes): Likewise.
37926         Reported by Ralf Wildenhues.
37927
37928 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
37929
37930         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
37931         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
37932         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
37933
37934 2010-01-06  Jim Meyering  <meyering@redhat.com>
37935
37936         readtokens: this module *does* require xalloc.h
37937         It uses only functions that were omitted by the old syntax-check rule.
37938         * lib/readtokens.c: Include "xalloc.h" once again.
37939         * modules/readtokens (Depends-on): Add xalloc.
37940         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
37941
37942 2010-01-05  Eric Blake  <ebb9@byu.net>
37943
37944         maint: support 'make announcement' from a VPATH build
37945         * top/maint.mk (announcement): Look for correct NEWS file.
37946
37947 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
37948
37949         utimens (fdutimens): ignore a negative FD, per contract
37950         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
37951         when we have a valid file descriptor.  Otherwise, using a brand
37952         new glibc (with just-patched futimens that now fails with EBADF)
37953         would cause this function to fail with ENOSYS.
37954         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
37955         See also http://bugzilla.redhat.com/552320.
37956
37957 2010-01-05  Eric Blake  <ebb9@byu.net>
37958
37959         strcase: document what it provides
37960         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
37961         gnulib module.
37962         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
37963         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
37964
37965 2010-01-05  Jim Meyering  <meyering@redhat.com>
37966
37967         maint: remove useless inclusions of "xalloc.h"
37968         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
37969         * lib/readtokens.c: Likewise.
37970         * lib/same.c: Likewise.
37971         * modules/getloadavg (Depends-on): Remove xalloc.
37972         * modules/readtokens: Likewise.
37973         * modules/same: Likewise.
37974
37975         maint.mk: include 4 more function names in alloca.h-checking regexp
37976         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
37977         regexp.  Before, we would give a false-positive (saying alloca.h
37978         is included unnecessarily) when the only uses involved omitted symbols.
37979
37980         xalloc.h: use consistent formatting
37981         * lib/xalloc.h: Move declarations to start in the first column.
37982
37983 2010-01-05  Eric Blake  <ebb9@byu.net>
37984
37985         mkdir: avoid xalloc
37986         * lib/mkdir.c (includes): Drop unused header.
37987         Reported by John W. Eaton.
37988
37989 2010-01-04  Jim Meyering  <meyering@redhat.com>
37990
37991         nl_langinfo: avoid configure-time syntax error
37992         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
37993         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
37994         the empty string.  Don't let that provoke a shell syntax error.
37995
37996         regcomp, regexec, fnmatch: avoid array bounds read error
37997         * lib/regcomp.c (build_equiv_class): From glibc:
37998         Use only the low 24 bits of a findidx return value as an index
37999         into the weights array.  Patch by Ulrich Drepper:
38000         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
38001         * lib/regexec.c (check_node_accept_bytes): Likewise.
38002         * lib/fnmatch_loop.c (FCT): Likewise.
38003
38004         regcomp: skip collseq lookup when there are no rules
38005         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
38006         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
38007
38008         regcomp: recognize ill-formed { } expressions
38009         * lib/regcomp.c (parse_dup_op): From glibc:
38010         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
38011
38012         regcomp: fix typo in comment
38013         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
38014         s/satisfy/satisfies/.
38015
38016         regcomp: sync from glibc: remove dead store
38017         * lib/regcomp.c (duplicate_node_closure): Remove useless
38018         search_duplicated_node call and dead store.
38019
38020         regcomp: sync from glibc; always use nl_langinfo
38021         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
38022         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
38023         * modules/regex (Depends-on): Add nl_langinfo.
38024
38025 2010-01-04  Eric Blake  <ebb9@byu.net>
38026
38027         fdopendir: fix configure test
38028         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
38029
38030 2010-01-01  Bruno Haible  <bruno@clisp.org>
38031
38032         wchar: Remove unused configure check.
38033         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
38034
38035 2010-01-01  Eric Blake  <ebb9@byu.net>
38036
38037         headers: make check of system header explicit
38038         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
38039         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
38040         ourselves.
38041         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38042         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38043         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38044         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
38045         internals.
38046         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
38047         missing.
38048         Suggested by Bruno Haible.
38049
38050 2010-01-01  Jim Meyering  <meyering@redhat.com>
38051
38052         ChangeLog: tweak to eliminate unnecessary copyright line
38053         * ChangeLog: Remove a copyright line that was mistakenly updated
38054         by today's update-copyright run.  Reported by Eric Blake.
38055
38056         test-update-copyright: don't let envvar setting cause test failure
38057         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38058
38059 2010-01-01  Bruno Haible  <bruno@clisp.org>
38060
38061         localename: Avoid gcc warning.
38062         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
38063         function if it is not used.
38064
38065 2010-01-01  Jim Meyering  <meyering@redhat.com>
38066
38067         update nearly all FSF copyright year lists to include 2010
38068         Use the same procedure as for 2009, outlined in
38069         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
38070
38071         version-etc: set COPYRIGHT_YEAR to 2010
38072         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
38073
38074 2009-12-31  Eric Blake  <ebb9@byu.net>
38075
38076         doc: correct availability of cygwin 1.5.x getopt
38077         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
38078         variables.
38079         * doc/posix-functions/opterr.texi (opterr): Likewise.
38080         * doc/posix-functions/optind.texi (optind): Likewise.
38081         * doc/posix-functions/optopt.texi (optopt): Likewise.
38082         * doc/posix-functions/tzname.texi (tzname): Likewise.
38083
38084         openat: update maintainer
38085         * modules/openat (Maintainer): Add myself.
38086
38087         utimens: avoid shadowing warning
38088         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
38089         buffers into one, to avoid shadowing, as well as avoiding a
38090         redundant stat.
38091         Reported by Jim Meyering.
38092
38093         test-dup2: avoid compiler warning
38094         * tests/test-dup2.c (is_inheritable): Only define if used.
38095
38096 2010-01-01  Bruno Haible  <bruno@clisp.org>
38097
38098         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
38099         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
38100         defined, use wctomb instead of wcrtomb.
38101
38102 2010-01-01  Bruno Haible  <bruno@clisp.org>
38103
38104         iconv: Reject native Solaris iconv.
38105         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
38106         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
38107
38108 2009-12-31  Bruno Haible  <bruno@clisp.org>
38109
38110         * tests/test-signal.c (main): Remove test of 'SIG'.
38111
38112 2009-12-31  Bruno Haible  <bruno@clisp.org>
38113
38114         spawn: Fix incomplete fix.
38115         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38116         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38117         warnings for GNULIB_POSIXCHECK again.
38118         Reported by Eric Blake.
38119
38120 2009-12-31  Bruno Haible  <bruno@clisp.org>
38121
38122         Avoid namespace pollution on glibc systems.
38123         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
38124         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
38125         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
38126         glibc systems.
38127
38128 2009-12-31  Bruno Haible  <bruno@clisp.org>
38129
38130         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
38131         (gl_REPLACE_WCHAR_H): Turn into a no-op.
38132         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
38133         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
38134         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
38135         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
38136         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
38137
38138 2009-12-31  Bruno Haible  <bruno@clisp.org>
38139
38140         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
38141         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
38142         afterwards.
38143
38144 2009-12-31  Bruno Haible  <bruno@clisp.org>
38145
38146         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
38147         SYS_UTSNAME_H.
38148
38149 2009-12-31  Bruno Haible  <bruno@clisp.org>
38150
38151         spawn: Fix misapplied patch.
38152         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38153         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38154         warnings for GNULIB_POSIXCHECK.
38155
38156 2009-12-31  Bruno Haible  <bruno@clisp.org>
38157
38158         times: Update after sys_times changed.
38159         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
38160         * modules/times (Files): Add it.
38161         (configure.ac): Invoke gl_FUNC_TIMES.
38162
38163 2009-12-31  Bruno Haible  <bruno@clisp.org>
38164
38165         Use AC_C_INLINE where necessary.
38166         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
38167         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38168         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
38169         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38170         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38171         * m4/mbiter.m4 (gl_MBITER): Likewise.
38172         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38173         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38174         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
38175         * modules/u64 (configure.ac): Likewise.
38176
38177 2009-12-31  Bruno Haible  <bruno@clisp.org>
38178
38179         Use AC_C_INLINE instead of module 'inline' where possible.
38180         * modules/inline (Description): Clarify purpose.
38181         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
38182         * modules/count-one-bits (Depends-on): Remove inline.
38183         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
38184         * modules/openat (Depends-on): Remove inline.
38185         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
38186         instead of depending on module 'inline'.
38187         * modules/filevercmp (Depends-on, configure.ac): Likewise.
38188         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
38189         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
38190         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
38191         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
38192         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
38193         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
38194         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
38195         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
38196         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
38197         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
38198         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
38199         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
38200         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
38201         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
38202         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
38203         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
38204         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
38205         Likewise.
38206         * modules/unictype/property-ascii-hex-digit (Depends-on,
38207         configure.ac): Likewise.
38208         * modules/unictype/property-bidi-arabic-digit (Depends-on,
38209         configure.ac): Likewise.
38210         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
38211         configure.ac): Likewise.
38212         * modules/unictype/property-bidi-block-separator (Depends-on,
38213         configure.ac): Likewise.
38214         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
38215         configure.ac): Likewise.
38216         * modules/unictype/property-bidi-common-separator (Depends-on,
38217         configure.ac): Likewise.
38218         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
38219         Likewise.
38220         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
38221         configure.ac): Likewise.
38222         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
38223         configure.ac): Likewise.
38224         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
38225         configure.ac): Likewise.
38226         * modules/unictype/property-bidi-european-digit (Depends-on,
38227         configure.ac): Likewise.
38228         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
38229         configure.ac): Likewise.
38230         * modules/unictype/property-bidi-left-to-right (Depends-on,
38231         configure.ac): Likewise.
38232         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
38233         configure.ac): Likewise.
38234         * modules/unictype/property-bidi-other-neutral (Depends-on,
38235         configure.ac): Likewise.
38236         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
38237         Likewise.
38238         * modules/unictype/property-bidi-segment-separator (Depends-on,
38239         configure.ac): Likewise.
38240         * modules/unictype/property-bidi-whitespace (Depends-on,
38241         configure.ac): Likewise.
38242         * modules/unictype/property-combining (Depends-on, configure.ac):
38243         Likewise.
38244         * modules/unictype/property-composite (Depends-on, configure.ac):
38245         Likewise.
38246         * modules/unictype/property-currency-symbol (Depends-on,
38247         configure.ac): Likewise.
38248         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
38249         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
38250         Likewise.
38251         * modules/unictype/property-default-ignorable-code-point (Depends-on,
38252         configure.ac): Likewise.
38253         * modules/unictype/property-deprecated (Depends-on, configure.ac):
38254         Likewise.
38255         * modules/unictype/property-diacritic (Depends-on, configure.ac):
38256         Likewise.
38257         * modules/unictype/property-extender (Depends-on, configure.ac):
38258         Likewise.
38259         * modules/unictype/property-format-control (Depends-on, configure.ac):
38260         Likewise.
38261         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
38262         Likewise.
38263         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
38264         Likewise.
38265         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
38266         Likewise.
38267         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
38268         Likewise.
38269         * modules/unictype/property-hyphen (Depends-on, configure.ac):
38270         Likewise.
38271         * modules/unictype/property-id-continue (Depends-on, configure.ac):
38272         Likewise.
38273         * modules/unictype/property-id-start (Depends-on, configure.ac):
38274         Likewise.
38275         * modules/unictype/property-ideographic (Depends-on, configure.ac):
38276         Likewise.
38277         * modules/unictype/property-ids-binary-operator (Depends-on,
38278         configure.ac): Likewise.
38279         * modules/unictype/property-ids-trinary-operator (Depends-on,
38280         configure.ac): Likewise.
38281         * modules/unictype/property-ignorable-control (Depends-on,
38282         configure.ac): Likewise.
38283         * modules/unictype/property-iso-control (Depends-on, configure.ac):
38284         Likewise.
38285         * modules/unictype/property-join-control (Depends-on, configure.ac):
38286         Likewise.
38287         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
38288         Likewise.
38289         * modules/unictype/property-line-separator (Depends-on, configure.ac):
38290         Likewise.
38291         * modules/unictype/property-logical-order-exception (Depends-on,
38292         configure.ac): Likewise.
38293         * modules/unictype/property-lowercase (Depends-on, configure.ac):
38294         Likewise.
38295         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
38296         * modules/unictype/property-non-break (Depends-on, configure.ac):
38297         Likewise.
38298         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
38299         Likewise.
38300         * modules/unictype/property-numeric (Depends-on, configure.ac):
38301         Likewise.
38302         * modules/unictype/property-other-alphabetic (Depends-on,
38303         configure.ac): Likewise.
38304         * modules/unictype/property-other-default-ignorable-code-point
38305         (Depends-on, configure.ac): Likewise.
38306         * modules/unictype/property-other-grapheme-extend (Depends-on,
38307         configure.ac): Likewise.
38308         * modules/unictype/property-other-id-continue (Depends-on,
38309         configure.ac): Likewise.
38310         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
38311         Likewise.
38312         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
38313         Likewise.
38314         * modules/unictype/property-other-math (Depends-on, configure.ac):
38315         Likewise.
38316         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
38317         Likewise.
38318         * modules/unictype/property-paired-punctuation (Depends-on,
38319         configure.ac): Likewise.
38320         * modules/unictype/property-paragraph-separator (Depends-on,
38321         configure.ac): Likewise.
38322         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
38323         Likewise.
38324         * modules/unictype/property-pattern-white-space (Depends-on,
38325         configure.ac): Likewise.
38326         * modules/unictype/property-private-use (Depends-on, configure.ac):
38327         Likewise.
38328         * modules/unictype/property-punctuation (Depends-on, configure.ac):
38329         Likewise.
38330         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
38331         Likewise.
38332         * modules/unictype/property-radical (Depends-on, configure.ac):
38333         Likewise.
38334         * modules/unictype/property-sentence-terminal (Depends-on,
38335         configure.ac): Likewise.
38336         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
38337         Likewise.
38338         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
38339         * modules/unictype/property-terminal-punctuation (Depends-on,
38340         configure.ac): Likewise.
38341         * modules/unictype/property-titlecase (Depends-on, configure.ac):
38342         Likewise.
38343         * modules/unictype/property-unassigned-code-value (Depends-on,
38344         configure.ac): Likewise.
38345         * modules/unictype/property-unified-ideograph (Depends-on,
38346         configure.ac): Likewise.
38347         * modules/unictype/property-uppercase (Depends-on, configure.ac):
38348         Likewise.
38349         * modules/unictype/property-variation-selector (Depends-on,
38350         configure.ac): Likewise.
38351         * modules/unictype/property-white-space (Depends-on, configure.ac):
38352         Likewise.
38353         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
38354         Likewise.
38355         * modules/unictype/property-xid-start (Depends-on, configure.ac):
38356         Likewise.
38357         * modules/unictype/property-zero-width (Depends-on, configure.ac):
38358         Likewise.
38359         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
38360         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
38361         Likewise.
38362
38363 2009-12-31  Bruno Haible  <bruno@clisp.org>
38364
38365         Remove unnecessary AC_C_INLINE invocation.
38366         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
38367         since 2009-08-21.
38368
38369 2009-12-31  Jim Meyering  <meyering@redhat.com>
38370
38371         maint.mk: don't require explicit gpg_key_ID in cfg.mk
38372         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
38373         With this change, we can all remove the gpg_key_ID = ... definition
38374         from our respective cfg.mk files.
38375
38376         maint.mk: create announcement template in ~/, not in /tmp
38377         * top/maint.mk (emit_upload_commands): Adjust.
38378         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
38379         Remove temporary file, .ci-msg.
38380
38381 2009-12-31  Eric Blake  <ebb9@byu.net>
38382
38383         link-warning: always build headers with link warnings
38384         * modules/arpa_inet (Makefile.am): Always build replacement
38385         header.
38386         * modules/ctype (Makefile.am): Likewise.
38387         * modules/dirent (Makefile.am): Likewise.
38388         * modules/inttypes (Makefile.am): Likewise.
38389         * modules/langinfo (Makefile.am): Likewise.
38390         * modules/locale (Makefile.am): Likewise.
38391         * modules/spawn (Makefile.am): Likewise.
38392         * modules/sys_file (Makefile.am): Likewise.
38393         * modules/sys_ioctl (Makefile.am): Likewise.
38394         * modules/sys_select (Makefile.am): Likewise.
38395         * modules/sys_socket (Makefile.am): Likewise.
38396         * modules/sys_times (Makefile.am): Likewise.
38397         * modules/sys_utsname (Makefile.am): Likewise.
38398         * modules/sys_wait (Makefile.am): Likewise.
38399         * modules/wchar (Makefile.am): Likewise.
38400         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
38401         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
38402         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
38403         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
38404         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
38405         Likewise.
38406         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38407         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38408         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
38409         Likewise.
38410         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
38411         Likewise.
38412         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
38413         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
38414         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
38415         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38416         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38417         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38418         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38419         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
38420         (gl_WCHAR_H_DEFAULTS): Likewise.
38421
38422 2009-12-31  Eric Blake  <ebb9@byu.net>
38423
38424         signal, spawn: use link warnings
38425         * lib/signal.in.h (sigset_t): Make unconditional.
38426         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
38427         (sigpending, sigprocmask, sigaction): Add link warnings.
38428         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
38429         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
38430         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
38431         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
38432         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
38433         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
38434         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
38435         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
38436         (posix_spawn_file_actions_destroy)
38437         (posix_spawn_file_actions_addopen)
38438         (posix_spawn_file_actions_addclose)
38439         (posix_spawn_file_actions_adddup2): Likewise.
38440         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
38441         * tests/test-signal.c (main): Enhance test.
38442
38443         spawn: improve wrapper support
38444         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
38445         (gl_SPAWN_H_DEFAULTS): New defaults.
38446         * modules/spawn (Makefile.am): Substitute them.
38447         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
38448         Only declare if missing or broken.
38449
38450         sys_times, sys_utsname: use include_next
38451         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
38452         header.
38453         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
38454         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38455         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38456         * modules/sys_times (Depends-on): Add include_next.
38457         (Makefile.am): Substitute additional values.
38458         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38459         * lib/sys_times.in.h (includes): Include native header, if
38460         available.
38461         * lib/sys_utsname.in.h (includes): Likewise.
38462         * tests/test-sys_times.c (main): Enhance test.
38463
38464         fdutimensat: revert prior patch
38465         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
38466         utimens.h.
38467         Reported by Bruno Haible.
38468
38469 2009-12-30  Eric Blake  <ebb9@byu.net>
38470
38471         sys_wait: drop link-warning dependency
38472         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
38473         link-warning efforts.
38474         * lib/sys_wait.in.h: Likewise.
38475
38476         fdutimensat: remove bogus dependency
38477         * modules/fdutimensat (Depends-on): Drop inline.
38478
38479         unistd: fix typo
38480         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
38481
38482 2009-12-30  Bruno Haible  <bruno@clisp.org>
38483
38484         Fix compilation error with Solaris cc.
38485         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
38486         * lib/unicase/u16-is-invariant.c: Likewise.
38487         * lib/unicase/u32-is-invariant.c: Likewise.
38488         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38489
38490 2009-12-30  Bruno Haible  <bruno@clisp.org>
38491
38492         Fix test crash.
38493         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
38494         locales.
38495         Reported by Simon Josefsson <simon@josefsson.org>.
38496
38497 2009-12-30  Bruno Haible  <bruno@clisp.org>
38498
38499         Fix compilation error on most platforms.
38500         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
38501         Reported by Simon Josefsson <simon@josefsson.org>
38502         and Nelson H. F. Beebe <beebe@math.utah.edu>.
38503
38504 2009-12-30  Eric Blake  <ebb9@byu.net>
38505
38506         futimens, utimensat: work around ntfs-3g bug
38507         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
38508         a ctime bug is present, and expand workaround to cover ntfs-3g.
38509         * lib/utimens.c (fdutimens, lutimens): Likewise.
38510         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
38511         (validate_timespec): Adjust return value.
38512         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
38513         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38514         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
38515
38516 2009-12-29  Eric Blake  <ebb9@byu.net>
38517
38518         link-warning: make usage consistent
38519         * modules/ctype (Depends-on): Add link-warning.
38520         (Makefile.am): Update rules accordingly.
38521         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38522         * modules/locale (Depends-on, Makefile.am): Likewise.
38523         * modules/sys_file (Makefile.am): Likewise.
38524         * modules/getopt-posix (Makefile.am): Delete unused link warning
38525         efforts.
38526         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
38527         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
38528         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
38529         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
38530
38531         stdio: remove unused variables
38532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
38533         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
38534         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
38535
38536         tests: test more substitute headers
38537         * modules/ctype-tests: New file.
38538         * modules/dirent-tests: Likewise.
38539         * modules/spawn-tests: Likewise.
38540         * modules/sys_file-tests: Likewise.
38541         * modules/sys_ioctl-tests: Likewise.
38542         * modules/sys_wait-tests: Likewise.
38543         * tests/test-ctype.c: Likewise.
38544         * tests/test-dirent.c: Likewise.
38545         * tests/test-spawn.c: Likewise.
38546         * tests/test-sys_file.c: Likewise.
38547         * tests/test-sys_ioctl.c: Likewise.
38548         * tests/test-sys_wait.c: Likewise.
38549         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
38550         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
38551         whether or not flock is in use.
38552
38553         tests: remove License section from module
38554         * modules/arpa_inet-tests: Remove unneeded section.
38555         * modules/byteswap-tests: Likewise.
38556         * modules/ceilf-tests: Likewise.
38557         * modules/ceill-tests: Likewise.
38558         * modules/crypto/des-tests: Likewise.
38559         * modules/crypto/gc-arcfour-tests: Likewise.
38560         * modules/crypto/gc-arctwo-tests: Likewise.
38561         * modules/crypto/gc-des-tests: Likewise.
38562         * modules/crypto/gc-hmac-md5-tests: Likewise.
38563         * modules/crypto/gc-hmac-sha1-tests: Likewise.
38564         * modules/crypto/gc-md2-tests: Likewise.
38565         * modules/crypto/gc-md4-tests: Likewise.
38566         * modules/crypto/gc-md5-tests: Likewise.
38567         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
38568         * modules/crypto/gc-rijndael-tests: Likewise.
38569         * modules/crypto/gc-sha1-tests: Likewise.
38570         * modules/crypto/gc-tests: Likewise.
38571         * modules/crypto/md2-tests: Likewise.
38572         * modules/crypto/md4-tests: Likewise.
38573         * modules/fcntl-h-tests: Likewise.
38574         * modules/floorf-tests: Likewise.
38575         * modules/floorl-tests: Likewise.
38576         * modules/frexp-nolibm-tests: Likewise.
38577         * modules/frexp-tests: Likewise.
38578         * modules/frexpl-nolibm-tests: Likewise.
38579         * modules/frexpl-tests: Likewise.
38580         * modules/getaddrinfo-tests: Likewise.
38581         * modules/inttypes-tests: Likewise.
38582         * modules/isfinite-tests: Likewise.
38583         * modules/isinf-tests: Likewise.
38584         * modules/ldexpl-tests: Likewise.
38585         * modules/locale-tests: Likewise.
38586         * modules/math-tests: Likewise.
38587         * modules/netdb-tests: Likewise.
38588         * modules/netinet_in-tests: Likewise.
38589         * modules/printf-frexp-tests: Likewise.
38590         * modules/printf-frexpl-tests: Likewise.
38591         * modules/priv-set-tests: Likewise.
38592         * modules/random_r-tests: Likewise.
38593         * modules/round-tests: Likewise.
38594         * modules/roundf-tests: Likewise.
38595         * modules/roundl-tests: Likewise.
38596         * modules/search-tests: Likewise.
38597         * modules/select-tests: Likewise.
38598         * modules/signal-tests: Likewise.
38599         * modules/stdbool-tests: Likewise.
38600         * modules/stddef-tests: Likewise.
38601         * modules/stdint-tests: Likewise.
38602         * modules/stdio-tests: Likewise.
38603         * modules/stdlib-tests: Likewise.
38604         * modules/string-tests: Likewise.
38605         * modules/strings-tests: Likewise.
38606         * modules/sys_select-tests: Likewise.
38607         * modules/sys_socket-tests: Likewise.
38608         * modules/sys_stat-tests: Likewise.
38609         * modules/sys_time-tests: Likewise.
38610         * modules/sys_utsname-tests: Likewise.
38611         * modules/sysexits-tests: Likewise.
38612         * modules/time-tests: Likewise.
38613         * modules/trunc-tests: Likewise.
38614         * modules/truncf-tests: Likewise.
38615         * modules/truncl-tests: Likewise.
38616         * modules/tsearch-tests: Likewise.
38617         * modules/unistd-tests: Likewise.
38618         * modules/wchar-tests: Likewise.
38619         * modules/wctype-tests: Likewise.
38620
38621         tests: fix license on several tests
38622         * tests/test-des.c: Update to GPLv3+.
38623         * tests/test-flock.c: Likewise.
38624         * tests/test-fsync.c: Likewise.
38625         * tests/test-futimens.h: Likewise.
38626         * tests/test-gc-arcfour.c: Likewise.
38627         * tests/test-gc-arctwo.c: Likewise.
38628         * tests/test-gc-des.c: Likewise.
38629         * tests/test-gc-hmac-md5.c: Likewise.
38630         * tests/test-gc-hmac-sha1.c: Likewise.
38631         * tests/test-gc-md2.c: Likewise.
38632         * tests/test-gc-md4.c: Likewise.
38633         * tests/test-gc-md5.c: Likewise.
38634         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38635         * tests/test-gc-rijndael.c: Likewise.
38636         * tests/test-gc-sha1.c: Likewise.
38637         * tests/test-gc.c: Likewise.
38638         * tests/test-getcwd.c: Likewise.
38639         * tests/test-link.c: Likewise.
38640         * tests/test-link.h: Likewise.
38641         * tests/test-lutimens.h: Likewise.
38642         * tests/test-md2.c: Likewise.
38643         * tests/test-md4.c: Likewise.
38644         * tests/test-mkdir.h: Likewise.
38645         * tests/test-rename.c: Likewise.
38646         * tests/test-rename.h: Likewise.
38647         * tests/test-safe-alloc.c: Likewise.
38648         * tests/test-utimens-common.h: Likewise.
38649         * tests/test-utimens.h: Likewise.
38650
38651         maint: sync license texts
38652         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
38653         * doc/gpl-3.0.texi: Revert copyright year update.
38654         * doc/lgpl-3.0.texi: Likewise.
38655
38656 2009-12-29  Jim Meyering  <meyering@redhat.com>
38657
38658         update nearly all FSF copyright year lists to include 2009
38659         The files named by the following are exempted:
38660             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
38661               test -f "$dst" && { echo "$dst"; continue; }
38662               test -d "$dst" || continue
38663               echo "$dst"/$(basename "$src")
38664             done > exempt
38665             git ls-files tests/unictype >> exempt
38666         In the remaining files, convert to all-interval notation if
38667         - there is already at least one year interval like 2000-2003
38668         - the file is maintained by me
38669         - the file is in lib/uni*/, where that style already prevails
38670         Otherwise, use update-copyright's default.
38671
38672 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38673         and Eric Blake  <ebb9@byu.net>
38674
38675         tests: don't require debug system() to pass
38676         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
38677         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38678         * tests/test-unlink.h (test_unlink_func): Likewise.
38679         * tests/test-fstatat.c (main): ...into callers.
38680         * tests/test-lstat.c (main): Likewise.
38681         * tests/test-rmdir.c (main): Likewise.
38682         * tests/test-unlink.c (main): Likewise.
38683         * tests/test-unlinkat.c (main): Likewise.
38684         * tests/test-areadlink-with-size.c (main): Don't require a
38685         debug-only system call to pass, aiding cross-testing to mingw.
38686         * tests/test-areadlink.c (main): Likewise.
38687         * tests/test-areadlinkat-with-size.c (main): Likewise.
38688         * tests/test-areadlinkat.c (main): Likewise.
38689         * tests/test-canonicalize-lgpl.c (main): Likewise.
38690         * tests/test-canonicalize.c (main): Likewise.
38691         * tests/test-chown.c (main): Likewise.
38692         * tests/test-fchownat.c (main): Likewise.
38693         * tests/test-lchown.c (main): Likewise.
38694         * tests/test-fdutimensat.c (main): Likewise.
38695         * tests/test-futimens.c (main): Likewise.
38696         * tests/test-link.c (main): Likewise.
38697         * tests/test-linkat.c (main): Likewise.
38698         * tests/test-mkdir.c (main): Likewise.
38699         * tests/test-mkdirat.c (main): Likewise.
38700         * tests/test-mkfifo.c (main): Likewise.
38701         * tests/test-mkfifoat.c (main): Likewise.
38702         * tests/test-mknod.c (main): Likewise.
38703         * tests/test-readlink.c (main): Likewise.
38704         * tests/test-remove.c (main): Likewise.
38705         * tests/test-rename.c (main): Likewise.
38706         * tests/test-renameat.c (main): Likewise.
38707         * tests/test-symlink.c (main): Likewise.
38708         * tests/test-symlinkat.c (main): Likewise.
38709         * tests/test-utimens.c (main): Likewise.
38710         * tests/test-utimensat.c (main): Likewise.
38711
38712 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38713
38714         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
38715         on $(UNUSED_PARAMETER_H) to avoid build failure.
38716
38717 2009-12-28  Jim Meyering  <meyering@redhat.com>
38718
38719         update-copyright: you may specify a max. line length other than 72
38720         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38721
38722         maint: use consistent FSF copyright line syntax
38723         * lib/posixtm.c: Add missing comma in FSF copyright line.
38724         * lib/posixtm.h: Likewise.
38725         * lib/getugroups.c: Add missing ", Inc.".
38726
38727         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
38728         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
38729         FSF copyright line.  Remove trailing blanks.
38730
38731 2009-12-28  Eric Blake  <ebb9@byu.net>
38732
38733         test-dup2: reduce dependencies
38734         * modules/cloexec (Configure.ac): Set witness.
38735         * modules/dup2-tests (Depends-on): Drop cloexec.
38736         * tests/test-dup2.c (main): Skip portion of test if cloexec module
38737         not present.
38738         Suggested by Bruno Haible.
38739
38740 2009-12-26  Bruno Haible  <bruno@clisp.org>
38741
38742         Remove an unneeded dependency.
38743         * modules/fseterr (Depends-on): Remove dup2.
38744
38745 2009-12-26  Eric Blake  <ebb9@byu.net>
38746
38747         tests: use macros.h in more places
38748         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
38749         (ASSERT_STREAM): Provide default of stderr.
38750         * tests/test-dirent-safer.c: Include macros.h, using alternate
38751         stream for assertions.
38752         * tests/test-dup-safer.c: Likewise.
38753         * tests/test-freopen-safer.c: Likewise.
38754         * tests/test-getopt.c: Likewise.
38755         * tests/test-openat-safer.c: Likewise.
38756         * tests/test-pipe.c: Likewise.
38757         * tests/test-popen-safer.c: Likewise.
38758         * modules/dirent-safer-tests (Files): Include macros.h.
38759         * modules/unistd-safer-tests (Files): Likewise.
38760         * modules/freopen-safer-tests (Files): Likewise.
38761         * modules/getopt-posix-tests (Files): Likewise.
38762         * modules/openat-safer-tests (Files): Likewise.
38763         * modules/pipe-tests (Files): Likewise.
38764
38765 2009-12-26  Bruno Haible  <bruno@clisp.org>
38766
38767         javacomp: Portability fix.
38768         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
38769         that it also works on Solaris.
38770
38771 2009-12-26  Bruno Haible  <bruno@clisp.org>
38772
38773         localename: Fix storage allocation of gl_locale_name_thread's result.
38774         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
38775         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
38776         all platforms that have 'uselocale'.
38777         (gl_locale_name_thread_unsafe): New function, extracted from
38778         gl_locale_name_thread.
38779         (gl_locale_name_thread): Call struniq on all platforms that have
38780         'uselocale'.
38781         * tests/test-localename.c (test_locale_name_thread): Check that the
38782         resulting strings are permanently allocated.
38783         * modules/localename-tests (Depends-on): Add strdup.
38784
38785 2009-12-26  Bruno Haible  <bruno@clisp.org>
38786
38787         * tests/test-localename.c (categories): Fill in the strings.
38788
38789 2009-12-26  Jim Meyering  <meyering@redhat.com>
38790
38791         isdir: complete the removal of m4/isdir.m4
38792         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
38793
38794         isdir: clean up, since at least grep still uses it
38795         * lib/isdir.c: Include "isdir.h".
38796         (S_ISDIR): Remove now-unneeded definition.
38797         * modules/isdir (Files): Add lib/isdir.h.
38798         * lib/isdir.h: New file, with declaration.
38799         * m4/isdir.m4: Remove file -- unneeded.
38800
38801 2009-12-25  Bruno Haible  <bruno@clisp.org>
38802
38803         selinux-h: Make generated .h files standalone.
38804         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
38805         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
38806         * lib/se-selinux.in.h: Likewise.
38807         * modules/selinux-h (Depends-on): Add unused-parameter.
38808         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
38809         selinux/selinux.h and selinux/context.h.
38810         Suggested by Eric Blake.
38811
38812 2009-12-25  Bruno Haible  <bruno@clisp.org>
38813
38814         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
38815         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
38816         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
38817         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
38818         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
38819
38820 2009-12-24  Bruno Haible  <bruno@clisp.org>
38821
38822         openat: Fix warning.
38823         * lib/openat-proc.c: Include <unistd.h>.
38824
38825 2009-12-24  Bruno Haible  <bruno@clisp.org>
38826
38827         New module 'unused-parameter'.
38828         * build-aux/unused-parameter.h: New file, extracted from earlier
38829         gnulib-common.m4.
38830         * modules/unused-parameter: New file.
38831         * lib/unistr.h: Include unused-parameter.h.
38832         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
38833         _GL_UNUSED.
38834         * modules/unistr/base (Depends-on): Add unused-parameter.
38835
38836 2009-12-24  Bruno Haible  <bruno@clisp.org>
38837
38838         Add missing dependencies to 'extensions' module.
38839         * m4/extensions.m4: Add comment.
38840         * modules/accept4 (Depends-on): Add extensions.
38841         * modules/dup3 (Depends-on): Likewise.
38842         * modules/fcntl (Depends-on): Likewise.
38843         * modules/futimens (Depends-on): Likewise.
38844         * modules/mknod (Depends-on): Likewise.
38845         * modules/pipe2 (Depends-on): Likewise.
38846         * modules/stat-time (Depends-on): Likewise.
38847         * modules/strcasestr-simple (Depends-on): Likewise.
38848         * modules/strsignal (Depends-on): Likewise.
38849         * modules/utimensat (Depends-on): Likewise.
38850         * modules/localcharset (Depends-on): Likewise. Needed because of
38851         gl_FCNTL_O_FLAGS.
38852         * modules/wcrtomb (Depends-on): Likewise. Needed because of
38853         AC_TYPE_MBSTATE_T.
38854         * modules/wcsnrtombs (Depends-on): Likewise.
38855         * modules/wcsrtombs (Depends-on): Likewise.
38856
38857 2009-12-24  Bruno Haible  <bruno@clisp.org>
38858
38859         binary-io: Avoid gcc warning due to SET_BINARY.
38860         * lib/binary-io.h (SET_BINARY): Cast the result to void.
38861         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
38862
38863 2009-12-24  Bruno Haible  <bruno@clisp.org>
38864
38865         Avoid future namespace pollution on glibc systems.
38866         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
38867         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
38868         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
38869         glibc systems.
38870
38871 2009-12-24  Bruno Haible  <bruno@clisp.org>
38872
38873         Refactor common macros used in tests.
38874         * tests/macros.h: New file.
38875         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
38876         and/or <stdlib.h>, if appropriate.
38877         (ASSERT, SIZEOF): Remove macros.
38878         * tests/test-areadlink-with-size.c: Likewise.
38879         * tests/test-areadlinkat.c: Likewise.
38880         * tests/test-areadlinkat-with-size.c: Likewise.
38881         * tests/test-argmatch.c: Likewise.
38882         * tests/test-argv-iter.c: Likewise.
38883         * tests/test-array-mergesort.c: Likewise.
38884         * tests/test-array_list.c: Likewise.
38885         * tests/test-array_oset.c: Likewise.
38886         * tests/test-avltree_list.c: Likewise.
38887         * tests/test-avltree_oset.c: Likewise.
38888         * tests/test-avltreehash_list.c: Likewise.
38889         * tests/test-base64.c: Likewise.
38890         * tests/test-binary-io.c: Likewise.
38891         * tests/test-bitrotate.c: Likewise.
38892         * tests/test-btowc.c: Likewise.
38893         * tests/test-byteswap.c: Likewise.
38894         * tests/test-c-ctype.c: Likewise.
38895         * tests/test-c-stack.c: Likewise.
38896         * tests/test-c-strcasecmp.c: Likewise.
38897         * tests/test-c-strcasestr.c: Likewise.
38898         * tests/test-c-strncasecmp.c: Likewise.
38899         * tests/test-c-strstr.c: Likewise.
38900         * tests/test-canonicalize-lgpl.c: Likewise.
38901         * tests/test-canonicalize.c: Likewise.
38902         * tests/test-carray_list.c: Likewise.
38903         * tests/test-ceilf1.c: Likewise.
38904         * tests/test-ceilf2.c: Likewise.
38905         * tests/test-ceill.c: Likewise.
38906         * tests/test-chown.c: Likewise.
38907         * tests/test-cloexec.c: Likewise.
38908         * tests/test-copy-acl.c: Likewise.
38909         * tests/test-copy-file.c: Likewise.
38910         * tests/test-count-one-bits.c: Likewise.
38911         * tests/test-dprintf-posix.c: Likewise.
38912         * tests/test-dup2.c: Likewise.
38913         * tests/test-dup3.c: Likewise.
38914         * tests/test-duplocale.c: Likewise.
38915         * tests/test-fbufmode.c: Likewise.
38916         * tests/test-fchdir.c: Likewise.
38917         * tests/test-fchownat.c: Likewise.
38918         * tests/test-fcntl-safer.c: Likewise.
38919         * tests/test-fcntl.c: Likewise.
38920         * tests/test-fdopendir.c: Likewise.
38921         * tests/test-fdutimensat.c: Likewise.
38922         * tests/test-fflush2.c: Likewise.
38923         * tests/test-file-has-acl.c: Likewise.
38924         * tests/test-filevercmp.c: Likewise.
38925         * tests/test-flock.c: Likewise.
38926         * tests/test-floorf1.c: Likewise.
38927         * tests/test-floorf2.c: Likewise.
38928         * tests/test-floorl.c: Likewise.
38929         * tests/test-fnmatch.c: Likewise.
38930         * tests/test-fopen.h: Likewise.
38931         * tests/test-fpending.c: Likewise.
38932         * tests/test-fprintf-posix.c: Likewise.
38933         * tests/test-fpurge.c: Likewise.
38934         * tests/test-freadable.c: Likewise.
38935         * tests/test-freadahead.c: Likewise.
38936         * tests/test-freading.c: Likewise.
38937         * tests/test-freadptr.c: Likewise.
38938         * tests/test-freadptr2.c: Likewise.
38939         * tests/test-freadseek.c: Likewise.
38940         * tests/test-freopen.c: Likewise.
38941         * tests/test-frexp.c: Likewise.
38942         * tests/test-frexpl.c: Likewise.
38943         * tests/test-fseek.c: Likewise.
38944         * tests/test-fseeko.c: Likewise.
38945         * tests/test-fstatat.c: Likewise.
38946         * tests/test-fstrcmp.c: Likewise.
38947         * tests/test-fsync.c: Likewise.
38948         * tests/test-ftell.c: Likewise.
38949         * tests/test-ftello.c: Likewise.
38950         * tests/test-func.c: Likewise.
38951         * tests/test-futimens.c: Likewise.
38952         * tests/test-fwritable.c: Likewise.
38953         * tests/test-fwriting.c: Likewise.
38954         * tests/test-getcwd.c: Likewise.
38955         * tests/test-getdate.c: Likewise.
38956         * tests/test-getdelim.c: Likewise.
38957         * tests/test-getdtablesize.c: Likewise.
38958         * tests/test-getgroups.c: Likewise.
38959         * tests/test-getline.c: Likewise.
38960         * tests/test-getndelim2.c: Likewise.
38961         * tests/test-glob.c: Likewise.
38962         * tests/test-hash.c: Likewise.
38963         * tests/test-i-ring.c: Likewise.
38964         * tests/test-iconv-utf.c: Likewise.
38965         * tests/test-iconv.c: Likewise.
38966         * tests/test-idpriv-drop.c: Likewise.
38967         * tests/test-idpriv-droptemp.c: Likewise.
38968         * tests/test-inet_ntop.c: Likewise.
38969         * tests/test-inet_pton.c: Likewise.
38970         * tests/test-isblank.c: Likewise.
38971         * tests/test-isfinite.c: Likewise.
38972         * tests/test-isinf.c: Likewise.
38973         * tests/test-isnan.c: Likewise.
38974         * tests/test-isnand.h: Likewise.
38975         * tests/test-isnanf.h: Likewise.
38976         * tests/test-isnanl.h: Likewise.
38977         * tests/test-lchown.c: Likewise.
38978         * tests/test-ldexpl.c: Likewise.
38979         * tests/test-link.c: Likewise.
38980         * tests/test-linkat.c: Likewise.
38981         * tests/test-linked_list.c: Likewise.
38982         * tests/test-linkedhash_list.c: Likewise.
38983         * tests/test-localename.c: Likewise.
38984         * tests/test-lseek.c: Likewise.
38985         * tests/test-lstat.c: Likewise.
38986         * tests/test-mbmemcasecmp.c: Likewise.
38987         * tests/test-mbmemcasecoll.c: Likewise.
38988         * tests/test-mbrtowc.c: Likewise.
38989         * tests/test-mbscasecmp.c: Likewise.
38990         * tests/test-mbscasestr1.c: Likewise.
38991         * tests/test-mbscasestr2.c: Likewise.
38992         * tests/test-mbscasestr3.c: Likewise.
38993         * tests/test-mbscasestr4.c: Likewise.
38994         * tests/test-mbschr.c: Likewise.
38995         * tests/test-mbscspn.c: Likewise.
38996         * tests/test-mbsinit.c: Likewise.
38997         * tests/test-mbsncasecmp.c: Likewise.
38998         * tests/test-mbsnrtowcs.c: Likewise.
38999         * tests/test-mbspbrk.c: Likewise.
39000         * tests/test-mbspcasecmp.c: Likewise.
39001         * tests/test-mbsrchr.c: Likewise.
39002         * tests/test-mbsrtowcs.c: Likewise.
39003         * tests/test-mbsspn.c: Likewise.
39004         * tests/test-mbsstr1.c: Likewise.
39005         * tests/test-mbsstr2.c: Likewise.
39006         * tests/test-mbsstr3.c: Likewise.
39007         * tests/test-memchr.c: Likewise.
39008         * tests/test-memchr2.c: Likewise.
39009         * tests/test-memcmp.c: Likewise.
39010         * tests/test-memmem.c: Likewise.
39011         * tests/test-memrchr.c: Likewise.
39012         * tests/test-mkdir.c: Likewise.
39013         * tests/test-mkdirat.c: Likewise.
39014         * tests/test-mkfifo.c: Likewise.
39015         * tests/test-mkfifoat.c: Likewise.
39016         * tests/test-mknod.c: Likewise.
39017         * tests/test-nanosleep.c: Likewise.
39018         * tests/test-nl_langinfo.c: Likewise.
39019         * tests/test-obstack-printf.c: Likewise.
39020         * tests/test-open.c: Likewise.
39021         * tests/test-openat.c: Likewise.
39022         * tests/test-pipe-filter-gi1.c: Likewise.
39023         * tests/test-pipe-filter-gi2-main.c: Likewise.
39024         * tests/test-pipe-filter-ii1.c: Likewise.
39025         * tests/test-pipe-filter-ii2-main.c: Likewise.
39026         * tests/test-pipe2.c: Likewise.
39027         * tests/test-popen.h: Likewise.
39028         * tests/test-posixtm.c: Likewise.
39029         * tests/test-pread.c: Likewise.
39030         * tests/test-printf-frexp.c: Likewise.
39031         * tests/test-printf-frexpl.c: Likewise.
39032         * tests/test-printf-posix.c: Likewise.
39033         * tests/test-priv-set.c: Likewise.
39034         * tests/test-quotearg.c: Likewise.
39035         * tests/test-random_r.c: Likewise.
39036         * tests/test-rawmemchr.c: Likewise.
39037         * tests/test-rbtree_list.c: Likewise.
39038         * tests/test-rbtree_oset.c: Likewise.
39039         * tests/test-rbtreehash_list.c: Likewise.
39040         * tests/test-readlink.c: Likewise.
39041         * tests/test-remove.c: Likewise.
39042         * tests/test-rename.c: Likewise.
39043         * tests/test-renameat.c: Likewise.
39044         * tests/test-rmdir.c: Likewise.
39045         * tests/test-round1.c: Likewise.
39046         * tests/test-roundf1.c: Likewise.
39047         * tests/test-roundl.c: Likewise.
39048         * tests/test-safe-alloc.c: Likewise.
39049         * tests/test-sameacls.c: Likewise.
39050         * tests/test-set-mode-acl.c: Likewise.
39051         * tests/test-setenv.c: Likewise.
39052         * tests/test-sigaction.c: Likewise.
39053         * tests/test-signbit.c: Likewise.
39054         * tests/test-sleep.c: Likewise.
39055         * tests/test-snprintf-posix.c: Likewise.
39056         * tests/test-snprintf.c: Likewise.
39057         * tests/test-sprintf-posix.c: Likewise.
39058         * tests/test-stat-time.c: Likewise.
39059         * tests/test-stat.c: Likewise.
39060         * tests/test-strcasestr.c: Likewise.
39061         * tests/test-strchrnul.c: Likewise.
39062         * tests/test-strerror.c: Likewise.
39063         * tests/test-striconv.c: Likewise.
39064         * tests/test-striconveh.c: Likewise.
39065         * tests/test-striconveha.c: Likewise.
39066         * tests/test-strsignal.c: Likewise.
39067         * tests/test-strstr.c: Likewise.
39068         * tests/test-strtod.c: Likewise.
39069         * tests/test-strverscmp.c: Likewise.
39070         * tests/test-symlink.c: Likewise.
39071         * tests/test-symlinkat.c: Likewise.
39072         * tests/test-trunc1.c: Likewise.
39073         * tests/test-trunc2.c: Likewise.
39074         * tests/test-truncf1.c: Likewise.
39075         * tests/test-truncf2.c: Likewise.
39076         * tests/test-truncl.c: Likewise.
39077         * tests/test-uname.c: Likewise.
39078         * tests/test-unlink.c: Likewise.
39079         * tests/test-unlinkat.c: Likewise.
39080         * tests/test-unsetenv.c: Likewise.
39081         * tests/test-usleep.c: Likewise.
39082         * tests/test-utimens.c: Likewise.
39083         * tests/test-utimensat.c: Likewise.
39084         * tests/test-vasnprintf-posix.c: Likewise.
39085         * tests/test-vasnprintf-posix2.c: Likewise.
39086         * tests/test-vasnprintf.c: Likewise.
39087         * tests/test-vasprintf-posix.c: Likewise.
39088         * tests/test-vasprintf.c: Likewise.
39089         * tests/test-vdprintf-posix.c: Likewise.
39090         * tests/test-vfprintf-posix.c: Likewise.
39091         * tests/test-vprintf-posix.c: Likewise.
39092         * tests/test-vsnprintf-posix.c: Likewise.
39093         * tests/test-vsnprintf.c: Likewise.
39094         * tests/test-vsprintf-posix.c: Likewise.
39095         * tests/test-wcrtomb.c: Likewise.
39096         * tests/test-wcsnrtombs.c: Likewise.
39097         * tests/test-wcsrtombs.c: Likewise.
39098         * tests/test-wctype.c: Likewise.
39099         * tests/test-wcwidth.c: Likewise.
39100         * tests/test-xfprintf-posix.c: Likewise.
39101         * tests/test-xmemdup0.c: Likewise.
39102         * tests/test-xprintf-posix.c: Likewise.
39103         * tests/test-xvasprintf.c: Likewise.
39104         * tests/unicase/test-locale-language.c: Likewise.
39105         * tests/unicase/test-mapping-part1.h: Likewise.
39106         * tests/unicase/test-predicate-part1.h: Likewise.
39107         * tests/unicase/test-u8-casecmp.c: Likewise.
39108         * tests/unicase/test-u8-casecoll.c: Likewise.
39109         * tests/unicase/test-u8-casefold.c: Likewise.
39110         * tests/unicase/test-u8-is-cased.c: Likewise.
39111         * tests/unicase/test-u8-is-casefolded.c: Likewise.
39112         * tests/unicase/test-u8-is-lowercase.c: Likewise.
39113         * tests/unicase/test-u8-is-titlecase.c: Likewise.
39114         * tests/unicase/test-u8-is-uppercase.c: Likewise.
39115         * tests/unicase/test-u8-tolower.c: Likewise.
39116         * tests/unicase/test-u8-totitle.c: Likewise.
39117         * tests/unicase/test-u8-toupper.c: Likewise.
39118         * tests/unicase/test-u16-casecmp.c: Likewise.
39119         * tests/unicase/test-u16-casecoll.c: Likewise.
39120         * tests/unicase/test-u16-casefold.c: Likewise.
39121         * tests/unicase/test-u16-is-cased.c: Likewise.
39122         * tests/unicase/test-u16-is-casefolded.c: Likewise.
39123         * tests/unicase/test-u16-is-lowercase.c: Likewise.
39124         * tests/unicase/test-u16-is-titlecase.c: Likewise.
39125         * tests/unicase/test-u16-is-uppercase.c: Likewise.
39126         * tests/unicase/test-u16-tolower.c: Likewise.
39127         * tests/unicase/test-u16-totitle.c: Likewise.
39128         * tests/unicase/test-u16-toupper.c: Likewise.
39129         * tests/unicase/test-u32-casecmp.c: Likewise.
39130         * tests/unicase/test-u32-casecoll.c: Likewise.
39131         * tests/unicase/test-u32-casefold.c: Likewise.
39132         * tests/unicase/test-u32-is-cased.c: Likewise.
39133         * tests/unicase/test-u32-is-casefolded.c: Likewise.
39134         * tests/unicase/test-u32-is-lowercase.c: Likewise.
39135         * tests/unicase/test-u32-is-titlecase.c: Likewise.
39136         * tests/unicase/test-u32-is-uppercase.c: Likewise.
39137         * tests/unicase/test-u32-tolower.c: Likewise.
39138         * tests/unicase/test-u32-totitle.c: Likewise.
39139         * tests/unicase/test-u32-toupper.c: Likewise.
39140         * tests/unicase/test-ulc-casecmp.c: Likewise.
39141         * tests/unicase/test-ulc-casecoll.c: Likewise.
39142         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39143         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
39144         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39145         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39146         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
39147         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
39148         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39149         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39150         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39151         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
39152         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39153         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39154         * tests/unictype/test-bidi_byname.c: Likewise.
39155         * tests/unictype/test-bidi_name.c: Likewise.
39156         * tests/unictype/test-bidi_of.c: Likewise.
39157         * tests/unictype/test-bidi_test.c: Likewise.
39158         * tests/unictype/test-block_list.c: Likewise.
39159         * tests/unictype/test-block_of.c: Likewise.
39160         * tests/unictype/test-block_test.c: Likewise.
39161         * tests/unictype/test-categ_and.c: Likewise.
39162         * tests/unictype/test-categ_and_not.c: Likewise.
39163         * tests/unictype/test-categ_byname.c: Likewise.
39164         * tests/unictype/test-categ_name.c: Likewise.
39165         * tests/unictype/test-categ_none.c: Likewise.
39166         * tests/unictype/test-categ_of.c: Likewise.
39167         * tests/unictype/test-categ_or.c: Likewise.
39168         * tests/unictype/test-categ_test_withtable.c: Likewise.
39169         * tests/unictype/test-combining.c: Likewise.
39170         * tests/unictype/test-decdigit.c: Likewise.
39171         * tests/unictype/test-digit.c: Likewise.
39172         * tests/unictype/test-mirror.c: Likewise.
39173         * tests/unictype/test-numeric.c: Likewise.
39174         * tests/unictype/test-pr_byname.c: Likewise.
39175         * tests/unictype/test-pr_test.c: Likewise.
39176         * tests/unictype/test-predicate-part1.h: Likewise.
39177         * tests/unictype/test-scripts.c: Likewise.
39178         * tests/unictype/test-sy_c_ident.c: Likewise.
39179         * tests/unictype/test-sy_java_ident.c: Likewise.
39180         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
39181         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
39182         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
39183         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
39184         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
39185         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
39186         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
39187         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
39188         * tests/uninorm/test-canonical-decomposition.c: Likewise.
39189         * tests/uninorm/test-compat-decomposition.c: Likewise.
39190         * tests/uninorm/test-composition.c: Likewise.
39191         * tests/uninorm/test-decomposing-form.c: Likewise.
39192         * tests/uninorm/test-decomposition.c: Likewise.
39193         * tests/uninorm/test-u8-nfc.c: Likewise.
39194         * tests/uninorm/test-u8-nfd.c: Likewise.
39195         * tests/uninorm/test-u8-nfkc.c: Likewise.
39196         * tests/uninorm/test-u8-nfkd.c: Likewise.
39197         * tests/uninorm/test-u8-normcmp.c: Likewise.
39198         * tests/uninorm/test-u8-normcoll.c: Likewise.
39199         * tests/uninorm/test-u16-nfc.c: Likewise.
39200         * tests/uninorm/test-u16-nfd.c: Likewise.
39201         * tests/uninorm/test-u16-nfkc.c: Likewise.
39202         * tests/uninorm/test-u16-nfkd.c: Likewise.
39203         * tests/uninorm/test-u16-normcmp.c: Likewise.
39204         * tests/uninorm/test-u16-normcoll.c: Likewise.
39205         * tests/uninorm/test-u32-nfc.c: Likewise.
39206         * tests/uninorm/test-u32-nfd.c: Likewise.
39207         * tests/uninorm/test-u32-nfkc.c: Likewise.
39208         * tests/uninorm/test-u32-nfkd.c: Likewise.
39209         * tests/uninorm/test-u32-normalize-big.c: Likewise.
39210         * tests/uninorm/test-u32-normcmp.c: Likewise.
39211         * tests/uninorm/test-u32-normcoll.c: Likewise.
39212         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
39213         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
39214         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
39215         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
39216         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
39217         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
39218         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
39219         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
39220         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
39221         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
39222         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
39223         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
39224         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
39225         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
39226         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
39227         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
39228         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
39229         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
39230         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
39231         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
39232         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
39233         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
39234         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
39235         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
39236         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
39237         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
39238         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
39239         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
39240         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
39241         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
39242         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
39243         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
39244         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
39245         * tests/uniwidth/test-u8-strwidth.c: Likewise.
39246         * tests/uniwidth/test-u8-width.c: Likewise.
39247         * tests/uniwidth/test-u16-strwidth.c: Likewise.
39248         * tests/uniwidth/test-u16-width.c: Likewise.
39249         * tests/uniwidth/test-u32-strwidth.c: Likewise.
39250         * tests/uniwidth/test-u32-width.c: Likewise.
39251         * tests/uniwidth/test-uc_width.c: Likewise.
39252         * tests/uniwidth/test-uc_width2.c: Likewise.
39253         * modules/acl-tests (Files): Add tests/macros.h.
39254         * modules/areadlink-tests (Files): Likewise.
39255         * modules/areadlink-with-size-tests (Files): Likewise.
39256         * modules/areadlinkat-tests (Files): Likewise.
39257         * modules/areadlinkat-with-size-tests (Files): Likewise.
39258         * modules/argmatch-tests (Files): Likewise.
39259         * modules/argv-iter-tests (Files): Likewise.
39260         * modules/array-list-tests (Files): Likewise.
39261         * modules/array-mergesort-tests (Files): Likewise.
39262         * modules/array-oset-tests (Files): Likewise.
39263         * modules/avltree-list-tests (Files): Likewise.
39264         * modules/avltree-oset-tests (Files): Likewise.
39265         * modules/avltreehash-list-tests (Files): Likewise.
39266         * modules/base64-tests (Files): Likewise.
39267         * modules/binary-io-tests (Files): Likewise.
39268         * modules/bitrotate-tests (Files): Likewise.
39269         * modules/btowc-tests (Files): Likewise.
39270         * modules/byteswap-tests (Files): Likewise.
39271         * modules/c-ctype-tests (Files): Likewise.
39272         * modules/c-stack-tests (Files): Likewise.
39273         * modules/c-strcase-tests (Files): Likewise.
39274         * modules/c-strcasestr-tests (Files): Likewise.
39275         * modules/c-strstr-tests (Files): Likewise.
39276         * modules/canonicalize-lgpl-tests (Files): Likewise.
39277         * modules/canonicalize-tests (Files): Likewise.
39278         * modules/carray-list-tests (Files): Likewise.
39279         * modules/ceilf-tests (Files): Likewise.
39280         * modules/ceill-tests (Files): Likewise.
39281         * modules/chown-tests (Files): Likewise.
39282         * modules/cloexec-tests (Files): Likewise.
39283         * modules/copy-file-tests (Files): Likewise.
39284         * modules/count-one-bits-tests (Files): Likewise.
39285         * modules/dprintf-posix-tests (Files): Likewise.
39286         * modules/dup2-tests (Files): Likewise.
39287         * modules/dup3-tests (Files): Likewise.
39288         * modules/duplocale-tests (Files): Likewise.
39289         * modules/fbufmode-tests (Files): Likewise.
39290         * modules/fchdir-tests (Files): Likewise.
39291         * modules/fcntl-safer-tests (Files): Likewise.
39292         * modules/fcntl-tests (Files): Likewise.
39293         * modules/fdopendir-tests (Files): Likewise.
39294         * modules/fdutimensat-tests (Files): Likewise.
39295         * modules/fflush-tests (Files): Likewise.
39296         * modules/filevercmp-tests (Files): Likewise.
39297         * modules/flock-tests (Files): Likewise.
39298         * modules/floorf-tests (Files): Likewise.
39299         * modules/floorl-tests (Files): Likewise.
39300         * modules/fnmatch-tests (Files): Likewise.
39301         * modules/fopen-safer-tests (Files): Likewise.
39302         * modules/fopen-tests (Files): Likewise.
39303         * modules/fpending-tests (Files): Likewise.
39304         * modules/fprintf-posix-tests (Files): Likewise.
39305         * modules/fpurge-tests (Files): Likewise.
39306         * modules/freadable-tests (Files): Likewise.
39307         * modules/freadahead-tests (Files): Likewise.
39308         * modules/freading-tests (Files): Likewise.
39309         * modules/freadptr-tests (Files): Likewise.
39310         * modules/freadseek-tests (Files): Likewise.
39311         * modules/freopen-tests (Files): Likewise.
39312         * modules/frexp-nolibm-tests (Files): Likewise.
39313         * modules/frexp-tests (Files): Likewise.
39314         * modules/frexpl-nolibm-tests (Files): Likewise.
39315         * modules/frexpl-tests (Files): Likewise.
39316         * modules/fseek-tests (Files): Likewise.
39317         * modules/fseeko-tests (Files): Likewise.
39318         * modules/fstrcmp-tests (Files): Likewise.
39319         * modules/fsync-tests (Files): Likewise.
39320         * modules/ftell-tests (Files): Likewise.
39321         * modules/ftello-tests (Files): Likewise.
39322         * modules/func-tests (Files): Likewise.
39323         * modules/futimens-tests (Files): Likewise.
39324         * modules/fwritable-tests (Files): Likewise.
39325         * modules/fwriting-tests (Files): Likewise.
39326         * modules/getcwd-tests (Files): Likewise.
39327         * modules/getdate-tests (Files): Likewise.
39328         * modules/getdelim-tests (Files): Likewise.
39329         * modules/getdtablesize-tests (Files): Likewise.
39330         * modules/getgroups-tests (Files): Likewise.
39331         * modules/getline-tests (Files): Likewise.
39332         * modules/getndelim2-tests (Files): Likewise.
39333         * modules/glob-tests (Files): Likewise.
39334         * modules/hash-tests (Files): Likewise.
39335         * modules/i-ring-tests (Files): Likewise.
39336         * modules/iconv-tests (Files): Likewise.
39337         * modules/iconv_open-utf-tests (Files): Likewise.
39338         * modules/idpriv-drop-tests (Files): Likewise.
39339         * modules/idpriv-droptemp-tests (Files): Likewise.
39340         * modules/inet_ntop-tests (Files): Likewise.
39341         * modules/inet_pton-tests (Files): Likewise.
39342         * modules/isblank-tests (Files): Likewise.
39343         * modules/isfinite-tests (Files): Likewise.
39344         * modules/isinf-tests (Files): Likewise.
39345         * modules/isnan-tests (Files): Likewise.
39346         * modules/isnand-nolibm-tests (Files): Likewise.
39347         * modules/isnand-tests (Files): Likewise.
39348         * modules/isnanf-nolibm-tests (Files): Likewise.
39349         * modules/isnanf-tests (Files): Likewise.
39350         * modules/isnanl-nolibm-tests (Files): Likewise.
39351         * modules/isnanl-tests (Files): Likewise.
39352         * modules/lchown-tests (Files): Likewise.
39353         * modules/ldexpl-tests (Files): Likewise.
39354         * modules/link-tests (Files): Likewise.
39355         * modules/linkat-tests (Files): Likewise.
39356         * modules/linked-list-tests (Files): Likewise.
39357         * modules/linkedhash-list-tests (Files): Likewise.
39358         * modules/localename-tests (Files): Likewise.
39359         * modules/lseek-tests (Files): Likewise.
39360         * modules/lstat-tests (Files): Likewise.
39361         * modules/mbmemcasecmp-tests (Files): Likewise.
39362         * modules/mbmemcasecoll-tests (Files): Likewise.
39363         * modules/mbrtowc-tests (Files): Likewise.
39364         * modules/mbscasecmp-tests (Files): Likewise.
39365         * modules/mbscasestr-tests (Files): Likewise.
39366         * modules/mbschr-tests (Files): Likewise.
39367         * modules/mbscspn-tests (Files): Likewise.
39368         * modules/mbsinit-tests (Files): Likewise.
39369         * modules/mbsncasecmp-tests (Files): Likewise.
39370         * modules/mbsnrtowcs-tests (Files): Likewise.
39371         * modules/mbspbrk-tests (Files): Likewise.
39372         * modules/mbspcasecmp-tests (Files): Likewise.
39373         * modules/mbsrchr-tests (Files): Likewise.
39374         * modules/mbsrtowcs-tests (Files): Likewise.
39375         * modules/mbsspn-tests (Files): Likewise.
39376         * modules/mbsstr-tests (Files): Likewise.
39377         * modules/memchr-tests (Files): Likewise.
39378         * modules/memchr2-tests (Files): Likewise.
39379         * modules/memcmp-tests (Files): Likewise.
39380         * modules/memmem-tests (Files): Likewise.
39381         * modules/memrchr-tests (Files): Likewise.
39382         * modules/mkdir-tests (Files): Likewise.
39383         * modules/mkfifo-tests (Files): Likewise.
39384         * modules/mkfifoat-tests (Files): Likewise.
39385         * modules/mknod-tests (Files): Likewise.
39386         * modules/nanosleep-tests (Files): Likewise.
39387         * modules/nl_langinfo-tests (Files): Likewise.
39388         * modules/obstack-printf-tests (Files): Likewise.
39389         * modules/open-tests (Files): Likewise.
39390         * modules/openat-tests (Files): Likewise.
39391         * modules/pipe-filter-gi-tests (Files): Likewise.
39392         * modules/pipe-filter-ii-tests (Files): Likewise.
39393         * modules/pipe2-tests (Files): Likewise.
39394         * modules/popen-safer-tests (Files): Likewise.
39395         * modules/popen-tests (Files): Likewise.
39396         * modules/posixtm-tests (Files): Likewise.
39397         * modules/pread-tests (Files): Likewise.
39398         * modules/printf-frexp-tests (Files): Likewise.
39399         * modules/printf-frexpl-tests (Files): Likewise.
39400         * modules/printf-posix-tests (Files): Likewise.
39401         * modules/priv-set-tests (Files): Likewise.
39402         * modules/quotearg-tests (Files): Likewise.
39403         * modules/random_r-tests (Files): Likewise.
39404         * modules/rawmemchr-tests (Files): Likewise.
39405         * modules/rbtree-list-tests (Files): Likewise.
39406         * modules/rbtree-oset-tests (Files): Likewise.
39407         * modules/rbtreehash-list-tests (Files): Likewise.
39408         * modules/readlink-tests (Files): Likewise.
39409         * modules/remove-tests (Files): Likewise.
39410         * modules/rename-tests (Files): Likewise.
39411         * modules/renameat-tests (Files): Likewise.
39412         * modules/rmdir-tests (Files): Likewise.
39413         * modules/round-tests (Files): Likewise.
39414         * modules/roundf-tests (Files): Likewise.
39415         * modules/roundl-tests (Files): Likewise.
39416         * modules/safe-alloc-tests (Files): Likewise.
39417         * modules/setenv-tests (Files): Likewise.
39418         * modules/sigaction-tests (Files): Likewise.
39419         * modules/signbit-tests (Files): Likewise.
39420         * modules/sleep-tests (Files): Likewise.
39421         * modules/snprintf-posix-tests (Files): Likewise.
39422         * modules/snprintf-tests (Files): Likewise.
39423         * modules/sprintf-posix-tests (Files): Likewise.
39424         * modules/stat-tests (Files): Likewise.
39425         * modules/stat-time-tests (Files): Likewise.
39426         * modules/strcasestr-tests (Files): Likewise.
39427         * modules/strchrnul-tests (Files): Likewise.
39428         * modules/strerror-tests (Files): Likewise.
39429         * modules/striconv-tests (Files): Likewise.
39430         * modules/striconveh-tests (Files): Likewise.
39431         * modules/striconveha-tests (Files): Likewise.
39432         * modules/strsignal-tests (Files): Likewise.
39433         * modules/strstr-tests (Files): Likewise.
39434         * modules/strtod-tests (Files): Likewise.
39435         * modules/strverscmp-tests (Files): Likewise.
39436         * modules/symlink-tests (Files): Likewise.
39437         * modules/symlinkat-tests (Files): Likewise.
39438         * modules/trunc-tests (Files): Likewise.
39439         * modules/truncf-tests (Files): Likewise.
39440         * modules/truncl-tests (Files): Likewise.
39441         * modules/uname-tests (Files): Likewise.
39442         * modules/unicase/cased-tests (Files): Likewise.
39443         * modules/unicase/ignorable-tests (Files): Likewise.
39444         * modules/unicase/locale-language-tests (Files): Likewise.
39445         * modules/unicase/tolower-tests (Files): Likewise.
39446         * modules/unicase/totitle-tests (Files): Likewise.
39447         * modules/unicase/toupper-tests (Files): Likewise.
39448         * modules/unicase/u8-casecmp-tests (Files): Likewise.
39449         * modules/unicase/u8-casecoll-tests (Files): Likewise.
39450         * modules/unicase/u8-casefold-tests (Files): Likewise.
39451         * modules/unicase/u8-is-cased-tests (Files): Likewise.
39452         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
39453         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
39454         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
39455         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
39456         * modules/unicase/u8-tolower-tests (Files): Likewise.
39457         * modules/unicase/u8-totitle-tests (Files): Likewise.
39458         * modules/unicase/u8-toupper-tests (Files): Likewise.
39459         * modules/unicase/u16-casecmp-tests (Files): Likewise.
39460         * modules/unicase/u16-casecoll-tests (Files): Likewise.
39461         * modules/unicase/u16-casefold-tests (Files): Likewise.
39462         * modules/unicase/u16-is-cased-tests (Files): Likewise.
39463         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
39464         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
39465         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
39466         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
39467         * modules/unicase/u16-tolower-tests (Files): Likewise.
39468         * modules/unicase/u16-totitle-tests (Files): Likewise.
39469         * modules/unicase/u16-toupper-tests (Files): Likewise.
39470         * modules/unicase/u32-casecmp-tests (Files): Likewise.
39471         * modules/unicase/u32-casecoll-tests (Files): Likewise.
39472         * modules/unicase/u32-casefold-tests (Files): Likewise.
39473         * modules/unicase/u32-is-cased-tests (Files): Likewise.
39474         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
39475         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
39476         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
39477         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
39478         * modules/unicase/u32-tolower-tests (Files): Likewise.
39479         * modules/unicase/u32-totitle-tests (Files): Likewise.
39480         * modules/unicase/u32-toupper-tests (Files): Likewise.
39481         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
39482         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
39483         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
39484         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
39485         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
39486         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
39487         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
39488         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
39489         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
39490         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
39491         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
39492         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
39493         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
39494         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
39495         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
39496         * modules/unictype/bidicategory-name-tests (Files): Likewise.
39497         * modules/unictype/bidicategory-of-tests (Files): Likewise.
39498         * modules/unictype/bidicategory-test-tests (Files): Likewise.
39499         * modules/unictype/block-list-tests (Files): Likewise.
39500         * modules/unictype/block-of-tests (Files): Likewise.
39501         * modules/unictype/block-test-tests (Files): Likewise.
39502         * modules/unictype/category-C-tests (Files): Likewise.
39503         * modules/unictype/category-Cc-tests (Files): Likewise.
39504         * modules/unictype/category-Cf-tests (Files): Likewise.
39505         * modules/unictype/category-Cn-tests (Files): Likewise.
39506         * modules/unictype/category-Co-tests (Files): Likewise.
39507         * modules/unictype/category-Cs-tests (Files): Likewise.
39508         * modules/unictype/category-L-tests (Files): Likewise.
39509         * modules/unictype/category-Ll-tests (Files): Likewise.
39510         * modules/unictype/category-Lm-tests (Files): Likewise.
39511         * modules/unictype/category-Lo-tests (Files): Likewise.
39512         * modules/unictype/category-Lt-tests (Files): Likewise.
39513         * modules/unictype/category-Lu-tests (Files): Likewise.
39514         * modules/unictype/category-M-tests (Files): Likewise.
39515         * modules/unictype/category-Mc-tests (Files): Likewise.
39516         * modules/unictype/category-Me-tests (Files): Likewise.
39517         * modules/unictype/category-Mn-tests (Files): Likewise.
39518         * modules/unictype/category-N-tests (Files): Likewise.
39519         * modules/unictype/category-Nd-tests (Files): Likewise.
39520         * modules/unictype/category-Nl-tests (Files): Likewise.
39521         * modules/unictype/category-No-tests (Files): Likewise.
39522         * modules/unictype/category-P-tests (Files): Likewise.
39523         * modules/unictype/category-Pc-tests (Files): Likewise.
39524         * modules/unictype/category-Pd-tests (Files): Likewise.
39525         * modules/unictype/category-Pe-tests (Files): Likewise.
39526         * modules/unictype/category-Pf-tests (Files): Likewise.
39527         * modules/unictype/category-Pi-tests (Files): Likewise.
39528         * modules/unictype/category-Po-tests (Files): Likewise.
39529         * modules/unictype/category-Ps-tests (Files): Likewise.
39530         * modules/unictype/category-S-tests (Files): Likewise.
39531         * modules/unictype/category-Sc-tests (Files): Likewise.
39532         * modules/unictype/category-Sk-tests (Files): Likewise.
39533         * modules/unictype/category-Sm-tests (Files): Likewise.
39534         * modules/unictype/category-So-tests (Files): Likewise.
39535         * modules/unictype/category-Z-tests (Files): Likewise.
39536         * modules/unictype/category-Zl-tests (Files): Likewise.
39537         * modules/unictype/category-Zp-tests (Files): Likewise.
39538         * modules/unictype/category-Zs-tests (Files): Likewise.
39539         * modules/unictype/category-and-not-tests (Files): Likewise.
39540         * modules/unictype/category-and-tests (Files): Likewise.
39541         * modules/unictype/category-byname-tests (Files): Likewise.
39542         * modules/unictype/category-name-tests (Files): Likewise.
39543         * modules/unictype/category-none-tests (Files): Likewise.
39544         * modules/unictype/category-of-tests (Files): Likewise.
39545         * modules/unictype/category-or-tests (Files): Likewise.
39546         * modules/unictype/category-test-withtable-tests (Files): Likewise.
39547         * modules/unictype/combining-class-tests (Files): Likewise.
39548         * modules/unictype/ctype-alnum-tests (Files): Likewise.
39549         * modules/unictype/ctype-alpha-tests (Files): Likewise.
39550         * modules/unictype/ctype-blank-tests (Files): Likewise.
39551         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
39552         * modules/unictype/ctype-digit-tests (Files): Likewise.
39553         * modules/unictype/ctype-graph-tests (Files): Likewise.
39554         * modules/unictype/ctype-lower-tests (Files): Likewise.
39555         * modules/unictype/ctype-print-tests (Files): Likewise.
39556         * modules/unictype/ctype-punct-tests (Files): Likewise.
39557         * modules/unictype/ctype-space-tests (Files): Likewise.
39558         * modules/unictype/ctype-upper-tests (Files): Likewise.
39559         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
39560         * modules/unictype/decimal-digit-tests (Files): Likewise.
39561         * modules/unictype/digit-tests (Files): Likewise.
39562         * modules/unictype/mirror-tests (Files): Likewise.
39563         * modules/unictype/numeric-tests (Files): Likewise.
39564         * modules/unictype/property-alphabetic-tests (Files): Likewise.
39565         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
39566         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
39567         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
39568         Likewise.
39569         * modules/unictype/property-bidi-block-separator-tests (Files):
39570         Likewise.
39571         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
39572         Likewise.
39573         * modules/unictype/property-bidi-common-separator-tests (Files):
39574         Likewise.
39575         * modules/unictype/property-bidi-control-tests (Files): Likewise.
39576         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
39577         Likewise.
39578         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
39579         Likewise.
39580         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
39581         Likewise.
39582         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
39583         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
39584         Likewise.
39585         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
39586         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
39587         Likewise.
39588         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
39589         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
39590         * modules/unictype/property-bidi-segment-separator-tests (Files):
39591         Likewise.
39592         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
39593         * modules/unictype/property-byname-tests (Files): Likewise.
39594         * modules/unictype/property-combining-tests (Files): Likewise.
39595         * modules/unictype/property-composite-tests (Files): Likewise.
39596         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
39597         * modules/unictype/property-dash-tests (Files): Likewise.
39598         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
39599         * modules/unictype/property-default-ignorable-code-point-tests (Files):
39600         Likewise.
39601         * modules/unictype/property-deprecated-tests (Files): Likewise.
39602         * modules/unictype/property-diacritic-tests (Files): Likewise.
39603         * modules/unictype/property-extender-tests (Files): Likewise.
39604         * modules/unictype/property-format-control-tests (Files): Likewise.
39605         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
39606         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
39607         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
39608         * modules/unictype/property-hex-digit-tests (Files): Likewise.
39609         * modules/unictype/property-hyphen-tests (Files): Likewise.
39610         * modules/unictype/property-id-continue-tests (Files): Likewise.
39611         * modules/unictype/property-id-start-tests (Files): Likewise.
39612         * modules/unictype/property-ideographic-tests (Files): Likewise.
39613         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
39614         * modules/unictype/property-ids-trinary-operator-tests (Files):
39615         Likewise.
39616         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
39617         * modules/unictype/property-iso-control-tests (Files): Likewise.
39618         * modules/unictype/property-join-control-tests (Files): Likewise.
39619         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
39620         * modules/unictype/property-line-separator-tests (Files): Likewise.
39621         * modules/unictype/property-logical-order-exception-tests (Files):
39622         Likewise.
39623         * modules/unictype/property-lowercase-tests (Files): Likewise.
39624         * modules/unictype/property-math-tests (Files): Likewise.
39625         * modules/unictype/property-non-break-tests (Files): Likewise.
39626         * modules/unictype/property-not-a-character-tests (Files): Likewise.
39627         * modules/unictype/property-numeric-tests (Files): Likewise.
39628         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
39629         * modules/unictype/property-other-default-ignorable-code-point-tests
39630         (Files): Likewise.
39631         * modules/unictype/property-other-grapheme-extend-tests (Files):
39632         Likewise.
39633         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
39634         * modules/unictype/property-other-id-start-tests (Files): Likewise.
39635         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
39636         * modules/unictype/property-other-math-tests (Files): Likewise.
39637         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
39638         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
39639         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
39640         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
39641         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
39642         * modules/unictype/property-private-use-tests (Files): Likewise.
39643         * modules/unictype/property-punctuation-tests (Files): Likewise.
39644         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
39645         * modules/unictype/property-radical-tests (Files): Likewise.
39646         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
39647         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
39648         * modules/unictype/property-space-tests (Files): Likewise.
39649         * modules/unictype/property-terminal-punctuation-tests (Files):
39650         Likewise.
39651         * modules/unictype/property-test-tests (Files): Likewise.
39652         * modules/unictype/property-titlecase-tests (Files): Likewise.
39653         * modules/unictype/property-unassigned-code-value-tests (Files):
39654         Likewise.
39655         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
39656         * modules/unictype/property-uppercase-tests (Files): Likewise.
39657         * modules/unictype/property-variation-selector-tests (Files): Likewise.
39658         * modules/unictype/property-white-space-tests (Files): Likewise.
39659         * modules/unictype/property-xid-continue-tests (Files): Likewise.
39660         * modules/unictype/property-xid-start-tests (Files): Likewise.
39661         * modules/unictype/property-zero-width-tests (Files): Likewise.
39662         * modules/unictype/scripts-tests (Files): Likewise.
39663         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
39664         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
39665         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
39666         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
39667         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
39668         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
39669         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
39670         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
39671         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
39672         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
39673         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
39674         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
39675         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
39676         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
39677         * modules/uninorm/composition-tests (Files): Likewise.
39678         * modules/uninorm/decomposing-form-tests (Files): Likewise.
39679         * modules/uninorm/decomposition-tests (Files): Likewise.
39680         * modules/uninorm/filter-tests (Files): Likewise.
39681         * modules/uninorm/nfc-tests (Files): Likewise.
39682         * modules/uninorm/nfd-tests (Files): Likewise.
39683         * modules/uninorm/nfkc-tests (Files): Likewise.
39684         * modules/uninorm/nfkd-tests (Files): Likewise.
39685         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
39686         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
39687         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
39688         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
39689         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
39690         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
39691         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
39692         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39693         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
39694         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
39695         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
39696         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
39697         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39698         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
39699         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
39700         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
39701         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
39702         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39703         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
39704         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
39705         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
39706         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
39707         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39708         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
39709         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
39710         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
39711         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
39712         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
39713         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
39714         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
39715         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
39716         * modules/uniwidth/u8-width-tests (Files): Likewise.
39717         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
39718         * modules/uniwidth/u16-width-tests (Files): Likewise.
39719         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
39720         * modules/uniwidth/u32-width-tests (Files): Likewise.
39721         * modules/uniwidth/width-tests (Files): Likewise.
39722         * modules/unlink-tests (Files): Likewise.
39723         * modules/unsetenv-tests (Files): Likewise.
39724         * modules/usleep-tests (Files): Likewise.
39725         * modules/utimens-tests (Files): Likewise.
39726         * modules/utimensat-tests (Files): Likewise.
39727         * modules/vasnprintf-posix-tests (Files): Likewise.
39728         * modules/vasnprintf-tests (Files): Likewise.
39729         * modules/vasprintf-posix-tests (Files): Likewise.
39730         * modules/vasprintf-tests (Files): Likewise.
39731         * modules/vdprintf-posix-tests (Files): Likewise.
39732         * modules/vfprintf-posix-tests (Files): Likewise.
39733         * modules/vprintf-posix-tests (Files): Likewise.
39734         * modules/vsnprintf-posix-tests (Files): Likewise.
39735         * modules/vsnprintf-tests (Files): Likewise.
39736         * modules/vsprintf-posix-tests (Files): Likewise.
39737         * modules/wcrtomb-tests (Files): Likewise.
39738         * modules/wcsnrtombs-tests (Files): Likewise.
39739         * modules/wcsrtombs-tests (Files): Likewise.
39740         * modules/wctype-tests (Files): Likewise.
39741         * modules/wcwidth-tests (Files): Likewise.
39742         * modules/xmemdup0-tests (Files): Likewise.
39743         * modules/xprintf-posix-tests (Files): Likewise.
39744         * modules/xvasprintf-tests (Files): Likewise.
39745
39746 2009-12-24  Eric Blake  <ebb9@byu.net>
39747
39748         test-nanosleep: fix typo
39749         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
39750         patch.
39751         Reported by Bruno Haible.
39752
39753 2009-12-24  Bruno Haible  <bruno@clisp.org>
39754
39755         Reduce namespace pollution on glibc systems.
39756         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
39757         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
39758         systems.
39759         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
39760         <getopt.h> on glibc systems.
39761         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
39762         systems.
39763         * lib/fcntl.c: Include <unistd.h> here instead.
39764
39765 2009-12-24  Bruno Haible  <bruno@clisp.org>
39766
39767         * lib/stdlib.in.h (includes): Fix typo in today's commit.
39768
39769 2009-12-24  Eric Blake  <ebb9@byu.net>
39770
39771         tests: add signature checks
39772         * tests/signature.h (SIGNATURE_CHECK): New file.
39773         * modules/atexit-tests (Files): Use it.
39774         * modules/btowc-tests (Files): Likewise.
39775         * modules/canonicalize-lgpl-tests (Files): Likewise.
39776         * modules/ceilf-tests (Files): Likewise.
39777         * modules/ceill-tests (Files): Likewise.
39778         * modules/chown-tests (Files): Likewise.
39779         * modules/dprintf-posix-tests (Files): Likewise.
39780         * modules/dup2-tests (Files): Likewise.
39781         * modules/dup3-tests (Files): Likewise.
39782         * modules/duplocale-tests (Files): Likewise.
39783         * modules/fchdir-tests (Files): Likewise.
39784         * modules/fcntl-tests (Files): Likewise.
39785         * modules/fdopendir-tests (Files): Likewise.
39786         * modules/fflush-tests (Files): Likewise.
39787         * modules/flock-tests (Files): Likewise.
39788         * modules/floorf-tests (Files): Likewise.
39789         * modules/floorl-tests (Files): Likewise.
39790         * modules/fnmatch-tests (Files): Likewise.
39791         * modules/fopen-tests (Files): Likewise.
39792         * modules/fprintf-posix-tests (Files): Likewise.
39793         * modules/freopen-tests (Files): Likewise.
39794         * modules/frexp-nolibm-tests (Files): Likewise.
39795         * modules/frexp-tests (Files): Likewise.
39796         * modules/frexpl-nolibm-tests (Files): Likewise.
39797         * modules/frexpl-tests (Files): Likewise.
39798         * modules/fseek-tests (Files): Likewise.
39799         * modules/fseeko-tests (Files): Likewise.
39800         * modules/fsync-tests (Files): Likewise.
39801         * modules/ftell-tests (Files): Likewise.
39802         * modules/ftello-tests (Files): Likewise.
39803         * modules/futimens-tests (Files): Likewise.
39804         * modules/getaddrinfo-tests (Files): Likewise.
39805         * modules/getcwd-tests (Files): Likewise.
39806         * modules/getdelim-tests (Files): Likewise.
39807         * modules/getdtablesize-tests (Files): Likewise.
39808         * modules/getgroups-tests (Files): Likewise.
39809         * modules/gethostname-tests (Files): Likewise.
39810         * modules/getline-tests (Files): Likewise.
39811         * modules/getopt-posix-tests (Files): Likewise.
39812         * modules/gettimeofday-tests (Files): Likewise.
39813         * modules/glob-tests (Files): Likewise.
39814         * modules/iconv-tests (Files): Likewise.
39815         * modules/inet_ntop-tests (Files): Likewise.
39816         * modules/inet_pton-tests (Files): Likewise.
39817         * modules/isblank-tests (Files): Likewise.
39818         * modules/lchown-tests (Files): Likewise.
39819         * modules/ldexpl-tests (Files): Likewise.
39820         * modules/link-tests (Files): Likewise.
39821         * modules/linkat-tests (Files): Likewise.
39822         * modules/lseek-tests (Files): Likewise.
39823         * modules/lstat-tests (Files): Likewise.
39824         * modules/mbrtowc-tests (Files): Likewise.
39825         * modules/mbsinit-tests (Files): Likewise.
39826         * modules/mbsnrtowcs-tests (Files): Likewise.
39827         * modules/mbsrtowcs-tests (Files): Likewise.
39828         * modules/memchr-tests (Files): Likewise.
39829         * modules/memcmp-tests (Files): Likewise.
39830         * modules/memmem-tests (Files): Likewise.
39831         * modules/memrchr-tests (Files): Likewise.
39832         * modules/mkdir-tests (Files): Likewise.
39833         * modules/mkfifo-tests (Files): Likewise.
39834         * modules/mkfifoat-tests (Files): Likewise.
39835         * modules/mknod-tests (Files): Likewise.
39836         * modules/nanosleep-tests (Files): Likewise.
39837         * modules/nl_langinfo-tests (Files): Likewise.
39838         * modules/obstack-printf-tests (Files): Likewise.
39839         * modules/open-tests (Files): Likewise.
39840         * modules/openat-tests (Files): Likewise.
39841         * modules/perror-tests (Files): Likewise.
39842         * modules/pipe2-tests (Files): Likewise.
39843         * modules/poll-tests (Files): Likewise.
39844         * modules/popen-tests (Files): Likewise.
39845         * modules/posix_spawn-tests (Files): Likewise.
39846         * modules/posix_spawnp-tests (Files): Likewise.
39847         * modules/pread-tests (Files): Likewise.
39848         * modules/printf-posix-tests (Files): Likewise.
39849         * modules/pty-tests (Files): Likewise.
39850         * modules/random_r-tests (Files): Likewise.
39851         * modules/rawmemchr-tests (Files): Likewise.
39852         * modules/readlink-tests (Files): Likewise.
39853         * modules/remove-tests (Files): Likewise.
39854         * modules/rename-tests (Files): Likewise.
39855         * modules/renameat-tests (Files): Likewise.
39856         * modules/rmdir-tests (Files): Likewise.
39857         * modules/round-tests (Files): Likewise.
39858         * modules/roundf-tests (Files): Likewise.
39859         * modules/roundl-tests (Files): Likewise.
39860         * modules/select-tests (Files): Likewise.
39861         * modules/setenv-tests (Files): Likewise.
39862         * modules/sigaction-tests (Files): Likewise.
39863         * modules/sleep-tests (Files): Likewise.
39864         * modules/snprintf-posix-tests (Files): Likewise.
39865         * modules/snprintf-tests (Files): Likewise.
39866         * modules/sprintf-posix-tests (Files): Likewise.
39867         * modules/stat-tests (Files): Likewise.
39868         * modules/strcasestr-tests (Files): Likewise.
39869         * modules/strchrnul-tests (Files): Likewise.
39870         * modules/strerror-tests (Files): Likewise.
39871         * modules/strsignal-tests (Files): Likewise.
39872         * modules/strstr-tests (Files): Likewise.
39873         * modules/strtod-tests (Files): Likewise.
39874         * modules/strverscmp-tests (Files): Likewise.
39875         * modules/symlink-tests (Files): Likewise.
39876         * modules/symlinkat-tests (Files): Likewise.
39877         * modules/times-tests (Files): Likewise.
39878         * modules/trunc-tests (Files): Likewise.
39879         * modules/truncf-tests (Files): Likewise.
39880         * modules/truncl-tests (Files): Likewise.
39881         * modules/tsearch-tests (Files): Likewise.
39882         * modules/uname-tests (Files): Likewise.
39883         * modules/unlink-tests (Files): Likewise.
39884         * modules/unsetenv-tests (Files): Likewise.
39885         * modules/usleep-tests (Files): Likewise.
39886         * modules/utimensat-tests (Files): Likewise.
39887         * modules/vasprintf-tests (Files): Likewise.
39888         * modules/vdprintf-posix-tests (Files): Likewise.
39889         * modules/vfprintf-posix-tests (Files): Likewise.
39890         * modules/vprintf-posix-tests (Files): Likewise.
39891         * modules/vsnprintf-posix-tests (Files): Likewise.
39892         * modules/vsnprintf-tests (Files): Likewise.
39893         * modules/vsprintf-posix-tests (Files): Likewise.
39894         * modules/wcrtomb-tests (Files): Likewise.
39895         * modules/wcsnrtombs-tests (Files): Likewise.
39896         * modules/wcsrtombs-tests (Files): Likewise.
39897         * modules/wcwidth-tests (Files): Likewise.
39898         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
39899         * tests/test-isinf.c (isinf): Likewise.
39900         * tests/test-isnan.c (isnan): Likewise.
39901         * tests/test-signbit.c (signbit): Likewise.
39902         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
39903         declaration, either as macro or with correct signature.
39904         (select): Ensure function under test is declared with correct
39905         signature in correct header.
39906         * tests/test-atexit.c (atexit): Likewise.
39907         * tests/test-btowc.c (btowc): Likewise.
39908         * tests/test-canonicalize-lgpl.c (realpath)
39909         (canonicalize_file_name): Likewise.
39910         * tests/test-ceilf1.c (ceilf): Likewise.
39911         * tests/test-ceill.c (ceill): Likewise.
39912         * tests/test-chown.c (chown): Likewise.
39913         * tests/test-dprintf-posix.c (dprintf): Likewise.
39914         * tests/test-dup2.c (dup2): Likewise.
39915         * tests/test-dup3.c (dup3): Likewise.
39916         * tests/test-duplocale.c (duplocale): Likewise.
39917         * tests/test-fchdir.c (fchdir): Likewise.
39918         * tests/test-fchownat.c (fchownat): Likewise.
39919         * tests/test-fcntl.c (fcntl): Likewise.
39920         * tests/test-fdopendir.c (fdopendir): Likewise.
39921         * tests/test-fflush.c (fflush): Likewise.
39922         * tests/test-flock.c (flock): Likewise.
39923         * tests/test-floorf1.c (floorf): Likewise.
39924         * tests/test-floorl.c (floorl): Likewise.
39925         * tests/test-fnmatch.c (fnmatch): Likewise.
39926         * tests/test-fopen.c (fopen): Likewise.
39927         * tests/test-fprintf-posix.c (fprintf): Likewise.
39928         * tests/test-freopen.c (freopen): Likewise.
39929         * tests/test-frexp.c (frexp): Likewise.
39930         * tests/test-frexpl.c (frexpl): Likewise.
39931         * tests/test-fseek.c (fseek): Likewise.
39932         * tests/test-fseeko.c (fseeko): Likewise.
39933         * tests/test-fstatat.c (fstatat): Likewise.
39934         * tests/test-fsync.c (fsync): Likewise.
39935         * tests/test-ftell.c (ftell): Likewise.
39936         * tests/test-ftello.c (ftello): Likewise.
39937         * tests/test-futimens.c (futimens): Likewise.
39938         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
39939         (gai_strerror): Likewise.
39940         * tests/test-getcwd.c (getcwd): Likewise.
39941         * tests/test-getdelim.c (getdelim): Likewise.
39942         * tests/test-getdtablesize.c (getdtablesize): Likewise.
39943         * tests/test-getgroups.c (getgroups): Likewise.
39944         * tests/test-gethostname.c (gethostname): Likewise.
39945         * tests/test-getline.c (getline): Likewise.
39946         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
39947         Likewise.
39948         * tests/test-gettimeofday.c (gettimeofday): Likewise.
39949         * tests/test-glob.c (glob, globfree): Likewise.
39950         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
39951         * tests/test-inet_ntop.c (inet_ntop): Likewise.
39952         * tests/test-inet_pton.c (inet_pton): Likewise.
39953         * tests/test-isblank.c (isblank): Likewise.
39954         * tests/test-lchown.c (lchown): Likewise.
39955         * tests/test-ldexpl.c (ldexpl): Likewise.
39956         * tests/test-link.c (link): Likewise.
39957         * tests/test-linkat.c (linkat): Likewise.
39958         * tests/test-lseek.c (lseek): Likewise.
39959         * tests/test-lstat.c (lstat): Likewise.
39960         * tests/test-mbrtowc.c (mbrtowc): Likewise.
39961         * tests/test-mbsinit.c (mbsinit): Likewise.
39962         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
39963         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
39964         * tests/test-memchr.c (memchr): Likewise.
39965         * tests/test-memcmp.c (memcmp): Likewise.
39966         * tests/test-memmem.c (memmem): Likewise.
39967         * tests/test-memrchr.c (memrchr): Likewise.
39968         * tests/test-mkdir.c (mkdir): Likewise.
39969         * tests/test-mkdirat.c (mkdirat): Likewise.
39970         * tests/test-mkfifo.c (mkfifo): Likewise.
39971         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
39972         * tests/test-mknod.c (mknod): Likewise.
39973         * tests/test-nanosleep.c (nanosleep): Likewise.
39974         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
39975         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
39976         Likewise.
39977         * tests/test-open.c (open): Likewise.
39978         * tests/test-openat.c (openat): Likewise.
39979         * tests/test-perror.c (perror): Likewise.
39980         * tests/test-pipe2.c (pipe2): Likewise.
39981         * tests/test-poll.c (poll): Likewise.
39982         * tests/test-popen.c (popen, pclose): Likewise.
39983         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
39984         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
39985         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
39986         (posix_spawn_file_actions_destroy)
39987         (posix_spawn_file_actions_addclose)
39988         (posix_spawn_file_actions_addopen)
39989         (posix_spawn_file_actions_adddup2): Likewise.
39990         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
39991         * tests/test-pread.c (pread): Likewise.
39992         * tests/test-printf-posix.c (printf): Likewise.
39993         * tests/test-pty.c (openpty, forkpty): Likewise.
39994         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
39995         (random_r): Likewise.
39996         * tests/test-rawmemchr.c (rawmemchr): Likewise.
39997         * tests/test-readlink.c (readlink): Likewise.
39998         * tests/test-remove.c (remove): Likewise.
39999         * tests/test-rename.c (rename): Likewise.
40000         * tests/test-renameat.c (renameat): Likewise.
40001         * tests/test-rmdir.c (rmdir): Likewise.
40002         * tests/test-round1.c (round): Likewise.
40003         * tests/test-roundf1.c (roundf): Likewise.
40004         * tests/test-roundl.c (roundl): Likewise.
40005         * tests/test-setenv.c (setenv): Likewise.
40006         * tests/test-sigaction.c (sigaction): Likewise.
40007         * tests/test-sleep.c (sleep): Likewise.
40008         * tests/test-snprintf.c (snprintf): Likewise.
40009         * tests/test-sprintf-posix.c (sprintf): Likewise.
40010         * tests/test-stat.c (stat): Likewise.
40011         * tests/test-stpncpy.c (stpncpy): Likewise.
40012         * tests/test-strcasestr.c (strcasestr): Likewise.
40013         * tests/test-strchrnul.c (strchrnul): Likewise.
40014         * tests/test-strerror.c (strerror): Likewise.
40015         * tests/test-strsignal.c (strsignal): Likewise.
40016         * tests/test-strstr.c (strstr): Likewise.
40017         * tests/test-strtod.c (strtod): Likewise.
40018         * tests/test-strverscmp.c (strverscmp): Likewise.
40019         * tests/test-symlink.c (symlink): Likewise.
40020         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
40021         * tests/test-times.c (times): Likewise.
40022         * tests/test-trunc1.c (trunc): Likewise.
40023         * tests/test-truncf1.c (truncf): Likewise.
40024         * tests/test-truncl.c (truncl): Likewise.
40025         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
40026         Likewise.
40027         * tests/test-uname.c (uname): Likewise.
40028         * tests/test-unlink.c (unlink): Likewise.
40029         * tests/test-unlinkat.c (unlinkat): Likewise.
40030         * tests/test-unsetenv.c (unsetenv): Likewise.
40031         * tests/test-usleep.c (usleep): Likewise.
40032         * tests/test-utimensat.c (utimensat): Likewise.
40033         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
40034         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
40035         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
40036         * tests/test-vprintf-posix.c (vprintf): Likewise.
40037         * tests/test-vsnprintf.c (vsnprintf): Likewise.
40038         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
40039         * tests/test-wcrtomb.c (wcrtomb): Likewise.
40040         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
40041         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
40042         * tests/test-wcwidth.c (wcwidth): Likewise.
40043
40044         build: pull in conditional headers during GNULIB_POSIXCHECK
40045         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
40046         definitions from any conditionally-included headers.
40047         * lib/stdlib.in.h (includes): Likewise.
40048         * lib/unistd.in.h (includes): Likewise.
40049
40050 2009-12-24  Bruno Haible  <bruno@clisp.org>
40051
40052         * tests/test-argv-iter.c: Include header file being tested immediately
40053         after config.h.
40054         * tests/test-base64.c: Likewise.
40055         * tests/test-flock.c: Likewise.
40056         * tests/test-fsync.c: Likewise.
40057         * tests/test-getdate.c: Likewise.
40058         * tests/test-getndelim2.c: Likewise.
40059         * tests/test-isfinite.c: Likewise.
40060         * tests/test-isinf.c: Likewise.
40061         * tests/test-strerror.c: Likewise.
40062         * tests/test-strsignal.c: Likewise.
40063
40064 2009-12-23  Eric Blake  <ebb9@byu.net>
40065
40066         unistd: work around cygwin bug
40067         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
40068         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
40069         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40070
40071 2009-12-23  Bruno Haible  <bruno@clisp.org>
40072
40073         localename: More tests.
40074         * tests/test-localename.c (SIZEOF): New macro.
40075         (categories): New variable.
40076         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
40077         test_locale_name_default): Add test w.r.t. thread locale.
40078         (test_locale_name_thread): New function.
40079         (main): Invoke it.
40080
40081         localename: Make aware of thread locale.
40082         * lib/localename.h (gl_locale_name_thread): New declaration.
40083         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
40084         behaviour with respect to thread locale.
40085         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
40086         <langinfo.h>, glthread/lock.h.
40087         (SIZE_BITS): New macro.
40088         (string_hash): New function.
40089         (struct hash_node): New type.
40090         (HASH_TABLE_SIZE): New macro.
40091         (struniq_hash_table, struniq_lock): New variables.
40092         (struniq): New function.
40093         (gl_locale_name_thread): New function.
40094         (gl_locale_name): Invoke it.
40095         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
40096         * modules/localename (Depends-on): Add lock.
40097         Reported by Mike Gran <spk121@yahoo.com>.
40098
40099 2009-12-23  Eric Blake  <ebb9@byu.net>
40100
40101         va-args: new module
40102         * modules/va-args: New file.
40103         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
40104         * MODULES.html.sh (Core language properties): Mention it.
40105
40106         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
40107         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
40108         named alias for __attribute__((__unused__)).
40109         * lib/chown.c: Update client.
40110         * lib/fchmodat.c: Likewise.
40111         * lib/fts.c: Likewise.
40112         * lib/getdate.y: Likewise.
40113         * lib/getgroups.c: Likewise.
40114         * lib/getopt.c: Likewise.
40115         * lib/getugroups.c: Likewise.
40116         * lib/mkdir.c: Likewise.
40117         * lib/mkfifo.c: Likewise.
40118         * lib/mkfifoat.c: Likewise.
40119         * lib/mknod.c: Likewise.
40120         * lib/mknodat.c: Likewise.
40121         * lib/readlink.c: Likewise.
40122         * lib/se-context.in.h: Likewise.
40123         * lib/se-selinux.in.h: Likewise.
40124         * lib/sockets.c: Likewise.
40125         * lib/symlink.c: Likewise.
40126         * lib/symlinkat.c: Likewise.
40127         * lib/unicodeio.c: Likewise.
40128         * lib/unistr.h: Likewise.
40129         * tests/test-areadlink.c: Likewise.
40130         * tests/test-areadlinkat.c: Likewise.
40131         * tests/test-filenamecat.c: Likewise.
40132         * tests/test-fseeko.c: Likewise.
40133         * tests/test-ftello.c: Likewise.
40134         * tests/test-getdate.c: Likewise.
40135         * tests/test-getgroups.c: Likewise.
40136         * tests/test-gethostname.c: Likewise.
40137         * tests/test-quotearg.c: Likewise.
40138         * tests/test-version-etc.c: Likewise.
40139         * tests/test-xalloc-die.c: Likewise.
40140         * tests/test-xfprintf-posix.c: Likewise.
40141         * tests/test-xprintf-posix.c: Likewise.
40142         * tests/test-xvasprintf.c: Likewise.
40143
40144         tests: avoid compiler warnings
40145         * tests/test-fcntl.c (main): Delete unused parameters.
40146         * tests/test-freopen-safer.c (main): Likewise.
40147         * tests/test-xalloc-die.c (main): Mark unused parameters.
40148         * tests/test-fseeko.c (main): Likewise.
40149         * tests/test-ftello.c (main): Likewise.
40150         * tests/test-nanosleep.c (main): Avoid declaration warning.
40151         * tests/test-sleep.c (main): Likewise.
40152         * tests/test-unsetenv.c (main): Silence warning about string
40153         literal.
40154         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
40155
40156 2009-12-23  Bruno Haible  <bruno@clisp.org>
40157
40158         * tests/test-localename.c (test_locale_name): New function, extracted
40159         from main. Also test mixed situations.
40160         (test_locale_name_posix, test_locale_name_environ,
40161         test_locale_name_default): New functions.
40162         (main): Invoke them all.
40163         * modules/localename-tests (configure.ac): Test for newlocale.
40164
40165 2009-12-23  Bruno Haible  <bruno@clisp.org>
40166
40167         unistd: Ensure getcwd gets declared before being overridden.
40168         * lib/unistd.in.h: Conditionally include <io.h>.
40169
40170 2009-12-22  Bruno Haible  <bruno@clisp.org>
40171
40172         wchar: Diagnose broken combination of glibc and gcc versions and flags.
40173         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
40174         (gl_WCHAR_H): Invoke it.
40175         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
40176         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
40177         Reported by Karl Berry <karl@freefriends.org>.
40178
40179 2009-12-22  Eric Blake  <ebb9@byu.net>
40180
40181         math, unistd: avoid redundant includes
40182         * lib/math.in.h (isnan): No need to re-include <math.h>.
40183         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
40184
40185         getsubopt: work around cygwin bug
40186         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
40187         avoid conflicting with system getsubopt.
40188         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
40189         bug.
40190
40191         getopt: synchronize from glibc
40192         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
40193         parameter order.  Adjust all callers.
40194         (_getopt_internal_r, main): Adjust quoting in error messages.
40195         Drop considerations for outdated POSIX 1003.2 error message.
40196         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
40197         callers.
40198         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
40199
40200         test-getopt: test stderr behavior
40201         * modules/getopt-posix-tests (Depends-on): Add dup2.
40202         * tests/test-getopt.c (ASSERT): Avoid stderr.
40203         (main): Move stderr to a temporary file.
40204         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
40205         Instead, add parameter to inform caller if output occurred.
40206         (test_getopt): Adjust all existing tests to expect silence, and
40207         add new tests of leading ":".
40208         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40209         glibc shortcomings with leading "-:" or "+:" in optstring.
40210         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40211         Likewise.
40212         * doc/posix-functions/getopt.texi (getopt): Likewise.
40213
40214         test-getopt: enhance test
40215         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
40216         supports optind=0.
40217         * tests/test-getopt.c (OPTIND_MIN): Move...
40218         * tests/test-getopt.h (OPTIND_MIN): ...here.
40219         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
40220         Require that optind=0 works, since modern BSD supports it in
40221         addition to optreset, and since coreutils expects it.
40222         (test_getopt_long_only): New test.
40223         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40224         glibc shortcomings with 'W;', and enforcement of optind=0.
40225         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40226         Likewise.
40227
40228 2009-12-21  Bruno Haible  <bruno@clisp.org>
40229
40230         localename: Improvements for MacOS X and Cygwin.
40231         * lib/localename.h (gl_locale_name_environ): New declaration.
40232         * lib/localename.c (gl_locale_name_environ): New function, extracted from
40233         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
40234         (gl_locale_name_posix): Invoke it.
40235         (gl_locale_name_default): Add comments. Use Windows native API also on
40236         Cygwin.
40237
40238 2009-12-21  Bruno Haible  <bruno@clisp.org>
40239
40240         Update list of Win32 locale ids.
40241         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
40242         (LANG_SAMI): Renamed from LANG_SAAMI.
40243         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
40244         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
40245         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
40246         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
40247         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
40248         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
40249         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
40250         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
40251         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
40252         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
40253         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
40254         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
40255         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
40256         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
40257         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
40258         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
40259         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
40260         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
40261         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
40262         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
40263         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
40264         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
40265         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
40266         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
40267         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
40268         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
40269         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
40270         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
40271         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
40272         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
40273         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
40274         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
40275         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
40276         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
40277         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
40278         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
40279         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
40280         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
40281         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
40282         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
40283         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
40284         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
40285         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
40286         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
40287         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
40288         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
40289         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
40290         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
40291         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
40292         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
40293         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
40294         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
40295         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
40296         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
40297         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
40298         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
40299         Add more languages and countries for Sami, Sorbian. Add more countries
40300         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
40301         for Pashto. Change country for Syriac, Tswana.
40302
40303 2009-12-21  Eric Blake  <ebb9@byu.net>
40304
40305         test-utimens: avoid spurious failure
40306         * tests/test-chown.h (nap): Factor...
40307         * tests/nap.h: ...into new file.
40308         * tests/test-lchown.h (nap): Avoid duplication.
40309         * tests/test-utimens-common.h (nap): Use shared implementation,
40310         necessary on file systems with 1-second resolution.
40311         * modules/chown-tests (Files): Include new file.
40312         * modules/fdutimensat-tests (Files): Likewise.
40313         * modules/futimens-tests (Files): Likewise.
40314         * modules/lchown-tests (Files): Likewise.
40315         * modules/openat-tests (Files): Likewise.
40316         * modules/utimens-tests (Files): Likewise.
40317         * modules/utimensat-tests (Files): Likewise.
40318
40319 2009-12-19  Eric Blake  <ebb9@byu.net>
40320
40321         futimens, utimensat: work around Linux bug
40322         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
40323         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40324         * lib/utimensat.c (rpl_utimensat): Work around it.
40325         * lib/futimens.c (rpl_futimens): Adjust comment.
40326
40327         utimens: work around Linux ctime bug
40328         * lib/utimens.c (detect_ctime_bug): New helper function.
40329         (update_timespec): Differentiate between workaround needed for
40330         this bug vs. what is needed for systems that lack utimensat.
40331         (fdutimens, lutimens): Work around bug.
40332
40333         utimens: check for ctime update
40334         * tests/test-utimens-common.h (check_ctime): Define.
40335         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
40336         * tests/test-futimens.h (test_futimens): Likewise.
40337         * tests/test-lutimens.h (test_lutimens): Likewise.
40338         * doc/posix-functions/futimens.texi (futimens): Document the bug.
40339         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40340
40341 2009-12-19  Bruno Haible  <bruno@clisp.org>
40342
40343         dprintf-posix: Check against memory leak fixed on 2009-12-15.
40344         * tests/test-dprintf-posix2.sh: New file.
40345         * tests/test-dprintf-posix2.c: New file.
40346         * modules/dprintf-posix-tests (Files): Add them.
40347         (configure.ac): Check for getrlimit and setrlimit.
40348         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40349
40350 2009-12-19  Bruno Haible  <bruno@clisp.org>
40351
40352         fprintf-posix: Check against memory leak fixed on 2009-12-15.
40353         * tests/test-fprintf-posix3.sh: New file.
40354         * tests/test-fprintf-posix3.c: New file.
40355         * modules/fprintf-posix-tests (Files): Add them.
40356         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40357
40358 2009-12-19  Eric Blake  <ebb9@byu.net>
40359
40360         dirfd: fix prototype
40361         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
40362         * lib/dirfd.c (dirfd): Likewise.
40363
40364         canonicalize: reduce memory usage
40365         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
40366         allocation to size.
40367         Reported by Solar Designer <solar@openwall.com>.
40368
40369 2009-12-19  Bruno Haible  <bruno@clisp.org>
40370
40371         New module attribute 'Applicability'.
40372         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
40373         * gnulib-tool: New option --extract-applicability.
40374         (func_usage): Document it.
40375         (sed_extract_prog): Recognize it.
40376         (func_get_applicability): New function.
40377         (func_import): Generalize handling of 'link-warning' module.
40378         * modules/link-warning (Applicability): New section.
40379         * modules/arg-nonnull (Applicability): New section.
40380         Repoted by Simon Josefsson <simon@josefsson.org>.
40381
40382 2009-12-19  Bruno Haible  <bruno@clisp.org>
40383
40384         fflush: tweak
40385         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
40386         * lib/fseeko.c (rpl_fseeko): Likewise.
40387
40388 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
40389
40390         * lib/gl_list.h: Fix typo in comment.
40391
40392 2009-12-16  Eric Blake  <ebb9@byu.net>
40393
40394         fcntl: use to simplify other modules
40395         * modules/cloexec (Depends-on): Add fcntl.
40396         * modules/fchdir (Depends-on): Likewise.
40397         * modules/fd-safer-flag (Depends-on): Likewise.
40398         * modules/unistd-safer (Depends-on): Likewise.
40399         * modules/dup3 (configure.ac): Set module indicator.
40400         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
40401         missing.
40402         * lib/fchdir.c (_gl_register_dup): Fix comment.
40403         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
40404         * lib/dup-safer.c (dup_safer): Likewise.
40405         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
40406         * lib/dup3.c (dup3): Likewise.
40407         * tests/test-fchdir.c (main): Enhance test.
40408         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
40409
40410         fcntl: port portions of fcntl to mingw
40411         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
40412         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
40413         replacement for mingw.
40414         * modules/fcntl (Description): Update.
40415         (Depends-on): Add dup2.
40416         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
40417         * modules/fcntl-h (Makefile.am): Substitute it.
40418         * lib/fcntl.in.h (fcntl): Update declaration.
40419         (F_DUPFD, F_GETFD): New macros, when needed.
40420         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40421         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
40422         * tests/test-fcntl.c (check_flags, main): Enhance test for items
40423         we now guarantee.
40424
40425         fcntl: work around cygwin bug in F_DUPFD
40426         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
40427         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
40428         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
40429         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
40430         * doc/posix-functions/fcntl.texi (fcntl): Document it.
40431
40432         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
40433         * modules/fcntl (Files): List new files.
40434         (configure.ac): Run a test.
40435         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
40436         * lib/fcntl.c (rpl_fcntl): Likewise.
40437         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
40438         (gl_FCNTL_H): Always replace fcntl.h.
40439         * modules/fcntl-h (Makefile.am): Substitute witnesses.
40440         * lib/fcntl.in.h (fcntl): Declare replacement.
40441         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
40442         needed, plus a witness.
40443         * doc/posix-functions/fcntl.texi (fcntl): Document this.
40444         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40445         * tests/test-fcntl.c: New file.
40446         * modules/fcntl-tests: Likewise.
40447
40448         binary-io: avoid potential compilation warning
40449         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
40450         directives.
40451
40452         fflush: avoid compilation error on NetBSD
40453         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
40454         between off_t and fpos_t, since the latter is sometimes a struct.
40455         * lib/fseeko.c (rpl_fseeko): Likewise.
40456         Reported by Alexander Nasonov <alnsn@yandex.ru>.
40457
40458 2009-12-15  Eric Blake  <ebb9@byu.net>
40459
40460         fcntl-h, stdio, sys_ioctl: fix declarations
40461         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
40462         function must not take arguments.
40463         * lib/sys_ioctl.in.h (ioctl): Likewise.
40464         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
40465         (open): Add a link warning.
40466
40467 2009-12-15  Jim Meyering  <meyering@redhat.com>
40468
40469         areadlink, areadlink-with-size: relax license to LGPLv2+
40470         * modules/areadlink (License): Relax to LGPLv2+.
40471         * modules/areadlink-with-size (License): Likewise.
40472
40473 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
40474             Bruno Haible  <bruno@clisp.org>
40475
40476         *printf: Fix memory leak.
40477         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
40478         * lib/vfprintf.c (vfprintf): Likewise.
40479         * lib/dprintf.c (dprintf): Likewise.
40480         * lib/vdprintf.c (vdprintf): Likewise.
40481
40482 2009-12-14  Eric Blake  <ebb9@byu.net>
40483
40484         accept4: adjust module dependencies
40485         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
40486
40487         utimens: one more try at avoiding compiler warning
40488         * lib/utimens.c (lutimens): Lower scope of result.
40489
40490 2009-12-13  Bruno Haible  <bruno@clisp.org>
40491
40492         Move the malloc checking from module 'list' to new module 'xlist'.
40493         * modules/xlist: New file.
40494         * lib/gl_xlist.h: New file.
40495         * lib/gl_xlist.c: New file.
40496         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
40497         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
40498         gl_list_add_last, gl_list_add_before, gl_list_add_after,
40499         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
40500         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
40501         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
40502         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
40503         gl_sortedlist_nx_add): New declarations.
40504         (struct gl_list_implementation): Rename and change methods accordingly.
40505         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
40506         (gl_list_nx_create): Renamed from gl_list_create.
40507         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40508         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40509         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40510         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40511         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40512         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40513         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40514         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40515         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
40516         gl_list_create_empty.
40517         (gl_list_nx_create): Renamed from gl_list_create.
40518         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40519         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40520         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40521         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40522         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40523         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40524         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40525         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40526         * lib/gl_array_list.c: Don't include xalloc.h.
40527         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
40528         NULL upon out-of-memory.
40529         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
40530         out-of-memory.
40531         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
40532         Change return type to 'int'.
40533         (gl_array_nx_set_at): Renamed from gl_array_set_at.
40534         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40535         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
40536         upon out-of-memory.
40537         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
40538         upon out-of-memory.
40539         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
40540         upon out-of-memory.
40541         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
40542         upon out-of-memory.
40543         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
40544         out-of-memory.
40545         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
40546         Update.
40547         (gl_array_list_implementation): Update.
40548         * lib/gl_carray_list.c: Don't include xalloc.h.
40549         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
40550         Return NULL upon out-of-memory.
40551         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
40552         out-of-memory.
40553         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
40554         Change return type to 'int'.
40555         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
40556         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40557         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
40558         upon out-of-memory.
40559         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
40560         upon out-of-memory.
40561         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
40562         out-of-memory.
40563         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
40564         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
40565         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
40566         Update.
40567         (gl_carray_list_implementation): Update.
40568         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
40569         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
40570         gl_linked_create_empty. Return NULL upon out-of-memory.
40571         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
40572         out-of-memory.
40573         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
40574         Change return type to 'int'. Return -1 upon out-of-memory.
40575         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
40576         out-of-memory.
40577         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
40578         upon out-of-memory.
40579         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
40580         upon out-of-memory.
40581         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
40582         NULL upon out-of-memory.
40583         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
40584         upon out-of-memory.
40585         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
40586         out-of-memory.
40587         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
40588         Update.
40589         * lib/gl_linked_list.c: Don't include xalloc.h.
40590         (gl_linked_list_implementation): Update.
40591         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
40592         (add_to_bucket): Change return type to 'int'.
40593         (gl_linkedhash_list_implementation): Update.
40594         * lib/gl_anytree_list1.h (free_subtree): New function.
40595         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
40596         gl_tree_create_empty. Return NULL upon out-of-memory.
40597         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
40598         Change return type to 'int'. Return -1 upon out-of-memory.
40599         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
40600         out-of-memory.
40601         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
40602         (gl_tree_remove_node): New function, moved here from
40603         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
40604         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
40605         Update.
40606         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
40607         malloc, not xmalloc. Return NULL upon out-of-memory.
40608         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40609         out-of-memory.
40610         (gl_tree_remove_node_from_tree): New function, extracted from
40611         gl_tree_remove_node.
40612         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40613         upon out-of-memory.
40614         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40615         out-of-memory.
40616         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40617         upon out-of-memory.
40618         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40619         upon out-of-memory.
40620         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40621         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
40622         not xmalloc. Return NULL upon out-of-memory.
40623         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40624         out-of-memory.
40625         (gl_tree_remove_node_from_tree): New function, extracted from
40626         gl_tree_remove_node.
40627         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40628         upon out-of-memory.
40629         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40630         out-of-memory.
40631         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40632         upon out-of-memory.
40633         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40634         upon out-of-memory.
40635         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40636         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
40637         gl_anytree_list1.h before gl_anyavltree_list2.h.
40638         (gl_avltree_list_implementation): Update.
40639         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
40640         gl_anytree_list1.h before gl_anyavltree_list2.h.
40641         (gl_rbtree_list_implementation): Update.
40642         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
40643         Change return type to 'int'. Return -1 upon out-of-memory. Use
40644         __builtin_expect.
40645         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
40646         (gl_avltreehash_list_implementation): Update.
40647         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
40648         (gl_rbtreehash_list_implementation): Update.
40649         * modules/array-list (Depends-on): Remove xalloc.
40650         * modules/carray-list (Depends-on): Likewise.
40651         * modules/linked-list (Depends-on): Likewise.
40652         * modules/linkedhash-list (Depends-on): Likewise.
40653         * modules/avltree-list (Depends-on): Likewise.
40654         * modules/rbtree-list (Depends-on): Likewise.
40655         * modules/avltreehash-list (Depends-on): Likewise.
40656         * modules/rbtreehash-list (Depends-on): Likewise.
40657
40658         * modules/xsublist: New file.
40659         * lib/gl_xsublist.h: New file.
40660         * lib/gl_xsublist.c: New file.
40661         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
40662         (gl_sublist_nx_create): New declaration.
40663         * lib/gl_sublist.c: Don't include xalloc.h.
40664         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
40665         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
40666         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
40667         Change return type to 'int'. Return -1 upon out-of-memory.
40668         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
40669         upon out-of-memory.
40670         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
40671         NULL upon out-of-memory.
40672         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
40673         upon out-of-memory.
40674         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
40675         NULL upon out-of-memory.
40676         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
40677         NULL upon out-of-memory.
40678         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
40679         upon out-of-memory.
40680         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
40681         (gl_sublist_list_implementation): Update.
40682         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
40683         upon out-of-memory.
40684         * modules/sublist (Depends-on): Remove xalloc.
40685
40686         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
40687         * tests/test-carray_list.c: Likewise.
40688         * tests/test-linked_list.c: Likewise.
40689         * tests/test-linkedhash_list.c: Likewise.
40690         * tests/test-avltree_list.c: Likewise.
40691         * tests/test-rbtree_list.c: Likewise.
40692         * tests/test-avltreehash_list.c: Likewise.
40693         * tests/test-rbtreehash_list.c: Likewise.
40694         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
40695         * modules/carray-list-tests (Makefile.am): Likewise.
40696         * modules/linked-list-tests (Makefile.am): Likewise.
40697         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40698         * modules/avltree-list-tests (Makefile.am): Likewise.
40699         * modules/rbtree-list-tests (Makefile.am): Likewise.
40700         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40701         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40702
40703         * NEWS: Mention the changes.
40704
40705         * lib/clean-temp.c: Include gl_xlist.h.
40706         * modules/clean-temp (Depends-on): Add xlist.
40707
40708         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
40709         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
40710
40711         * tests/test-array_oset.c: Include gl_xlist.h.
40712         * modules/array-oset-tests (Depends-on): Add xlist.
40713
40714         Reported by José E. Marchesi <jemarch@gnu.org>.
40715
40716 2009-12-13  Bruno Haible  <bruno@clisp.org>
40717
40718         Move the malloc checking from module 'oset' to new module 'xoset'.
40719         * modules/xoset: New file.
40720         * lib/gl_xoset.h: New file.
40721         * lib/gl_xoset.c: New file.
40722         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
40723         declarations.
40724         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
40725         (struct gl_oset_implementation): Rename and change methods accordingly.
40726         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
40727         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40728         'int'. Mark as __warn_unused_result__.
40729         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
40730         gl_oset_create_empty.
40731         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40732         'int'.
40733         * lib/gl_array_oset.c: Don't include xalloc.h.
40734         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
40735         malloc, not xmalloc.
40736         (grow): Change return type to 'int'. Don't call xalloc_die.
40737         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
40738         to 'int'.
40739         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
40740         'int'.
40741         (gl_array_oset_implementation): Update.
40742         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
40743         gl_tree_create_empty.
40744         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
40745         'int'.
40746         * lib/gl_avltree_oset.c: Don't include xalloc.h.
40747         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40748         xmalloc.
40749         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40750         not xmalloc.
40751         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40752         xmalloc.
40753         (gl_avltree_oset_implementation): Update.
40754         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
40755         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40756         xmalloc.
40757         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40758         not xmalloc.
40759         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40760         xmalloc.
40761         (gl_rbtree_oset_implementation): Update.
40762         * modules/array-oset (Depends-on): Remove xalloc.
40763         * modules/avltree-oset (Depends-on): Likewise.
40764         * modules/rbtree-oset (Depends-on): Likewise.
40765         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
40766         * tests/test-avltree_oset.c: Likewise.
40767         * tests/test-rbtree_oset.c: Likewise.
40768         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40769         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
40770         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40771         * NEWS: Mention the change.
40772
40773 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
40774
40775         maint.mk: allow a project to override release-prep commands
40776         * top/maint.mk (alpha, beta, stable): Move release-preparatory
40777         commands into a new rule.
40778         (release-prep): New rule.
40779         (release-prep-hook): New overridable variable.
40780
40781 2009-12-13  Bruno Haible  <bruno@clisp.org>
40782
40783         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
40784
40785 2009-12-13  Jim Meyering  <meyering@redhat.com>
40786
40787         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
40788         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
40789
40790 2009-12-12  Bruno Haible  <bruno@clisp.org>
40791
40792         duplocale: Tweak.
40793         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
40794
40795 2009-12-12  Karl Berry  <karl@gnu.org>
40796
40797         * config/srclist.txt (strtoll.c): tab changes, no more sync.
40798
40799 2009-12-12  Bruno Haible  <bruno@clisp.org>
40800
40801         * m4/po.m4: Undo incorrect untabification.
40802
40803 2009-12-12  Bruno Haible  <bruno@clisp.org>
40804
40805         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
40806         * modules/c-strtod (Depends-on): Add locale.
40807         * modules/c-strtold (Depends-on): Likewise.
40808
40809 2009-12-12  Bruno Haible  <bruno@clisp.org>
40810
40811         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
40812
40813 2009-12-11  Eric Blake  <ebb9@byu.net>
40814
40815         setenv: relax requirement in light of POSIX ruling
40816         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
40817         not NULL.
40818         * tests/test-setenv.c (main): Relax test.
40819         * tests/test-unsetenv.c (main): Likewise.
40820         * doc/posix-functions/setenv.texi (setenv): Document this.
40821         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40822
40823 2009-12-11  Bruno Haible  <bruno@clisp.org>
40824
40825         New module 'fd-safer-flag'.
40826         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
40827         * lib/dup-safer.c (dup_safer_flag): Remove function.
40828         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
40829         * lib/fd-safer.c (fd_safer_flag): Remove function.
40830         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
40831         * modules/cloexec (configure.ac): Drop indicator macro.
40832         * modules/fd-safer-flag: New file.
40833         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
40834         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
40835         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
40836
40837 2009-12-11  Bruno Haible  <bruno@clisp.org>
40838
40839         Tests for module 'nl_langinfo'.
40840         * modules/nl_langinfo-tests: New file.
40841         * tests/test-nl_langinfo.sh: New file.
40842         * tests/test-nl_langinfo.c: New file.
40843
40844         New module 'nl_langinfo'.
40845         * lib/nl_langinfo.c: New file.
40846         * m4/nl_langinfo.m4: New file.
40847         * modules/nl_langinfo: New file.
40848         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
40849
40850 2009-12-11  Bruno Haible  <bruno@clisp.org>
40851
40852         Tests for module 'langinfo'.
40853         * modules/langinfo-tests: New file.
40854         * tests/test-langinfo.c: New file.
40855
40856         New module 'langinfo'.
40857         * lib/langinfo.in.h: New file.
40858         * m4/langinfo_h.m4: New file.
40859         * modules/langinfo: New file.
40860         * doc/posix-headers/langinfo.texi: Mention the new module.
40861
40862 2009-12-11  Bruno Haible  <bruno@clisp.org>
40863
40864         * lib/config.charset: Untabify.
40865
40866 2009-12-11  Bruno Haible  <bruno@clisp.org>
40867
40868         * modules/unistd-safer (configure.ac): Drop indicator macro.
40869
40870 2009-12-11  Bruno Haible  <bruno@clisp.org>
40871
40872         Move pipe2-safer code to its own file.
40873         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
40874         * lib/pipe-safer.c (pipe2_safer): Remove function.
40875         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
40876         (Makefile.am): Add it to lib_SOURCES.
40877
40878 2009-12-10  Bruno Haible  <bruno@clisp.org>
40879
40880         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
40881
40882 2009-12-10  Bruno Haible  <bruno@clisp.org>
40883
40884         Declare which arguments expect non-NULL values, for GCC and clang.
40885         * build-aux/arg-nonnull.h: New file.
40886         * modules/arg-nonnull: New file.
40887         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
40888         (inet_ntop, inet_pton): Use it.
40889         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
40890         (closedir, dirfd, opendir, scandir, alphasort): Use it.
40891         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
40892         (open, openat): Use it.
40893         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
40894         (fnmatch): Use it.
40895         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
40896         (getopt, getopt_long, getopt_long_only): Use it.
40897         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
40898         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
40899         Use it.
40900         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
40901         (iconv_open): Use it.
40902         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
40903         (strtoimax, strtoumax): Use it.
40904         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
40905         (duplocale): Use it.
40906         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
40907         (frexp, frexpl): Use it.
40908         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
40909         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
40910         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
40911         (tsearch, tfind, tdelete, twalk): Use it.
40912         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
40913         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
40914         sigpending): Use it.
40915         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
40916         (posix_spawn, posix_spawnp, posix_spawnattr_init,
40917         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
40918         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
40919         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
40920         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
40921         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
40922         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
40923         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
40924         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
40925         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
40926         Use it.
40927         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
40928         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
40929         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
40930         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
40931         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
40932         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
40933         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
40934         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
40935         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
40936         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
40937         strtoull, unsetenv): Use it.
40938         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
40939         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
40940         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
40941         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
40942         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
40943         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
40944         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
40945         (strcasecmp, strncasecmp): Use it.
40946         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
40947         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
40948         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
40949         rpl_setsockopt): Use it.
40950         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
40951         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
40952         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
40953         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
40954         (gettimeofday): Use it.
40955         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
40956         (times): Use it.
40957         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
40958         (uname): Use it.
40959         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
40960         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
40961         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
40962         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
40963         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
40964         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
40965         unlinkat, write): Use it.
40966         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
40967         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
40968         * lib/argv-iter.h: Include arg-nonnull.h.
40969         (_ATTRIBUTE_NONNULL_): Remove macro.
40970         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
40971         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
40972         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
40973         optimization.
40974         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
40975         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
40976         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
40977         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
40978         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
40979         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
40980         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
40981         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
40982         * modules/arpa_inet (Depends-on): Add arg-nonnull.
40983         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
40984         * modules/dirent (Depends-on): Add arg-nonnull.
40985         (Makefile.am): Insert arg-nonnull.h into dirent.h.
40986         * modules/fcntl-h (Depends-on): Add arg-nonnull.
40987         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
40988         * modules/fnmatch (Depends-on): Add arg-nonnull.
40989         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
40990         * modules/getopt-posix (Depends-on): Add arg-nonnull.
40991         (Makefile.am): Insert arg-nonnull.h into getopt.h.
40992         * modules/glob (Depends-on): Add arg-nonnull.
40993         (Makefile.am): Insert arg-nonnull.h into glob.h.
40994         * modules/iconv_open (Depends-on): Add arg-nonnull.
40995         (Makefile.am): Insert arg-nonnull.h into iconv.h.
40996         * modules/inttypes (Depends-on): Add arg-nonnull.
40997         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
40998         * modules/locale (Depends-on): Add arg-nonnull.
40999         (Makefile.am): Insert arg-nonnull.h into locale.h.
41000         * modules/math (Depends-on): Add arg-nonnull.
41001         (Makefile.am): Insert arg-nonnull.h into math.h.
41002         * modules/netdb (Depends-on): Add arg-nonnull.
41003         (Makefile.am): Insert arg-nonnull.h into netdb.h.
41004         * modules/search (Depends-on): Add arg-nonnull.
41005         (Makefile.am): Insert arg-nonnull.h into search.h.
41006         * modules/signal (Depends-on): Add arg-nonnull.
41007         (Makefile.am): Insert arg-nonnull.h into signal.h.
41008         * modules/spawn (Depends-on): Add arg-nonnull.
41009         (Makefile.am): Insert arg-nonnull.h into spawn.h.
41010         * modules/stdio (Depends-on): Add arg-nonnull.
41011         (Makefile.am): Insert arg-nonnull.h into stdio.h.
41012         * modules/stdlib (Depends-on): Add arg-nonnull.
41013         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
41014         * modules/string (Depends-on): Add arg-nonnull.
41015         (Makefile.am): Insert arg-nonnull.h into string.h.
41016         * modules/strings (Depends-on): Add arg-nonnull.
41017         (Makefile.am): Insert arg-nonnull.h into strings.h.
41018         * modules/sys_socket (Depends-on): Add arg-nonnull.
41019         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
41020         * modules/sys_stat (Depends-on): Add arg-nonnull.
41021         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
41022         * modules/sys_time (Depends-on): Add arg-nonnull.
41023         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
41024         * modules/sys_times (Depends-on): Add arg-nonnull.
41025         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
41026         * modules/sys_utsname (Depends-on): Add arg-nonnull.
41027         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
41028         * modules/time (Depends-on): Add arg-nonnull.
41029         (Makefile.am): Insert arg-nonnull.h into time.h.
41030         * modules/unistd (Depends-on): Add arg-nonnull.
41031         (Makefile.am): Insert arg-nonnull.h into unistd.h.
41032         * modules/wchar (Depends-on): Add arg-nonnull.
41033         (Makefile.am): Insert arg-nonnull.h into wchar.h.
41034         * modules/argv-iter (Depends-on): Add arg-nonnull.
41035         * tests/test-canonicalize.c (null_ptr): New function.
41036         (main): Use it.
41037         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
41038         (main): Use it.
41039         * tests/test-memmem.c (null_ptr): New function.
41040         (main): Use it.
41041         Reported by Jim Meyering.
41042
41043 2009-12-10  Bruno Haible  <bruno@clisp.org>
41044
41045         Use spaces for indentation, not tabs.
41046         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
41047         * m4/*.m4: Untabify.
41048         * build-aux/*.h: Untabify.
41049         * tests/**/*.[hc]: Untabify.
41050         * README: New section "Indent with spaces, not TABs", based on
41051         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
41052         * NEWS: Mention the change.
41053
41054 2009-12-10  Bruno Haible  <bruno@clisp.org>
41055
41056         pty test: Fix link error.
41057         * modules/pty-tests (Makefile.am): Add the default LDADD value to
41058         test_pty_LDADD.
41059
41060 2009-12-07  Simon Josefsson  <simon@josefsson.org>
41061
41062         * modules/pty: New file.
41063         * modules/pty-tests: New file.
41064         * m4/pty.m4: New file.
41065         * tests/test-pty.c: New file.
41066         * doc/glibc-headers/pty.texi: Modified.
41067         * doc/glibc-functions/forkpty.texi: Modified.
41068         * doc/glibc-functions/openpty.texi: Modified.
41069
41070 2009-12-10  Bruno Haible  <bruno@clisp.org>
41071
41072         Avoid syntax error in C++ mode.
41073         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
41074
41075 2009-12-10  Bruno Haible  <bruno@clisp.org>
41076
41077         Use sed with option -e.
41078         * gnulib-tool (func_version, func_emit_copyright_notice,
41079         func_emit_initmacro_end, func_import, func_create_testdir): Pass
41080         option -e to sed.
41081         * modules/link-warning (Makefile.am): Likewise.
41082
41083 2009-12-10  Jim Meyering  <meyering@redhat.com>
41084
41085         mgetgroups: do not write bytes beyond end of malloc'd buffer
41086         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
41087         username, we call getgroups with a one-element-shorter buffer,
41088         but still told it the length was original, max_n_groups.
41089
41090 2009-12-09  Eric Blake  <ebb9@byu.net>
41091
41092         cloexec: relax license
41093         * modules/cloexec (Maintainer): Add myself.
41094         (License): Use LGPL, not GPL.
41095
41096         link-warning: optimize generation
41097         * modules/link-warning (Makefile.am): Reduce process usage.
41098
41099 2009-12-09  Bruno Haible  <bruno@clisp.org>
41100
41101         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
41102         workaround was added on 2009-11-17.
41103
41104 2009-12-09  Jim Meyering  <meyering@redhat.com>
41105             Bruno Haible  <bruno@clisp.org>
41106
41107         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
41108         * modules/link-warning (Makefile.am): Make the comment-removing sed
41109         command more robust in the face of bootstrap-prepended comment lines.
41110
41111 2009-12-09  Bruno Haible  <bruno@clisp.org>
41112
41113         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
41114         most one group.
41115
41116 2009-12-09  Simon Josefsson <simon@josefsson.org>
41117             Bruno Haible  <bruno@clisp.org>
41118
41119         * build-aux/link-warning.h: Add copyright notice.
41120         * modules/link-warning (Makefile.am): Generate link-warning.h from
41121         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
41122         * NEWS: Mention change in link-warning module.
41123         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
41124         * modules/dirent (Makefile.am): Add dependency to dirent.h.
41125         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
41126         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
41127         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
41128         * modules/math (Makefile.am): Add dependency to math.h.
41129         * modules/search (Makefile.am): Add dependency to search.h.
41130         * modules/signal (Makefile.am): Add dependency to signal.h.
41131         * modules/spawn (Makefile.am): Add dependency to spawn.h.
41132         * modules/stdio (Makefile.am): Add dependency to stdio.h.
41133         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
41134         * modules/string (Makefile.am): Add dependency to string.h.
41135         * modules/strings (Makefile.am): Add dependency to strings.h.
41136         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
41137         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
41138         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
41139         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
41140         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
41141         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
41142         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
41143         * modules/unistd (Makefile.am): Add dependency to unistd.h.
41144         * modules/wchar (Makefile.am): Add dependency to wchar.h.
41145
41146 2009-12-09  Bruno Haible  <bruno@clisp.org>
41147
41148         fchdir: Optimize away rpl_fstat when possible.
41149         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
41150         REPLACE_OPEN_DIRECTORY.
41151         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
41152
41153 2009-12-09  Bruno Haible  <bruno@clisp.org>
41154
41155         * lib/fchdir.c: Update comment.
41156
41157 2009-12-09  Bruno Haible  <bruno@clisp.org>
41158
41159         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
41160
41161 2009-12-08  Eric Blake  <ebb9@byu.net>
41162
41163         fchdir: avoid memory leak on re-registration.
41164         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
41165
41166 2009-12-08  Jim Meyering  <meyering@redhat.com>
41167
41168         init.sh: avoid Solaris 10 /bin/sh portability problem
41169         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
41170         sourced script:
41171           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
41172           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
41173           bar
41174         tests/init.sh relied on that, accepting a --set-path=DIR argument,
41175         and two tests used that idiom.
41176         * tests/init.sh: Update suggested usage comments.
41177         (path_prepend_): New function, to be used in place
41178         of the --src-path=DIR option.
41179         (setup_): Move PATH-prepending code into path_prepend_.
41180         * tests/test-pread.sh: Adapt to new usage.
41181         * tests/test-xalloc-die.sh: Likewise.
41182
41183 2009-12-08  Simon Josefsson  <simon@josefsson.org>
41184
41185         * doc/gnulib.texi (Glibc pty.h): Add.
41186         * doc/glibc-functions/forkpty.texi: Add.
41187         * doc/glibc-functions/openpty.texi: Add.
41188         Suggested by Bruno Haible.
41189
41190 2009-12-08  Eric Blake  <ebb9@byu.net>
41191
41192         fchdir: fix logic bugs
41193         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
41194         * tests/test-fchdir.c (main): Enhance test.
41195         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
41196         is in use.
41197
41198         dup2: fix logic bugs
41199         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
41200         REPLACE_DUP2 to decide when rpl_dup2 is needed.
41201         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
41202         exists.
41203         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
41204
41205 2009-12-07  Eric Blake  <ebb9@byu.net>
41206
41207         unlink: fix m4 detection
41208         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
41209
41210         unistd-safer: add unit test
41211         * modules/unistd-safer-tests: New file.
41212         * tests/test-dup-safer.c: Likewise.
41213         * tests/test-cloexec.c (setmode): Avoid compiler warning.
41214         * tests/test-dup2.c (setmode): Likewise.
41215         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
41216
41217         cloexec: preserve text vs. binary across dup_cloexec
41218         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
41219         mode.
41220         * modules/dup2-tests (Depends-on): Add binary-io.
41221         * modules/cloexec-tests (Depends-on): Likewise.
41222         * tests/test-dup2.c (setmode, is_mode): New helpers.
41223         (main): Add tests that translation mode is preserved.
41224         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
41225         Reported by Bruno Haible.
41226
41227         mgetgroups: reduce duplicate listings
41228         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
41229         resulting array.
41230         * tests/test-chown.h (test_chown): Simplify client.
41231         * tests/test-lchown.h (test_lchown): Likewise.
41232
41233 2009-12-06  Bruno Haible  <bruno@clisp.org>
41234
41235         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
41236         value.
41237
41238 2009-12-06  Bruno Haible  <bruno@clisp.org>
41239
41240         * lib/progname.c: Include stdio.h, stdlib.h.
41241         (set_program_name): Reject a NULL argument.
41242
41243 2009-12-05  Eric Blake  <ebb9@byu.net>
41244
41245         pipe2-safer: new module
41246         * modules/pipe2-safer: New file.
41247         * lib/unistd-safer.h (pipe2_safer): New prototype.
41248         * lib/unistd--.h (pipe2): New wrapper.
41249         * lib/pipe-safer.c (pipe2_safer): New function.
41250         * modules/pipe (Depends-on): Add pipe2-safer.
41251         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
41252
41253         stdlib-safer: preserve cloexec flag for mkostemp[s]
41254         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
41255         fd_safer_flag.
41256
41257         unistd-safer: allow preservation of cloexec status via flag
41258         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
41259         prototypes.
41260         * lib/dup-safer.c (dup_safer_flag): New function.
41261         * lib/fd-safer.c (fd_safer_flag): Likewise.
41262         * modules/cloexec (configure.ac): Set witness.
41263
41264         test-dup2: enhance test
41265         * modules/dup2-tests (Depends-on): Add cloexec.
41266         * tests/test-dup2.c (main): Enhance test.
41267
41268         cloexec: add dup_cloexec
41269         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
41270         header and comments.
41271         * lib/cloexec.c (set_cloexec_flag): Add comments.
41272         (dup_cloexec): New function, with mingw implementation borrowed
41273         from...
41274         * lib/w32spawn.h (dup_noinherit): ...here.
41275         * modules/execute (Depends-on): Add cloexec.
41276         * modules/pipe (Depends-on): Likewise.
41277         * modules/cloexec (Depends-on): Add dup2.
41278         * modules/cloexec-tests (Files): New file.
41279         * tests/test-cloexec.c: Likewise.
41280
41281         test-xalloc-die: fix test for mingw
41282         * modules/xalloc-die-tests (Files): Add tests/init.sh.
41283         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
41284         directory and .exe suffix off argv[0] output.
41285
41286         test-fseeko: fix test for mingw
41287         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
41288         than undefining fseek, so test will pass on mingw.
41289
41290 2009-12-05  Bruno Haible  <bruno@clisp.org>
41291
41292         * lib/progname.h (set_program_name): Clarify specification.
41293         * lib/progname.c (set_program_name): Likewise.
41294         Reported by Jim Meyering.
41295
41296 2009-12-05  Jim Meyering  <meyering@redhat.com>
41297
41298         maint.mk: backslash-escape parens in default regexp
41299         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
41300         backslash-escape the literal parentheses.
41301
41302         maint.mk: news-date-check: use grep -E
41303         * top/maint.mk (today): Define a Make variable, not a...
41304         (news-date-check): ...shell variable.
41305         (news-date-regexp): Use the Make variable.
41306         Use grep's -E option.  Change the failing diagnostic to mention
41307         the variable, $(news-date-regexp).
41308
41309 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
41310
41311         maintainer-makefile: allow customization of NEWS entry format
41312         * top/maint.mk (news-date-regexp): New overridable variable.
41313         (news-date-check): Use it.
41314
41315 2009-12-04  Eric Blake  <ebb9@byu.net>
41316
41317         mgetgroups: add xgetgroups, and avoid ENOSYS failures
41318         * lib/mgetgroups.h (xgetgroups): New prototype.
41319         * lib/mgetgroups.c (xgetgroups): New wrapper.
41320         (mgetgroups): Handle ENOSYS.
41321         * modules/mgetgroups (Depends-on): Add realloc.
41322         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
41323
41324         mgetgroups: avoid argument promotion issues with -1
41325         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
41326         for invalid gid_t.
41327         * tests/test-chown.h (getegid, test_chown): Likewise.
41328         * tests/test-lchown.h (getegid, test_lchown): Likewise.
41329
41330 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
41331
41332         exclude: Fix header file problems.
41333         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
41334
41335 2009-12-01  Jim Meyering  <meyering@redhat.com>
41336
41337         fts: fts_open: do not let an empty string cause immediate failure
41338         This is required in support of GNU rm, for which the command
41339         "rm A '' B" must process and remove both A and B, in spite of
41340         the empty string argument.
41341         * lib/fts.c (fts_open): Do not let the presence of an empty string
41342         cause fts_open to fail immediately.  Most fts-using tools must be
41343         able to process all arguments, in order, and can be expected to
41344         diagnose such arguments themselves.
41345
41346 2009-11-30  Eric Blake  <ebb9@byu.net>
41347
41348         utimens: fix compilation error
41349         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
41350         Declare variable at right scope.
41351
41352 2009-11-29  Jim Meyering  <meyering@redhat.com>
41353
41354         bootstrap: handle perl-5.11's changed --version output
41355         * build-aux/bootstrap (get_version): Handle perl separately,
41356         since perl-5.11's --version output is different.
41357
41358 2009-11-28  Jim Meyering  <meyering@redhat.com>
41359
41360         userspec: depend on the inttostr module, too
41361         * modules/userspec (Depends-on): Add inttostr.
41362
41363         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
41364         * lib/userspec.c (parse_with_separator): Do not accept a user ID
41365         number of MAXUID when it evaluates to (uid_t) -1.
41366         Likewise for group ID.  Reported by Matt McCutchen in
41367         <http://savannah.gnu.org/bugs/?28113>
41368
41369         userspec: reformat to use spaces, not TABs
41370         * lib/userspec.c: Expand TABs to spaces.
41371         Add Emacs' "indent-tabs-mode: nil" hint.
41372
41373 2009-11-27  Eric Blake  <ebb9@byu.net>
41374
41375         getopt-gnu: flush out another BSD bug
41376         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
41377         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
41378         flush out BSD bug.
41379         * tests/test-getopt.h (test_getopt): End lists with NULL.
41380         * tests/test-getopt_long.h (test_getopt_long): Likewise.
41381         (test_getopt_long_posix): Enhance test.
41382         * modules/getopt-posix-tests (Depends-on): Add stdbool.
41383         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
41384         getopt-gnu.
41385         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41386         Likewise.
41387
41388 2009-11-27  Simon Josefsson  <simon@josefsson.org>
41389
41390         * modules/idpriv-droptemp-tests (Notice): Fix text.
41391
41392 2009-11-27  Jim Meyering  <meyering@redhat.com>
41393
41394         test-xalloc-die: avoid spurious failure due to libtool argv difference
41395         In a libtool-enabled project, this test would fail due to a difference
41396         in the emitted program name, e.g.,
41397         -test-xalloc-die: memory exhausted
41398         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
41399         Use program to avoid that.
41400         * modules/xalloc-die-tests (Depends-on): Add progname.
41401         * tests/test-xalloc-die.c: Include progname.h".
41402         (program_name): Remove decl.
41403         (main): Call set_program_name.
41404         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
41405
41406 2009-11-26  Richard Jones  <rjones@redhat.com>
41407
41408         w32sock: leave win32 error in place.
41409         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
41410
41411 2009-11-26  Eric Blake  <ebb9@byu.net>
41412
41413         init.sh: suggest to use skip_ and fail_ functions in comments
41414         * tests/init.sh: Add a sentence.
41415
41416 2009-11-25  Bruno Haible  <bruno@clisp.org>
41417
41418         init.sh: add documentation in comments
41419         * tests/init.sh: Add some developer and user documentation.
41420
41421 2009-11-26  Jim Meyering  <meyering@redhat.com>
41422
41423         init.sh: accommodate even those who specify bogus srcdir manually
41424         * tests/init.sh: Normally, srcdir is guaranteed by automake and
41425         configure-time tests to be sanitized, so that there is no need to
41426         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
41427         (with no double quotes) suffices.  However, since tests may be
41428         invoked manually, and since you may explicitly set srcdir to the
41429         name of a directory containing spaces, do quote its uses here.
41430         * tests/test-pread.sh: Likewise.
41431         Suggested by Bruno Haible.
41432
41433         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
41434         * tests/test-pread.sh: Write no data into the pipe, because
41435         test-pread actually reads none.  This avoids a diagnostic,
41436         "bash: echo: write error: Broken pipe", that arises in the unusual
41437         event something is ignoring SIGPIPE, and might be interpreted
41438         as some sort of failure.  Reported by Bruno Haible.
41439
41440 2009-11-25  Jim Meyering  <meyering@redhat.com>
41441
41442         test-pread: cover failure with ESPIPE and EINVAL
41443         * tests/test-pread.c (main): Test for failure, too.
41444         * tests/test-pread.sh: Invoke with stdin on a pipe.
41445         Suggested by Eric Blake.
41446
41447         pread: improvement and fix
41448         * modules/pread (Depends-on): Depend on lseek, for portability to
41449         e.g., mingw.  Suggested by Eric Blake.
41450         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
41451
41452         unistd.in.h: correct declaration of pread
41453         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
41454         Reported by Richard W.M. Jones.
41455
41456         test-pread.sh: distribute the test script
41457         * modules/pread-tests (Files): Include test-pread.sh.
41458
41459         test-pread.sh: clean up
41460         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
41461         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
41462         That is unnecessary, since it's always ".".
41463         Suggestion from Eric Blake.
41464
41465         test-pread.sh: make executable
41466         * tests/test-pread.sh: Set executable bit.
41467         Reported by Eric Blake.
41468
41469         correct typo in test-pread.sh
41470         * tests/test-pread.sh: Add #! line.
41471
41472         test pread
41473         * tests/test-pread.c: New file.
41474         * tests/test-pread.sh: Likewise.
41475         * modules/pread-tests: Likewise.
41476
41477         pread: new module
41478         * modules/pread: New file.
41479         * lib/unistd.in.h (pread): Define/declare.
41480         * lib/pread.c (pread): New file.
41481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
41482         * modules/unistd (Makefile.am): Substitute witnesses.
41483         * doc/posix-functions/pread.texi (pread): Update.
41484         * MODULES.html.sh: Add pread.
41485
41486 2009-11-25  Jim Meyering  <meyering@redhat.com>
41487
41488         tests/init.sh: new file to be used via most *.sh tests
41489         * tests/init.sh: New file.
41490
41491 2009-11-25  Eric Blake  <ebb9@byu.net>
41492
41493         utimens: work around older Linux failure with symlinks
41494         * lib/utimens.c (lutimensat_works_really): New variable.
41495         (fdutimens, lutimens): Use it to manage kernels that support
41496         nanosecond times on files, but not on symlinks.
41497         Reported by OndÅ™ej Vašík.
41498
41499         utimes: fix configure grammar
41500         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
41501
41502 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
41503
41504         regex: Fix fastmap for multibyte character ranges.
41505         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
41506         characters when a multibyte character range is included.
41507
41508 2009-11-22  Andy Wingo  <wingo@pobox.com>
41509
41510         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
41511         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
41512
41513 2009-11-24  Bruno Haible  <bruno@clisp.org>
41514
41515         doc: Most *_l functions exist in MacOS X 10.5.
41516         * doc/posix-functions/duplocale.texi: Update platforms list.
41517         * doc/posix-functions/freelocale.texi: Likewise.
41518         * doc/posix-functions/newlocale.texi: Likewise.
41519         * doc/posix-functions/uselocale.texi: Likewise.
41520         * doc/posix-functions/isalnum_l.texi: Likewise.
41521         * doc/posix-functions/isalpha_l.texi: Likewise.
41522         * doc/posix-functions/isblank_l.texi: Likewise.
41523         * doc/posix-functions/iscntrl_l.texi: Likewise.
41524         * doc/posix-functions/isdigit_l.texi: Likewise.
41525         * doc/posix-functions/isgraph_l.texi: Likewise.
41526         * doc/posix-functions/islower_l.texi: Likewise.
41527         * doc/posix-functions/isprint_l.texi: Likewise.
41528         * doc/posix-functions/ispunct_l.texi: Likewise.
41529         * doc/posix-functions/isspace_l.texi: Likewise.
41530         * doc/posix-functions/isupper_l.texi: Likewise.
41531         * doc/posix-functions/iswalnum_l.texi: Likewise.
41532         * doc/posix-functions/iswalpha_l.texi: Likewise.
41533         * doc/posix-functions/iswblank_l.texi: Likewise.
41534         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41535         * doc/posix-functions/iswctype_l.texi: Likewise.
41536         * doc/posix-functions/iswdigit_l.texi: Likewise.
41537         * doc/posix-functions/iswgraph_l.texi: Likewise.
41538         * doc/posix-functions/iswlower_l.texi: Likewise.
41539         * doc/posix-functions/iswprint_l.texi: Likewise.
41540         * doc/posix-functions/iswpunct_l.texi: Likewise.
41541         * doc/posix-functions/iswspace_l.texi: Likewise.
41542         * doc/posix-functions/iswupper_l.texi: Likewise.
41543         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41544         * doc/posix-functions/isxdigit_l.texi: Likewise.
41545         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
41546         * doc/posix-functions/strcasecmp_l.texi: Likewise.
41547         * doc/posix-functions/strcoll_l.texi: Likewise.
41548         * doc/posix-functions/strfmon_l.texi: Likewise.
41549         * doc/posix-functions/strftime_l.texi: Likewise.
41550         * doc/posix-functions/strncasecmp_l.texi: Likewise.
41551         * doc/posix-functions/strxfrm_l.texi: Likewise.
41552         * doc/posix-functions/tolower_l.texi: Likewise.
41553         * doc/posix-functions/toupper_l.texi: Likewise.
41554         * doc/posix-functions/towctrans_l.texi: Likewise.
41555         * doc/posix-functions/towlower_l.texi: Likewise.
41556         * doc/posix-functions/towupper_l.texi: Likewise.
41557         * doc/posix-functions/wcscoll_l.texi: Likewise.
41558         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41559         * doc/posix-functions/wctrans_l.texi: Likewise.
41560         * doc/posix-functions/wctype_l.texi: Likewise.
41561         * doc/glibc-functions/strptime_l.texi: Likewise.
41562         * doc/glibc-functions/strtod_l.texi: Likewise.
41563         * doc/glibc-functions/strtof_l.texi: Likewise.
41564         * doc/glibc-functions/strtol_l.texi: Likewise.
41565         * doc/glibc-functions/strtold_l.texi: Likewise.
41566         * doc/glibc-functions/strtoll_l.texi: Likewise.
41567         * doc/glibc-functions/strtoul_l.texi: Likewise.
41568         * doc/glibc-functions/strtoull_l.texi: Likewise.
41569         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41570         * doc/glibc-functions/wcstod_l.texi: Likewise.
41571         * doc/glibc-functions/wcstof_l.texi: Likewise.
41572         * doc/glibc-functions/wcstol_l.texi: Likewise.
41573         * doc/glibc-functions/wcstold_l.texi: Likewise.
41574         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41575         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41576         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41577
41578 2009-11-24  Bruno Haible  <bruno@clisp.org>
41579
41580         duplocale: Fix logic bug.
41581         * lib/duplocale.c: Don't include <langinfo.h>.
41582         (_NL_LOCALE_NAME): Remove macro.
41583         (rpl_duplocale): Use setlocale instead of nl_langinfo.
41584         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
41585
41586 2009-11-23  Jim Meyering  <meyering@redhat.com>
41587
41588         test-update-copyright: don't hard-code /usr/bin/perl
41589         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
41590         perl to print the current year.  Gilles Espinasse reported that
41591         the replaced use of perl was hard-coded as /usr/bin/perl.
41592
41593 2009-11-23  Bruno Haible  <bruno@clisp.org>
41594
41595         duplocale: Add support for glibc 2.3.x.
41596         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
41597
41598 2009-11-22  Bruno Haible  <bruno@clisp.org>
41599
41600         vasnprintf: Tiny optimization.
41601         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
41602         MacOS X.
41603
41604 2009-11-22  Bruno Haible  <bruno@clisp.org>
41605
41606         Tests for module 'duplocale'.
41607         * modules/duplocale-tests: New file.
41608         * tests/test-duplocale.c: New file.
41609
41610         New module 'duplocale'.
41611         * m4/duplocale.m4: New file.
41612         * lib/locale.in.h (duplocale): New declaration.
41613         * lib/duplocale.c: New file.
41614         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
41615         gl_LOCALE_H_DEFAULTS): New macros.
41616         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
41617         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
41618         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
41619         REPLACE_DUPLOCALE.
41620         * modules/duplocale: New file.
41621         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
41622
41623 2009-11-22  Bruno Haible  <bruno@clisp.org>
41624
41625         * modules/locale-tests (configure.ac): Test for newlocale function.
41626         * tests/test-locale.c: When the system has extended locale functions,
41627         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
41628
41629         locale: Make locale_t available when possible.
41630         * lib/locale.in.h: Include <xlocale.h> when it exists.
41631         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
41632         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
41633         * modules/locale (Depends-on): Add extensions.
41634         (Makefile.am): Also substitute HAVE_XLOCALE_H.
41635         * doc/posix-headers/locale.texi: Document the problem with locale_t.
41636
41637 2009-11-22  Bruno Haible  <bruno@clisp.org>
41638
41639         Add comments.
41640         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
41641         invocation.
41642         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41643         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
41644         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41645
41646 2009-11-22  Bruno Haible  <bruno@clisp.org>
41647
41648         error: account for the possibility of freopen (stdout).
41649         * lib/error.c: Include <unistd.h>.
41650         (flush_stdout): New function, extracted from error and error_at_line.
41651         Determine stdout's fd dynamically.
41652         (error, error_at_line): Invoke flush_stdout.
41653         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
41654         * modules/error (Depends-on): Add unistd.
41655
41656 2009-11-22  Bruno Haible  <bruno@clisp.org>
41657
41658         diffseq: Add comment.
41659         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
41660
41661 2009-11-22  Jim Meyering  <meyering@redhat.com>
41662
41663         c-stack: avoid defining an unused static function
41664         * lib/c-stack.c (find_stack_direction): Do not define this function
41665         when it will not be used.
41666
41667         diffseq: avoid spurious gcc warnings
41668         * lib/diffseq.h (IF_LINT2): Define.
41669         (compareseq): Use it to initialize two members of "part".
41670         This avoids two used-uninitialized warnings.
41671
41672 2009-11-21  Jim Meyering  <meyering@redhat.com>
41673
41674         c-stack: avoid "ignoring return value of `write'" warning
41675         * lib/c-stack.c: Include "ignore-value.h".
41676         (die): Explicitly ignore each write return value.
41677         * modules/c-stack (Depends-on): Add ignore-value.
41678
41679 2009-11-21  Bruno Haible  <bruno@clisp.org>
41680
41681         diffseq: reduce scope of variable 'best'.
41682         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
41683         variable, earlier used for two different purposes.
41684
41685 2009-11-21  Jim Meyering  <meyering@redhat.com>
41686
41687         diffseq: remove useless assignment to "best"
41688         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
41689         assignment.  At that point "best" is already guaranteed to be zero.
41690
41691 2009-11-20  Eric Blake  <ebb9@byu.net>
41692
41693         build: mention ftp redirector in release announcements
41694         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
41695         values that used to come from cfg.mk; mention FTP redirect URL.
41696         * build-aux/announce-gen: Mention the mirror list.
41697         Suggested by Karl Berry.
41698
41699         nanosleep: improve port to mingw
41700         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
41701         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
41702         LIB_NANOSLEEP, but only when needed.
41703         * modules/select (Link): Document LIBSOCKET.
41704         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
41705         enough.
41706
41707         nanosleep: work around cygwin bug
41708         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
41709         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
41710         bug.
41711         (getnow): Delete, not needed.
41712         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
41713         LIB_CLOCK_GETTIME.
41714         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
41715         clock-time, gettime.
41716         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
41717         bug.
41718         * modules/nanosleep-tests: New test.
41719         * tests/test-nanosleep.c: New file.
41720
41721         sleep: work around cygwin bug
41722         * lib/sleep.c (rpl_sleep): Work around the bug.
41723         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
41724         (gl_PREREQ_SLEEP): Delete unused macro.
41725         * modules/sleep (Depends-on): Add verify.
41726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41727         * modules/unistd (Makefile.am): Substitute witness.
41728         * lib/unistd.in.h (sleep): Update prototype.
41729         * doc/posix-functions/sleep.texi (sleep): Document the bug.
41730         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
41731         * modules/sleep-tests (Depends-on): Check for alarm.
41732
41733 2009-11-20  Jim Meyering  <meyering@redhat.com>
41734
41735         maint.mk: improve sc_prohibit_magic_number_exit
41736         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
41737         so it does not match uses like System.exit(1).
41738         Add comments showing how to correct all offenders.
41739
41740 2009-11-19  Eric Blake  <ebb9@byu.net>
41741
41742         xalloc-die-tests: add missing library
41743         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
41744
41745         test-xvasprintf: silence compiler warnings
41746         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
41747         empty string from gcc.
41748
41749 2009-11-19  Jim Meyering  <meyering@redhat.com>
41750
41751         xfreopen: new module, from coreutils
41752         * modules/xfreopen: New module.
41753         * lib/xfreopen.c: New file.
41754         * lib/xfreopen.h: New file.
41755         * MODULES.html.sh (File stream based Input/Output"): Add it.
41756
41757 2009-11-19  Eric Blake  <ebb9@byu.net>
41758
41759         manywarnings: depend on warnings
41760         * modules/manywarnings (Depends-on): Add warnings.
41761
41762         build: avoid compiler warnings
41763         * lib/select.c (rpl_select): Delete unused variable.
41764         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
41765
41766 2009-11-18  Eric Blake  <ebb9@byu.net>
41767
41768         tests: avoid false negative with --with-packager
41769         * tests/test-version-etc.sh: Discard packager information.
41770         * tests/test-argp-version-etc-1.sh: Likewise.
41771         Reported by Mike Frysinger.
41772
41773         utimens: fix regression on Solaris
41774         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
41775         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
41776         can only change fd timestamps via futimesat.  Instead, use an
41777         additional witness macro to avoid BSD bug.
41778         Reported by Jim Meyering.
41779
41780 2009-11-17  Eric Blake  <ebb9@byu.net>
41781
41782         usleep: use it to simplify tests
41783         * modules/stat-time-tests (Depends-on): Add usleep.
41784         (configure.ac): Drop usleep check.
41785         * modules/chown-tests (Depends-on, configure.ac): Likewise.
41786         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
41787         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
41788         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
41789         * modules/openat-tests (Depends-on, configure.ac): Likewise.
41790         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
41791         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
41792         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
41793         Likewise.
41794         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
41795         * tests/test-lchown.h (nap): Likewise.
41796         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
41797         * tests/test-stat-time.c (nap): Likewise.
41798         * tests/test-utimens-common.h (nap): Update comments.
41799
41800         usleep: new module
41801         * modules/usleep: New file.
41802         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
41803         * lib/usleep.c (usleep): Likewise.
41804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41805         * modules/unistd (Makefile.am): Substitute witnesses.
41806         * lib/unistd.in.h (usleep): Add declaration.
41807         * doc/pastposix-functions/usleep.texi (usleep): Document this.
41808         * MODULES.html.sh (Date and time): Likewise.
41809         * modules/usleep-tests (Depends-on): New test.
41810         * tests/test-usleep.c: New file.
41811
41812         chown: work around OpenBSD bug
41813         * lib/chown.c (rpl_chown): Work around the bug.
41814         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
41815         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
41816         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
41817         * modules/chown (Depends-on): Add stdbool.
41818         * modules/lchown (Depends-on): Likewise.
41819         * doc/posix-functions/chown.texi (chown): Document the bug.
41820         * doc/posix-functions/lchown.texi (lchown): Likewise.
41821         * tests/test-lchown.h (test_chown): Relax test.
41822
41823         mkstemp: avoid conflict with C++ keyword template
41824         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
41825         * lib/mkostemp.c (mkostemp): Likewise.
41826         * lib/mkostemps.c (mkostemps): Likewise.
41827         * lib/mkstemp.c (mkstemp): Likewise.
41828         * lib/mkstemps.c (mkstemps): Likewise.
41829
41830         xalloc-die-tests: optimize
41831         * tests/test-xalloc-die.sh: Reduce number of processes.
41832
41833 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41834
41835         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
41836         patch from ludo@gnu.org (Ludovic Courtès).
41837
41838 2009-11-17  Jim Meyering  <meyering@redhat.com>
41839
41840         version-etc: use proper license string
41841         * modules/version-etc (License): Use LGPL, not LGPLv3+.
41842         * modules/version-etc-fsf: Likewise.
41843
41844 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41845
41846         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
41847         printed to stdout.  Deal with EOL differences.
41848
41849 2009-11-17  Eric Blake  <ebb9@byu.net>
41850
41851         unsetenv: work around Solaris bug
41852         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
41853         * lib/unsetenv.c (rpl_unsetenv): Work around it.
41854         Reported by Jim Meyering.
41855
41856         vasnprintf: avoid compiler warnings
41857         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
41858         variables.
41859         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
41860
41861 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41862
41863         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
41864         settings since xalloc-die is no longer the self test,
41865         xalloc-die.sh is.
41866
41867 2009-11-17  Jim Meyering  <meyering@redhat.com>
41868
41869         test-xalloc-die.sh: make the code agree with the commit log
41870         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
41871         at the end, just in case you happen to have a test-xalloc-die
41872         program in some other PATH directory.
41873
41874         test-xalloc-die.sh: fix a portability bug
41875         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
41876         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
41877         Otherwise, argv[0] (as often seen in diagnostics) would be too
41878         system-dependent, sometimes with, and sometimes without the leading "./".
41879
41880         version-etc-fsf: relax license to LGPLv3+
41881         * modules/version-etc-fsf (License): Relax license.
41882
41883 2009-11-16  Eric Blake  <ebb9@byu.net>
41884
41885         xalloc-die-tests: avoid printing null pointer
41886         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
41887         shell script.
41888         * tests/test-xalloc-die.c (program_name): Declare.
41889         * tests/test-xalloc-die.sh (tmpfiles): New file.
41890
41891         setenv, unsetenv: work around various bugs
41892         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
41893         (setenv) [HAVE_SETENV]: Work around bugs.
41894         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
41895         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
41896         for bugs.
41897         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
41898         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
41899         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
41900         * modules/stdlib (Makefile.am): Update substitutions.
41901         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
41902         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
41903         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41904         * modules/setenv-tests: New test.
41905         * modules/unsetenv-tests: Likewise.
41906         * tests/test-setenv.c: New file.
41907         * tests/test-unsetenv.c: Likewise.
41908
41909 2009-11-16  Jim Meyering  <meyering@redhat.com>
41910
41911         version-etc: relax license to LGPLv3+
41912         * modules/version-etc (License): Relax license.
41913
41914         better AC_REQUIRE expanded-before-required-warning avoidance
41915         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
41916         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
41917         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
41918         which is no longer needed.
41919
41920 2009-11-16  Eric Blake  <ebb9@byu.net>
41921
41922         test-freading: clean up temporary file
41923         * tests/test-freading.c (main): Remove file on success, and use
41924         ASSERT more liberally.
41925         Reported by Jim Meyering.
41926
41927 2009-11-16  Jim Meyering  <meyering@redhat.com>
41928
41929         avoid new AC_REQUIRE expanded-before-required warnings
41930         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
41931         merely using it.
41932         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
41933         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
41934
41935 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41936
41937         * tests/test-xalloc-die.c: New file.
41938         * modules/xalloc-die-tests: New file.
41939         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
41940         XFAIL_TESTS so it can be appended by modules.
41941
41942 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41943
41944         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
41945         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
41946
41947 2009-11-14  Eric Blake  <ebb9@byu.net>
41948
41949         fnmatch: avoid compiler warning
41950         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
41951         to silence compiler warning about mismatch signedness in ?:.
41952         Reported by Robert Millan.
41953
41954         intprops: add double-inclusion guard
41955         * lib/intprops.h: Allow idempotent includes.
41956         Suggested by Bruce Korb.
41957
41958         openat: detect Solaris fchownat bug
41959         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
41960         penalizing glibc chownat when only lchownat is broken.
41961         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
41962         trailing slash bugs.
41963         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
41964         * modules/openat-tests (Files): Include more files.
41965         (Depends-on): Add mgetgroups, sleep, stat-time.
41966         (configure.ac): Add additional checks.
41967         (Makefile.am): Build new test.
41968         * tests/test-fchownat.c: New file.
41969
41970         lchown: detect Solaris and FreeBSD bug
41971         * lib/lchown.c (rpl_lchown): Work around bug.
41972         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
41973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41974         * modules/unistd (Makefile.am): Populate it.
41975         * lib/unistd.in.h (lchown): Update declaration.
41976         * doc/posix-functions/lchown.texi (lchown): Document the bug.
41977         * modules/lchown-tests: New file.
41978         * tests/test-lchown.h (test_lchown): Likewise.
41979         * tests/test-lchown.c (main): Likewise.
41980
41981         chown: detect Solaris and FreeBSD bug
41982         * lib/chown.c (rpl_chown): Work around bug.
41983         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
41984         (gl_PREREQ_CHOWN): Delete.
41985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41986         * modules/unistd (Makefile.am): Populate it.
41987         * lib/unistd.in.h (chown): Update declaration.
41988         * lib/lchown.c (chown): Update client.
41989         * modules/lchown (Depends-on): Add lstat.
41990         * doc/posix-functions/chown.texi (chown): Document the bug.
41991         * doc/posix-functions/getgroups.texi (getgroups): Document
41992         getgroups pitfall.
41993         * modules/chown-tests: New file.
41994         * tests/test-chown.h (test_chown): Likewise.
41995         * tests/test-chown.c (main): Likewise.
41996
41997 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
41998
41999         gnulib-tool: correctly detect absence of m4 directories
42000         * gnulib-tool: Avoid extra newline on data passed to wc -l.
42001
42002 2009-11-14  Jim Meyering  <meyering@redhat.com>
42003
42004         maint.mk: Prohibit inclusion of "xalloc.h" without use.
42005         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42006
42007 2009-11-14  John W. Eaton  <jwe@gnu.org>
42008
42009         strftime.h: wrap function declaration in extern "C" block
42010         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
42011
42012 2009-11-13  Eric Blake  <ebb9@byu.net>
42013
42014         getgroups: avoid compiler warning
42015         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
42016
42017         getgroups: work around FreeBSD bug
42018         * lib/getgroups.c (rpl_getgroups): Work around the bug.
42019         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
42020         * doc/posix-functions/getgroups.texi (getgroups): Document it.
42021         * tests/test-getgroups.c (main): Fix buffer overrun.
42022
42023         getgroups: avoid compilation failure
42024         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
42025         * modules/getgroups (Depends-on): Add stdint.
42026
42027 2009-11-13  Jim Meyering  <meyering@redhat.com>
42028
42029         test-getgroups: avoid compilation failure
42030         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
42031
42032 2009-11-13  Eric Blake  <ebb9@byu.net>
42033
42034         mgetgroups: new module, taken from coreutils
42035         * modules/mgetgroups: New file.
42036         * lib/mgetgroups.h: Likewise.
42037         * lib/mgetgroups.c (mgetgroups): Likewise.
42038         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
42039         * MODULES.html.sh (Users and groups): Mention it.
42040
42041         getgroups: don't expose GETGROUPS_T to user
42042         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
42043         an element at a time if GETGROUPS_T is wrong size.
42044         * lib/getugroups.h (getugroups): Change signature.
42045         * lib/unistd.in.h (getgroups): Likewise.
42046         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
42047         signature needs fixing.
42048         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
42049         AC_TYPE_GETGROUPS.
42050         * modules/group-member (Depends-on): Add getgroups.
42051         * lib/group-member.c (group_info, get_group_info): Use gid_t.
42052         (group_member): Rely on getgroups replacement.
42053         * lib/getugroups.c (getugroups): Use gid_t.
42054         * tests/test-getgroups.c (main): Likewise.
42055         * NEWS: Mention the signature change.
42056         * doc/posix-functions/getgroups.texi (getgroups): Mention the
42057         problem with signature.
42058         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
42059         GETGROUPS_T is still useful for setgroups.
42060
42061         getgroups, getugroups: provide stubs for mingw
42062         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
42063         * lib/getugroups.c (getugroups): Likewise.
42064         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
42065         function.  Modernize replacement scheme.
42066         (gl_PREREQ_GETGROUPS): Delete.
42067         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
42068         * modules/getgroups (configure.ac): Declare witness.
42069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42070         * modules/unistd (Depends-on): Substitute witness.
42071         * lib/unistd.in.h (getgroups): Declare replacement.
42072
42073         getgroups: avoid calling exit
42074         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
42075         drop xalloc.
42076         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
42077         dependencies.
42078         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
42079         exiting, in the rare case of malloc failure.
42080
42081         getgroups: fix logic error
42082         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
42083         has more than 20 groups.
42084         * modules/getgroups-tests: New test.
42085         * tests/test-getgroups.c: New file.
42086
42087 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42088
42089         * tests/test-base64.c: Improve.
42090
42091 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42092
42093         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
42094         Blake <ebb9@byu.net>.
42095
42096 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42097
42098         * tests/test-xvasprintf.c: Add %s%s related checks.
42099
42100 2009-11-12  Eric Blake  <ebb9@byu.net>
42101
42102         version-etc: match standards.texi style
42103         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
42104         and use <> only for URLs.
42105
42106 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
42107
42108         fts: do not fail on a submount during traversal
42109         * lib/fts.c (fts_build): Read the stat info again after opening
42110         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
42111         Original report at http://bugzilla.redhat.com/501848.
42112
42113 2009-11-12  Jim Meyering  <meyering@redhat.com>
42114
42115         bootstrap: sync from coreutils
42116         * build-aux/bootstrap (bootstrap_epilogue): New function.
42117         Use git_modules_config in one more place.  This make bootstrap's
42118         --gnulib-srcdir option more useful for testing.
42119
42120         bootstrap: generalize autoheader check
42121         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
42122         AC_CONFIG_HEADERS.
42123
42124 2009-11-11  Eric Blake  <ebb9@byu.net>
42125
42126         mkfifoat: use new modules for Solaris and BSD bugs
42127         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
42128         * lib/mkfifoat.c (mknodat): Split...
42129         * lib/mknodat.c (mknodat): ...into new file.
42130         * modules/mkfifoat (Files): Ship new file.
42131         (Depends-on): Add mkfifo, mknod.
42132         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
42133         (Depends-on): Add symlink.
42134         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
42135         redundant with test_mkfifo.h.
42136         (do_mkfifoat, do_mknodat): New helpers.
42137
42138         mknod: new module
42139         * modules/mknod: New file.
42140         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
42141         * lib/mknod.c (mknod): Likewise.
42142         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42143         defaults.
42144         * modules/sys_stat (Makefile.am): Substitute them.
42145         * lib/sys_stat.in.h (mknod): Declare replacement.
42146         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42147         Document it.
42148         * doc/posix-functions/mknod.texi (mknod): Likewise.
42149         * modules/mknod-tests: New test.
42150         * tests/test-mknod.c: Likewise.
42151
42152         mkfifo: new module
42153         * modules/mkfifo: New file.
42154         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
42155         * lib/mkfifo.c (mkfifo): Likewise.
42156         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42157         defaults.
42158         * modules/sys_stat (Makefile.am): Substitute them.
42159         * lib/sys_stat.in.h (mkfifo): Declare replacement.
42160         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42161         Document it.
42162         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
42163         * modules/mkfifo-tests: New test.
42164         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
42165         from test-mkfifoat.c.
42166         * tests/test-mkfifo.c: New file.
42167
42168         readlink: detect FreeBSD bug
42169         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
42170         slash on symlink.
42171         * doc/posix-functions/readlink.texi (readlink): Document the bug.
42172         * tests/test-readlink.h (test_readlink): Enhance test.
42173
42174         symlink: detect FreeBSD bug
42175         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
42176         slash on symlink.
42177         * doc/posix-functions/symlink.texi (symlink): Document the bug.
42178         * tests/test-symlink.h (test_symlink): Enhance test.
42179
42180 2009-11-10  Eric Blake  <ebb9@byu.net>
42181
42182         link: detect FreeBSD bug
42183         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
42184         symlink.
42185         * doc/posix-functions/link.texi (link): Document the bug.
42186         * tests/test-link.h (test_link): Enhance test.
42187         * tests/test-linkat.c (main): Update caller.
42188
42189         unlink, remove: detect FreeBSD bug
42190         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
42191         slash on symlink.
42192         * doc/posix-functions/unlink.texi (unlink): Document the bug.
42193         * doc/posix-functions/remove.texi (remove): Likewise.
42194         * tests/test-unlink.h (test_unlink): Enhance test.
42195         * tests/test-remove.c (main): Likewise.
42196
42197 2009-11-09  Eric Blake  <ebb9@byu.net>
42198
42199         rename: detect FreeBSD bug
42200         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
42201         slash on symlink.
42202         * modules/renameat-tests (Depends-on): Add filenamecat.
42203         * tests/test-rename.h (test_rename): Allow one more errno.
42204         * tests/test-renameat.c (main): Likewise.
42205         * doc/posix-functions/rename.texi (rename): Document the bug.
42206
42207         open: detect FreeBSD bug
42208         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
42209         symlink.
42210         * doc/posix-functions/open.texi (open): Document the bug.
42211         * doc/posix-functions/utimes.texi (utimes): Likewise.
42212         * tests/test-open.h (test_open): Add parameters, and test symlink
42213         handling.
42214         * tests/test-open.c (main): Adjust caller.
42215         * tests/test-fcntl-safer.c (main): Likewise.
42216         * modules/open-tests (Depends-on): Add stdbool, symlink.
42217         * modules/fcntl-safer-tests (Depends-on): Likewise.
42218         * tests/test-openat.c (main): Add test-open tests.
42219
42220         stat: detect FreeBSD bug
42221         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
42222         symlink.
42223         * doc/posix-functions/stat.texi (stat): Document the bug.
42224         * tests/test-stat.h (test_stat_func): Add argument.
42225         * tests/test-stat.c (main): Adjust caller.
42226         * tests/test-fstatat.c (main): Likewise.
42227         * modules/stat-tests (Depends-on): Add stdbool, symlink.
42228         Reported by Jim Meyering.
42229
42230 2009-11-09  James Youngman  <jay@gnu.org>
42231
42232         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
42233         * lib/strftime.c: Correct placement of #include "ignore-value.h".
42234
42235 2009-11-08  Jim Meyering  <meyering@redhat.com>
42236
42237         utimens: remove invalid futimesat call
42238         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
42239         It used the file descriptor of the target file as the DIR_FD
42240         parameter and NULL as the file name.  That caused failure with
42241         errno == EFAULT on FreeBSD-8.0-rc2
42242
42243 2009-11-07  Eric Blake  <ebb9@byu.net>
42244
42245         fflush, freadseek: use fseeko, not fseek
42246         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
42247         (clear_ungetc_buffer): Avoid potential problems on large files.
42248         * lib/freadseek.c (freadseek): Likewise.
42249         * modules/freadseek (Depends-on): Add fseeko.
42250         * modules/fseek (configure.ac): Set a witness.
42251         * tests/test-fflush.c (main): Use fseeko.
42252         * tests/test-fpurge.c (fseek): Disable link warning.
42253         * tests/test-freadable.c (fseek): Likewise.
42254         * tests/test-freading.c (fseek): Likewise.
42255         * tests/test-fseeko.c (fseek): Likewise.
42256         * tests/test-ftell.c (fseek): Likewise.
42257         * tests/test-ftello.c (fseek): Likewise.
42258         * tests/test-fwritable.c (fseek): Likewise.
42259         * tests/test-fwriting.c (fseek): Likewise.
42260
42261 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42262
42263         * modules/memchr (Depends-on): Drop getpagesize dependency.
42264
42265 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42266
42267         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
42268         Reported by Ludovic Courtès.
42269         * build-aux/pmccabe2html: Improve example usage.
42270         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
42271
42272 2009-11-06  Jim Meyering  <meyering@redhat.com>
42273
42274         do-release-commit-and-tag: New module.
42275         Automate the release-commit and tag process.
42276         * build-aux/do-release-commit-and-tag: New script, from coreutils.
42277         * modules/do-release-commit-and-tag: New file.
42278         * MODULES.html.sh (Support for maintaining and releasing): Add it.
42279
42280 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42281
42282         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
42283         because test-select.c uses inet_pton.
42284
42285 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42286
42287         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
42288         GETADDRINFO_LIB.  Bump serial number.
42289         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
42290         Suggested by Eric Blake <ebb9@byu.net>.
42291
42292 2009-11-05  Eric Blake  <ebb9@byu.net>
42293
42294         strtod: detect darwin bug
42295         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
42296         Reported by Leo Davis.
42297
42298         freopen-safer: new module
42299         * modules/freopen-safer: New module.
42300         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
42301         * lib/freopen-safer.c (freopen_safer): New file.
42302         * lib/stdio-safer.h (freopen_safer): New declaration.
42303         * lib/stdio--.h (freopen): New override.
42304         * MODULES.html.sh (File stream based Input/Output): Mention it.
42305         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
42306         freopen-safer module.
42307         * doc/posix-functions/stderr.texi (stderr): Likewise.
42308         * doc/posix-functions/stdin.texi (stdin): Likewise.
42309         * doc/posix-functions/stdout.texi (stdout): Likewise.
42310         * modules/freopen-safer-tests: New test.
42311         * tests/test-reopen-safer.c: New file.
42312
42313 2009-11-05  Jim Meyering  <meyering@redhat.com>
42314
42315         maint.mk: Prohibit inclusion of "close-stream.h" without use.
42316         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42317
42318 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42319
42320         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
42321
42322 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42323
42324         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
42325
42326 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42327
42328         Fix link error.
42329         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42330         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42331
42332 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42333
42334         * tests/test-func.c: Also test value of __func__.
42335
42336 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42337
42338         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
42339         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
42340
42341 2009-11-05  Bruno Haible  <bruno@clisp.org>
42342
42343         Fix link error.
42344         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42345         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42346         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
42347
42348 2009-11-05  Bruno Haible  <bruno@clisp.org>
42349
42350         Tests for module 'inet_pton'.
42351         * modules/inet_pton-tests: New file.
42352         * tests/test-inet_pton.c: New file.
42353
42354 2009-11-05  Bruno Haible  <bruno@clisp.org>
42355
42356         Tests for module 'inet_ntop'.
42357         * modules/inet_ntop-tests: New file.
42358         * tests/test-inet_ntop.c: New file.
42359
42360 2009-11-04  Eric Blake  <ebb9@byu.net>
42361
42362         stdlib-safer: wrap all mkstemp variants
42363         * modules/mkostemp (configure.ac): Set witness.
42364         * modules/mkostemps (configure.ac): Likewise.
42365         * modules/mkstemps (configure.ac): Likewise.
42366         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
42367         (mkstemps_safer): Wrap more functions.
42368         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
42369         wrapping.
42370         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
42371         (mkstemps_safer): Implement the wrappers.
42372
42373         mkstemps, mkostemps: new modules
42374         * modules/mkostemps: New module.
42375         * modules/mkstemps: Likewise.
42376         * lib/mkostemps.c (mkostemps): New file.
42377         * lib/mkstemps.c (mkstemps): Likewise.
42378         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
42379         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
42380         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
42381         * modules/stdlib (Makefile.am): Substitute them.
42382         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
42383         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
42384         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
42385         * doc/gnulib.texi (Glibc stdlib.h): Include them.
42386         * MODULES.html.sh (File system functions): Mention them.
42387
42388         tempname: resync from glibc
42389         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
42390         same values for __GT_FILE as glibc.  Abort even when assertions
42391         are disabled.
42392         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
42393         match its value otherwise.  Allow idempotent inclusion.
42394         * lib/mkdtemp.c (mkdtemp): Adjust caller.
42395         * lib/mkostemp.c (mkostemp): Likewise.
42396         * lib/mkstemp.c (mkstemp): Likewise.
42397         * lib/tmpfile.c (tmpfile): Likewise.
42398         * NEWS: Document this.
42399
42400         utimens: fix use of futimens on older Linux
42401         * lib/utimens.c (fdutimens): Use updated, rather than original,
42402         timespec to avoid bug in older Linux kernel.
42403         Reported by Simon Josefsson.
42404
42405 2009-11-04  Bruno Haible  <bruno@clisp.org>
42406
42407         Make num_processors more flexible and consistent.
42408         * lib/nproc.h (enum nproc_query): New type.
42409         (num_processors): Add a 'query' argument.
42410         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
42411         (num_processors): Add a 'query' argument. Test the value of the
42412         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
42413         mingw, count the number of CPUs available for the current process.
42414         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
42415         Check for sched_getaffinity and sched_getaffinity_np.
42416         * modules/nproc (Depends-on): Add c-ctype, extensions.
42417         * NEWS: Mention the change.
42418
42419 2009-11-03  Bruno Haible  <bruno@clisp.org>
42420
42421         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
42422
42423 2009-11-03  Jim Meyering  <meyering@redhat.com>
42424
42425         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
42426         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
42427         if it is defined.
42428
42429 2009-11-02  Eric Blake  <ebb9@byu.net>
42430
42431         mktime, timegm: share common declaration
42432         * lib/mktime-internal.h: New file.
42433         * lib/mktime.c: Use it rather than open-coding a declaration.
42434         * lib/timegm.c: Likewise.
42435         * modules/mktime (Files): Ship it.
42436         * modules/timegm (Files): Likewise.
42437         Suggested by Bruno Haible.
42438
42439         test-update-copyright: update test to match script changes
42440         * tests/test-update-copyright.sh: Avoid hard-coding perl
42441         location.  Don't update *.bak created by earlier runs.
42442
42443 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42444             Simon Josefsson  <simon@josefsson.org>
42445             Bruno Haible  <bruno@clisp.org>
42446
42447         Fix link error on Solaris 8.
42448         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
42449         also in libnsl. Define also INET_PTON_LIB.
42450         * modules/inet_pton (Link): New section.
42451
42452 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42453             Bruno Haible  <bruno@clisp.org>
42454
42455         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
42456         * modules/inet_ntop (Link): New section.
42457         Reported by Boyan Kasarov <bkasarov@gmail.com>.
42458
42459 2009-11-02  Eric Blake  <ebb9@byu.net>
42460
42461         maint: avoid compiler warnings in m4 macros
42462         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
42463         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
42464
42465 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42466
42467         * m4/pmccabe2html.m4: Remove file.
42468         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
42469         function.  Change maintainer.
42470         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
42471         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
42472         Courtès).
42473
42474 2009-10-31  Eric Blake  <ebb9@byu.net>
42475
42476         fseeko: fix m4 regression
42477         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
42478         regression from 2009-10-27.
42479         Reported by Ralf Wildenhues.
42480
42481 2009-10-31  Jim Meyering  <meyering@redhat.com>
42482
42483         inttostr: aesthetics and improved (compile-time) safety
42484         Define inttype_is_signed rather than inttype_is_unsigned,
42485         since the sole use is via "#if inttype_is_signed".
42486         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
42487         inttype_is_unsigned.
42488         * lib/offtostr.c (inttype_is_signed): Likewise.
42489         * lib/uinttostr.c (inttype_is_signed): Likewise.
42490         * lib/umaxtostr.c (inttype_is_signed): Likewise.
42491         * lib/inttostr.c (inttostr): Use verify to cross-check the
42492         inttype_is_signed value and the signedness of the actual type.
42493         * modules/inttostr (Depends-on): Add verify.
42494
42495 2009-10-30  Eric Blake  <ebb9@byu.net>
42496
42497         build: avoid compiler warnings
42498         * lib/fchmodat.c (lchmod): Mark unused variables.
42499         * lib/getopt.c (_getopt_initialize): Likewise.
42500         * lib/mktime.c (__mktime_internal): Provide prototype.
42501         * lib/inttostr.c (inttostr): Avoid compiler warning even with
42502         older gcc that do not understand #pragma GCC diagnostic.
42503         * lib/uinttostr.c (inttype_is_unsigned): Define.
42504         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
42505
42506 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
42507
42508         stat: fix compilation on AIX
42509         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
42510         only see struct stat64.
42511
42512 2009-10-30  Eric Blake  <ebb9@byu.net>
42513
42514         exclude: make more robust
42515         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
42516         rather than masking a coding bug.
42517         Suggested by Bruno Haible.
42518
42519 2009-10-30  Jim Meyering  <meyering@redhat.com>
42520
42521         perl scripts: remove #!/usr/bin/perl in favor of more portable...
42522         Rather than putting #!/usr/bin/perl on the first line,
42523         start with a variant of what's recommended by "man perlrun" that
42524         invokes the first "perl" program from your shell's search path.
42525         * build-aux/gitlog-to-changelog: Replace #!... as above.
42526         Add a "Local Variables" perl mode setting.
42527         Prompted by a patch from Ludovic Courtès.
42528         Improved by Eric Blake.
42529         * build-aux/useless-if-before-free: Likewise.
42530         * build-aux/announce-gen: Likewise.
42531         * build-aux/update-copyright: Likewise.
42532
42533 2009-10-29  Eric Blake  <ebb9@byu.net>
42534
42535         filenamecat-lgpl: adjust clients
42536         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
42537         filenamecat.
42538         * modules/renameat (Depends-on): Likewise.
42539
42540         filenamecat: split into filenamecat-lgpl
42541         * modules/filenamecat-lgpl: New module.
42542         * modules/filenamecat (Files): Move library-safe files into
42543         filenamecat-lgpl.
42544         (Depends-on): Add filenamecat-lgpl.
42545         (configure.ac): Declare witness.
42546         * lib/filenamecat.h (file_name_concat): Only declare when using
42547         GPL module.
42548         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
42549         Move...
42550         * lib/filenamecat-lgpl.c: ...into new file.
42551         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
42552         (gl_FILE_NAME_CONCAT): Use it.
42553         * MODULES.html.sh (File system functions): Mention new module.
42554
42555         argp: avoid memory leak
42556         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
42557         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
42558         base_name, since the latter malloc()s and can call exit().
42559         Leak introduced 2006-07-03.
42560
42561         dirname-lgpl: adjust clients that don't need full dirname
42562         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
42563         * modules/filenamecat (Depends-on): Likewise.
42564         * modules/linkat (Depends-on): Likewise.
42565         * modules/mkancesdirs (Depends-on): Likewise.
42566         * modules/mkdir (Depends-on): Likewise.
42567         * modules/openat (Depends-on): Likewise.
42568         * modules/savewd (Depends-on): Likewise.
42569         * modules/rename (Depends-on): Likewise.
42570         (License): Relax license.
42571         * modules/mkdir-tests (Depends-on): Drop progname.
42572         (Makefile.am): Delete unneeded LDADD.
42573         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
42574
42575         dirname: split into dirname-lgpl
42576         * modules/dirname-lgpl: New module.
42577         * modules/dirname (Files): Move library-safe files into
42578         dirname-lgpl.
42579         (Depends-on): Add dirname-lgpl.
42580         (configure.ac): Declare witness.
42581         * modules/double-slash-root (License): Relax license.
42582         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
42583         module.
42584         * lib/dirname.c (dir_len, mdir_name): Move...
42585         * lib/dirname-lgpl.c: ...into new file.
42586         * lib/basename.c (last_component, base_len): Move...
42587         * lib/basename-lgpl.c: ...into new file.
42588         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
42589         (gl_DIRNAME): Use it.
42590         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
42591         Mention new module.
42592         * modules/dirname-tests (Depends-on): Add progname.
42593         * tests/test-dirname.c (program_name): Delete.
42594
42595         mkdir: make safe for libraries
42596         * modules/mkdir (Depends-on): Drop xalloc.
42597         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
42598         exit.
42599
42600         tests: avoid some compiler warnings
42601         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
42602         literals.
42603         * tests/test-memchr.c (main): Avoid type mismatch.
42604         * tests/test-arpa_inet.c (main): Avoid unused parameters.
42605         * tests/test-base64.c (main): Likewise.
42606         * tests/test-getdelim.c (main): Likewise.
42607         * tests/test-gethostname.c (main): Likewise.
42608         * tests/test-getline.c (main): Likewise.
42609         * tests/test-netinet_in.c (main): Likewise.
42610         * tests/test-select.c (open_server_socket, main): Likewise.
42611         * tests/test-select-stdin.c (main): Likewise.
42612         * tests/test-sockets.c (main): Likewise.
42613         * tests/test-strsignal.c (main): Likewise.
42614         * tests/test-sys_select.c (main): Likewise.
42615         * tests/test-sys_socket.c (main): Likewise.
42616         * tests/test-u64.c (main): Likewise.
42617         * tests/test-xfprintf-posix.c (main): Likewise.
42618         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
42619
42620         sockets: avoid compiler warning
42621         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
42622
42623         maint: detect usage(1) and other suspicious exits
42624         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
42625
42626 2009-10-29  Jim Meyering  <meyering@redhat.com>
42627
42628         timespec: long-to-int truncation could make timespec_cmp malfunction
42629         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
42630         a multiple of 2^32 nanoseconds as no difference.
42631
42632 2009-10-28  Jim Meyering  <meyering@redhat.com>
42633
42634         fprintftime: wrap macro code argument in "do {...} while(0)"
42635         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
42636         cpy macro must be a statement that can be followed by a semicolon.
42637         Now that the else clause contains a comment and is hence longer
42638         than one line, I require curly braces.  That in turn requires
42639         that we wrap this code block in the standard do...while(0).
42640
42641         fprintftime: remove stray semicolon from previous change
42642         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
42643
42644         fprintftime: avoid a warning about ignored fwrite return value
42645         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
42646         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
42647         that is unsafe.
42648         * modules/fprintftime (Depends-on): Add ignore-value.
42649
42650         exclude: avoid an unwarranted warning
42651         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
42652
42653 2009-10-27  Eric Blake  <ebb9@byu.net>
42654
42655         fseek: avoid compilation failure when fflush is replaced
42656         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
42657         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
42658         module is in use.
42659         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
42660         module is not in use; since REPLACE_FSEEK worked otherwise.
42661         (GNULIB_FTELLO): Likewise for ftell.
42662         Reported by Ian Beckwith and others.
42663
42664 2009-10-27  Bruno Haible  <bruno@clisp.org>
42665
42666         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
42667         Reported by Jim Meyering.
42668
42669 2009-10-27  Jim Meyering  <jim@meyering.net>
42670             Bruno Haible  <bruno@clisp.org>
42671
42672         Avoid warning despite dropping the return value of fwrite.
42673         * lib/unicodeio.c: Include ignore-value.h.
42674         (fwrite_success_callback): Explicitly ignore fwrite's return value.
42675         * modules/unicodeio (Depends-on): Add ignore-value.
42676
42677 2009-10-26  Eric Blake  <ebb9@byu.net>
42678
42679         areadlinkat: fix fallback path
42680         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
42681         pointer and zero.
42682
42683 2009-10-22  Pádraig Brady  <P@draigBrady.com>
42684
42685         Use a better IO block size for modern systems
42686         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
42687         * lib/md2.c: Likewise.
42688         * lib/md4.c: Likewise.
42689         * lib/md5.c: Likewise.
42690         * lib/sha1.c: Likewise.
42691         * lib/sha256.c: Likewise.
42692         * lib/sha512.c: Likewise.
42693
42694 2009-10-22  Eric Blake  <ebb9@byu.net>
42695
42696         tests: avoid several compiler warnings
42697         * tests/test-getcwd.c (main): Avoid buffer underflow.
42698         * tests/test-getdate.c (main): String literals are not safe with
42699         putenv, so use setenv.  Declare unused argument.
42700         * modules/getdate-tests (Depends-on): Add setenv.
42701         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
42702         problems with string literals in char *.
42703         * tests/test-hash.c (main): Avoid shadowing declaration.
42704         (insert_new): Treat string literals as char const *.
42705         * tests/test-getopt.h (test_getopt): Likewise.
42706         (getopt_loop): Alter types to minimize casting elsewhere.
42707         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
42708         (test_getopt_long_posix): Likewise.
42709         (do_getopt_long): Add wrapper to minimize casting.
42710         * tests/test-atexit.c (clear_temp_file): Use void.
42711         * tests/test-areadlink-with-size.c (main): Declare unused
42712         arguments.
42713         * tests/test-areadlink.c (main): Likewise.
42714         * tests/test-areadlinkat-with-size.c (main): Likewise.
42715         * tests/test-areadlinkat.c (main): Likewise.
42716         * tests/test-canonicalize-lgpl.c (main): Likewise.
42717         * tests/test-canonicalize.c (main): Likewise.
42718         * tests/test-dirent-safer.c (main): Likewise.
42719         * tests/test-dirname.c (main): Likewise.
42720         * tests/test-dup2.c (main): Likewise.
42721         * tests/test-fchdir.c (main): Likewise.
42722         * tests/test-fcntl-h.c (main): Likewise.
42723         * tests/test-fcntl-safer.c (main): Likewise.
42724         * tests/test-fdopendir.c (main): Likewise.
42725         * tests/test-fdutimensat.c (main): Likewise.
42726         * tests/test-fflush.c (main): Likewise.
42727         * tests/test-filenamecat.c (main): Likewise.
42728         * tests/test-filevercmp.c (main): Likewise.
42729         * tests/test-fopen-safer.c (main): Likewise.
42730         * tests/test-fopen.c (main): Likewise.
42731         * tests/test-fpending.c (main): Likewise.
42732         * tests/test-fpurge.c (main): Likewise.
42733         * tests/test-freading.c (main): Likewise.
42734         * tests/test-fstatat.c (main): Likewise.
42735         * tests/test-fsync.c (main): Likewise.
42736         * tests/test-futimens.c (main): Likewise.
42737         * tests/test-getndelim2.c (main): Likewise.
42738         * tests/test-gettimeofday.c (main): Likewise.
42739         * tests/test-getopt.c (main): Likewise.
42740         * tests/test-i-ring.c (main): Likewise.
42741         * tests/test-inttypes.c (main): Likewise.
42742         * tests/test-link.c (main): Likewise.
42743         * tests/test-lstat.c (main): Likewise.
42744         * tests/test-math.c (main): Likewise.
42745         * tests/test-md5.c (main): Likewise.
42746         * tests/test-memchr2.c (main): Likewise.
42747         * tests/test-memrchr.c (main): Likewise.
42748         * tests/test-mkdir.c (main): Likewise.
42749         * tests/test-mkdirat.c (main): Likewise.
42750         * tests/test-mkfifoat.c (main): Likewise.
42751         * tests/test-open.c (main): Likewise.
42752         * tests/test-openat-safer.c (main): Likewise.
42753         * tests/test-openat.c (main): Likewise.
42754         * tests/test-quotearg.c (main): Likewise.
42755         * tests/test-rawmemchr.c (main): Likewise.
42756         * tests/test-readlink.c (main): Likewise.
42757         * tests/test-remove.c (main): Likewise.
42758         * tests/test-rename.c (main): Likewise.
42759         * tests/test-renameat.c (main): Likewise.
42760         * tests/test-rmdir.c (main): Likewise.
42761         * tests/test-sha1.c (main): Likewise.
42762         * tests/test-signal.c (main): Likewise.
42763         * tests/test-sigaction.c (main): Likewise.
42764         * tests/test-stat.c (main): Likewise.
42765         * tests/test-stat-time.c (main): Likewise.
42766         * tests/test-stddef.c (main): Likewise.
42767         * tests/test-stdint.c (main): Likewise.
42768         * tests/test-stdio.c (main): Likewise.
42769         * tests/test-stdlib.c (main): Likewise.
42770         * tests/test-strchrnul.c (main): Likewise.
42771         * tests/test-strerror.c (main): Likewise.
42772         * tests/test-string.c (main): Likewise.
42773         * tests/test-strtod.c (main): Likewise.
42774         * tests/test-strverscmp.c (main): Likewise.
42775         * tests/test-symlink.c (main): Likewise.
42776         * tests/test-symlinkat.c (main): Likewise.
42777         * tests/test-sys_stat.c (main): Likewise.
42778         * tests/test-sys_time.c (main): Likewise.
42779         * tests/test-time.c (main): Likewise.
42780         * tests/test-unistd.c (main): Likewise.
42781         * tests/test-unlink.c (main): Likewise.
42782         * tests/test-unlinkat.c (main): Likewise.
42783         * tests/test-utimens.c (main): Likewise.
42784         * tests/test-utimensat.c (main): Likewise.
42785         * tests/test-version-etc.c (main): Likewise.
42786         * tests/test-wchar.c (main): Likewise.
42787         * tests/test-wctype.c (main): Likewise.
42788         * tests/test-xprintf-posix.c (main): Likewise.
42789         * tests/test-posixtm.c (main): Likewise.
42790         (STREQ): Delete unused macro.
42791         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
42792         shadowed variables.
42793         * tests/test-memchr.c (main): Likewise.
42794
42795 2009-10-21  Eric Blake  <ebb9@byu.net>
42796
42797         areadlinkat: avoid failure on older glibc
42798         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
42799         rather than mis-comparing 0 against FUNC_RESULT of char*.
42800
42801 2009-10-21  Bruno Haible  <bruno@clisp.org>
42802
42803         * modules/stpncpy (License): Relicense under LGPLv2+.
42804         Reported by David Lutterkort <lutter@redhat.com>.
42805
42806 2009-10-20  Eric Blake  <ebb9@byu.net>
42807
42808         utimensat: work around Solaris 9 bug
42809         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
42810         has trailing slash bugs.
42811         * tests/test-lutimens.h (test_lutimens): Enhance test.
42812         * tests/test-utimens.h (test_utimens): Likewise.
42813         * doc/posix-functions/utime.texi (utime): Enhance documentation.
42814         * doc/posix-functions/utimes.texi (utimes): Likewise.
42815         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42816         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
42817         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
42818         * doc/posix-functions/futimens.texi (futimens): Likewise.
42819
42820         fdutimensat: new module
42821         * modules/fdutimensat: New file.
42822         * lib/fdutimensat.c (fdutimensat): Likewise.
42823         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
42824         * MODULES.html.sh (File system functions): Mention module.
42825         * modules/fdutimensat-tests: New test.
42826         * tests/test-fdutimensat.c: Likewise.
42827
42828         doc: regenerate INSTALL
42829         * doc/INSTALL: Reflect recent autoconf update.
42830         * doc/INSTALL.ISO: Likewise.
42831         * doc/INSTALL.UTF-8: Likewise.
42832
42833 2009-10-20  Pádraig Brady  <P@draigBrady.com>
42834
42835         acl: warn if ACL support is not detected
42836         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
42837
42838 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
42839
42840         * lib/nproc.h: Add extern "C" block for C++.
42841
42842 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
42843             Bruno Haible  <bruno@clisp.org>
42844
42845         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
42846         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
42847         * doc/posix-functions/isalpha.texi: Likewise.
42848         * doc/posix-functions/isblank.texi: Likewise.
42849         * doc/posix-functions/iscntrl.texi: Likewise.
42850         * doc/posix-functions/isdigit.texi: Likewise.
42851         * doc/posix-functions/isgraph.texi: Likewise.
42852         * doc/posix-functions/islower.texi: Likewise.
42853         * doc/posix-functions/isprint.texi: Likewise.
42854         * doc/posix-functions/ispunct.texi: Likewise.
42855         * doc/posix-functions/isspace.texi: Likewise.
42856         * doc/posix-functions/isupper.texi: Likewise.
42857         * doc/posix-functions/isxdigit.texi: Likewise.
42858
42859 2009-10-18  Bruno Haible  <bruno@clisp.org>
42860
42861         Tests for module 'isblank'.
42862         * modules/isblank-tests: New file.
42863         * tests/test-isblank.c: New file.
42864
42865         New module 'isblank'.
42866         * lib/isblank.c: New file.
42867         * m4/isblank.m4: New file.
42868         * modules/isblank: New file.
42869         * doc/posix-functions/isblank.texi: Mention the new module.
42870
42871 2009-10-18  Bruno Haible  <bruno@clisp.org>
42872
42873         New module 'ctype'.
42874         * lib/ctype.in.h: New file.
42875         * m4/ctype.m4: New file.
42876         * modules/ctype: New file.
42877         * doc/posix-headers/ctype.texi: Mention the new module.
42878
42879 2009-10-18  Jim Meyering  <meyering@redhat.com>
42880
42881         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
42882         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
42883         right after its initialization, rather than farther down.
42884         Keeping these in close proximity makes it easier to ensure
42885         that each such variable is initialized.  E.g.,
42886
42887             LIB_CLOCK_GETTIME=
42888             AC_SUBST([LIB_CLOCK_GETTIME])
42889
42890         This change also increments these serial numbers.
42891         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
42892         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42893         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42894
42895 2009-10-18  Bruno Haible  <bruno@clisp.org>
42896
42897         Don't let environment variables perturb build.
42898         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
42899         (gl_PREREQ_GETHRXTIME): ... not here.
42900
42901 2009-10-18  Bruno Haible  <bruno@clisp.org>
42902
42903         Avoid symlink attack in localcharset module.
42904         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
42905         (O_NOFOLLOW): Define fallback.
42906         (get_charset_aliases): Don't open the file if it is a symbolic link.
42907         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
42908         gl_FCNTL_H.
42909         (gl_FCNTL_H): Require it.
42910         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
42911         * modules/localcharset (Files): Add m4/fcntl_h.m4.
42912         Reported by Fergal Glynn <fglynn@veracode.com>.
42913
42914 2009-10-18  Bruno Haible  <bruno@clisp.org>
42915
42916         Implement nproc for mingw.
42917         * lib/nproc.c: Include <windows.h>
42918         (num_processors): On native Windows platforms, try GetSystemInfo.
42919
42920 2009-10-18  Bruno Haible  <bruno@clisp.org>
42921
42922         Implement nproc for IRIX.
42923         * lib/nproc.c: Include <sys/sysmp.h>.
42924         (num_processors): On IRIX systems, try sysmp.
42925         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
42926
42927 2009-10-18  Bruno Haible  <bruno@clisp.org>
42928
42929         Implement nproc for HP-UX.
42930         * lib/nproc.c: Include <sys/pstat.h>
42931         (num_processors): On HP-UX systems, try pstat_getdynamic.
42932         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
42933         pstat_getdynamic.
42934
42935 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
42936             Bruno Haible  <bruno@clisp.org>
42937
42938         Implement nproc for NetBSD, OpenBSD.
42939         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
42940         (ARRAY_SIZE): New macro.
42941         (num_processors): On BSD systems, try sysctl of HW_NCPU.
42942         * m4/nproc.m4: New file.
42943         * modules/nproc (Files): Add m4/nproc.m4.
42944         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
42945         (Makefile.am): Instead, augment lib_SOURCES.
42946
42947 2009-10-18  Bruno Haible  <bruno@clisp.org>
42948
42949         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
42950         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
42951         sys/param.h.
42952
42953 2009-10-16  Eric Blake  <ebb9@byu.net>
42954
42955         utimensat: new module
42956         * modules/utimensat: New file.
42957         * lib/utimensat.c (utimensat): Likewise.
42958         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42959         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
42960         so we can work around Linux bugs.
42961         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42962         * modules/sys_stat (Makefile.am): Substitute them.
42963         * lib/sys_stat.in.h (utimensat): Declare it.
42964         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42965         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42966         * modules/utimensat-tests: New test.
42967         * tests/test-utimensat.c: Likewise.
42968
42969         utimens: let lutimens work on non-symlinks
42970         * lib/utimens.c (lutimens): Fall back to utimens rather than
42971         failing with ENOSYS, when file is not a symlink.
42972         (utimens): Reduce redirection.
42973         * tests/test-lutimens.h (test_lutimens): Update test to cover
42974         non-symlinks.
42975         * tests/test-utimens.h (test_utimens): Update test to cover
42976         symlinks.
42977         * tests/test-utimens.c (main): Update caller.
42978
42979         utimens: cache whether utimensat syscall works
42980         * lib/utimens.c (utimensat_works_really): New cache variable.
42981         (fdutimens, lutimens): Use it to avoid failing syscall.
42982
42983         test-stat-time, test-utimens: improve portability
42984         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
42985         ext4 on alpha, and for cygwin.
42986         * tests/test-utimens-common.h: New file.
42987         (nap): Factor delays into single function.
42988         * tests/test-lutimens.h (test_lutimens): Use new header.
42989         * tests/test-futimens.h (test_futimens): Likewise.
42990         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
42991         timestamps to occur from same machine, as was done previously for
42992         test_utimens.
42993         * modules/utimens-tests (Files): Ship new file.
42994         * modules/futimens-tests (Files): Likewise.
42995         Reported in part by Jim Meyering.
42996
42997         sys_stat: sort replacement declarations
42998         * lib/sys_stat.in.h: Sort declarations.
42999         * lib/futimens.c (futimens): Fix typo.
43000
43001 2009-10-15  Jim Meyering  <meyering@redhat.com>
43002
43003         don't let environment settings perturb build
43004         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
43005         could cause a configure-time and/or build-time malfunction.
43006         Typically, a configure-time function-in-library test is performed
43007         via code like this:
43008
43009           LIB_VAR=
43010           AC_SUBST([LIB_VAR])
43011           prefix_saved_LIBS=$LIBS
43012             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
43013                        [test "$ac_cv_search_FUNC" = "none required" ||
43014                         LIB_VAR=$ac_cv_search_FUNC])
43015           LIBS=$prefix_saved_LIBS
43016
43017         However, in each of the files affected by this change, the LIB_VAR=
43018         initialization was omitted.  Thus, when set in the environment, its
43019         value would propagate into generated Makefiles when FUNC is not found
43020         in LIB_NAME.
43021         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
43022         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43023         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43024
43025 2009-10-14  Eric Blake  <ebb9@byu.net>
43026
43027         fchdir: avoid infinite recursion in mingw
43028         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
43029         recursing.
43030
43031         test-stat-time: port to mingw
43032         * tests/test-stat-time.c (force_unlink): Return a value.
43033         (test_ctime) [W32]: Fix compilation error.
43034         (nap): Don't call usleep with too large an argument.  Use
43035         force_unlink.
43036         * doc/pastposix-functions/usleep.texi (usleep): Document the
43037         portability issue.
43038
43039 2009-10-13  Jim Meyering  <meyering@redhat.com>
43040
43041         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
43042         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
43043         * modules/pipe-filter-ii: Likewise.
43044         * modules/sys_socket-tests: Likewise.
43045         * modules/tsearch-tests: Likewise.
43046         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
43047         (check): Depend on it.
43048
43049 2009-10-12  Eric Blake  <ebb9@byu.net>
43050
43051         utimens-tests: port to NFS file systems
43052         * tests/test-utimens.h (test_utimens): Refactor utimecmp
43053         comparisons to avoid spurious failures from timestamp drift
43054         between NFS machines.
43055
43056 2009-10-12  Eric Blake  <ebb9@byu.net>
43057
43058         stat-time-tests: minor cleanups
43059         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
43060         * tests/test-stat-time.c (nap): Separate assignment from call.
43061         Suggested by Paolo Bonzini and Bruno Haible.
43062
43063         sys_stat: guarantee struct timespec
43064         * lib/sys_stat.in.h (includes): Always include <time.h>
43065         * modules/sys_stat (Depends-on): Add time.
43066         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
43067         mode_t permission values.
43068         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
43069         get at subsecond timestamps.
43070
43071 2009-10-10  Eric Blake  <ebb9@byu.net>
43072
43073         futimens: new module
43074         * modules/futimens: New file.
43075         * lib/futimens.c (futimens): Likewise.
43076         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
43077         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
43078         we can work around Linux bugs.
43079         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43080         * modules/sys_stat (Makefile.am): Substitute them.
43081         * lib/sys_stat.in.h (futimens): Declare it.
43082         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43083         * doc/posix-functions/futimens.texi (futimens): Likewise.
43084         * modules/futimens-tests: New test.
43085         * tests/test-futimens.c: Likewise.
43086
43087         utimens: introduce fdutimens
43088         * lib/utimens.h (fdutimens): New prototype.
43089         * lib/utimens.c (gl_futimens): Move guts...
43090         (fdutimens): ...to new interface.
43091         * tests/test-utimens.c (do_fdutimens): Use it.
43092
43093         utimens: add UTIME_NOW and UTIME_OMIT support
43094         * lib/utimens.c (validate_timespec, update_timespec): New helper
43095         functions.
43096         (gl_futimens, lutimens): Use them.
43097         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
43098         stdbool, sys_stat.
43099         (Link): Mention resulting library dependency.
43100         * modules/utimecmp (Link): Likewise.
43101         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
43102         (Makefile.am): Pick up library dependency.
43103         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
43104         definition.
43105         * tests/test-sys_stat.c: Test the definitions.
43106         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
43107         * NEWS: Document library dependency.
43108
43109         utimecmp: support symlink timestamps
43110         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
43111         hashing when possible.  Use pathconf when available.
43112         (SYSCALL_RESOLUTION): Recognize tighter resolution.
43113         * modules/utimecmp (Depends-on): Add lstat.
43114
43115         utimens: add lutimens interface
43116         * lib/utimens.c (lutimens): New function.
43117         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
43118         * lib/utimens.h (lutimens): Declare new interface.
43119         * tests/test-utimens.c (main): Enhance test.
43120         * tests/test-lutimens.h (test_lutimens): New file.
43121         * modules/utimens-tests (Files): Distribute it.
43122         (Depends-on): Add symlink.
43123         (configure.ac): Check for usleep.
43124
43125         utimens: validate futimens usage
43126         * lib/utimens.c (gl_futimens): Require valid fd up front, using
43127         fewer syscalls on failure later on.  Avoid compiler warning on
43128         mingw.
43129         * modules/utimens (Depends-on): Add dup2.
43130
43131         utimens: add test
43132         * modules/utimens-tests: New test.
43133         * tests/test-utimens.h: New file.
43134         * tests/test-futimens.h: Likewise.
43135         * tests/test-utimens.c: Likewise.
43136
43137         doc: mention timestamp portability issues
43138         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
43139         instead.
43140         * doc/posix-functions/utime.texi (utime): Likewise.
43141         * doc/posix-functions/utimes.texi (utimes): Likewise.
43142         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
43143         instead.
43144         * doc/posix-functions/futimens.texi (futimens): Mention utimens
43145         module.
43146         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43147         Mention weakness with symlink timestamps.
43148         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
43149         to utimensat/futimens instead.
43150         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
43151
43152         test-dup2: enhance test
43153         * tests/test-dup2.c (main): Also check AT_FDCWD.
43154
43155         test-stat-time: avoid more spurious failures
43156         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
43157         xfs; and avoid race if the two timestamps cross quantization edge.
43158
43159         relocatable: prefer 'file system' over 'filesystem'
43160         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
43161         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
43162         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
43163         * doc/relocatable.texi (Enabling Relocatability): Likewise.
43164         * lib/relocatable.c (compute_curr_prefix): Likewise.
43165
43166 2009-10-10  Jim Meyering  <meyering@redhat.com>
43167
43168         stat-time-tests: check for the usleep function
43169         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
43170
43171 2009-10-10  Bruno Haible  <bruno@clisp.org>
43172
43173         * modules/xnanosleep: Put the Link section after the Include section.
43174
43175 2009-10-09  Eric Blake  <ebb9@byu.net>
43176
43177         dup2: work around FreeBSD 6.1 bug
43178         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
43179         * doc/posix-functions/dup2.texi (dup2): Document it.
43180         Reported by Nelson H. F. Beebe and Jim Meyering.
43181
43182         test-stat-time: port to buggy NFS clients
43183         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
43184         (test_ctime): Also skip test if mtime and ctime are skewed.
43185
43186         maint: prefer 'file system' over 'filesystem'
43187         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43188         * doc/posix-functions/lstat.texi (lstat): Likewise.
43189         * lib/file-has-acl.c (file_has_acl): Likewise.
43190         * lib/fwriteerror.c [TEST]: Likewise.
43191         * tests/test-areadlink.h (test_areadlink): Likewise.
43192         * tests/test-areadlinkat-with-size.c (main): Likewise.
43193         * tests/test-areadlinkat.c (main): Likewise.
43194         * tests/test-canonicalize-lgpl.c (main): Likewise.
43195         * tests/test-canonicalize.c (main): Likewise.
43196         * tests/test-fstatat.c (main): Likewise.
43197         * tests/test-linkat.c (main): Likewise.
43198         * tests/test-lstat.h (test_lstat_func): Likewise.
43199         * tests/test-mkdir.h (test_mkdir): Likewise.
43200         * tests/test-readlink.h (test_readlink): Likewise.
43201         * tests/test-remove.c (main): Likewise.
43202         * tests/test-rename.h (test_rename): Likewise.
43203         * tests/test-renameat.c (main): Likewise.
43204         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43205         * tests/test-symlink.h (test_symlink): Likewise.
43206         * tests/test-symlinkat.c (main): Likewise.
43207         * tests/test-unlink.h (test_unlink_func): Likewise.
43208         * tests/test-unlinkat.c (main): Likewise.
43209
43210         maint: make realtime library usage explicit
43211         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
43212         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
43213         * modules/settime (Link): Likewise.
43214         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
43215
43216         test-stat-time: speed up execution
43217         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
43218         warning on mingw.
43219         (nap): New helper function.
43220         (prepare_test): Use it to reduce sleep time.
43221         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
43222         execution.
43223         * modules/stat-time-tests (configure.ac): Check for usleep.
43224
43225 2009-10-09  Jim Meyering  <meyering@redhat.com>
43226
43227         selinux-h: always use getfilecon wrappers
43228         * lib/getfilecon.c: New file.
43229         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
43230         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
43231         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
43232         (fgetfilecon): Provide a stub.
43233         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
43234         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
43235         file unconditionally.
43236         When <selinux/selinux.h> is found, arrange to use wrappers.
43237         * modules/selinux-h (Files): Add getfilecon.c.
43238         (Makefile.am): Substitute include-next-related bits
43239         into the now-always-generated selinux/selinux.h file.
43240         * doc/glibc-functions/lgetfilecon.texi: New file.
43241         * doc/glibc-functions/fgetfilecon.texi: New file.
43242         * doc/glibc-functions/getfilecon.texi: New file.
43243         * doc/glibc-functions/getfilecon-desc.texi: New file.
43244         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
43245         which to pull in the new files.
43246         * MODULES.html.sh (Misc): Add selinux-h.
43247
43248 2009-10-08  Jim Meyering  <meyering@redhat.com>
43249
43250         unistd: fix comment typo
43251         * lib/unistd.in.h (euidaccess): Fix a comment typo.
43252
43253 2009-10-08  Eric Blake  <ebb9@byu.net>
43254
43255         areadlink: use SIZE_MAX consistently
43256         * modules/areadlink (Depends-on): Add stdint.
43257         * modules/areadlink-with-size (Depends-on): Likewise.
43258         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
43259         gives NULL; drop sys/types, since unistd gives size_t; and add
43260         stdint for SIZE_MAX.
43261         (SIZE_MAX): Rely on headers.
43262         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
43263         and add stdint.
43264         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
43265         (SIZE_MAX): Likewise.
43266         (INITIAL_BUF_SIZE): Turn into enum.
43267         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
43268
43269 2009-10-08  Jim Meyering  <meyering@redhat.com>
43270
43271         areadlinkat: avoid compilation failure
43272         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
43273         Fix typo in comment.
43274
43275 2009-10-07  Eric Blake  <ebb9@byu.net>
43276
43277         areadlinkat-with-size: new module
43278         * modules/areadlinkat-with-size: New module.
43279         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
43280         * lib/areadlink.h (areadlinkat): Declare it.
43281         * MODULES.html.sh (File system functions): Mention it.
43282         * modules/areadlinkat-with-size-tests: New test.
43283         * tests/test-areadlinkat-with-size.c: New file.
43284
43285         xreadlinkat: new module
43286         * modules/xreadlinkat: New module.
43287         * lib/xreadlinkat.c (xreadlinkat): New file.
43288         * lib/xreadlink.h (xreadlinkat): Declare it.
43289         * MODULES.html.sh (File system functions): Mention it.
43290
43291         areadlinkat: new module
43292         * lib/at-func.c (FUNC_FAIL): New define.
43293         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
43294         * modules/areadlinkat: New module.
43295         * lib/linkat.c (areadlinkat): Move...
43296         * lib/areadlinkat.c (areadlinkat): ...to new file.
43297         * lib/areadlink.h (areadlinkat): Declare it.
43298         * modules/linkat (Depends-on): Add areadlinkat.
43299         * MODULES.html.sh (File system functions): Mention it.
43300         * modules/areadlinkat-tests: New test.
43301         * tests/test-areadlinkat.c: New file.
43302
43303         areadlink, areadlink-with-size: add tests
43304         * modules/areadlink-tests: New test.
43305         * modules/areadlink-with-size-tests: Likewise.
43306         * tests/test-areadlink.h: New file.
43307         * tests/test-areadlink.c: Likewise.
43308         * tests/test-areadlink-with-size.c: Likewise.
43309
43310         maint: minor cleanups
43311         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
43312         _UNUSED_PARAMETER_ instead.
43313         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
43314         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
43315         * modules/linkat-tests (Files): Distribute test-link.h.
43316
43317         openat, utimens: whitespace cleanup
43318         * lib/openat.c: Prefer space throughout, rather than mix of 8
43319         spaces vs. tabs.
43320         * lib/at-func.c: Likewise.
43321         * lib/utimens.c: Likewise.
43322
43323         openat: avoid using wrong fd
43324         * lib/openat.c (openat_permissive): Reject user's fd if saving the
43325         working directory chooses same fd.
43326         * lib/at-func.c (AT_FUNC_NAME): Likewise.
43327
43328         mkdir, mkdirat: fix cygwin 1.5.x bug
43329         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
43330         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
43331         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
43332         bug.
43333         (gl_PREREQ_MKDIR): Delete unused macro.
43334         * modules/mkdir (Files): Track file rename.
43335         (configure.ac): Update macro name.
43336         * modules/openat (Depends-on): Add mkdir.
43337         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
43338
43339         mkdir, mkdirat: add tests
43340         * modules/mkdir-tests: New test.
43341         * tests/test-mkdir.h: New file.
43342         * tests/test-mkdir.c: Likewise.
43343         * tests/test-mkdirat.c: Likewise.
43344         * modules/openat-tests (Files): Add new files.
43345         (Makefile.am): Run new test.
43346
43347 2009-10-06  Eric Blake  <ebb9@byu.net>
43348
43349         doc: tweak *at function documentation
43350         * doc/posix-functions/faccessat.texi (faccessat): Mention
43351         known issue with replacement.
43352         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
43353         * doc/posix-functions/linkat.texi (linkat): Likewise.
43354         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43355         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43356         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43357         * doc/posix-functions/renameat.texi (renameat): Likewise.
43358         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43359
43360         openat: fix GNU/Hurd bug in unlinkat
43361         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
43362         broken.
43363         * doc/posix-functions/unlink.texi (unlink): Document this.
43364         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
43365
43366         fdopendir: fix GNU/Hurd bug
43367         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
43368         allowing non-directory fds.
43369         * lib/fdopendir.c (rpl_fdopendir): Work around it.
43370         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
43371         * modules/dirent (Makefile.am): Substitute it.
43372         * lib/dirent.in.h (fdopendir): Declare replacement.
43373         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
43374         * tests/test-fdopendir.c (main): Test something other than
43375         /dev/null, since on Hurd that behaves like a directory.
43376
43377         test-symlink: port to GNU/Hurd
43378         * tests/test-symlink.h (test_symlink): Relax expected errno.
43379
43380         doc: tweak more cygwin information
43381         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
43382         now compatible with glibc.
43383         * doc/posix-functions/getopt.texi (getopt): Likewise.
43384
43385         getopt-gnu: add another test
43386         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
43387         guarantee behavior relied on by m4.
43388         * tests/test-getopt.c (main): Use it.
43389         * modules/getopt-posix-tests (Depends-on): Add setenv.
43390         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
43391
43392         getopt: fix compilation on darwin
43393         * lib/getopt.in.h (includes): Leave breadcrumbs during system
43394         include.
43395         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
43396         Reported by Ludovic Courtès.
43397
43398 2009-10-06  Bruno Haible  <bruno@clisp.org>
43399
43400         * modules/size_max (Description): Discourage its use.
43401         Reported by Simon Josefsson.
43402
43403 2009-10-06  Jim Meyering  <meyering@redhat.com>
43404
43405         linkat: avoid compilation failure
43406         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
43407
43408 2009-10-05  Eric Blake  <ebb9@byu.net>
43409
43410         linkat: support Linux 2.6.17
43411         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
43412         linkat on Linux, but allow cache variable override.
43413         * lib/linkat.c (rpl_linkat): Define override.
43414         * modules/linkat (Depends-on): Add symlinkat.
43415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
43416         * modules/unistd (Makefile.am): Substitute it.
43417         * lib/unistd.in.h (linkat): Declare replacement.
43418         Reported by Pádraig Brady.
43419
43420         quotearg: port test to systems with C.UTF-8 locale
43421         * tests/test-quotearg.c (struct result_strings): Add another
43422         member, differentiating between C.ASCII and C.UTF-8 handling.
43423         (compare_strings): Add parameter.
43424         (main): Adjust all callers.
43425
43426         getopt: avoid clash with FreeBSD _getopt_internal
43427         * lib/getopt.in.h (_getopt_internal): Override the name.
43428         * lib/getopt_int.h (includes): Pick up any overrides.
43429         Reported by Reuben Thomas.
43430
43431         hash: allow C89 compilation
43432         * lib/hash.c (check_tuning): Move declaration before statement.
43433         Reported by Reuben Thomas.
43434
43435 2009-10-05  Karl Berry  <karl@gnu.org>
43436
43437         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
43438
43439 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
43440             Bruno Haible  <bruno@clisp.org>
43441
43442         * lib/uname.c (uname): Use a table-driven algorithm to compute
43443         Windows NT versions.
43444
43445 2009-10-04  Bruno Haible  <bruno@clisp.org>
43446
43447         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
43448         program_invocation_short_name.
43449         * modules/progname (configure.ac): Test for presence of
43450         program_invocation_short_name.
43451         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43452
43453 2009-10-04  Bruno Haible  <bruno@clisp.org>
43454
43455         * lib/progname.c (set_program_name): Fix comment.
43456         Reported by Jim Meyering.
43457
43458 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43459             Bruno Haible  <bruno@clisp.org>
43460
43461         * lib/uname.c: Include <string.h>.
43462         (uname): Do only one call to GetVersionEx in the common case.
43463
43464 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43465             Bruno Haible  <bruno@clisp.org>
43466
43467         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
43468         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
43469         (uname): Add support for Windows CE and various non-x86 CPU types.
43470
43471 2009-10-03  Bruno Haible  <bruno@clisp.org>
43472
43473         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
43474         invocation to tests/configure.ac.
43475         Reported by Ian Beckwith <ianb@erislabs.net>.
43476
43477 2009-10-02  Eric Blake  <ebb9@byu.net>
43478
43479         fchdir: avoid compiler warning
43480         * lib/fchdir.c (canonicalize_file_name)
43481         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
43482
43483         test-open: support mingw errno values
43484         * tests/test-open.h (test_open): Relax test.
43485         * tests/test-fopen.h (test_fopen): Likewise.
43486         * tests/test-openat-safer.c (main): Likewise.
43487
43488         open: fix opening directory on mingw
43489         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
43490
43491         test-open: on GNU/Hurd, /dev/null is a directory
43492         * tests/test-fopen.h (main): Rename...
43493         (test_fopen): ...to this.  Use a guaranteed non-directory when
43494         confirming open behavior on trailing slash.
43495         * tests/test-openat-safer.c (main): Likewise.
43496         * tests/test-open.h (main): Likewise....
43497         (test_open): ...to this.
43498         * tests/test-fopen.c (main): Adjust caller.
43499         * tests/test-fopen-safer.c (main): Likewise.
43500         * tests/test-open.c (main): Likewise.
43501         * tests/test-fcntl-safer.c (main): Likewise.
43502         Reported by Samuel Thibault.
43503
43504         rename, fchdir: don't ignore chdir failure
43505         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
43506         * lib/rename.c (rpl_rename) [W32]: Likewise.
43507         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
43508         an empty destination directory if source cannot be renamed,
43509         although there is still possibility for failure.
43510         * doc/posix-functions/rename.texi (rename): Document the race.
43511         Reported by Jim Meyering.
43512
43513         maint: cleanup whitespace in recent commits
43514         * lib/rename.c (rpl_rename): Remove tabs.
43515         * tests/test-link.h (test_link): Likewise.
43516         * lib/fchdir.c (get_name): Likewise.
43517         Reported by Jim Meyering.
43518
43519 2009-10-02  Ben Pfaff  <blp@gnu.org>
43520
43521         relocatable-prog-wrapper: Add missing dependency on
43522         double-slash-root.
43523         * modules/relocatable-prog-wrapper: Add dependency.
43524         Reported by Ian Beckwith <ianb@erislabs.net>.
43525
43526 2009-10-02  Eric Blake  <ebb9@byu.net>
43527
43528         renameat: fix Solaris bugs
43529         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
43530         needed fixing.
43531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
43532         * modules/stdio (Makefile.am): Substitute it.
43533         * lib/stdio.in.h (renameat): Declare replacement.
43534         * lib/renameat.c (rpl_renameat): Implement fix.
43535
43536         renameat: new module
43537         * modules/renameat: New file.
43538         * lib/renameat.c (renameat): Likewise.
43539         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
43540         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43541         * modules/stdio (Makefile.am): Substitute them.
43542         * lib/stdio.in.h (renameat): Declare it.
43543         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43544         * doc/posix-functions/renameat.texi (renameat): Likewise.
43545         * modules/renameat-tests: New test.
43546         * tests/test-renameat.c: Likewise.
43547
43548         rename: fix mingw bugs
43549         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
43550         directory overwrite bugs.
43551
43552         rename: fix another cygwin 1.5 bug
43553         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
43554         checks.
43555         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
43556         unnecessary cygwin workarounds.  Also work around bug with moving
43557         full directory onto an empty one.
43558         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
43559
43560         rename-dest-slash: merge into rename module
43561         * modules/rename-dest-slash (Status): Mark obsolete.
43562         (Depends-on): Add rename.
43563         (Files): Let rename do it all.
43564         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
43565         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
43566         * m4/rename-dest-slash.m4: ...so this file can be deleted.
43567         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
43568         * lib/rename.c (rpl_rename): Update comments.
43569
43570         rename: fix cygwin 1.5.x bugs
43571         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
43572         * lib/rename.c (rpl_rename): Work around them.
43573         * modules/rename (Depends-on): Add same-inode.
43574
43575         rename: fix Solaris 10 bug
43576         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43577         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
43578         was the only bug.
43579
43580         rename: fix Solaris 9 bug
43581         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
43582         on non-directory.  Avoid calling exit.
43583         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
43584         strdup.
43585         * modules/rename-tests (Depends-on): Drop lstat.
43586         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43587         (gl_PREREQ_RENAME): Delete unused macro.
43588
43589         rename-dest-slash: fix NetBSD bug
43590         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
43591         links.
43592         * modules/rename-dest-slash (Depends-on): Add same-inode.
43593
43594         rename-tests: new test, exposes several platform bugs
43595         * modules/rename-tests: New file.
43596         * tests/test-rename.h: Likewise.
43597         * tests/test-rename.c: Likewise.
43598         * doc/posix-functions/rename.texi (rename): Improve documentation,
43599         including bugs that will eventually be fixed in gnulib.
43600
43601 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
43602
43603         * lib/uname.c: Include <stdlib.h>
43604         (uname): Assume version info is available.
43605
43606 2009-10-02  Jim Meyering  <meyering@redhat.com>
43607
43608         gnu-web-doc-update: correct --help output
43609         * build-aux/gnu-web-doc-update: Make --help output relevant.
43610
43611         gnu-web-doc-update: add standard options
43612         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
43613
43614         gnu-web-doc-update: New module.
43615         Use this script to automatically update the on-line web documentation
43616         for your GNU project at http://www.gnu.org/software/$pkg/manual/
43617         * modules/gnu-web-doc-update: New file, from coreutils.
43618         * build-aux/gnu-web-doc-update: New script.
43619
43620 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
43621
43622         link: LoadLibrary is not needed.
43623         * lib/link.c: Use GetModuleHandle.
43624
43625 2009-10-01  Eric Blake  <ebb9@byu.net>
43626
43627         getopt: bump serial number
43628         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
43629         change.
43630
43631         tests: tighten link, rmdir, and remove tests
43632         * tests/test-link.h (includes): No need to use <config.h> here.
43633         Clean up if directory hard link was created, otherwise test for
43634         trailing '.'.
43635         * tests/test-linkat.c (main): Simplify.
43636         * tests/test-remove.c (main): Enhance test for trailing '.'.
43637         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43638
43639 2009-10-01  Jim Meyering  <meyering@redhat.com>
43640
43641         maint.mk: requiring "make major" was annoying, for a "minor" release.
43642         What is intended is "stable", to contrast with alpha and beta,
43643         so require "make stable", not "make major".
43644         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
43645         (get_tool_versions): Likewise.
43646         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
43647
43648 2009-09-30  Ben Pfaff  <blp@gnu.org>
43649
43650         Fix broken build of replacement for Windows tmpfile().
43651         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
43652         flags argument added along with the 'mkostemp' module.
43653
43654 2009-09-28  Bruno Haible  <bruno@clisp.org>
43655
43656         Avoid identifier clash with POSIX function 'remove' defined as a macro.
43657         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
43658         to 'remove_elt'.
43659         (gl_list_remove): Update.
43660         * lib/gl_list.c (gl_list_remove): Update.
43661         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
43662         to 'remove_elt'.
43663         (gl_oset_remove): Update.
43664         * lib/gl_list.c (gl_oset_remove): Update.
43665         Reported by Eric Blake.
43666
43667 2009-09-28  Eric Blake  <ebb9@byu.net>
43668
43669         doc: mention yet more cygwin 1.7 status
43670         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
43671         cygwin.
43672         * doc/glibc-functions/execvpe.texi (execvpe): New file.
43673         * doc/gnulib.texi (Glibc unistd.h): Mention it.
43674
43675         argp: fix test failure
43676         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
43677         that are not upper-case.  Pass correct range to tolower.
43678
43679 2009-09-27  Jim Meyering  <meyering@redhat.com>
43680
43681         test-yesno: work around sparc-dash here-document infelicity
43682         Without this change, the literal \177 byte in a here document
43683         would make dash 0.5.5.1-3 access uninitialized memory.
43684         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
43685         Instead, use a marker, "@", and filter through tr to create the desired
43686         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
43687
43688 2009-09-27  Bruno Haible  <bruno@clisp.org>
43689
43690         Disable untested support for new flavours of ACLs on AIX.
43691         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
43692         progress.
43693         * lib/set-mode-acl.c (qset_acl): Likewise.
43694
43695 2008-12-07  Bruno Haible  <bruno@clisp.org>
43696
43697         Add support for new flavours of ACLs on AIX. (Untested.)
43698         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
43699         (file_has_acl): Add support for newer AIX.
43700         * lib/set-mode-acl.c (qset_acl): Likewise.
43701         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
43702         Rainer Tammer <tammer@tammer.net>.
43703
43704 2009-09-26  Eric Blake  <ebb9@byu.net>
43705
43706         argp: fix compilation of getopt
43707         * lib/getopt.in.h (includes): Use different guard than glibc.
43708         Reported by Sergey Poznyakoff.
43709
43710         doc: mention more cygwin 1.7 status
43711         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
43712         bug.
43713         * doc/posix-functions/execl.texi (execl): Likewise.
43714         * doc/posix-functions/execle.texi (execle): Likewise.
43715         * doc/posix-functions/execlp.texi (execlp): Likewise.
43716         * doc/posix-functions/execv.texi (execv): Likewise.
43717         * doc/posix-functions/execve.texi (execve): Likewise.
43718         * doc/posix-functions/execvp.texi (execvp): Likewise.
43719         * doc/glibc-functions/canonicalize_file_name.texi
43720         (canonicalize_file_name): Cygwin 1.7 now provides this.
43721         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
43722         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
43723         on AT_SYMLINK_NOFOLLOW.
43724
43725 2009-09-24  Eric Blake  <ebb9@byu.net>
43726
43727         test-linkat: make test more robust
43728         * tests/test-linkat.c (main): Avoid collision with EEXIST.
43729
43730         getopt: fix inclusion guards for cygwin
43731         * modules/getopt-posix (Depends-on): Add include-next.
43732         (Makefile.am): Substitute more items in replacement header.
43733         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
43734         <getopt.h>.
43735         * lib/getopt.in.h (includes): Use split inclusion guard, and
43736         prefer <getopt.h> over include <unistd.h> when one is present.
43737         (option): Also override name of 'struct option'.
43738
43739         same-inode: revert prior change; it is not yet ready
43740         * NEWS: Undo mention of this change.
43741         * lib/same-inode.h (same-inode.h): Undo tri-state change.
43742         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43743         * lib/cycle-check.c (cycle_check): Likewise.
43744         * lib/same.c (same_name): Likewise.
43745         * lib/at-func2.c (at_func2): Likewise.
43746
43747 2009-09-23  Eric Blake  <ebb9@byu.net>
43748
43749         linkat: new module
43750         * modules/linkat: New file.
43751         * lib/at-func2.c (at_func2): Likewise.
43752         * lib/linkat.c (linkat): Likewise.
43753         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
43754         * lib/openat-priv.h (at_func2): Add declaration.
43755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43756         * modules/unistd (Makefile.am): Substitute them.
43757         * lib/unistd.in.h (linkat): Declare it.
43758         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43759         * doc/posix-functions/linkat.texi (linkat): Likewise.
43760         * doc/posix-functions/link.texi (link): Tweak wording.
43761         * tests/test-link.c (main): Move guts...
43762         * tests/test-link.h (test_link): ...into new file.
43763         * modules/linkat-tests: New test.
43764         * tests/test-linkat.c: Likewise.
43765         * modules/link-tests (Files): Ship new file.
43766         (Depends-on): Add stdbool.
43767
43768         dirname: add library-safe mdir_name
43769         * lib/dirname.h (mdir_name): New prototype.
43770         * lib/dirname.c (dir_name): Move guts...
43771         (mdir_name): ...to new function that avoids xalloc_die.
43772
43773         fchdir: another mingw fix
43774         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
43775         * lib/fchdir.c (get_name): New helper method; skips canonicalize
43776         on mingw (where it has not yet been ported), and make it optional
43777         elsewhere.
43778         (_gl_register_fd): Use it.
43779
43780         same-inode: make SAME_INODE tri-state, to port to mingw
43781         * NEWS: Mention this change.
43782         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
43783         st_ino always being 0.
43784         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43785         * lib/cycle-check.c (cycle_check): Likewise.
43786         * lib/same.c (same_name): Likewise.
43787
43788         lstat: avoid mingw compilation error
43789         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
43790         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
43791         lstat ourselves.
43792         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
43793         was adequate.
43794         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
43795         the checks for lstat.
43796         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
43797
43798         link: fix test failure on Solaris 9
43799         * lib/link.c (rpl_link): Don't assume link will catch bogus
43800         trailing slash on source.
43801
43802         test-symlinkat: enhance test
43803         * tests/test-readlink.c (main): Move guts...
43804         * tests/test-readlink.h (test_readlink): ...into new file.
43805         * tests/test-symlink.c (main): Move guts...
43806         * tests/test-symlink.h (test_symlink): ...into new file.
43807         * tests/test-symlinkat.c (main): Use new files for further
43808         coverage.
43809         (do_symlink, do_readlink): New helper functions.
43810         * modules/symlink-tests (Files): Ship new file.
43811         (Depends-on): Add stdbool.
43812         * modules/readlink-tests (Files): Ship new file.
43813         (Depends-on): Add stdbool.
43814         * modules/symlinkat-tests (Files): Use new files.
43815
43816 2009-09-23  Eric Blake  <ebb9@byu.net>
43817
43818         readlink: document portability issue with symlink length
43819         * doc/posix-functions/lstat.texi (lstat): Mention that some file
43820         systems have bogus st_size on symlinks, and mention the
43821         areadlink-with-size module.
43822         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43823         * doc/posix-functions/readlink.texi (readlink): Mention the
43824         areadlink module, and ERANGE failure.
43825         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43826         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
43827
43828         readlink: fix Solaris 9 bug with trailing slash
43829         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
43830         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
43831         * doc/posix-functions/readlink.texi (readlink): Document this.
43832         * modules/readlink-tests: New test.
43833         * tests/test-readlink.c: Likewise.
43834
43835         readlink: fix cygwin 1.5.x bug with return type
43836         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
43837         * lib/unistd.in.h (readlink): Use ssize_t.
43838         * lib/readlink.c (readlink): Likewise.
43839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43840         * modules/unistd (Makefile.am): Substitute it.
43841         * lib/unistd.in.h (readlink): Declare replacement.
43842         * doc/posix-functions/readlink.texi (readlink): Document this.
43843
43844         symlink: use throughout gnulib
43845         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
43846         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
43847         symlink is not used.
43848         * modules/symlinkat (Depends-on): Add symlink.
43849         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43850         * modules/canonicalize-tests (Depends-on): Likewise.
43851         * modules/lstat-tests (Depends-on): Likewise.
43852         * modules/openat-tests (Depends-on): Likewise.
43853         * modules/remove-tests (Depends-on): Likewise.
43854         * modules/rmdir-tests (Depends-on): Likewise.
43855         * modules/unlink-tests (Depends-on): Likewise.
43856         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
43857         * tests/test-canonicalize.c (symlink): Likewise.
43858         * tests/test-fstatat.c (symlink): Likewise.
43859         * tests/test-lstat.c (symlink): Likewise.
43860         * tests/test-remove.c (symlink): Likewise.
43861         * tests/test-rmdir.c (symlink): Likewise.
43862         * tests/test-unlink.c (symlink): Likewise.
43863         * tests/test-unlinkat.c (symlink): Likewise.
43864
43865         symlink: new module, for Solaris 9 bug
43866         * modules/symlink: New file.
43867         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
43868         * lib/symlink.c: Likewise.
43869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43870         * modules/unistd (Makefile.am): Substitute them.
43871         * lib/unistd.in.h (symlink): Declare replacement.
43872         * MODULES.html.sh (File system functions): Mention it.
43873         * doc/posix-functions/symlink.texi (symlink): Likewise.
43874         * modules/symlink-tests: New test.
43875         * tests/test-symlink.c: Likewise.
43876
43877 2009-09-23  Bruno Haible  <bruno@clisp.org>
43878
43879         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
43880         when needed.
43881         Test case: gnulib-tool --import --with-tests atexit inttypes.
43882         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
43883
43884 2009-09-23  Bruno Haible  <bruno@clisp.org>
43885
43886         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
43887         subcommand, not in a subshell.
43888
43889 2009-09-22  Eric Blake  <ebb9@byu.net>
43890
43891         unistd: sort replacement declarations
43892         * lib/unistd.in.h: Sort declarations.
43893
43894         open, openat: minor optimization
43895         * lib/open.c (open): If open succeeded, len is non-zero.
43896         * lib/openat.c (rpl_openat): Likewise.
43897
43898         link-follow: ensure correct result
43899         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
43900         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
43901         distinguish between possible failures.
43902
43903 2009-09-21  Eric Blake  <ebb9@byu.net>
43904
43905         fts: avoid compiler warning
43906         * lib/fts.c (dirent_inode_sort_may_be_useful)
43907         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
43908
43909 2009-09-19  Bruno Haible  <bruno@clisp.org>
43910
43911         * lib/progreloc.c (canonicalize_file_name): New declaration.
43912
43913 2009-09-19  Eric Blake  <ebb9@byu.net>
43914
43915         link: fix quoting
43916         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
43917
43918         openat: fix openat bugs on Solaris 9
43919         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
43920         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
43921         * modules/openat (Depends-on): Add open.
43922         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
43923         * modules/fcntl-h (Makefile.am): Substitute it.
43924         * lib/fcntl.in.h (openat): Declare replacement.
43925         * doc/posix-functions/openat.texi (openat): Document this.
43926
43927         openat: move fstatat and unlinkat into correct files
43928         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
43929         compiled.
43930         * lib/openat.c (fstatat, unlinkat): Move...
43931         * lib/fstatat.c (fstatat): ...into correct files.
43932         * lib/unlinkat.c (unlinkat): Likewise.
43933
43934         openat: fix unlinkat bugs on Solaris 9
43935         * lib/unlinkat.c (unlinkat): New file.
43936         * modules/openat (Depends-on): Add unlink.
43937         (Files): Distribute it.
43938         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
43939         trailing slash behavior is broken.
43940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43941         * modules/unistd (Makefile.am): Substitute it.
43942         * lib/unistd.in.h (unlinkat): Declare replacement.
43943         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
43944
43945         openat: fix fstatat bugs on Solaris 9
43946         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
43947         stat.
43948         * doc/posix-functions/fstatat.texi (fstatat): Document this.
43949
43950         test-unlinkat: enhance test, to expose Solaris 9 bug
43951         * tests/test-unlink.c (main): Factor guts...
43952         * tests/test-unlink.h (test_rmdir_func): ...into new file.
43953         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
43954         * tests/test-rmdir.c (main): Adjust caller.
43955         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
43956         (unlinker): New helper function.
43957         (rmdirat): Enhance check.
43958         * modules/rmdir-tests (Depends-on): Add stdbool.
43959         * modules/unlink-tests (Depends-on): Likewise.
43960         (Files): Add test-unlink.h.
43961         * modules/openat-tests (Files): Likewise.
43962         (Depends-on): Add unlinkdir.
43963
43964         test-fstatat: new test, to expose Solaris 9 bugs
43965         * tests/test-stat.c (main): Factor guts...
43966         * tests/test-stat.h (test_stat_func): ...into new file.
43967         * tests/test-lstat.c (main): Factor guts...
43968         * tests/test-lstat.h (test_lstat_func): ...into new file.
43969         * tests/test-fstatat.c: New file.
43970         * modules/stat-tests (Files): Add test-stat.h.
43971         * modules/lstat-tests (Files): Add test-lstat.h.
43972         (Depends-on): Add stdbool.
43973         * modules/openat-tests (Depends-on): Add pathmax.
43974         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
43975         (Makefile.am): Run new test.
43976
43977         remove: new module, for mingw and Solaris 9 bugs
43978         * modules/remove: New file.
43979         * lib/remove.c: Likewise.
43980         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
43981         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43982         * modules/stdio (Makefile.am): Use them.
43983         * lib/stdio.in.h (remove): Declare replacement.
43984         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43985         * doc/posix-functions/remove.texi (remove): Likewise.
43986         * modules/remove-tests: New test.
43987         * tests/test-remove.c: Likewise.
43988
43989         unlink: new module, for Solaris 9 bug
43990         * modules/unlink: New file.
43991         * lib/unlink.c: Likewise.
43992         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
43993         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43994         * modules/unistd (Makefile.am): Use them.
43995         * lib/unistd.in.h (stat): Declare replacement.
43996         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43997         * doc/posix-functions/unlink.texi (unlink): Likewise.
43998         * modules/unlink-tests: New test.
43999         * tests/test-unlink.c: Likewise.
44000
44001         lstat: fix Solaris 9 bug
44002         * lib/lstat.c (lstat): Also check for trailing slash on
44003         non-symlink, non-directories.  Use stat module to simplify logic.
44004         * doc/posix-functions/lstat.texi (lstat): Document it.
44005         * modules/lstat-tests (Depends-on): Add errno, same-inode.
44006         (configure.ac): Check for symlink.
44007         * tests/test-lstat.c (main): Add more tests.
44008
44009         stat: add as dependency to other modules
44010         * modules/chown (Depends-on): Add stat.
44011         * modules/euidaccess (Depends-on): Likewise.
44012         * modules/fchdir (Depends-on): Likewise.
44013         * modules/isdir (Depends-on): Likewise.
44014         * modules/link (Depends-on): Likewise.
44015         * modules/lstat (Depends-on): Likewise.
44016         * modules/mkdir-p (Depends-on): Likewise.
44017         * modules/modechange (Depends-on): Likewise.
44018         * modules/open (Depends-on): Likewise.
44019         * modules/readlink (Depends-on): Likewise.
44020         * modules/same (Depends-on): Likewise.
44021
44022         stat: fix Solaris 9 bug
44023         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
44024         slash.
44025         * lib/stat.c (rpl_stat): Work around it.
44026         * doc/posix-functions/stat.texi (stat): Update documentation.
44027
44028         stat: new module, for mingw bug
44029         * modules/stat: New file.
44030         * lib/stat.c: Likewise.
44031         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
44032         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44033         * modules/sys_stat (Makefile.am): Use them.
44034         * lib/sys_stat.in.h (stat): Declare replacement.
44035         * lib/openat.c (fstatat): Deal with lstat and stat being function
44036         macros.
44037         * modules/openat (Depends-on): Add inline.
44038         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44039         * doc/posix-functions/stat.texi (stat): Likewise.
44040         * modules/stat-tests: New test.
44041         * tests/test-stat.c: Likewise.
44042
44043 2009-09-19  Jim Meyering  <meyering@redhat.com>
44044
44045         syntax-check: detect unnecessary inclusion of canonicalize.h
44046         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
44047
44048 2009-09-19  Eric Blake  <ebb9@byu.net>
44049
44050         canonicalize-lgpl: adjust clients to use correct header
44051         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44052         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
44053         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
44054         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
44055         * lib/progreloc.c (includes): Likewise.
44056
44057 2009-09-19  Jim Meyering  <meyering@redhat.com>
44058
44059         test-posixtm.c: correct a comment
44060         * tests/test-posixtm.c: Correct first-line comment.
44061         Spotted by Eric Blake.
44062
44063 2009-09-16  Jim Meyering  <meyering@redhat.com>
44064
44065         posixtm-tests: make T const-correct; add a test case
44066         * tests/test-posixtm.c (T): Declare const.
44067         Add a test for -(2^31+1).
44068         Remove useless can-succeed-only-in-2002 test.
44069
44070         posixtm-tests: adjust the sole failing test
44071         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
44072         expected output matches what mktime now produces.  Cross-checked via
44073         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
44074
44075         posixtm: move #ifdef'd tests into a new module
44076         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
44077         * tests/test-posixtm.c: ... this new file.
44078         * modules/posixtm-tests: New module.
44079
44080 2009-09-19  Eric Blake  <ebb9@byu.net>
44081
44082         openat: simplify use of at-func.c
44083         * lib/at-func.c (includes): Include prerequisites here, to
44084         simplify requirements on client files.
44085         * lib/openat-priv.h: Add double-inclusion guard.
44086         * lib/faccessat.c (includes): Simplify.
44087         * lib/fchmodat.c (includes): Likewise.
44088         * lib/fchownat.c (includes): Likewise.
44089         * lib/mkdirat.c (includes): Likewise.
44090         * lib/mkfifoat.c (includes): Likewise.
44091         * lib/symlinkat.c (includes): Likewise.
44092
44093         openat: allow return of fd 0
44094         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
44095         * modules/save-cwd (Depends-on): Replace fcntl-safer with
44096         unistd-safer.
44097         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
44098         <fcntl.h>; this module does not leak fds.
44099         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
44100         must be allowed to return 0, leaving openat_safer to add the
44101         safety.
44102         (openat_permissive): Avoid writing to just-opened fd 2 if
44103         restoring the current directory fails.
44104         * lib/openat-die.c (openat_restore_fail): Add comment.
44105         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
44106         (save_cwd): Guarantee safe fd, but without use of open_safer.
44107         * tests/test-openat.c: New test.
44108         * modules/openat-tests (Files, Makefile.am): Distribute and build
44109         new file.
44110
44111         relocatable-prog-wrapper: fix build
44112         * modules/relocatable-prog-wrapper (Files): Update name of
44113         canonicalize m4 file, broken on 2009-09-17.
44114         Reported by emad hajjar <aleppos@hotmail.com>.
44115
44116 2009-09-19  Bruno Haible  <bruno@clisp.org>
44117
44118         * lib/safe-alloc.h: Use the standard header with GPL copyright.
44119         * lib/safe-alloc.c: Likewise.
44120         Reported by Ian Beckwith <ianb@erislabs.net>.
44121
44122 2009-09-18  Bruno Haible  <bruno@clisp.org>
44123
44124         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
44125         Reported by <erobles@sensacd.com.mx>.
44126
44127 2009-09-17  Eric Blake  <ebb9@byu.net>
44128
44129         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
44130         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
44131         slashes when checking if last component is missing.
44132         * tests/test-canonicalize.c (main): Test this.
44133
44134         canonicalize, canonicalize-lgpl: honor // if distinct from /
44135         * modules/canonicalize (Files): Add double-slash-root.m4.
44136         * modules/canonicalize-lgpl (Files): Likewise.
44137         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44138         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
44139         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
44140         fallback definition.
44141         (canonicalize_filename_mode): Use it to protect //.
44142         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
44143         (__realpath): Likewise.
44144         * tests/test-canonicalize.c (main): Test this.
44145         * tests/test-canonicalize-lgpl.c (main): Likewise.
44146         * modules/canonicalize-tests (Depends-on): Add same-inode.
44147         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44148
44149         canonicalize-lgpl: fix glibc bug with trailing slash
44150         * m4/canonicalize-lgpl.m4: Move contents...
44151         * m4/canonicalize.m4: ...here.
44152         (gl_CANONICALIZE_LGPL): Factor realpath check...
44153         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
44154         glibc 2.3.5 bug, fixed 2005-04-27.
44155         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
44156         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
44157         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
44158         * modules/canonicalize-lgpl (Files): Manage file rename.
44159         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44160         * modules/stdlib (Makefile.am): Substitute witness.
44161         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
44162         is needed.
44163         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
44164         replacement is required.
44165         * lib/canonicalize.c (canonicalize_file_name): Likewise.
44166         * doc/glibc-functions/canonicalize_file_name.texi
44167         (canonicalize_file_name): Document this.
44168         * doc/posix-functions/realpath.texi (realpath): Likewise.
44169
44170         canonicalize-lgpl: reject non-directory with trailing slash
44171         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
44172         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
44173         catches failures in glibc 2.3.5.
44174         * tests/test-canonicalize.c (main): Likewise.
44175
44176         canonicalize-lgpl: use native realpath if it works
44177         * lib/canonicalize-lgpl.c (realpath): Guard with
44178         FUNC_REALPATH_WORKS.
44179         * lib/stdlib.in.h (realpath): Make declaration optional based on
44180         HAVE_REALPATH.
44181         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
44182         native realpath works.
44183         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44184         * modules/stdlib (Makefile.am): Substitute witness.
44185
44186         canonicalize, canonicalize-lgpl: use <stdlib.h>
44187         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
44188         (Include): Mention <stdlib.h>.
44189         (configure.ac): Mention functions we provide.
44190         * modules/canonicalize (configure.ac): Likewise.
44191         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
44192         realpath if canonicalize_file_name is missing.
44193         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
44194         * modules/stdlib (Makefile.am): Substitute witnesses.
44195         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
44196         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
44197         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
44198         * NEWS: Document this.
44199         * doc/glibc-functions/canonicalize_file_name.texi
44200         (canonicalize_file_name): Likewise.
44201         * doc/posix-functions/realpath.texi (realpath): Likewise.
44202         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
44203
44204         test-canonicalize: consolidate into single C program
44205         * tests/test-canonicalize.sh: Delete; move setup into...
44206         * tests/test-canonicalize.c (main): ...the program, making it
44207         easier to run in debugger.  Add some tests.
44208         * modules/canonicalize-tests (Files): Remove unused file.
44209         (Depends-on): Add progname.
44210         (configure.ac, Makefile.am): Simplify.
44211
44212         test-canonicalize-lgpl: consolidate into single C program
44213         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
44214         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
44215         easier to run in debugger.  Add some tests.
44216         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
44217         (configure.ac, Makefile.am): Simplify.
44218
44219         canonicalize: avoid resolvepath
44220         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
44221         unnecessary checks.
44222         * lib/canonicalize.c (includes): Simplify.
44223         (canonicalize_file_name): Drop resolvepath implementation.
44224         * modules/canonicalize (Depends-on): Drop filenamecat.
44225
44226         canonicalize: don't lose errno
44227         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
44228         over calls to free.
44229
44230         canonicalize: simplify errno handling
44231         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
44232         assignment.
44233
44234         canonicalize, canonicalize-lgpl: update module dependencies
44235         * modules/canonicalize (Depends-on): Add extensions, lstat,
44236         pathmax, stdlib.
44237         (Files): Drop pathmax.h.
44238         (configure.ac): Adjust macro name.
44239         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
44240         lstat, stdlib, sys_stat.
44241         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
44242         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
44243         extensions.
44244         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
44245         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
44246         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
44247         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
44248         declaration, if available.
44249         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
44250         we can rely on the readlink module.
44251         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
44252         (includes): Use <unistd.h> unconditionally.
44253
44254 2009-09-17  Eric Blake  <ebb9@byu.net>
44255
44256         maint: make Include sections of modules consistent
44257         * modules/alloca: Use only header name; no need to list #include.
44258         * modules/alloca-opt: Likewise.
44259         * modules/arpa_inet: Likewise.
44260         * modules/canon-host: Likewise.
44261         * modules/configmake: Likewise.
44262         * modules/dirent: Likewise.
44263         * modules/eealloc: Likewise.
44264         * modules/environ: Likewise.
44265         * modules/fchdir: Likewise.
44266         * modules/fcntl: Likewise.
44267         * modules/fcntl-h: Likewise.
44268         * modules/gethrxtime: Likewise.
44269         * modules/gettime: Likewise.
44270         * modules/ignore-value: Likewise.
44271         * modules/inet_ntop: Likewise.
44272         * modules/inet_pton: Likewise.
44273         * modules/inttypes: Likewise.
44274         * modules/isnand-nolibm: Likewise.
44275         * modules/isnanf-nolibm: Likewise.
44276         * modules/mbchar: Likewise.
44277         * modules/mbfile: Likewise.
44278         * modules/mbiter: Likewise.
44279         * modules/mbuiter: Likewise.
44280         * modules/netdb: Likewise.
44281         * modules/netinet_in: Likewise.
44282         * modules/nproc: Likewise.
44283         * modules/pagealign_alloc: Likewise.
44284         * modules/poll: Likewise.
44285         * modules/printf-frexp: Likewise.
44286         * modules/pthread: Likewise.
44287         * modules/putenv: Likewise.
44288         * modules/random_r: Likewise.
44289         * modules/relocatable-prog: Likewise.
44290         * modules/search: Likewise.
44291         * modules/select: Likewise.
44292         * modules/selinux-h: Likewise.
44293         * modules/settime: Likewise.
44294         * modules/signal: Likewise.
44295         * modules/size_max: Likewise.
44296         * modules/socklen: Likewise.
44297         * modules/ssize_t: Likewise.
44298         * modules/stdarg: Likewise.
44299         * modules/stdbool: Likewise.
44300         * modules/stddef: Likewise.
44301         * modules/stdint: Likewise.
44302         * modules/stdio: Likewise.
44303         * modules/stdlib: Likewise.
44304         * modules/string: Likewise.
44305         * modules/strings: Likewise.
44306         * modules/sys_file: Likewise.
44307         * modules/sys_ioctl: Likewise.
44308         * modules/sys_select: Likewise.
44309         * modules/sys_socket: Likewise.
44310         * modules/sys_stat: Likewise.
44311         * modules/sys_time: Likewise.
44312         * modules/sys_times: Likewise.
44313         * modules/sys_utsname: Likewise.
44314         * modules/sys_wait: Likewise.
44315         * modules/sysexits: Likewise.
44316         * modules/time: Likewise.
44317         * modules/times: Likewise.
44318         * modules/tmpfile: Likewise.
44319         * modules/trim: Likewise.
44320         * modules/unistd: Likewise.
44321         * modules/wchar: Likewise.
44322         * modules/wctype: Likewise.
44323
44324 2009-09-17  Bruno Haible  <bruno@clisp.org>
44325
44326         Make getdate.y compile on QNX and NetBSD 5 / i386.
44327         * m4/getdate.m4 (gl_GETDATE): Conditionally define
44328         TIME_T_FITS_IN_LONG_INT.
44329         * lib/getdate.y (long_time_t): New type.
44330         (relative_time): Change type of 'seconds' field to long_time_t.
44331         (get_date): Update types of local variables. Check against overflow
44332         during conversion from long_time_t to time_t.
44333         Reported by Matt Kraai <kraai@ftbfs.org>
44334         and Hasso Tepper <hasso@netbsd.org>.
44335
44336 2009-09-17  Bruno Haible  <bruno@clisp.org>
44337
44338         * modules/COPYING: Update copyright years.
44339         * modules/README: Likeiwse.
44340         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
44341         Reported by Ian Beckwith <ianb@erislabs.net>.
44342
44343 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44344
44345         * users.txt: Update references for gnuit package.
44346
44347 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44348
44349         * m4/getdelim.m4: Fix typo in copyright line.
44350
44351 2009-09-17  Bruno Haible  <bruno@clisp.org>
44352
44353         * lib/atoll.c: Use the standard header with GPL copyright.
44354         * lib/argz.in.h: Likewise.
44355         * lib/glob.c: Likewise.
44356         * lib/glob-libc.h: Likewise.
44357         * lib/random_r.c: Likewise.
44358         * lib/siglist.h: Likewise.
44359         * lib/strsignal.c: Likewise.
44360         Reported by Ian Beckwith <ianb@erislabs.net>.
44361
44362 2009-09-17  Eric Blake  <ebb9@byu.net>
44363
44364         rmdir: ensure correct dependency order
44365         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
44366
44367 2009-09-17  Bruno Haible  <bruno@clisp.org>
44368
44369         Disable assertion that fails on NetBSD 5 / i386.
44370         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
44371         Reported by Sam Steingold <sds@gnu.org>
44372         and Hasso Tepper <hasso@netbsd.org>.
44373
44374 2009-09-16  Eric Blake  <ebb9@byu.net>
44375
44376         unlinkdir: port to mingw
44377         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
44378         on which no one can unlink a directory.
44379
44380         stdlib: sort witness names
44381         * modules/stdlib (Makefile.am): Sort replacements.
44382         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44383         * lib/stdlib.in.h: Likewise.
44384
44385         parse-duration-tests: avoid link failure
44386         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
44387         LIBINTL.
44388         Reported by Tom G. Christensen.
44389
44390         openat-tests: ensure unlinkat behaves like rmdir
44391         * tests/test-rmdir.c (main): Factor guts...
44392         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
44393         * modules/rmdir-tests (Files): Ship new file.
44394         * modules/openat-tests: New test.
44395         * tests/test-unlinkat.c: Likewise.
44396
44397         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
44398         * modules/rmdir-errno (Status, Notice): Now obsolete.
44399
44400         rmdir: work around cygwin 1.5.x and mingw bugs
44401         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
44402         * lib/rmdir.c (rmdir): Work around it.
44403         * modules/rmdir (Status, Notice): No longer obsolete.
44404         (Files): Add dos.m4.
44405         (Depends-on): Add unistd.
44406         (configure.ac): Set witnesses.
44407         (License): Relax to LGPLv2+.
44408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
44409         * modules/unistd (Makefile.am): Substitute witnesses.
44410         * lib/unistd.in.h (rmdir): Declare replacement.
44411         * doc/posix-functions/rmdir.texi (rmdir): Document this.
44412         * modules/rmdir-tests: New tests.
44413         * tests/test-rmdir.c: Likewise.
44414
44415 2009-09-15  Eric Blake  <ebb9@byu.net>
44416
44417         fchdir: improve use of replacement functions
44418         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
44419         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
44420         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
44421         REPLACE_CLOSEDIR.
44422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
44423         * modules/sys_stat (Makefile.am): Substitute correct witness.
44424         * modules/dirent (Makefile.am): Likewise.
44425         * modules/unistd (Makefile.am): Likewise.
44426         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
44427         * lib/unistd.in.h (dup): Likewise.
44428         * lib/sys_stat.in.h (fstat): Likewise.
44429
44430         maint: ignore gnulib-tool temp files
44431         * .gitignore: Ignore files created during gnulib-tool --test.
44432
44433 2009-09-13  Jim Meyering  <meyering@redhat.com>
44434
44435         posixtm: don't reject a time that specify "60" as the number of seconds
44436         * lib/posixtm.c (posixtime): The code to reject invalid dates
44437         would also reject a time specified with the .60 suffix.
44438         But POSIX allows that, in order to accommodate leap seconds.
44439         So don't reject it.
44440         (main): Adjust tests accordingly.
44441         * modules/posixtm (Depends-on): Add stpcpy.
44442
44443 2009-09-11  Jim Meyering  <meyering@redhat.com>
44444
44445         announce-gen: include [$release_type] in emitted Subject:
44446         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
44447         e.g., [stable] in the emitted Subject: line.
44448
44449 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44450
44451         Remove obsolete macros from several modules.
44452         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
44453         obsolete Autoconf macros with their modern counterparts.
44454         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
44455         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
44456         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
44457         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
44458         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
44459         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44460         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44461         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44462         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
44463         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
44464         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
44465         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
44466         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
44467         * m4/sockets.m4 (gl_SOCKETS): Likewise.
44468         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
44469         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
44470         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
44471         * m4/time_r.m4 (gl_TIME_R): Likewise.
44472         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
44473         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
44474         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44475
44476         Fix copyright header in build-aux scripts.
44477         * build-aux/git-version-gen: Fix copyright header to match GPLv3
44478         recommendation.
44479         * build-aux/ncftpput-ftp: Likewise.
44480         * build-aux/update-copyright: Likewise.
44481
44482 2009-09-09  Eric Blake  <ebb9@byu.net>
44483
44484         test-link: allow Linux choice of errno
44485         * tests/test-link.c (main): Relax test for alternate error.
44486
44487         strndup: fix improper m4 caching
44488         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
44489         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
44490         (gl_PREREQ_STRNDUP): Delete.
44491         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
44492         * modules/string (Makefile.am): Substitute it.
44493         * lib/string.in.h (strndup): Modernize prototype.
44494
44495         getcwd: port to mingw
44496         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
44497         different from the POSIX assumptions made throughout the getcwd
44498         module; fortunately, the mingw getcwd does not need replacement.
44499         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
44500         * modules/getcwd-tests: New test.
44501         * tests/test-getcwd.c: Likewise.
44502
44503         link: fix platform bugs
44504         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
44505         * lib/link.c (link): Work around them.  Fix related mingw bug.
44506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
44507         * modules/unistd (Makefile.am): Substitute it.
44508         * lib/unistd.in.h (link): Declare replacement.
44509         * doc/posix-functions/link.texi (link): Document this.
44510         * modules/link (Depends-on): Add strdup-posix, sys_stat.
44511
44512         test-link: consolidate into single C program, test more cases
44513         * tests/test-link.sh: Delete.
44514         * tests/test-link.c: Test more error conditions.  Exposes bugs on
44515         at least Cygwin and Solaris.
44516         * modules/link-tests (Files): Remove unused file.
44517         (Depends-on): Add errno, sys_stat.
44518         (Makefile.am): Simplify.
44519
44520 2009-09-08  Bruno Haible  <bruno@clisp.org>
44521
44522         Work around towlower, towupper bug on mingw.
44523         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
44524         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
44525         * doc/posix-functions/towlower.texi: Mention the mingw bug.
44526         * doc/posix-functions/towupper.texi: Likewise.
44527         Reported by Eric Blake.
44528
44529 2009-09-08  Jim Meyering  <meyering@redhat.com>
44530
44531         build: don't try to run autoheader if we don't use it
44532         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
44533         is not used in configure.ac.
44534
44535 2009-09-08  Eric Blake  <ebb9@byu.net>
44536
44537         euidaccess: fix compilation error
44538         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
44539
44540         rawmemchr: relax license
44541         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
44542         okay.
44543         Reported by Jim Meyering.
44544
44545         mkfifoat: new module
44546         * modules/mkfifoat: New file.
44547         * lib/mkfifoat.c: Likewise.
44548         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
44549         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44550         * modules/sys_stat (Makefile.am): Use them.
44551         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
44552         * MODULES.html.sh (File system functions): Mention module.
44553         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44554         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44555         * modules/mkfifoat-tests: New test.
44556         * tests/test-mkfifoat.c: Likewise.
44557
44558         strchrnul: relax license
44559         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
44560         okay.
44561         Reported by Jim Meyering.
44562
44563 2009-09-08  Eric Blake  <ebb9@byu.net>
44564
44565         fstatat: fix compilation on Solaris
44566         * lib/fstatat.c (includes): Add fcntl.h.
44567         Reported by Pádraig Brady.
44568
44569 2009-09-07  Eric Blake  <ebb9@byu.net>
44570
44571         rename: modernize replacement
44572         * modules/rename (Depends-on): Add stdio.
44573         (configure.ac): Declare witness.
44574         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
44575         stdio take care of replacement.
44576         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
44577         * modules/stdio (Makefile.am): Substitute them.
44578         * lib/stdio.in.h (rename): Declare replacement.
44579         * lib/rename.c (includes): Allow cross-compilation to non-windows
44580         machines.
44581         * doc/posix-functions/rename.texi (rename): Improve
44582         documentation.
44583
44584         stdio: sort witness names
44585         * modules/stdio (Makefile.am): Sort replacements.
44586         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44587         * lib/stdio.in.h: Likewise.
44588
44589         getcwd: minor cleanups
44590         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
44591         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
44592
44593         openat: provide more convenience names
44594         * modules/faccessat (configure.ac): Add C witness.
44595         * lib/unistd.in.h (readlinkat): Fix typo.
44596         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
44597         convenience wrappers.
44598         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
44599         wrappers in syntax checks.
44600
44601 2009-09-06  Eric Blake  <ebb9@byu.net>
44602
44603         doc: fix comments in recent patches
44604         * lib/faccessat.c: Mention correct function.
44605         * lib/fchmodat.c: Likewise.
44606         * lib/fchownat.c: Likewise.
44607         * lib/symlinkat.c: Likewise.
44608         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
44609         constants.
44610
44611         faccessat, symlinkat: continue cleanup of previous patch
44612         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
44613         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44614         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
44615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
44616         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
44617         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
44618         set.
44619
44620 2009-09-06  Bruno Haible  <bruno@clisp.org>
44621
44622         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
44623         (fstatat): Declare if GNULIB_FSTATAT is set.
44624         (mkdirat): Declare if GNULIB_MKDIRAT is set.
44625         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
44626         (unlinkat): Declare if GNULIB_UNLINKAT is set.
44627         * modules/fcntl-h (Files): Remove m4/openat.m4.
44628         * modules/sys_stat (Files): Remove m4/openat.m4.
44629         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
44630         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
44631         * modules/unistd (Files): Remove m4/openat.m4.
44632         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
44633         GNULIB_OPENAT.
44634         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
44635         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
44636         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
44637         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
44638         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
44639         gl_OPENAT_DEFAULTS.
44640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
44641         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
44642         Don't require gl_OPENAT_DEFAULTS.
44643         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
44644         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
44645         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
44646         (gl_OPENAT_DEFAULTS): Remove macro.
44647
44648 2009-09-06  Bruno Haible  <bruno@clisp.org>
44649
44650         * modules/openat (configure.ac): Remove unneeded witness.
44651
44652 2009-09-06  Bruno Haible  <bruno@clisp.org>
44653
44654         Set errno to ENOSYS when a function is entirely unsupported.
44655         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
44656         EOPNOTSUPP.
44657         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44658         * modules/chown (Depends-on): Remove errno.
44659
44660 2009-09-06  Bruno Haible  <bruno@clisp.org>
44661
44662         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
44663
44664 2009-09-06  Bruno Haible  <bruno@clisp.org>
44665
44666         * lib/sys_stat.in.h: Fix preprocessor command indentation.
44667
44668 2009-09-06  Ben Pfaff  <blp@gnu.org>
44669             Bruno Haible  <bruno@clisp.org>
44670
44671         Work around a glibc bug in strtok_r.
44672         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
44673         Undefine if UNDEFINE_STRTOK_R is set.
44674         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
44675         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44676         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
44677         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
44678         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
44679         UNDEFINE_STRTOK_R.
44680         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
44681
44682 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
44683
44684         exclude: minor fix
44685         * lib/exclude.c: Include wctype.h
44686
44687 2009-09-06  Akim Demaille  <demaille@gostai.com>
44688
44689         bootstrap: improve error message
44690         * build-aux/bootstrap (find_tool): Upon failure, report the list
44691         of candidates.
44692         Honor the initial value of the envvar.
44693
44694 2009-09-05  Eric Blake  <ebb9@byu.net>
44695
44696         symlinkat: new module
44697         * modules/symlinkat: New file.
44698         * lib/symlinkat.c: Likewise.
44699         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
44700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44701         * modules/unistd (Makefile.am): Use them.
44702         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
44703         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
44704         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
44705         * MODULES.html.sh (File system functions): Mention module.
44706         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44707         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44708         * modules/symlinkat-tests: New test.
44709         * tests/test-symlinkat.c: Likewise.
44710
44711         test-openat-safer: add more checks
44712         * tests/test-openat-safer.c (main): Check more code paths.
44713
44714 2009-09-05  Jim Meyering  <meyering@redhat.com>
44715
44716         syntax-check: detect unnecessary inclusion of openat.h
44717         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
44718
44719 2009-09-05  Bruno Haible  <bruno@clisp.org>
44720
44721         Support towlower, towupper.
44722         * doc/posix-functions/towlower.texi: Mention module wctype.
44723         * doc/posix-functions/towupper.texi: Likewise.
44724         * lib/wctype.in.h (towlower, towupper): New functions.
44725         * tests/test-wctype.c: Include stdio.h, stdlib.h.
44726         (ASSERT): New macro.
44727         (e): New variable.
44728         (main): Test also towlower, towupper. Test WEOF argument.
44729         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44730
44731 2009-09-05  Bruno Haible  <bruno@clisp.org>
44732
44733         Fix conversion behaviour when the input is invalid.
44734         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
44735         mark occurring in first pass of indirect conversion.
44736         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
44737         input.
44738         Found by clang's static analyzer.
44739
44740 2009-09-05  Bruno Haible  <bruno@clisp.org>
44741
44742         * tests/test-striconveh.c (main): Test indirect conversion on platforms
44743         where direct conversion is possible.
44744
44745 2009-09-04  Eric Blake  <ebb9@byu.net>
44746
44747         openat: fail with ENOENT on empty name
44748         * lib/openat-proc.c (openat_proc_name): Special-case the empty
44749         buffer.
44750
44751         link-follow: fix logic bug in prior patch
44752         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
44753         reversed sense of yes and no in prior patch.  Avoid confusing
44754         compilation failure with desired semantics.
44755
44756         link-follow: accommodate mingw and cross-compilation
44757         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
44758         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
44759         cross-compilation results to -1, to make linkat easier to
44760         implement when cross-compiling.  Trivially support mingw.
44761         * modules/link-follow (configure.ac): Call new name.
44762         * NEWS: Mention this.
44763
44764 2009-09-03  Eric Blake  <ebb9@byu.net>
44765
44766         faccessat: compile replacement
44767         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
44768         needed.
44769
44770         fts: fix compilation error
44771         * lib/fts.c (includes): Re-add "openat.h", for
44772         openat_needs_fchdir.
44773
44774         faccessat: new module
44775         * modules/faccessat: New file.
44776         * lib/faccessat.c: Likewise.
44777         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44779         * modules/unistd (Makefile.am): Use it.
44780         * lib/unistd.in.h (faccessat): Declare it.
44781         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
44782         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
44783         * MODULES.html.sh (File system functions): Mention it.
44784         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
44785         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
44786
44787         euidaccess: prefer POSIX over non-standard implementation
44788         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
44789         * lib/euidaccess.c (euidaccess): Use it if available.
44790
44791         openat: make template easier to use
44792         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
44793         AT_FUNC_F2 to be undefined.
44794         (VALIDATE_FLAG): New macro; use it to reject bad flags.
44795         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
44796         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
44797         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
44798         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
44799         Likewise.
44800         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
44801         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
44802         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
44803         Likewise.
44804
44805         openat: declare in POSIX headers
44806         * NEWS: Mention this.
44807         * modules/openat (configure.ac): Declare witnesses.
44808         (Depends-on): Add fcntl-h, sys_stat, unistd.
44809         (Include): Mention correct headers.
44810         * modules/fcntl-h (Depends-on): Add link-warning.
44811         (Files): Add openat.m4.
44812         (Makefile.am): Substitute witnesses.
44813         * modules/sys_stat (Files, Makefile.am): Likewise.
44814         * modules/unistd (Files, Makefile.am): Likewise.
44815         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
44816         (gl_OPENAT_DEFAULTS): New macro.
44817         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
44818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
44819         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
44820         (SYS_STAT_H): Remove unused variable.
44821         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
44822         * lib/fcntl--.h (includes): Remove unneeded header.
44823         * lib/openat-safer.c (includes): Likewise.
44824         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
44825         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
44826         appropriate headers.
44827         (__OPENAT_PREFIX): Delete.
44828         * lib/fcntl.in.h (openat): Provide declaration.
44829         (AT_FDCWD): Fix Solaris bug.
44830         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
44831         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
44832         * lib/fchmodat.c (includes):  Adjust to find declaration.
44833         * lib/fchownat.c (includes): Likewise.
44834         * lib/mkdirat.c (includes): Likewise.
44835         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
44836         still visible.
44837
44838 2009-09-02  Eric Blake  <ebb9@byu.net>
44839
44840         errno: use consistently
44841         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
44842         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
44843         * lib/canonicalize.c (ELOOP): Likewise.
44844         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
44845         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
44846         * lib/lchown.c (EOPNOTSUPP): Likewise.
44847         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
44848         * lib/savewd.c (ESTALE): Likewise.
44849         * lib/settime.c (ENOSYS): Likewise.
44850         * lib/utimens.c (ENOSYS): Likewise.
44851         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
44852         * lib/chdir-safer.c (ELOOP): Likewise.
44853         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
44854         * modules/c-stack (Depends-on): Add errno.
44855         * modules/canonicalize (Depends-on): Likewise.
44856         * modules/chdir-safer (Depends-on): Likewise.
44857         * modules/fdopendir (Depends-on): Likewise.
44858         * modules/inet_ntop (Depends-on): Likewise.
44859         * modules/inet_pton (Depends-on): Likewise.
44860         * modules/lchown (Depends-on): Likewise.
44861         * modules/openat (Depends-on): Likewise.
44862         * modules/savewd (Depends-on): Likewise.
44863         * modules/settime (Depends-on): Likewise.
44864         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
44865
44866         fts: avoid leaking fds
44867         * modules/fts (Depends-on): Add cloexec.
44868         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
44869         flag.
44870
44871         fts: make directory fds more robust
44872         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
44873         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
44874
44875         backupfile, chdir-long, fts, savedir: make safer
44876         * lib/backupfile.c (includes): Use "dirent--.h", since
44877         numbered_backup can write to stderr during readdir.
44878         * lib/savedir.c (includes): Likewise.
44879         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
44880         emulation can write to stderr on failure.
44881         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
44882         * lib/getcwd.c: Document why opendir_safer is unused.
44883         * lib/glob.c: Likewise.
44884         * lib/scandir.c: Likewise.
44885         * lib/openat-proc.c: Likewise, for open_safer.
44886         * modules/backupfile (Depends-on): Add dirent-safer.
44887         * modules/savedir (Depends-on): Likewise.
44888         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
44889         * modules/chdir-long (Depends-on): Add openat-safer.
44890
44891         openat-safer: new module
44892         * modules/openat-safer: New file.
44893         * lib/openat-safer.c: Likewise.
44894         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
44895         * lib/fcntl-safer.h (openat_safer): Declare.
44896         * lib/fcntl--.h (openat): Override.
44897         * MODULES.html.sh (File descriptor based I/O): Mention it.
44898         * lib/openat.h: Add double-inclusion guards.
44899         * lib/openat.c (includes): Only include "fcntl-safer.h", not
44900         "fcntl--.h", so we can implement openat.
44901         * modules/openat-safer-tests: New test.
44902         * tests/test-openat-safer.c: New file.
44903
44904         dirent-safer: new module
44905         * modules/dirent-safer: New file.
44906         * lib/dirent--.h: Likewise.
44907         * lib/dirent-safer.h: Likewise.
44908         * lib/opendir-safer.c: Likewise.
44909         * m4/dirent-safer.m4: Likewise.
44910         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
44911         * modules/dirent-safer-tests: New test.
44912         * tests/test-dirent-safer.c: New file.
44913         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
44914
44915         fdopendir: optimize on mingw
44916         * lib/unistd.in.h (_gl_directory_name): New prototype.
44917         * lib/fchdir.c (_gl_directory_name): Implement it.
44918         (fchdir): Use it to simplify implementation.
44919         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
44920         fchdir, when available, to avoid calling [f]chdir().
44921
44922         fdopendir: split into its own module
44923         * lib/openat.c (fdopendir): Move...
44924         * lib/fdopendir.c: ...into new file.
44925         * modules/fdopendir: New module.
44926         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
44927         * modules/openat (Depends-on): Add fdopendir.
44928         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
44929         fdopendir here.
44930         * modules/savedir (Depends-on): Only need fdopendir, not full
44931         openat.
44932         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
44933         * lib/openat.h (fdopendir): Drop prototype.
44934         * lib/dirent.in.h (fdopendir): Provide prototype.
44935         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
44936         * modules/dirent (Makefile.am): Substitute them.
44937         * MODULES.html.sh (File system functions): Mention it.
44938         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
44939         * modules/fdopendir-tests: New file.
44940         * tests/test-fdopendir.c: Likewise.
44941
44942         fchdir: use more consistent macro convention
44943         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
44944         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
44945         REPLACE_FCHDIR, rather than relying on config.h macros.
44946         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
44947         inside a single make-time REPLACE_FCHDIR block, rather than using
44948         the config.h FCHDIR_REPLACEMENT.
44949         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
44950         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
44951         Manage fstat replacement.
44952         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
44953         REPLACE_FCHDIR.
44954         * modules/sys_stat (Files): Add m4/unistd_h.m4.
44955         (Makefile.am): Substitute REPLACE_FCHDIR.
44956         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
44957         FCHDIR_REPLACEMENT.
44958         * lib/dup-safer.c (dup_safer): Likewise.
44959         * lib/dup2.c (rpl_dup2): Likewise.
44960         * lib/dup3.c (rpl_dup3): Likewise.
44961         * lib/open.c (rpl_open): Likewise.
44962
44963         fchdir: simplify error handling, and support dup3
44964         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
44965         stdbool, malloc-posix, realloc-posix.
44966         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
44967         (ensure_dirs_slot): Return false on allocation failure.
44968         (rpl_dup2): Delete.
44969         (_gl_register_dup): New function.
44970         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
44971         (_gl_register_fd): Close fd on allocation failure.
44972         * lib/fcntl.in.h (_gl_register_fd): Update signature.
44973         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
44974         prototype.
44975         (rpl_dup2_fchdir): Delete prototype.
44976         * lib/open.c (open): Update caller.
44977         * lib/dup2.c (dup2): Track fchdir metadata.
44978         * lib/dup3.c (dup3): Likewise.
44979         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
44980         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
44981
44982 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44983
44984         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
44985         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
44986         don't pass arguments to AC_OUTPUT.
44987
44988 2009-09-02  Bruno Haible  <bruno@clisp.org>
44989
44990         * modules/mkdtemp (License): Relicense under LGPLv2+.
44991         Reported by Paolo Bonzini.
44992
44993 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44994
44995         Replace uses of obsolete autoconf macros in Jim's modules.
44996         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
44997         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
44998         can evoke a warning from autoconf when run with -Wobsolete
44999         enabled.  They were declared obsolete for good reasons (see
45000         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
45001         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
45002         should not continue using the deprecated macros.
45003         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
45004         obsolete Autoconf macros with modern counterparts.
45005         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45006         * m4/dos.m4 (gl_AC_DOS): Likewise.
45007         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
45008         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
45009         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
45010         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
45011         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
45012         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
45013         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
45014         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
45015         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
45016         Likewise.
45017         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
45018         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45019         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
45020         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
45021         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
45022         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45023
45024 2009-09-01  Eric Blake  <ebb9@byu.net>
45025
45026         fchdir: fix off-by-one bug in previous patch
45027         * lib/fchdir.c (rpl_fstat): Use correct bounds.
45028         (_gl_unregister_fd): Delete useless if.
45029
45030 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
45031
45032         maint.mk: sort the list of syntax-check rules
45033         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
45034         easier to get a sense of progress when the rules are run sequentially
45035         and take a long time.
45036
45037 2009-09-01  Simon Josefsson  <simon@josefsson.org>
45038
45039         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
45040         * modules/netinet_in: Likewise.
45041         * modules/sys_file: Likewise.
45042         * modules/sys_ioctl: Likewise.
45043         * modules/sys_select: Likewise.
45044         * modules/sys_socket: Likewise.
45045         * modules/sys_stat: Likewise.
45046         * modules/sys_time: Likewise.
45047         * modules/sys_times: Likewise.
45048         * modules/sys_utsname: Likewise.
45049         * modules/sys_wait: Likewise.
45050
45051 2009-09-01  Jim Meyering  <meyering@redhat.com>
45052
45053         fts: help ensure that return values are not ignored
45054         * lib/fts_.h (__GNUC_PREREQ): Define.
45055         (__attribute_warn_unused_result__): Define.
45056         (fts_children, fts_close, fts_open, fts_read): Declare with
45057         __attribute_warn_unused_result__.
45058
45059         fts: fts_close now fails also when closing a dir file descriptor fails
45060         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
45061         and propagate to caller, along with errno.
45062
45063         announce-gen: correct formatting in --help output
45064         * build-aux/announce-gen (usage): Move the one-line description in
45065         --help output "up", to where it belongs, just after Usage:.
45066
45067 2009-08-31  Eric Blake  <ebb9@byu.net>
45068
45069         fchdir: port to mingw
45070         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
45071         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
45072         opened, then use a substitute.
45073         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
45074         replacement.
45075         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
45076         (_gl_register_fd): No need to check stat if open already filters
45077         all directories.
45078         (fchdir): Fix error condition to match POSIX.
45079         * modules/fchdir (Depends-on): Add sys_stat.
45080         * doc/posix-functions/open.texi (open): Document the limitation.
45081         * modules/fchdir-tests: New file.
45082         * tests/test-fchdir.c: Likewise.
45083
45084         canonicalize: allow cross-testing from cygwin to mingw
45085         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
45086         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
45087         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
45088         Likewise.
45089         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
45090         target does not support symlinks.
45091         * tests/test-canonicalize-lgpl.sh: Likewise.
45092
45093         chown: avoid compilation warning on mingw
45094         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
45095         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
45096         mingw.
45097         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45098         * modules/chown (Depends-on): Add errno.
45099
45100 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
45101
45102         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
45103         command.
45104
45105 2009-08-31  Jim Meyering  <meyering@redhat.com>
45106
45107         canonicalize: remove useless initialization
45108         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
45109         initialization of local, "end".
45110
45111 2009-08-30  Bruno Haible  <bruno@clisp.org>
45112
45113         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
45114         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
45115         ENOSYS.
45116
45117 2009-08-30  Bruno Haible  <bruno@clisp.org>
45118
45119         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
45120         /usr/xpg4/bin/tr when it exists.
45121         * tests/test-pipe-filter-gi1.sh: Likewise.
45122
45123 2009-08-30  Bruno Haible  <bruno@clisp.org>
45124
45125         Work around deficient /usr/bin/id program on Solaris.
45126         * tests/test-file-has-acl.sh (ID): New variable.
45127         * tests/test-set-mode-acl.sh (ID): Likewise.
45128         * tests/test-copy-acl.sh (ID): Likewise.
45129         * tests/test-copy-file.sh (ID): Likewise.
45130
45131 2009-08-30  Bruno Haible  <bruno@clisp.org>
45132
45133         New module 'xstriconveh'.
45134         * lib/xstriconveh.h: New file.
45135         * lib/xstriconveh.c: New file.
45136         * modules/xstriconveh: New file.
45137
45138 2009-08-30  Bruno Haible  <bruno@clisp.org>
45139
45140         Make it easier to use mem_cd_iconveh.
45141         * lib/striconveh.h (iconveh_t): New type.
45142         (iconveh_open, iconveh_close): New declarations.
45143         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45144         with a single 'const iconveh_t *' argument.
45145         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
45146         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45147         with a single 'const iconveh_t *' argument.
45148         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
45149         * tests/test-striconveh.c (main): Update.
45150         * NEWS: Mention the change.
45151
45152 2009-08-30  Bruno Haible  <bruno@clisp.org>
45153
45154         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
45155         problem.
45156
45157 2009-08-30  Bruno Haible  <bruno@clisp.org>
45158
45159         Work around iconv_open problem on Solaris.
45160         * lib/iconv_open-solaris.gperf: New file.
45161         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
45162         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
45163         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
45164         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
45165         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
45166         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
45167
45168 2009-08-29  Jim Meyering  <meyering@redhat.com>
45169
45170         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
45171         * top/maint.mk (cvs-check): Remove target; it was just an alias
45172         to the better-named vc-diff-check.
45173         (maintainer-distcheck): Remove rule.  It was used only from
45174         the (alpha/beta/major) target, and all of its commands but one
45175         were coreutils-specific.
45176         (vc-dist): Remove rule.
45177         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
45178         Run vc-diff-check, not vc-dist.
45179         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
45180
45181 2009-08-27  Bruno Haible  <bruno@clisp.org>
45182
45183         * tests/test-bitrotate.c (main): Remove test that uses a shift count
45184         of 0.
45185
45186 2009-08-27  Bruno Haible  <bruno@clisp.org>
45187
45188         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
45189         compilers.
45190         * doc/func.texi: Document the SunPRO C bug.
45191
45192 2009-08-27  Bruno Haible  <bruno@clisp.org>
45193
45194         Fix link error on Solaris.
45195         * tests/test-parse-duration.c (xstrdup): Remove function.
45196
45197 2009-08-26  Pádraig Brady  <P@draigbrady.com>
45198
45199         ignore-value: handle pointer types, too
45200         * lib/ignore-value.h (__attribute__): Remove definition.
45201         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
45202         of a more concise and more-often effective "(void) i" statement.
45203         (ignore_ptr): New function to suppress warnings from functions that
45204         return pointers, and to make it explicit that one function doesn't
45205         handle all cases.
45206
45207 2009-08-25  Bruno Haible  <bruno@clisp.org>
45208
45209         dup2: work around a Linux bug.
45210         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
45211         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
45212         * doc/posix-functions/dup2.texi: Mention the Linux bug.
45213         Reported by Simon Josefsson.
45214
45215 2009-08-25  Jim Meyering  <meyering@redhat.com>
45216
45217         libguestfs uses gnulib
45218         * users.txt: Add libguestfs.
45219
45220 2009-08-24  Eric Blake  <ebb9@byu.net>
45221
45222         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
45223         * lib/pipe2.c (includes): Add binary-io.h.
45224         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
45225
45226 2009-08-24  Bruno Haible  <bruno@clisp.org>
45227
45228         Tolerate declared but missing accept4 syscall.
45229         * lib/accept4.c (accept4): Invoke original accept4 function first, if
45230         available.
45231         * lib/sys_socket.in.h (accept4): If the function is already present,
45232         override it.
45233         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
45234         * modules/accept4 (Makefile.am): Compile accept4.c always.
45235         Reported by Paolo Bonzini and Eric Blake.
45236
45237 2009-08-23  Bruno Haible  <bruno@clisp.org>
45238
45239         New module 'accept4'.
45240         * lib/sys_socket.in.h (accept4): New declaration.
45241         * lib/accept4.c: New file.
45242         * m4/accept4.m4: New file.
45243         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45244         GNULIB_ACCEPT4, HAVE_ACCEPT4.
45245         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
45246         HAVE_ACCEPT4.
45247         * modules/accept4: New file.
45248         * doc/glibc-functions/accept4.texi: Mention the new module.
45249
45250 2009-08-24  Jim Meyering  <meyering@redhat.com>
45251
45252         progname: also set global program_invocation_name, when possible
45253         Before this change, a libtool-enabled program that calls glibc's
45254         error function would report the program name as
45255         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
45256         * modules/progname (configure.ac): Check for a declaration of
45257         program_invocation_name.
45258         * lib/progname.c:  Include <errno.h>.
45259         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
45260         Set program_invocation_name.
45261
45262 2009-08-23  Bruno Haible  <bruno@clisp.org>
45263
45264         * lib/dup3.c: Include <string.h>.
45265
45266 2009-08-23  Bruno Haible  <bruno@clisp.org>
45267
45268         * lib/dup3.c (dup3): Test only once whether the system actually exists.
45269         * lib/pipe2.c (pipe2): Likewise.
45270         Suggested by Eric Blake.
45271
45272 2009-08-23  Bruno Haible  <bruno@clisp.org>
45273
45274         Tolerate declared but missing dup3 syscall.
45275         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
45276         * lib/unistd.in.h (dup3): If the function is already present,
45277         override it.
45278         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
45279         * modules/dup3 (Makefile.am): Compile dup3.c always.
45280         Reported by Paolo Bonzini.
45281
45282 2009-08-23  Bruno Haible  <bruno@clisp.org>
45283
45284         Tolerate declared but missing pipe2 syscall.
45285         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
45286         available.
45287         * lib/unistd.in.h (pipe2): If the function is already present,
45288         override it.
45289         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
45290         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
45291         Reported by Paolo Bonzini.
45292
45293 2009-08-23  Bruno Haible  <bruno@clisp.org>
45294
45295         * lib/pipe2.c (pipe2): Move #ifs inside function.
45296
45297 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45298
45299         quotearg: document limitations of quote_these_too
45300         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
45301         those limitations are created.
45302         * lib/quotearg.h (set_char_quoting): Document that digits and
45303         letters that are special after backslash are not permitted.
45304         (quotearg_char): Cross-reference set_char_quoting documentation.
45305
45306 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
45307
45308         quotearg: implement custom_quoting_style
45309         * lib/quotearg.c: (struct quoting_options): Add left_quote and
45310         right_quote fields.
45311         (set_custom_quoting): New public function.
45312         (quotearg_buffer_restyled): Add left_quote and right_quote
45313         arguments, handle them very much like locale quoting, and update
45314         all uses.
45315         (quotearg_n_custom): New public function.
45316         (quotearg_n_custom_mem): New public function.
45317         (quotearg_custom): New public function.
45318         (quotearg_custom_mem): New public function.
45319         * lib/quotearg.h: Prototype and document new public functions.
45320         (enum quoting_style): For escape_quoting_style and
45321         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
45322         ignored even though they're otherwise like c_quoting_style.
45323         Add custom_quoting_style member and document with comparison to
45324         clocale_quoting_style.
45325         * tests/test-quotearg.c (custom_quotes): New array.
45326         (custom_results): New array.
45327         (main): Extend to test custom quoting.
45328
45329 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45330
45331         quotearg: fix right quote escaping when it's in quote_these_too
45332         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
45333         quote, be sure to prepend only one backslash.
45334         * tests/test-quotearg.c (use_quote_double_quotes): New function.
45335         (main): Test it.
45336
45337 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45338
45339         quotearg-tests: test escaping of embedded locale quotes
45340         * tests/test-quotearg.c (struct result_strings): Add member for
45341         new input.
45342         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
45343         (inputs): Add new input.
45344         (results_g): Add expected results.
45345         (flag_results): Likewise.
45346         (locale_results): Likewise.
45347         (compare_strings): Check those.
45348
45349 2009-08-23  Bruno Haible  <bruno@clisp.org>
45350
45351         Tests for module 'dup3'.
45352         * modules/dup3-tests: New file.
45353         * tests/test-dup3.c: New file.
45354
45355         New module 'dup3'.
45356         * lib/unistd.in.h (dup3): New declaration.
45357         * lib/dup3.c: New file.
45358         * m4/dup3.m4: New file.
45359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
45360         HAVE_DUP3.
45361         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
45362         * modules/dup3: New file.
45363         * doc/glibc-functions/dup3.texi: Mention the new module.
45364
45365 2009-08-23  Bruno Haible  <bruno@clisp.org>
45366
45367         Tweak the dup2 test.
45368         * tests/test-dup2.c (main): Create the test file empty. Verify that an
45369         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
45370         the test file is still empty. Fix argument order of lseek.
45371
45372 2009-08-23  Bruno Haible  <bruno@clisp.org>
45373
45374         Avoid test link errors when the modules getopt-gnu, gettext are used.
45375         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
45376         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45377
45378 2009-08-23  Bruno Haible  <bruno@clisp.org>
45379
45380         Fix getdtablesize() on mingw.
45381         * lib/getdtablesize.c (getdtablesize): Implement differently.
45382         * lib/unistd.in.h (getdtablesize): Improve comment.
45383
45384 2009-08-23  Bruno Haible  <bruno@clisp.org>
45385
45386         New module 'mkostemp'.
45387         Based on Ulrich Drepper's 2007-08-10 change in glibc.
45388         * lib/stdlib.in.h (mksotemp): New declaration.
45389         * lib/mkostemp.c: New file, from glibc with modifications.
45390         * lib/tempname.h (GT_FILE): Remove outdated comment.
45391         (gen_tempname): Add flags argument.
45392         * lib/tempname.c (__GT_BIGFILE): Remove macro.
45393         (__GT_FILE): Map to 1.
45394         (small_open, large_open): Remove macros.
45395         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
45396         * lib/mkstemp.c (mkstemp): Update.
45397         * lib/mkdtemp.c (mkdtemp): Likewise.
45398         * m4/mkostemp.m4: New file.
45399         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
45400         HAVE_MKOSTEMP.
45401         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
45402         HAVE_MKOSTEMP.
45403         * modules/mkostemp: New file, based on modules/mkstemp.
45404         * doc/glibc-functions/mkostemp.texi: Mention the new module.
45405         * NEWS: Mention the change.
45406
45407 2009-08-23  Bruno Haible  <bruno@clisp.org>
45408
45409         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
45410         Reported by Eric Blake.
45411
45412 2009-08-23  Bruno Haible  <bruno@clisp.org>
45413
45414         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
45415         Reported by Eric Blake.
45416
45417 2009-08-23  Bruno Haible  <bruno@clisp.org>
45418
45419         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
45420         * modules/pipe2 (Depends-on): Likewise.
45421
45422 2009-08-23  Eric Blake  <ebb9@byu.net>
45423
45424         fcntl-h: add O_TTY_INIT support
45425         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
45426         * tests/test-fcntl-h.c (o): Test it.
45427         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45428
45429         fcntl-h: rename from fcntl, in preparation for fcntl(2)
45430         * modules/fcntl: Move <fcntl.h> header replacement...
45431         * modules/fcntl-h: ...to new name, so as not to collide with
45432         like-named function.
45433         * tests/test-fcntl.c: Rename...
45434         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
45435         * modules/fcntl-tests: Rename...
45436         * modules/fcntl-h-tests: ...to this.  Update test file name.
45437         * modules/chdir-long (Depends-on): Update clients.
45438         * modules/chdir-safer (Depends-on): Likewise.
45439         * modules/fcntl-safer (Depends-on): Likewise.
45440         * modules/fts (Depends-on): Likewise.
45441         * modules/mkancesdirs (Depends-on): Likewise.
45442         * modules/mkdir-p (Depends-on): Likewise.
45443         * modules/open (Depends-on): Likewise.
45444         * modules/savewd (Depends-on): Likewise.
45445         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
45446         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45447
45448 2009-08-22  Bruno Haible  <bruno@clisp.org>
45449
45450         * modules/binary-io (License): Relicense under LGPL.
45451         * modules/pipe2 (License): Likewise.
45452
45453 2009-08-22  Bruno Haible  <bruno@clisp.org>
45454
45455         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
45456         return value.
45457         * lib/pipe-filter-gi.c (filter_init): Likewise.
45458         Reported by Eric Blake.
45459
45460 2009-08-22  Bruno Haible  <bruno@clisp.org>
45461
45462         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
45463         * modules/pipe (Depends-on): Add pipe2.
45464
45465 2009-08-22  Bruno Haible  <bruno@clisp.org>
45466
45467         Tests for module 'pipe2'.
45468         * modules/pipe2-tests: New file.
45469         * tests/test-pipe2.c: New file.
45470
45471         New module 'pipe2'.
45472         * lib/unistd.in.h (pipe2): New declaration.
45473         * lib/pipe2.c: New file.
45474         * m4/pipe2.m4: New file.
45475         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
45476         HAVE_PIPE2.
45477         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
45478         * modules/pipe2: New file.
45479         * doc/glibc-functions/pipe2.texi: Mention the new module.
45480
45481 2009-08-22  Bruno Haible  <bruno@clisp.org>
45482
45483         Reference some new glibc functions.
45484         * doc/glibc-functions/accept4.texi: New file.
45485         * doc/glibc-functions/dup3.texi: New file.
45486         * doc/glibc-functions/mkostemp.texi: New file.
45487         * doc/glibc-functions/pipe2.texi: New file.
45488         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
45489         (Glibc sys/socket.h): Refer to accept4.
45490         (Glibc unistd.h): Refer to dup3, pipe2.
45491         Reported by Eric Blake.
45492
45493 2009-08-22  Jim Meyering  <meyering@redhat.com>
45494             Bruno Haible  <bruno@clisp.org>
45495
45496         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
45497         This makes it so packages using automake-1.11's silent-rules option
45498         can print e.g., a single "GEN    configmake.h" line, rather than
45499         the 30+ statements that perform the job.  If you want to see the
45500         actual commands, you can still run "make V=1".
45501         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
45502         so that make output is abbreviated when those variables are defined
45503         appropriately.
45504         * modules/argz: Likewise.
45505         * modules/arpa_inet: Likewise.
45506         * modules/byteswap: Likewise.
45507         * modules/configmake: Likewise.
45508         * modules/dirent: Likewise.
45509         * modules/errno: Likewise.
45510         * modules/fcntl: Likewise.
45511         * modules/float: Likewise.
45512         * modules/fnmatch: Likewise.
45513         * modules/getopt-posix: Likewise.
45514         * modules/glob: Likewise.
45515         * modules/iconv_open: Likewise.
45516         * modules/inttypes: Likewise.
45517         * modules/localcharset: Likewise.
45518         * modules/locale: Likewise.
45519         * modules/math: Likewise.
45520         * modules/netdb: Likewise.
45521         * modules/netinet_in: Likewise.
45522         * modules/poll: Likewise.
45523         * modules/posix_spawnp-tests: Likewise.
45524         * modules/sched: Likewise.
45525         * modules/search: Likewise.
45526         * modules/selinux-h: Likewise.
45527         * modules/signal: Likewise.
45528         * modules/spawn: Likewise.
45529         * modules/stdarg: Likewise.
45530         * modules/stdbool: Likewise.
45531         * modules/stddef: Likewise.
45532         * modules/stdint: Likewise.
45533         * modules/stdio: Likewise.
45534         * modules/stdlib: Likewise.
45535         * modules/string: Likewise.
45536         * modules/strings: Likewise.
45537         * modules/sys_file: Likewise.
45538         * modules/sys_ioctl: Likewise.
45539         * modules/sys_select: Likewise.
45540         * modules/sys_socket: Likewise.
45541         * modules/sys_stat: Likewise.
45542         * modules/sys_time: Likewise.
45543         * modules/sys_times: Likewise.
45544         * modules/sys_utsname: Likewise.
45545         * modules/sys_wait: Likewise.
45546         * modules/sysexits: Likewise.
45547         * modules/time: Likewise.
45548         * modules/unistd: Likewise.
45549         * modules/wchar: Likewise.
45550         * modules/wctype: Likewise.
45551
45552 2009-08-22  Jim Meyering  <meyering@redhat.com>
45553
45554         announce-gen: detect write failure
45555         * build-aux/announce-gen: Add Coda at end.
45556         Remove equivalent-but-more-verbose block at top.
45557
45558 2009-08-19  Akim Demaille  <demaille@gostai.com>
45559
45560         bootstrap: --help to stdout.
45561         * bootstrap (usage): Don't send --help to stderr.
45562         Use a here doc instead of a long string.
45563
45564 2009-08-21  Eric Blake  <ebb9@byu.net>
45565
45566         test-popen-safer: split from test-popen
45567         * tests/test-popen.c (main): Move...
45568         * tests/test-popen.h: ...into new file.
45569         * tests/test-popen-safer2.c: New file.
45570         * modules/popen-tests (Files): Add test-popen.h.
45571         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
45572         Suggested by Bruno Haible.
45573
45574         test-fcntl-safer: split from test-open
45575         * tests/test-open.c (main): Move...
45576         * tests/test-open.h: ...into new file.
45577         * tests/test-fcntl-safer.c: New file.
45578         * modules/open-tests (Files): Add test-open.h.
45579         * modules/fcntl-safer-tests: New file.
45580         Suggested by Bruno Haible.
45581
45582         test-fopen-safer: split from test-fopen
45583         * tests/test-fopen.c (main): Move...
45584         * tests/test-fopen.h: ...into new file.
45585         * tests/test-fopen-safer.c: New file.
45586         * modules/fopen-tests (Files): Add test-fopen.h.
45587         * modules/fopen-safer-tests: New file.
45588         Suggested by Bruno Haible.
45589
45590 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45591
45592         popen-safer: test O_CLOEXEC at run-time.
45593         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
45594
45595 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45596
45597         fcntl: move more flags to the header
45598         * lib/cloexec.c: Do not define FD_CLOEXEC here.
45599         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
45600         * lib/fcntl.in.h: Do both things here.
45601
45602 2009-08-21  Jim Meyering  <meyering@redhat.com>
45603
45604         consistently remove $@-t before redirecting to it
45605         * modules/argz: Remove $@-t and $@ before redirecting to the former.
45606         * modules/alloca-opt: Likewise.
45607         * modules/byteswap: Likewise.
45608         * modules/fnmatch: Likewise.
45609         * modules/getopt-posix: Likewise.
45610         * modules/glob: Likewise.
45611         * modules/poll: Likewise.
45612         * modules/posix_spawnp-tests: Likewise.
45613         * modules/sys_socket: Likewise.
45614         * modules/sysexits: Likewise.
45615
45616 2009-08-21  Eric Blake  <ebb9@byu.net>
45617
45618         popen: simplify access to original popen
45619         * lib/popen.c (rpl_popen): No need to worry about popen being a
45620         macro.
45621         Reported by Bruno Haible.
45622
45623 2009-08-20  Eric Blake  <ebb9@byu.net>
45624
45625         build: avoid some compiler warnings
45626         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
45627         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
45628         type.
45629         (new_exclude_segment, excluded_file_pattern_p)
45630         (excluded_file_name_p): Reduce scope.
45631         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
45632         old-style declaration.
45633
45634 2009-08-20  Simon Josefsson  <simon@josefsson.org>
45635
45636         * tests/test-exclude1.sh: Handle Windows EOL.
45637         * tests/test-exclude2.sh: Likewise.
45638         * tests/test-exclude3.sh: Likewise.
45639         * tests/test-exclude4.sh: Likewise.
45640         * tests/test-exclude5.sh: Likewise.
45641         * tests/test-exclude6.sh: Likewise.
45642         * tests/test-exclude7.sh: Likewise.
45643
45644 2009-08-19  Akim Demaille  <demaille@gostai.com>
45645
45646         bootstrap: find sha1sum when named gsha1sum.
45647         * bootstrap (find_tool): New.
45648         ($SHA1SUM): New.
45649         Use it.
45650
45651 2009-08-20  Jim Meyering  <meyering@redhat.com>
45652
45653         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
45654         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
45655         expression that converts "." in a file name to "\." in the resulting
45656         regexp.  Start with a dummy statement, so that prior shell variable
45657         definitions are expanded portably.  Reported by Simon Josefsson.
45658
45659 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
45660
45661         Fix polling for writeability of a screen buffer.
45662         * lib/poll.c: Distinguish input and screen buffers for the
45663         Win32 implementation.
45664         * lib/select.c: Likewise.
45665
45666 2009-08-19  Eric Blake  <ebb9@byu.net>
45667
45668         popen-safer: prevent popen from clobbering std descriptors
45669         * modules/popen-safer: New file.
45670         * lib/popen-safer.c: Likewise.
45671         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
45672         * lib/stdio--.h (popen): Provide override.
45673         * lib/stdio-safer.h (popen_safer): Provide declaration.
45674         * tests/test-popen.c (includes): Partially test this.
45675         * modules/popen-safer-tests: New file, for more tests.
45676         * tests/test-popen-safer.c: Likewise.
45677         * MODULES.html.sh (file stream based Input/Output): Mention it.
45678
45679         tests: test some of the *-safer modules
45680         * modules/fopen-safer (Depends-on): Add fopen.
45681         * modules/fcntl-safer (Depends-on): Add fcntl.
45682         * modules/stdlib-safer (Depends-on): Add stdlib.
45683         (configure.ac): Set indicator.
45684         * modules/unistd-safer (configure.ac): Likewise.
45685         * modules/tmpfile-safer (configure.ac): Likewise.
45686         (Depends-on): Add tmpfile.
45687         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
45688         active.
45689         * tests/test-fopen.c (includes): Test safer versions when they are
45690         in use.
45691         * tests/test-open.c (includes): Likewise.
45692
45693         popen: fix cygwin 1.5 bug when stdin closed
45694         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
45695         * modules/popen: New file.
45696         * modules/popen-tests: Likewise.
45697         * tests/test-popen.c: Likewise.
45698         * m4/popen.m4: Likewise.
45699         * lib/popen.c: Likewise.
45700         * lib/stdio.in.h (popen): New declaration.
45701         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
45702         * modules/stdio (Makefile.am): Likewise.
45703         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
45704
45705 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
45706
45707         maint.mk: give full control over update-copyright exclusions
45708         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
45709         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
45710         (update-copyright): Don't force inclusion of top-level
45711         ChangeLog.  Don't force exclusion of all COPYING files, but make
45712         them the default exclusion instead.
45713
45714 2009-08-16  Bruno Haible  <bruno@clisp.org>
45715
45716         Fix test failures on Solaris 10.
45717         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
45718         tests when Solaris iconv() is used.
45719         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45720         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45721         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45722         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45723         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45724
45725 2009-08-16  Bruno Haible  <bruno@clisp.org>
45726
45727         Fix test failures on Solaris 10.
45728         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
45729         'tr' program and pass it as first argument.
45730         * tests/test-pipe-filter-gi1.sh: Likewise.
45731         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
45732         program as first argument.
45733         * tests/test-pipe-filter-gi1.c (main): Likewise.
45734
45735 2009-08-16  Eric Blake  <ebb9@byu.net>
45736
45737         fpurge: fix previous commits
45738         * modules/fpurge (Makefile.am): Make replacement conditional,
45739         partially reverting 2007-04-29 change; missed in previous
45740         attempt.
45741         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
45742         is missing.
45743
45744 2009-08-16  Bruno Haible  <bruno@clisp.org>
45745
45746         Clarify fpurge's effect on the file position.
45747         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
45748         * tests/test-fpurge.c (main): Make a second pass for checking the file
45749         position.
45750
45751 2009-08-16  Bruno Haible  <bruno@clisp.org>
45752
45753         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
45754         declaration of fpurge is missing.
45755         * tests/test-fpurge.c (main): Check that the file has not more contents
45756         than expected. Close the file before removing it.
45757
45758 2009-08-15  Eric Blake  <ebb9@byu.net>
45759
45760         fpurge: don't wrap working cygwin implementation
45761         * lib/fpurge.c (fpurge): Fix comment typo.
45762         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
45763         1.7 to avoid replacement.
45764         * tests/test-fpurge.c (main): Enhance test.
45765
45766 2009-08-15  Eric Blake  <ebb9@byu.net>
45767         and Jim Meyering  <meyering@redhat.com>
45768
45769         test-update-copyright: skip if perl is insufficient
45770         * tests/test-update-copyright.sh: Failure to run maintainer tool
45771         should not cause testsuite failure on cygwin 1.5.
45772
45773 2009-08-14  Eric Blake  <ebb9@byu.net>
45774
45775         doc: mention more functions added in cygwin 1.7.0
45776         * doc/posix-headers/limits.texi (limits.h): Update for recent
45777         cygwin additions.
45778         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
45779         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
45780         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
45781         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
45782         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
45783
45784 2009-08-14  Eric Blake  <ebb9@byu.net>
45785
45786         maint.mk: simplify update-copyright rule
45787         * top/maint.mk (update-copyright-local): Delete, and document how
45788         to do it in cfg.mk instead.
45789         (update-copyright-exclude-regexp): Delete, and document how to do
45790         it in .x-update-copyright instead.
45791         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
45792         exclude ChangeLog.
45793
45794 2009-08-14  Bruno Haible  <bruno@clisp.org>
45795
45796         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
45797
45798 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45799
45800         maint.mk: support update-copyright-env
45801         * top/maint.mk (update-copyright-env): Define place-holder.
45802         (update-copyright): Expand $(update-copyright-env) before
45803         invoking update-copyright.
45804
45805 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45806
45807         update-copyright: implement forced reformatting
45808         * build-aux/update-copyright: Implement and document
45809         UPDATE_COPYRIGHT_FORCE.
45810         * tests/test-update-copyright.sh: Test it.
45811
45812 2009-08-14  Eric Blake  <ebb9@byu.net>
45813         and Bruno Haible  <bruno@clisp.org>
45814
45815         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
45816         * tests/test-locale.c: Revert previous patch related to NULL.
45817         * tests/test-stdio.c: Likewise.
45818         * tests/test-stdlib.c: Likewise.
45819         * tests/test-string.c: Likewise.
45820         * tests/test-unistd.c: Likewise.
45821         * modules/time-tests (Depends-on): Add verify.
45822         * modules/wchar-tests (Depends-on): Likewise.
45823         * tests/test-time.c: Test for NULL compliance.
45824         * tests/test-wchar.c: Likewise.
45825         * modules/locale (Depends-on): Add stddef.
45826         * modules/stdio (Depends-on): Likewise.
45827         * modules/stdlib (Depends-on): Likewise.
45828         * modules/string (Depends-on): Likewise.
45829         * modules/time (Depends-on): Likewise.
45830         * modules/unistd (Depends-on): Likewise.
45831         * modules/wchar (Depends-on): Likewise.
45832         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
45833         * lib/stdlib.in.h (includes): Likewise.
45834         * lib/string.in.h (includes): Likewise.
45835         * lib/time.in.h (includes): Likewise.
45836         * lib/unistd.in.h (includes): Likewise.
45837         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
45838         replaced.
45839         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
45840         * m4/stddef_h.m4: New file.
45841         * modules/stddef: Likewise.
45842         * lib/stddef.in.h: Likewise.
45843         * modules/stddef-tests: Likewise.
45844         * tests/test-stddef.c: Likewise.
45845         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
45846         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
45847         * doc/posix-headers/locale.texi (locale.h): Likewise.
45848         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
45849         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
45850         * doc/posix-headers/string.texi (string.h): Likewise.
45851         * doc/posix-headers/time.texi (time.h): Likewise.
45852         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
45853         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
45854
45855 2009-08-14  Eric Blake  <ebb9@byu.net>
45856
45857         doc: improve git diff of texinfo files
45858         * .gitattributes: Add rule for *.texi files, with hint on how to
45859         use it.
45860         Copied from m4, and based on a report by Bruno Haible.
45861
45862 2009-08-14  Bruno Haible  <bruno@clisp.org>
45863
45864         Disable multithread support by default on Cygwin 1.5.x for real.
45865         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
45866
45867 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45868
45869         update-copyright: much ado about intervals
45870         * build-aux/update-copyright: Implement and document
45871         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
45872         of copyright year intervals.
45873         Also, document UPDATE_COPYRIGHT_YEAR.
45874         * tests/test-update-copyright.sh: Test it.
45875
45876         update-copyright: convert 2-digit to 4-digit years
45877         * build-aux/update-copyright: Implement and document.
45878         * tests/test-update-copyright.sh: Update.
45879
45880 2009-08-14  Jim Meyering  <meyering@redhat.com>
45881
45882         test-exclude: avoid coreutils "make check" failure
45883         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
45884         just as in test-argmatch.c.
45885
45886 2009-08-13  Eric Blake  <ebb9@byu.net>
45887
45888         test-dup2: fix bad assumption
45889         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
45890         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
45891
45892         test-version-etc: fix CRLF portability issue
45893         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
45894         recognize \r.
45895         * tests/test-argp-version-etc-1.sh: Likewise.
45896
45897         getopt: update client modules
45898         * modules/argp (Depends-on): Use getopt-gnu.
45899         * modules/git-merge-changelog (Depends-on): Likewise.
45900         * modules/long-options (Depends-on): Likewise.
45901         * modules/xstrtol (Depends-on): Likewise.
45902
45903 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45904
45905         * tests/test-version-etc.sh: Don't fail on different
45906         project/version.  Don't fail on CRLF differences.  Rewrite to use
45907         multiple -e instead of multiple sed forks, suggested by Eric Blake
45908         <ebb9@byu.net>.
45909         * tests/test-argp-version-etc-1.sh: Likewise.
45910
45911 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45912
45913         * tests/test-version-etc.sh: Don't fail on different
45914         project/version.
45915
45916 2009-08-12  Bruno Haible  <bruno@clisp.org>
45917
45918         Tests for modules 'getopt-posix', 'getopt-gnu'.
45919         * modules/getopt-posix-tests: New file.
45920         * tests/test-getopt.c: New file.
45921         * tests/test-getopt.h: New file.
45922         * tests/test-getopt_long.h: New file.
45923
45924         New modules 'getopt-posix', 'getopt-gnu'.
45925         * modules/getopt-gnu: New file, renamed from modules/getopt.
45926         * modules/getopt-posix: New file.
45927         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
45928         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
45929         (gl_GETOPT): Remove macro.
45930         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
45931         Disable the test against BSD systems that declare optreset. Test
45932         against mingw bug. Test against lack of support of optional arguments
45933         on many platforms.
45934         * doc/glibc-headers/getopt.texi: Update module name and list of
45935         relevant platforms.
45936         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
45937         'getopt-gnu' and more portability problems.
45938         * NEWS: Mention the changes.
45939
45940 2009-08-12  Bruno Haible  <bruno@clisp.org>
45941
45942         Ensure that optarg etc. get declared by <unistd.h>.
45943         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
45944         AC_USE_SYSTEM_EXTENSIONS.
45945         * modules/getopt (Depends-on): Add 'extensions'.
45946
45947 2009-08-12  Bruno Haible  <bruno@clisp.org>
45948
45949         Avoid test link errors.
45950         * modules/pipe-filter-ii-tests (Makefile.am): Define
45951         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
45952         * modules/pipe-filter-gi-tests (Makefile.am): Define
45953         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
45954         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45955
45956 2009-08-12  Bruno Haible  <bruno@clisp.org>
45957
45958         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
45959         gl_GETOPT_SUBSTITUTE before.
45960         (gl_GETOPT): Use it.
45961         * m4/argp.m4 (gl_ARGP): Update.
45962         Reported by Sergey Poznyakoff.
45963
45964         * m4/getopt.m4: Reorder macros.
45965         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
45966         (gl_GETOPT_SUBSTITUTE): Remove macro.
45967
45968 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45969
45970         Minor improvement in gitlog-to-changelog
45971
45972         * build-aux/gitlog-to-changelog: New option `--format' makes
45973         output format string configurable.
45974
45975 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45976
45977         Optimize exclude: use hash tables for non-wildcard patterns.
45978
45979         * lib/exclude.c: Include hash.h and mbuiter.h
45980         (struct exclude_pattern, exclude_segment): New data types.
45981         (struct exclude): Rewrite.
45982         (fnmatch_pattern_has_wildcards): New function.
45983         (new_exclude_segment, free_exclude_segment): New functions.
45984         (excluded_file_pattern_p, excluded_file_name_p): New functions.
45985         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
45986         * lib/exclude.h (is_fnmatch_pattern): New prototype.
45987         * modules/exclude: Depend on hash and mbuiter.
45988
45989         * modules/exclude-tests: New file.
45990         * tests/test-exclude.c: New file.
45991         * tests/test-exclude1.sh: New file.
45992         * tests/test-exclude2.sh: New file.
45993         * tests/test-exclude3.sh: New file.
45994         * tests/test-exclude4.sh: New file.
45995         * tests/test-exclude5.sh: New file.
45996         * tests/test-exclude6.sh: New file.
45997         * tests/test-exclude7.sh: New file.
45998
45999 2009-08-12  Bruno Haible  <bruno@clisp.org>
46000
46001         Ensure that getopt() gets declared by <unistd.h>.
46002         * lib/unistd.in.h: Conditionally include getopt.h.
46003         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
46004         Set GNULIB_UNISTD_H_GETOPT.
46005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46006         GNULIB_UNISTD_H_GETOPT.
46007         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
46008
46009 2009-08-12  Bruno Haible  <bruno@clisp.org>
46010
46011         Clarify logic.
46012         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
46013         gl_replace_getopt instead of GETOPT_H.
46014
46015 2009-08-12  Bruno Haible  <bruno@clisp.org>
46016
46017         * m4/getopt.m4: Add comments.
46018
46019 2009-08-12  Bruno Haible  <bruno@clisp.org>
46020
46021         Disable multithread support by default on Cygwin 1.5.x.
46022         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
46023         set gl_use_threads=no if not specified otherwise.
46024
46025 2009-08-11  Bruno Haible  <bruno@clisp.org>
46026
46027         Avoid compilation error on NetBSD 5.0.
46028         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
46029         * tests/test-stdio.c: Likewise.
46030         * tests/test-stdlib.c: Likewise.
46031         * tests/test-string.c: Likewise.
46032         * tests/test-unistd.c: Likewise.
46033         Reported by Greg Troxel <gdt@ir.bbn.com>
46034         at <https://savannah.gnu.org/support/?106973>.
46035
46036 2009-08-11  Bruno Haible  <bruno@clisp.org>
46037
46038         * modules/dup2-tests (Depends-on): Remove close.
46039
46040         Undo 2009-07-19 commit.
46041         * modules/acl-tests (Depends-on): Remove close.
46042         * modules/binary-io-tests (Depends-on): Likewise.
46043         * modules/closein-tests (Depends-on): Likewise.
46044         * modules/flock-tests (Depends-on): Likewise.
46045         * modules/fsync-tests (Depends-on): Likewise.
46046         * modules/lseek-tests (Depends-on): Likewise.
46047         * modules/pipe-tests (Depends-on): Likewise.
46048         * modules/posix_spawn-tests (Depends-on): Likewise.
46049         * modules/posix_spawnp-tests (Depends-on): Likewise.
46050         * modules/stat-time-tests (Depends-on): Likewise.
46051         * modules/yesno-tests (Depends-on): Likewise.
46052
46053 2009-08-10  Bruno Haible  <bruno@clisp.org>
46054
46055         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
46056
46057 2009-08-10  Bruno Haible  <bruno@clisp.org>
46058
46059         Fix a gcc warning.
46060         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
46061
46062 2009-08-10  Bruno Haible  <bruno@clisp.org>
46063
46064         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
46065         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
46066         not only the first time.
46067         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
46068         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
46069         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
46070         is 1, not only the the first time.
46071
46072 2009-08-10  Bruno Haible  <bruno@clisp.org>
46073
46074         Make it possible to use module 'gethostname' without module 'close'.
46075         * lib/unistd.in.h (close): Evoke a link error only if
46076         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46078         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46079         * modules/unistd (Makefile.am): Substitute
46080         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46081         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
46082         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46083         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
46084         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46085         * modules/sys_ioctl (Makefile.am): Substitute
46086         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46087         * modules/socket (configure.ac): On native Windows, set
46088         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
46089         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46090         Reported by Sam Steingold <sds@gnu.org>.
46091
46092 2009-08-10  Bruno Haible  <bruno@clisp.org>
46093
46094         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
46095         * modules/ioctl (configure.ac): Likewise.
46096
46097 2009-08-10  Bruno Haible  <bruno@clisp.org>
46098
46099         Avoid collision between gnulib wrapper and libintl wrapper.
46100         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
46101         already defined in intl/printf.c.
46102         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
46103         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
46104
46105 2009-08-09  Bruno Haible  <bruno@clisp.org>
46106
46107         Make <sys/select.h> really self-contained, also on Solaris 10.
46108         * lib/sys_select.in.h: Include <string.h>.
46109         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
46110         Solaris 10 problem.
46111         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
46112         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
46113         Reported by Jim Meyering.
46114
46115 2009-08-09  Bruno Haible  <bruno@clisp.org>
46116
46117         Avoid warnings from 'aclocal' that are due to a use of macro name
46118         AM_XGETTEXT_OPTION that is not defined in automake.
46119         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
46120         automake.
46121         * modules/error (configure.ac): Likewise.
46122         * modules/propername (configure.ac): Likewise.
46123         * modules/vasprintf (configure.ac): Likewise.
46124         * modules/verror (configure.ac): Likewise.
46125         * modules/xprintf (configure.ac): Likewise.
46126         * modules/xvasprintf (configure.ac): Likewise.
46127
46128 2009-08-08  Bruno Haible  <bruno@clisp.org>
46129
46130         Avoid compilation error in C++ mode.
46131         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
46132         Reported by Sam Steingold <sds@gnu.org>.
46133
46134 2009-08-08  Bruno Haible  <bruno@clisp.org>
46135
46136         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
46137         for the various Unix platforms.
46138         * doc/posix-headers/limits.texi: Update platforms list regarding
46139         HOST_NAME_MAX.
46140         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46141
46142 2009-08-07  Jim Meyering  <meyering@redhat.com>
46143
46144         selinux-at: fix typo in a comment
46145         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
46146         Spotted by Paolo Bonzini.
46147
46148         selinux-at: remove redundant m4 code, add documentation
46149         * modules/selinux-at (configure.ac): Remove redundant code.
46150         LIB_SELINUX is already set via the dependent module, selinux-h.
46151         (Include): Add quotes around selinux-at.h.
46152         * lib/selinux-at.h: Add documentation.
46153         Reported by Bruno Haible in
46154         http://marc.info/?l=gnulib-bug&m=124958988300749
46155
46156 2009-08-07  Bruno Haible  <bruno@clisp.org>
46157
46158         Avoid link error on MacOS X 10.3 and 10.4.
46159         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
46160         on non-ELF systems.
46161         * lib/argp-pv.c (argp_program_version): Likewise.
46162         Reported by Simon Josefsson.
46163
46164 2009-08-07  Simon Josefsson  <simon@josefsson.org>
46165
46166         * tests/test-version-etc.sh: Use $EXEEXT.
46167
46168 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
46169
46170         update-copyright: update documentation to point to maint.mk
46171         * build-aux/update-copyright: Here.
46172
46173 2009-08-06  Jim Meyering  <meyering@redhat.com>
46174
46175         maint.mk: support update-copyright-local
46176         * top/maint.mk (update-copyright-local): Define place-holder.
46177         (update-copyright): Depend on $(update-copyright-local).
46178
46179 2009-08-06  Jim Meyering  <meyering@redhat.com>
46180
46181         selinux-at: new module
46182         Initially written for coreutils, this module will soon be
46183         used by findutils, too.
46184         * MODULES.html.sh [Misc]: Add selinux-at.
46185         * lib/selinux-at.h: New file, from coreutils.
46186         * lib/selinux-at.c: Likewise.
46187         * modules/selinux-at: Likewise.
46188         (License): Change from LGPL to GPL, since it depends
46189         on the GPL'd openat module.
46190
46191         doc: update README
46192         * README: Remove references to cogito.
46193         Remove cvs-repo-updating instructions from 2007.
46194         Don't imply that CVS is better if you have limited disk space.
46195
46196 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46197
46198         update-copyright: support C-style comments
46199         * build-aux/update-copyright: Implement and document.
46200         * tests/test-update-copyright.sh: Test.
46201
46202 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46203
46204         update-copyright: support omitted "(C)"
46205         * build-aux/update-copyright: Implement and document.  Also,
46206         allow variable whitespace before "(C)".
46207         * tests/test-update-copyright.sh: Test.
46208
46209 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46210
46211         update-copyright: don't trip on non-FSF copyright statements
46212         * build-aux/update-copyright: Fix so that the first correctly
46213         formatted FSF copyright statement is recognized no matter what
46214         appears before it.  Update documentation.
46215         * tests/test-update-copyright.sh: Test that.
46216
46217 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46218
46219         update-copyright: clean up code a little
46220         * build-aux/update-copyright: Append "_re" to the name of any
46221         variable holding a regular expression.
46222         Replace "old" and "new" with "stmt" in variable names.
46223         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
46224         handled correctly.
46225         Format code more consistently.
46226
46227 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46228
46229         update-copyright-tests: improve portability
46230         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
46231         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
46232
46233 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46234
46235         update-copyright: support @copyright{} and &copy;
46236         * build-aux/update-copyright: Implement and document.
46237         * tests/test-update-copyright.sh: Test.
46238
46239 2009-08-04  Jim Meyering  <meyering@redhat.com>
46240
46241         update-copyright-tests: correctly test EOL=\r\n handling
46242         * tests/test-update-copyright.sh: Put \r at the end of some lines
46243         for the dos-eol tests.  Based on a patch by Joel E. Denny.
46244
46245         maint.mk: make update-copyright exclusion list more configurable
46246         * top/maint.mk (update-copyright): Default to excluding COPYING,
46247         but allow an override, in case someone does want to update that file.
46248
46249         maint.mk: don't update copyright date in COPYING
46250         * top/maint.mk (update-copyright): Exclude COPYING.
46251
46252         maint.mk: add a copyright-updating rule
46253         * top/maint.mk (update-copyright): New rule.
46254         Derived from coreutils/Makefile.am.
46255
46256         update-copyright: rename some variables
46257         * build-aux/update-copyright: Rename a few variables for clarity.
46258         Tweak syntax.  List Joel E. Denny as coauthor.
46259
46260 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46261
46262         update-copyright: fix bug for 2-digit last year and add tests
46263         * build-aux/update-copyright: Fix bug.
46264         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
46265         specified.
46266         * modules/update-copyright-tests: New
46267         * tests/test-update-copyright.sh: New.
46268
46269 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46270
46271         update-copyright: handle leading tabs in line prefix
46272         * build-aux/update-copyright: Count leading tabs as 8 spaces
46273         when computing margin.  This helps with the formatting of
46274         ChangeLogs, for example.
46275         Fix documentation a little.
46276
46277 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46278
46279         update-copyright: support EOL=\r\n
46280         * build-aux/update-copyright: Implement that.
46281
46282 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46283
46284         update-copyright: automatically format copyright statements
46285         * build-aux/update-copyright: Implement that.
46286         Also, be a little more predictable and safer by always failing
46287         when the full copyright format is not perfectly recognized as an
46288         unbroken whole.  Discussed at
46289         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
46290         Rewrite documentation.
46291
46292 2009-08-03  Bruno Haible  <bruno@clisp.org>
46293
46294         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
46295
46296 2009-08-02  Bruno Haible  <bruno@clisp.org>
46297
46298         Tests for module 'uname'.
46299         * modules/uname-tests: New file.
46300         * tests/test-uname.c: New file.
46301
46302         New module 'uname'.
46303         * lib/uname.c: New file.
46304         * m4/uname.m4: New file.
46305         * modules/uname: New file.
46306         * doc/posix-functions/uname.texi: Mention the new module.
46307
46308 2009-08-02  Bruno Haible  <bruno@clisp.org>
46309
46310         Tests for module 'sys_utsname'.
46311         * modules/sys_utsname-tests: New file.
46312         * tests/test-sys_utsname.c: New file.
46313
46314         New module 'sys_utsname'.
46315         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
46316         * m4/sys_utsname_h.m4: New file.
46317         * modules/sys_utsname: New file.
46318         * doc/posix-headers/sys_utsname.texi: Mention the new module.
46319
46320 2009-08-02  Bruno Haible  <bruno@clisp.org>
46321
46322         Implicitly initialize the sockets library.
46323         * lib/gethostname.c: Include sockets.h.
46324         (rpl_gethostname): Invoke gl_sockets_startup.
46325         * lib/socket.c: Include sockets.h.
46326         (rpl_socket): Invoke gl_sockets_startup.
46327         * modules/gethostname (Depends-on): Add sockets.
46328         * modules/socket (Depends-on): Likewise.
46329         * tests/test-poll.c: Don't include sockets.h.
46330         (main): Don't invoke gl_sockets_startup.
46331         * tests/test-select.c: Don't include sockets.h.
46332         (main): Don't invoke gl_sockets_startup.
46333
46334 2009-08-02  Bruno Haible  <bruno@clisp.org>
46335
46336         Allow multiple calls to gl_sockets_startup.
46337         * lib/sockets.c (initialized_sockets_version): New variable.
46338         (gl_sockets_startup): Do nothing if already called for this or a higher
46339         version.
46340         (gl_sockets_cleanup): Reset initialized_sockets_version.
46341
46342 2009-08-03  Simon Josefsson  <simon@josefsson.org>
46343
46344         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
46345         different project/version.
46346
46347 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
46348             Bruno Haible  <bruno@clisp.org>
46349
46350         Tests for module 'pipe-filter-gi'.
46351         * modules/pipe-filter-gi-tests: New file.
46352         * tests/test-pipe-filter-gi1.sh: New file.
46353         * tests/test-pipe-filter-gi1.c: New file.
46354         * tests/test-pipe-filter-gi2.sh: New file.
46355         * tests/test-pipe-filter-gi2-main.c: New file.
46356         * tests/test-pipe-filter-gi2-child.c: New file.
46357
46358         New module 'pipe-filter-gi'.
46359         * lib/pipe-filter-gi.c: New file.
46360         * modules/pipe-filter-gi: New file.
46361
46362 2009-08-02  Bruno Haible  <bruno@clisp.org>
46363             Paolo Bonzini  <bonzini@gnu.org>
46364
46365         Tests for module 'pipe-filter-ii'.
46366         * modules/pipe-filter-ii-tests: New file.
46367         * tests/test-pipe-filter-ii1.sh: New file.
46368         * tests/test-pipe-filter-ii1.c: New file.
46369         * tests/test-pipe-filter-ii2.sh: New file.
46370         * tests/test-pipe-filter-ii2-main.c: New file.
46371         * tests/test-pipe-filter-ii2-child.c: New file.
46372
46373         New module 'pipe-filter-ii'.
46374         * lib/pipe-filter.h: New file.
46375         * lib/pipe-filter-ii.c: New file.
46376         * lib/pipe-filter-aux.h: New file.
46377         * modules/pipe-filter-ii: New file.
46378
46379 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46380
46381         * lib/gc-libgcrypt.c: Change copyright to FSF.
46382         * lib/gc-gnulib.c: Likewise.
46383
46384 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
46385
46386         * lib/gethostname.c: Include limits.h.
46387
46388 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46389             Bruno Haible  <bruno@clisp.org>
46390
46391         Ensure HOST_NAME_MAX as part of the gethostname module.
46392         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
46393         define also HOST_NAME_MAX.
46394         * tests/test-gethostname.c: Include <limits.h>.
46395         (main): Check also HOST_NAME_MAX.
46396         * doc/posix-headers/limits.texi: Document the mingw problem.
46397
46398 2009-08-02  Bruno Haible  <bruno@clisp.org>
46399
46400         * lib/gethostname.c (gethostname): Fix handling of large len argument.
46401         Add comments.
46402
46403 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46404
46405         * lib/gethostname.c: Add Windows wrapper.
46406         * m4/gethostname.m4: Look for gethostname in -lws2_32.
46407         * modules/gethostname: Depend on sys_socket & errno, for also
46408         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
46409         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
46410
46411 2009-07-31  Jim Meyering  <meyering@redhat.com>
46412
46413         getloadavg: fix symbol name in comment
46414         * lib/getloadavg.c: Correct a typo I introduced when adding
46415         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
46416         Matt Kraai spotted the problem.
46417
46418 2009-07-29  Matt Kraai  <mkraai@beckman.com>
46419
46420         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
46421         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
46422         code also if ! defined N_NAME_POINTER.
46423         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
46424         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
46425         but the n_name member is a 12-byte array.
46426
46427 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
46428
46429         update-copyright: generalize comment handling
46430         * build-aux/update-copyright: Handle copyright statements
46431         within more comment styles.
46432         Document usage.
46433         Report any file with an external copyright holder or parse failure.
46434
46435 2009-07-29  Jim Meyering  <meyering@redhat.com>
46436
46437         mktime: correct setting of REPLACE_MKTIME
46438         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
46439
46440         update-copyright: new module
46441         * modules/update-copyright: New file.
46442         * build-aux/update-copyright: New file.
46443         * MODULES.html.sh (maint+release support): Add update-copyright.
46444
46445 2009-07-27  Bruno Haible  <bruno@clisp.org>
46446
46447         Fix compilation error when <ctime> is used and mktime is replaced.
46448         * lib/time.in.h (mktime): New declaration.
46449         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
46450         REPLACE_MKTIME instead of defining mktime in config.h.
46451         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
46452         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
46453         Reported by Ross McFarland <rwmcfa1@neces.com>.
46454
46455 2009-07-27  Bruno Haible  <bruno@clisp.org>
46456
46457         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
46458         Reported by Matt Kraai <mkraai@beckman.com>.
46459
46460 2009-07-25  Jim Meyering  <meyering@redhat.com>
46461
46462         maint.mk: avoid warnings about missing files
46463         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
46464         diagnostic when .prev-version does not exist.
46465         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
46466         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
46467         nonexistent cfg.mk.
46468         Suggestions from Simon Josefsson.
46469
46470 2009-07-25  Bruno Haible  <bruno@clisp.org>
46471
46472         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
46473         defined as macros. Needed on QNX 6.4.1.
46474         Reported by Matt Kraai <mkraai@beckman.com>.
46475
46476 2009-07-23  Jim Meyering  <meyering@redhat.com>
46477
46478         maint.mk: invoke "make dist" with a working value of XZ_OPT
46479         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
46480
46481 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
46482
46483         Make fseeko.c compile on QNX.
46484         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
46485
46486 2009-07-22  Peter Simons  <simons@cryp.to>
46487
46488         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
46489         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
46490         * lib/md4.h: Likewise.
46491         * lib/md5.h: Likewise.
46492         * lib/sha1.h: Likewise.
46493         * lib/sha256.h: Likewise.
46494         * lib/sha512.h: Likewise.
46495
46496         tests-sha1: don't assign literal string to 'char *' variable
46497         * tests/test-sha1.c (main): Declare locals with "const" to match
46498         attributes of the right hand side.
46499
46500 2009-07-21  Eric Blake  <ebb9@byu.net>
46501
46502         dup2: fix more mingw problems
46503         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
46504         fd to itself.
46505         * doc/posix-functions/dup2.texi (dup2): Document the bug.
46506         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
46507         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
46508         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
46509         care of mingw bugs.
46510
46511 2009-07-21  Jim Meyering  <meyering@redhat.com>
46512
46513         vc-list-files: avoid failure when /bin/sh is dash
46514         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
46515         On some Debian based systems, /bin/sh is a symlink to dash, and running
46516         this command would omit the "/" following each 'tests' prefix:
46517           dash -x build-aux/vc-list-files -C . tests
46518         That is because bash and dash work differently:
46519           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
46520           bash ok
46521           dash odd
46522
46523 2009-07-21  Eric Blake  <ebb9@byu.net>
46524
46525         dup2-tests: test previous patch
46526         * modules/dup2-tests: New file.
46527         * tests/test-dup2.c: Likewise.
46528         * tests/test-open.c (main): Avoid unspecified behavior.
46529         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
46530         test.
46531
46532         dup2: work around mingw and cygwin 1.5 bug
46533         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
46534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46535         * modules/unistd (Makefile.am): Substitute it.
46536         * lib/unistd.in.h (dup2): Declare the replacement.
46537         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
46538         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
46539         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
46540         * modules/execute (Depends-on): Add dup2.
46541         * modules/fseterr (Depends-on): Likewise.
46542         * modules/pipe (Depends-on): Likewise.
46543         * modules/posix_spawn-internal (Depends-on): Likewise.
46544
46545 2009-07-21  Bruno Haible  <bruno@clisp.org>
46546
46547         * modules/.gitattributes: New file.
46548
46549 2009-07-20  Bruno Haible  <bruno@clisp.org>
46550
46551         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
46552         (main): Use it.
46553
46554 2009-07-20  Eric Blake  <ebb9@byu.net>
46555
46556         test-pipe: make a bit more robust.
46557         * tests/test-pipe.c (myerr): Allow error messages regardless of
46558         what we do to stderr.
46559         (test_pipe): Rearrange to avoid deadlock.
46560         (child_main): Try a larger read, to ensure we avoided deadlock.
46561         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
46562         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
46563         if misused.
46564
46565 2009-07-19  Jim Meyering  <meyering@redhat.com>
46566
46567         fts: avoid false-positive cycle-detection
46568         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
46569         for each new command line argument.
46570
46571 2009-07-19  Bruno Haible  <bruno@clisp.org>
46572
46573         Fix build error on mingw with the modules sys_select and unistd.
46574         * modules/acl-tests (Depends-on): Add close.
46575         * modules/binary-io-tests (Depends-on): Likewise.
46576         * modules/closein-tests (Depends-on): Likewise.
46577         * modules/flock-tests (Depends-on): Likewise.
46578         * modules/fsync-tests (Depends-on): Likewise.
46579         * modules/lseek-tests (Depends-on): Likewise.
46580         * modules/pipe-tests (Depends-on): Likewise.
46581         * modules/posix_spawn-tests (Depends-on): Likewise.
46582         * modules/posix_spawnp-tests (Depends-on): Likewise.
46583         * modules/stat-time-tests (Depends-on): Likewise.
46584         * modules/yesno-tests (Depends-on): Likewise.
46585
46586 2009-07-19  Bruno Haible  <bruno@clisp.org>
46587
46588         Unify conditionals.
46589         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
46590         macros, not at the compiler macros.
46591         * lib/pipe.c: Likewise.
46592         * lib/execute.c: Likewise.
46593         * lib/spawni.c: Likewise.
46594
46595 2009-07-19  Bruno Haible  <bruno@clisp.org>
46596
46597         Fix handling of closed stdin/stdout/stderr on mingw.
46598         * lib/w32spawn.h: Include unistd.h.
46599         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
46600         file descriptor with O_NOINHERIT flag.
46601         (fd_safer_noinherit): New function, based on fd-safer.c.
46602         (dup_safer_noinherit): New function, based on dup-safer.c.
46603         (undup_safer_noinherit): New function.
46604         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
46605         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
46606         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
46607         instead of fd_safer.
46608         * tests/test-pipe.c: Include <windows.h>.
46609         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
46610         result.
46611
46612         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
46613         from main.
46614         (test_pipe): Pass an extra argument for disambiguation.
46615         (main): Invoke parent_main or child_main.
46616
46617         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
46618         consistently.
46619
46620 2009-07-18  Eric Blake  <ebb9@byu.net>
46621
46622         test-pipe: fix mingw build
46623         * tests/test-pipe.c (main): Avoid fcntl on mingw.
46624
46625 2009-07-18  Bruno Haible  <bruno@clisp.org>
46626
46627         * modules/pipe-tests (Makefile.am): Fix typo.
46628
46629 2009-07-18  Eric Blake  <ebb9@byu.net>
46630
46631         error: fix mingw build
46632         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
46633         Reported by Bruno Haible.
46634
46635         error: avoid undefined use of stdout
46636         * lib/error.c (error, error_at_line): Check that fd 1 is open
46637         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
46638         is handling faults and the close_stdout module wants to report the
46639         detection of closed stdout as an error.
46640
46641 2009-07-17  Eric Blake  <ebb9@byu.net>
46642
46643         pipe: be robust in face of closed fds
46644         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
46645         should cause child to misbehave.
46646         * modules/pipe-tests: New module.
46647         * tests/test-pipe.c: New file.
46648         * tests/test-pipe.sh: New file.
46649         Reported by Akim Demaille.
46650
46651 2009-07-14  Bruno Haible  <bruno@clisp.org>
46652
46653         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
46654         Reported by anonymous kc.
46655
46656 2009-07-07  Jim Meyering  <meyering@redhat.com>
46657
46658         maint.mk: don't look for translatable strings in *.m4 or *.mk
46659         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
46660         when searching for translatable strings.
46661
46662 2009-07-05  Jim Meyering  <meyering@redhat.com>
46663
46664         remove superfluous parentheses in STREQ definition
46665         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
46666         * lib/getugroups.c (STREQ): Likewise.
46667         * lib/fnmatch.c (STREQ): Likewise.
46668         Spotted by Bruno Haible.
46669
46670 2009-07-04  Jim Meyering  <meyering@redhat.com>
46671
46672         argv-iter: new module
46673         * MODULES.html.sh: Add argv-iter.
46674         * lib/argv-iter.c, lib/argv-iter.h: New files.
46675         * modules/argv-iter: New file.
46676         * modules/argv-iter-tests: New file.
46677         * tests/test-argv-iter.c: Test it.
46678
46679 2009-07-04  Bruno Haible  <bruno@clisp.org>
46680
46681         Fix assertion.
46682         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
46683         contains more exact copies of a given entry than file2, leave the extra
46684         copies unpaired rather than aborting.
46685         Reported by Eric Blake.
46686
46687 2009-07-02  Bruno Haible  <bruno@clisp.org>
46688
46689         Speedup git-merge-changelog for git cherry-pick.
46690         * lib/git-merge-changelog.c (struct entries_mapping): New type.
46691         (entries_mapping_get): New function, extracted from compute_mapping.
46692         (entries_mapping_reverse_get): New function.
46693         (compute_mapping): Add a 'full' argument. Return the result in a
46694         'struct entries_mapping'.
46695         (main): Update. Access the mappings through entries_mapping_get.
46696         Reported by Eric Blake.
46697
46698 2009-07-02  Bruno Haible  <bruno@clisp.org>
46699
46700         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
46701         best_i.
46702
46703 2009-07-02  Bruno Haible  <bruno@clisp.org>
46704
46705         Speed up approximate search for matching ChangeLog entries.
46706         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
46707         argument. Call fstrcmp_bounded instead of fstrcmp.
46708         (compute_mapping, try_split_merged_entry, main): Update callers.
46709
46710 2009-07-02  Bruno Haible  <bruno@clisp.org>
46711
46712         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
46713
46714 2009-06-30  Bruno Haible  <bruno@clisp.org>
46715
46716         Reduce the number of uc_is_cased calls.
46717         * lib/unicase.h (casing_suffix_context_t): Add
46718         'first_char_except_ignorable' field.
46719         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
46720         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
46721         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
46722         Update initializer.
46723         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
46724         case-ignorable characters.
46725         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
46726         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
46727         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
46728         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
46729         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
46730
46731 2009-06-30  Bruno Haible  <bruno@clisp.org>
46732
46733         Tests for module 'unicase/ignorable'.
46734         * modules/unicase/ignorable-tests: New file.
46735         * tests/unicase/test-ignorable.c: New file, generated by
46736         gen-uni-tables.
46737
46738         Tests for module 'unicase/cased'.
46739         * modules/unicase/cased-tests: New file.
46740         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
46741         * tests/unicase/test-predicate-part1.h: New file, derived from
46742         tests/unictype/test-predicate-part1.h.
46743         * tests/unicase/test-predicate-part2.h: New file, same as
46744         tests/unictype/test-predicate-part2.h.
46745
46746         Fix evaluation of "Before C" condition of FINAL_SIGMA.
46747         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
46748         (output_casing_properties): New function.
46749         (main): Call it.
46750         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
46751         * lib/unicase/cased.c: Include unictype/bitmap.h.
46752         (uc_is_cased): Define through a bitmap lookup.
46753         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
46754         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
46755         (uc_is_case_ignorable): Define through a bitmap lookup.
46756         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
46757         lib/unictype/bitmap.h.
46758         (Depends-on): Add inline. Clean up.
46759         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
46760         lib/unictype/bitmap.h.
46761         (Depends-on): Add inline. Clean up.
46762         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
46763         recognition.
46764         * tests/unicase/test-u16-tolower.c (main): Likewise.
46765         * tests/unicase/test-u32-tolower.c (main): Likewise.
46766
46767 2009-06-30  Bruno Haible  <bruno@clisp.org>
46768
46769         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
46770         * lib/unicase/u16-casemap.c: Likewise.
46771         * lib/unicase/u32-casemap.c: Likewise.
46772
46773 2009-06-29  Bruno Haible  <bruno@clisp.org>
46774
46775         Define u32_casefold as a wrapper around u32_ct_casefold.
46776         * lib/unicase/u32-casefold.c: Update.
46777         * modules/unicase/u32-casefold (Depends-on): Add
46778         unicase/u32-ct-casefold, unicase/empty-prefix-context,
46779         unicase/empty-suffix-context. Clean up.
46780
46781         Define u16_casefold as a wrapper around u16_ct_casefold.
46782         * lib/unicase/u16-casefold.c: Update.
46783         * modules/unicase/u16-casefold (Depends-on): Add
46784         unicase/u16-ct-casefold, unicase/empty-prefix-context,
46785         unicase/empty-suffix-context. Clean up.
46786
46787         Define u8_casefold as a wrapper around u8_ct_casefold.
46788         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
46789         * lib/unicase/u8-casefold.c: Update.
46790         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
46791         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46792
46793         Define u32_totitle as a wrapper around u32_ct_totitle.
46794         * lib/unicase/u32-totitle.c: Update.
46795         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
46796         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46797
46798         Define u16_totitle as a wrapper around u16_ct_totitle.
46799         * lib/unicase/u16-totitle.c: Update.
46800         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
46801         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46802
46803         Define u8_totitle as a wrapper around u8_ct_totitle.
46804         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
46805         functions.
46806         (FUNC): Delegate to U_CT_TOTITLE.
46807         * lib/unicase/u8-totitle.c: Update.
46808         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
46809         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46810
46811         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
46812         invocation.
46813         * modules/unicase/u32-tolower (Depends-on): Add
46814         unicase/empty-prefix-context, unicase/empty-suffix-context.
46815
46816         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
46817         invocation.
46818         * modules/unicase/u16-tolower (Depends-on): Add
46819         unicase/empty-prefix-context, unicase/empty-suffix-context.
46820
46821         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
46822         * modules/unicase/u8-tolower (Depends-on): Add
46823         unicase/empty-prefix-context, unicase/empty-suffix-context.
46824
46825         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
46826         invocation.
46827         * modules/unicase/u32-toupper (Depends-on): Add
46828         unicase/empty-prefix-context, unicase/empty-suffix-context.
46829
46830         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
46831         invocation.
46832         * modules/unicase/u16-toupper (Depends-on): Add
46833         unicase/empty-prefix-context, unicase/empty-suffix-context.
46834
46835         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
46836         * modules/unicase/u8-toupper (Depends-on): Add
46837         unicase/empty-prefix-context, unicase/empty-suffix-context.
46838
46839         New module 'unicase/u32-ct-casefold'.
46840         * lib/unicase/u32-ct-casefold.c: New file.
46841         * modules/unicase/u32-ct-casefold: New file.
46842
46843         New module 'unicase/u16-ct-casefold'.
46844         * lib/unicase/u16-ct-casefold.c: New file.
46845         * modules/unicase/u16-ct-casefold: New file.
46846
46847         New module 'unicase/u8-ct-casefold'.
46848         * lib/unicase/u8-ct-casefold.c: New file.
46849         * lib/unicase/u-ct-casefold.h: New file, derived from
46850         lib/unicase/u-casefold.h.
46851         * modules/unicase/u8-ct-casefold: New file.
46852
46853         New module 'unicase/u32-ct-totitle'.
46854         * lib/unicase/u32-ct-totitle.c: New file.
46855         * modules/unicase/u32-ct-totitle: New file.
46856
46857         New module 'unicase/u16-ct-totitle'.
46858         * lib/unicase/u16-ct-totitle.c: New file.
46859         * modules/unicase/u16-ct-totitle: New file.
46860
46861         New module 'unicase/u8-ct-totitle'.
46862         * lib/unicase/u8-ct-totitle.c: New file.
46863         * lib/unicase/u-ct-totitle.h: New file, derived from
46864         lib/unicase/u-totitle.h.
46865         * modules/unicase/u8-ct-totitle: New file.
46866
46867         New module 'unicase/u32-ct-tolower'.
46868         * lib/unicase/u32-ct-tolower.c: New file.
46869         * modules/unicase/u32-ct-tolower: New file.
46870
46871         New module 'unicase/u16-ct-tolower'.
46872         * lib/unicase/u16-ct-tolower.c: New file.
46873         * modules/unicase/u16-ct-tolower: New file.
46874
46875         New module 'unicase/u8-ct-tolower'.
46876         * lib/unicase/u8-ct-tolower.c: New file.
46877         * modules/unicase/u8-ct-tolower: New file.
46878
46879         New module 'unicase/u32-ct-toupper'.
46880         * lib/unicase/u32-ct-toupper.c: New file.
46881         * modules/unicase/u32-ct-toupper: New file.
46882
46883         New module 'unicase/u16-ct-toupper'.
46884         * lib/unicase/u16-ct-toupper.c: New file.
46885         * modules/unicase/u16-ct-toupper: New file.
46886
46887         New module 'unicase/u8-ct-toupper'.
46888         * lib/unicase/u8-ct-toupper.c: New file.
46889         * modules/unicase/u8-ct-toupper: New file.
46890
46891         Add context arguments to u*_casemap functions.
46892         * lib/unicase/unicasemap.h: Include unicase.h.
46893         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
46894         suffix_context arguments.
46895         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
46896         functions.
46897         (FUNC): Add prefix_context and suffix_context arguments. Use
46898         uc_is_cased and uc_is_case_ignorable.
46899         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
46900         * lib/unicase/u16-casemap.c: Likewise.
46901         * lib/unicase/u32-casemap.c: Likewise.
46902         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
46903         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46904         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
46905         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46906         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
46907         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46908
46909         New module 'unicase/u32-suffix-context'.
46910         * lib/unicase/u32-suffix-context.c: New file.
46911         * modules/unicase/u32-suffix-context: New file.
46912
46913         New module 'unicase/u16-suffix-context'.
46914         * lib/unicase/u16-suffix-context.c: New file.
46915         * modules/unicase/u16-suffix-context: New file.
46916
46917         New module 'unicase/u8-suffix-context'.
46918         * lib/unicase/u8-suffix-context.c: New file.
46919         * lib/unicase/u-suffix-context.h: New file.
46920         * modules/unicase/u8-suffix-context: New file.
46921
46922         New module 'unicase/empty-suffix-context'.
46923         * lib/unicase/empty-suffix-context.c: New file.
46924         * modules/unicase/empty-suffix-context: New file.
46925
46926         New module 'unicase/u32-prefix-context'.
46927         * lib/unicase/u32-prefix-context.c: New file.
46928         * modules/unicase/u32-prefix-context: New file.
46929
46930         New module 'unicase/u16-prefix-context'.
46931         * lib/unicase/u16-prefix-context.c: New file.
46932         * modules/unicase/u16-prefix-context: New file.
46933
46934         New module 'unicase/u8-prefix-context'.
46935         * lib/unicase/u8-prefix-context.c: New file.
46936         * lib/unicase/u-prefix-context.h: New file.
46937         * lib/unicase/context.h: New file.
46938         * modules/unicase/u8-prefix-context: New file.
46939
46940         New module 'unicase/empty-prefix-context'.
46941         * lib/unicase/empty-prefix-context.c: New file.
46942         * modules/unicase/empty-prefix-context: New file.
46943
46944         New module 'unicase/ignorable'.
46945         * lib/unicase/ignorable.c: New file.
46946         * modules/unicase/ignorable: New file.
46947
46948         New module 'unicase/cased'.
46949         * lib/unicase/caseprop.h: New file.
46950         * lib/unicase/cased.c: New file.
46951         * modules/unicase/cased: New file.
46952
46953         New functions for case mapping of substrings.
46954         * lib/unicase.h (casing_prefix_context_t): New type.
46955         (unicase_empty_prefix_context): New variable.
46956         (u8_casing_prefix_context, u16_casing_prefix_context,
46957         u32_casing_prefix_context, u8_casing_prefixes_context,
46958         u16_casing_prefixes_context, u32_casing_prefixes_context): New
46959         declarations.
46960         (casing_suffix_context_t): New type.
46961         (unicase_empty_suffix_context): New variable.
46962         (u8_casing_suffix_context, u16_casing_suffix_context,
46963         u32_casing_suffix_context, u8_casing_suffixes_context,
46964         u16_casing_suffixes_context, u32_casing_suffixes_context,
46965         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
46966         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
46967         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
46968         declarations.
46969
46970 2009-06-28  Jim Meyering  <meyering@redhat.com>
46971
46972         boostrap: indent only with spaces
46973         * build-aux/bootstrap: Indent only with spaces, never TABs.
46974
46975         bootstrap: split long lines
46976         * build-aux/bootstrap: Keep line length < 80.
46977
46978         bootstrap: sync from coreutils
46979         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
46980         just as autoreconf does.  Verify a list of prerequisite
46981         package-name,version-number pairs if defined in bootstrap.conf.
46982         Refer to README-prereq, if prerequisites are not satisfied.
46983
46984 2009-06-27  Eric Blake  <ebb9@byu.net>
46985
46986         tests: add test for bogus NULL definition
46987         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
46988         * tests/test-stdlib.c: Likewise.
46989         * tests/test-string.c: Likewise.
46990         * tests/test-locale.c: Likewise.
46991         * tests/test-unistd.c: Likewise.
46992         * modules/stdio-tests (Depends-on): Add verify.
46993         * modules/stdlib-tests (Depends-on): Likewise.
46994         * modules/string-tests (Depends-on): Likewise.
46995         * modules/locale-tests (Depends-on): Likewise.
46996         * modules/unistd-tests (Depends-on): Likewise.
46997
46998 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
46999
47000         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
47001         self-explaining comment.
47002         * m4/selinux-selinux-h: Update serial.
47003         (gl_LIBSELINUX): New macro, adding a warning for missing development
47004         packages to code extracted from...
47005         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
47006         Add warning for missing development packages here, too.
47007
47008 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
47009
47010         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
47011
47012 2009-06-25  Eric Blake  <ebb9@byu.net>
47013
47014         version-etc: fix regression
47015         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
47016         gcc.
47017         (version_etc): Use it, to catch bugs with trailing NULL.
47018         * lib/version-etc.c (version_etc_arn): Delete unused argument.
47019         (version_etc_va): Fix logic bug.
47020         * modules/version-etc-tests: Add test.
47021         * tests/test-version-etc.c: New file.
47022         * tests/test-version-etc.sh: Likewise.
47023
47024 2009-06-25  Sam Steingold  <sds@gnu.org>
47025
47026         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
47027         mbtowc declaration.
47028
47029 2009-06-25  Eric Blake  <ebb9@byu.net>
47030
47031         fpurge: migrate into <stdio.h>
47032         * lib/fpurge.h: Delete...
47033         * lib/stdio.in.h (fpurge): ...and declare here, instead.
47034         * lib/fpurge.c (fpurge): Change declaring header.
47035         * modules/fpurge (Files): Drop deleted file.
47036         (Depends-on): Add stdio.
47037         (configure.ac): Set witness.
47038         * modules/stdio (Makefile.am): Support fpurge macros.
47039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47040         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
47041         * lib/fflush.c: Update client.
47042         * tests/test-fpurge.c: Likewise.
47043         * NEWS: Mention the change.
47044
47045 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47046
47047         * lib/argp-version-etc.c (program_authors): Add const
47048         qualifier.
47049         * lib/version-etc.c: Fix typos in the comments.
47050         * modules/argp-version-etc: Depends on version-etc.
47051
47052 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47053
47054         argp-version-etc: new module.
47055
47056         * lib/argp-version-etc.c: New file.
47057         * lib/argp-version-etc.h: New file.
47058         * modules/argp-version-etc: New file.
47059         * modules/argp-version-etc-tests: New file.
47060         * tests/test-argp-version-etc.c: New test.
47061         * tests/test-argp-version-etc-1.sh: New test.
47062
47063 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47064
47065         Provide additional interfaces and documentation for version-etc
47066         module.
47067
47068         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
47069         interfaces.
47070         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
47071         prototypes.
47072
47073 2009-06-24  Bruno Haible  <bruno@clisp.org>
47074
47075         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
47076         HAVE_LIB${NAME} macro.
47077         Reported by Sam Steingold <sds@gnu.org>.
47078
47079 2009-06-23  Simon Josefsson  <simon@josefsson.org>
47080
47081         * modules/hash-tests (test_hash_LDADD): Link to libintl when
47082         needed.
47083
47084 2009-06-21  Bruno Haible  <bruno@clisp.org>
47085
47086         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
47087         work.
47088         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
47089         together with LIB${NAME}, LTLIB${NAME}.
47090         Reported by Sam Steingold <sds@gnu.org>.
47091
47092 2009-06-20  Jim Meyering  <meyering@redhat.com>
47093
47094         tests: make sc_require_test_exit_idiom more generic
47095         * top/maint.mk (Exit_witness_file): New overridable variable.
47096         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
47097         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
47098
47099 2009-06-19  Jim Meyering  <meyering@redhat.com>
47100
47101         hash: reverse order of src/dst parameters in an internal interface
47102         * lib/hash.c (transfer_entries): Reverse order of parameters to
47103         put DST before SRC.  Adjust callers.
47104
47105         tests: test-hash: avoid wholesale duplication
47106         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
47107         Instead, use a loop and add a single conditional.
47108
47109         tests: test-hash: allow seed selection via a command line argument
47110         * tests/test-hash.c (get_seed): New function.
47111         (main): Use it.
47112
47113 2009-06-19  Eric Blake  <ebb9@byu.net>
47114
47115         hash: avoid memory leak on allocation failure
47116         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
47117         failure.  Factor repeated algorithm...
47118         (transfer_entries): ...into new helper routine.
47119         (hash_delete): React to hash_rehash return value.
47120
47121         hash: reduce memory pressure in hash_rehash no-op case
47122         * lib/hash.c (next_prime): Avoid overflow.
47123         (hash_initialize): Factor bucket size computation...
47124         (compute_bucket_size): ...into new helper function.
47125         (hash_rehash): Use new function and open coding to reduce memory
47126         pressure, and avoid a memory leak in USE_OBSTACK code.
47127         Reported by Jim Meyering.
47128
47129 2009-06-18  Eric Blake  <ebb9@byu.net>
47130
47131         hash: make rotation more obvious
47132         * modules/hash (Depends-on): Add bitrotate and stdint.
47133         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
47134         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
47135         (SIZE_MAX): Rely on headers for definition.
47136         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
47137         (raw_hasher): Use rotr_sz.
47138         Suggested by Jim Meyering.
47139
47140         hash: fix memory leak in last patch
47141         * lib/hash.c (hash_rehash): Avoid memory leak.
47142
47143         hash: avoid no-op rehashing
47144         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
47145
47146         hash: provide default callback functions
47147         * lib/hash.c (raw_hasher, raw_comparator): New functions.
47148         (hash_initialize): Use them as defaults.
47149         * tests/test-hash.c (main): Test this.
47150
47151         hash: minor optimization
47152         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
47153         when possible.
47154         (hash_initialize): Document this promise.
47155         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
47156         * tests/test-hash.c (hash_compare_strings): Test this.
47157
47158 2009-06-18  Bruno Haible  <bruno@clisp.org>
47159
47160         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
47161         going to be replaced anyway.
47162
47163 2009-06-18  Bruno Haible  <bruno@clisp.org>
47164
47165         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
47166         in one place.
47167         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
47168         be replaced anyway.
47169
47170 2009-06-18  Eric Blake  <ebb9@byu.net>
47171
47172         hash: check for resize before insertion
47173         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
47174         threshold before insertion, so that a pathological hash_rehash
47175         that fills every bucket can still trigger another rehash.
47176
47177 2009-06-18  Jim Meyering  <meyering@redhat.com>
47178
47179         hash-tests: add a loop around the small tests
47180         * tests/test-hash.c (main): Repeat small tests with selected
47181         small initial table sizes.
47182
47183 2009-06-17  Eric Blake  <ebb9@byu.net>
47184
47185         hash: minor cleanups
47186         * lib/hash.h (hash_entry): Make opaque, by moving...
47187         * lib/hash.c (hash_entry): ...here.
47188         (hash_insert): Clarify restrictions on what can be inserted.
47189         (hash_get_next): Clarify when it is safe to remove an element
47190         during traversal.
47191         (check_tuning): Skip verification when tuning is known safe.
47192         (hash_initialize): Clarify restrictions on tuning.
47193
47194 2009-06-17  Jim Meyering  <jim@meyering.net>
47195         and Eric Blake  <ebb9@byu.net>
47196
47197         hash-tests: new module
47198         * modules/hash-tests: New file.
47199         * tests/test-hash.c: New file.
47200
47201 2009-06-17  Eric Blake  <ebb9@byu.net>
47202
47203         strstr-simple: document new module
47204         * MODULES.html.sh: Document new module.
47205
47206         strstr, strcasestr: replace on platforms with broken memchr
47207         * modules/strstr: Split into...
47208         * modules/strstr-simple: ...new module that does not care about
47209         performance, but does care about glibc bug.
47210         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
47211         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
47212         if platform memchr is broken, per Debian bug 521737.
47213         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
47214         memchr.
47215         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
47216         * doc/posix-functions/strstr.texi (strstr): Document the fix.
47217         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47218         * modules/mountlist (Depends-on): Add strstr-simple.
47219         * modules/gen-uni-tables (Depends-on): Likewise.
47220         * modules/argz (Depends-on): Add strstr.
47221
47222 2009-06-17  Bruno Haible  <bruno@clisp.org>
47223
47224         * modules/posix_spawn-internal (Depends-on): Add errno.
47225
47226 2009-06-17  Bruno Haible  <bruno@clisp.org>
47227
47228         Define missing ESTALE on Interix 3.5.
47229         * lib/errno.in.h (ESTALE): Assign a value if missing.
47230         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
47231         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
47232         missing.
47233         * doc/posix-headers/errno.texi: Mention the Interix bug.
47234         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
47235
47236 2009-06-15  Eric Blake  <ebb9@byu.net>
47237
47238         memchr, memchr2: add valgrind exception
47239         * lib/memchr.valgrind: New file.
47240         * lib/memchr2.valgrind: New file.
47241         * modules/memchr (Files): Distribute valgrind file.
47242         * modules/memchr2 (Files): Likewise.
47243
47244         docs: memchr is no longer obsolete
47245         * MODULES.html.sh: Move memchr from obsolete to string.h section.
47246         * lib/string.in.h (memchr): Simplify logic.
47247
47248 2009-06-14  Jim Meyering  <meyering@redhat.com>
47249
47250         link-follow: fix the "checking..." message to not mention trailing slash
47251         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
47252         never considered trailing slashes.
47253
47254 2009-06-14  Bruno Haible  <bruno@clisp.org>
47255
47256         * m4/memchr.m4: Mention also the bug on IA-64.
47257         * doc/posix-functions/memchr.texi: Likewise.
47258
47259 2009-06-12  Eric Blake  <ebb9@byu.net>
47260
47261         memchr: detect broken x86_64 and alpha implementations
47262         * modules/memchr-tests (Depends-on): Move mmap detection...
47263         * modules/memchr (Depends-on): ...here.
47264         (configure.ac): Set indicator.
47265         * lib/string.in.h (memchr): Declare replacement.
47266         * modules/string (Makefile.am): Trigger replacement.
47267         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47268         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
47269         bugs.
47270         * doc/posix-functions/memchr.texi (memchr): Document the bug.
47271         * modules/getpagesize (License): Relax license.
47272
47273 2009-06-11  Bruno Haible  <bruno@clisp.org>
47274
47275         * lib/idpriv.h: Add more references.
47276
47277 2009-06-08  Bruno Haible  <bruno@clisp.org>
47278
47279         Tests for module 'idpriv-droptemp'.
47280         * modules/idpriv-droptemp-tests: New file.
47281         * tests/test-idpriv-droptemp.sh: New file.
47282         * tests/test-idpriv-droptemp.su.sh: New file.
47283         * tests/test-idpriv-droptemp.c: New file.
47284
47285         New module 'idpriv-droptemp'.
47286         * lib/idpriv-droptemp.c: New file.
47287         * modules/idpriv-droptemp: New file.
47288
47289 2009-06-08  Bruno Haible  <bruno@clisp.org>
47290
47291         Tests for module 'idpriv-drop'.
47292         * modules/idpriv-drop-tests: New file.
47293         * tests/test-idpriv-drop.sh: New file.
47294         * tests/test-idpriv-drop.su.sh: New file.
47295         * tests/test-idpriv-drop.c: New file.
47296
47297         New module 'idpriv-drop'.
47298         * lib/idpriv.h: New file.
47299         * lib-idpriv-drop.c: New file.
47300         * m4/idpriv.m4: New file.
47301         * modules/idpriv-drop: New file.
47302
47303 2009-06-08  Bruno Haible  <bruno@clisp.org>
47304
47305         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
47306         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47307         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47308         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47309         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47310         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47311         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47312
47313 2009-06-08  Eric Blake  <ebb9@byu.net>
47314
47315         test-strstr: use memory fence, when possible
47316         * tests/test-strstr.c (main): Use memory fence, in order to be
47317         more likely to trigger Debian bug 521737.
47318         * modules/strstr-tests (Files): Pull in additional files.
47319
47320         memchr: no longer obsolete, for wider field testing
47321         * modules/memchr (Status, Notice): Delete, this module is no
47322         longer obsolete.
47323         * modules/vasnprintf (Depends-on): Add memchr.
47324
47325 2009-06-07  Jim Meyering  <meyering@redhat.com>
47326
47327         hash: declare some functions with the warn_unused_result attribute
47328         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
47329
47330 2009-06-07  Bruno Haible  <bruno@clisp.org>
47331
47332         * tests/test-alignof.c: Don't test int64_t if it does not exist.
47333         Reported by Eric Blake.
47334
47335 2009-06-06  Eric Blake  <ebb9@byu.net>
47336
47337         test-alignof: fix typo with long double
47338         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
47339         compiler error.
47340
47341 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
47342
47343         Escape non-texinfo { and }s.
47344         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
47345         markup error.
47346
47347 2009-06-04  Jim Meyering  <meyering@redhat.com>
47348
47349         gitlog-to-changelog: don't infloop on an empty commit log
47350         * build-aux/gitlog-to-changelog: Warn about an empty log message.
47351         Reported by Boris Petersen <transacid@centerim.org>.
47352
47353 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
47354
47355         version-etc: extend for packagers
47356         Add three new configure options, intended for packagers:
47357           --with-packager="packager name"
47358           --with-packager-version="packager-specific version"
47359           --with-packager-bug-reports="packager bug reporting"
47360         An example with coreutils:
47361           $ ./configure \
47362             --with-packager=Gentoo \
47363             --with-packager-bug-report=http://bugs.gentoo.org/ \
47364             --with-packager-version="patchset 1.6"
47365           $ ./src/ls --version | head -n2
47366           ls (GNU coreutils) 7.1-dirty
47367           Packaged by Gentoo (patchset 1.6)
47368         Note that the bug reporting info via --help doesn't show up because
47369         coreutils uses its own custom emit_bug_reporting_address() implementation
47370         in src/system.h.  If it didn't, it'd look like:
47371           $ ./src/ls --help | tail -n4
47372           Report bugs to <bug-coreutils@gnu.org>.
47373           Report Gentoo bugs to <http://bugs.gentoo.org/>.
47374           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
47375           General help using GNU software: <http://www.gnu.org/gethelp/>.
47376         * lib/version-etc.c: Print new information, if provided.
47377         * m4/version-etc.m4: New file.
47378         * modules/version-etc (Files): Add m4/version-etc.m4.
47379         (configure.ac): Add gl_VERSION_ETC.
47380
47381 2009-05-31  Bruno Haible  <bruno@clisp.org>
47382
47383         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
47384         and 'int64_t'.
47385         * modules/alignof-tests (Dependencies): Add stdint.
47386         Reported by Eric Blake.
47387
47388 2009-05-31  Bruno Haible  <bruno@clisp.org>
47389
47390         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
47391         restriction due to compiler bugs.
47392         Reported by Eric Blake.
47393
47394 2009-05-31  Simon Josefsson  <simon@josefsson.org>
47395             Bruno Haible  <bruno@clisp.org>
47396
47397         Fix test-alignof failure.
47398         * lib/alignof.h (alignof_slot): New macro.
47399         (alignof_type): New macro, with the same semantics as the previous
47400         'alignof'.
47401         (alignof): Alias to alignof_slot.
47402         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
47403         check that the results are usable as constant expressions.
47404
47405 2009-05-31  Bruno Haible  <bruno@clisp.org>
47406
47407         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
47408         * tests/test-memchr.c (main): Check that memchr does not read past the
47409         first occurrence of the byte.
47410         * tests/test-strstr.c (main): Update comment.
47411         Suggested by Eric Blake.
47412
47413 2009-05-30  Bruno Haible  <bruno@clisp.org>
47414
47415         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
47416         detail how to use dumpbin.
47417         Reported by David Byron <dbyron@dbyron.com>.
47418
47419 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47420
47421         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
47422
47423 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47424
47425         * m4/manywarnings.m4: Add GCC 4.4 warnings.
47426
47427 2009-05-28  Bruno Haible  <bruno@clisp.org>
47428
47429         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
47430         build-aux/ files.
47431
47432 2009-05-28  Simon Josefsson  <simon@josefsson.org>
47433
47434         * gnulib-tool (func_import): Transform license on build-aux/ files too.
47435
47436 2009-05-27  Simon Josefsson  <simon@josefsson.org>
47437
47438         * gnulib-tool (sed_transform_main_lib_file)
47439         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
47440         regexps.
47441
47442 2009-05-26  Simon Josefsson  <simon@josefsson.org>
47443
47444         * tests/test-strstr.c: Add another self-test.
47445         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
47446         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
47447
47448 2009-05-23  Bruno Haible  <bruno@clisp.org>
47449
47450         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
47451         change.
47452
47453 2009-05-21  Bruno Haible  <bruno@clisp.org>
47454
47455         Simplify use of mode_t varargs.
47456         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
47457         uses 'mode_t' or 'int'.
47458         * lib/openat.c (openat): Likewise.
47459         * lib/open-safer.c (open_safer): Likewise.
47460         * m4/mode_t.m4: New file.
47461         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
47462         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
47463         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
47464         * modules/open (Files): Add m4/mode_t.m4.
47465         * modules/openat (Files): Likewise.
47466         * modules/fcntl-safer (Files): Likewise.
47467         Suggested by Eric Blake.
47468
47469 2009-05-21  Pádraig Brady  <P@draigbrady.com>
47470
47471         * doc/glibc-functions/fallocate.texi: New file.
47472         * doc/gnulib.texi: Include it.
47473
47474 2009-05-21  Eric Blake  <ebb9@byu.net>
47475             Bruno Haible  <bruno@clisp.org>
47476
47477         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
47478         invocations.
47479         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47480
47481 2009-05-21  Eric Blake  <ebb9@byu.net>
47482             Bruno Haible  <bruno@clisp.org>
47483
47484         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
47485         include_next. Fix of 2008-11-20 commit.
47486         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
47487         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
47488         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
47489         NEXT_MATH_H.
47490         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
47491         instead of NEXT_MATH_H.
47492
47493 2009-05-21  Bruno Haible  <bruno@clisp.org>
47494
47495         Avoid redefinition warnings for SIZE_MAX.
47496         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
47497         Reported by Simon Josefsson.
47498
47499 2009-05-21  Bruno Haible  <bruno@clisp.org>
47500
47501         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
47502         AC_CACHE_VAL.
47503
47504 2009-05-20  Bruno Haible  <bruno@clisp.org>
47505
47506         Make zeroptr.h work on mingw.
47507         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
47508         mprotect.
47509         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
47510         * modules/memchr2-tests (configure.ac): Likewise.
47511         * modules/memcmp-tests (configure.ac): Likewise.
47512         * modules/memmem-tests (configure.ac): Likewise.
47513         * modules/memrchr-tests (configure.ac): Likewise.
47514         Reported by Simon Josefsson.
47515
47516 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47517
47518         * tests/test-glob.c: Include string.h for strcmp prototype.
47519
47520 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47521
47522         * modules/getdelim (Depends-on): Add explicit stdint, although it
47523         was implicitly already pulled in via realloc-posix.
47524         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
47525
47526 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47527
47528         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
47529         G. Christensen" <tgc@jupiterrise.com>.
47530         * m4/sys_socket_h.m4: Check for sa_family_t.
47531         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
47532         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
47533         * tests/test-sys_socket.c: Check that sa_family_t works.
47534
47535 2009-05-18  Eric Blake  <ebb9@byu.net>
47536
47537         maint.mk: allow gnulib_dir in VPATH build
47538         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
47539
47540 2009-05-15  Jim Meyering  <meyering@redhat.com>
47541
47542         maint.mk: Give gnulib_dir a default definition.
47543         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
47544         Thus, most packages no longer need to specify this variable in cfg.mk
47545
47546 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
47547
47548         rename.m4: fix typos that would make non-mingw cross-configure fail
47549         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
47550
47551 2009-05-13  Eric Blake  <ebb9@byu.net>
47552
47553         mmap-anon: avoid out-of-order autoconf expansion
47554         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
47555         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
47556         * modules/memchr-tests (Depends-on): Add extensions.
47557         * modules/memchr2-tests (Depends-on): Add extensions.
47558         * modules/memcmp-tests (Depends-on): Add extensions.
47559         * modules/memmem-tests (Depends-on): Add extensions.
47560         * modules/memrchr-tests (Depends-on): Add extensions.
47561
47562 2009-05-13  Bruno Haible  <bruno@clisp.org>
47563
47564         Make some tests ISO C 99 compliant.
47565         * tests/zerosize-ptr.h: New file.
47566         * tests/test-memchr.c: Include zerosize-ptr.h.
47567         (main): Use a zero-size object pointer instead of NULL.
47568         * tests/test-memchr2.c: Include zerosize-ptr.h.
47569         (main): Use a zero-size object pointer instead of NULL.
47570         * tests/test-memcmp.c: Include zerosize-ptr.h.
47571         (main): Use a zero-size object pointer instead of NULL.
47572         * tests/test-memmem.c: Include zerosize-ptr.h.
47573         (main): Use a zero-size object pointer instead of NULL.
47574         * tests/test-memrchr.c: Include zerosize-ptr.h.
47575         (main): Use a zero-size object pointer instead of NULL.
47576         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
47577         m4/mmap-anon.m4.
47578         (Depends-on): Add getpagesize.
47579         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47580         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
47581         m4/mmap-anon.m4.
47582         (Depends-on): Add getpagesize.
47583         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47584         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
47585         m4/mmap-anon.m4.
47586         (Depends-on): Add getpagesize.
47587         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47588         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
47589         m4/mmap-anon.m4.
47590         (Depends-on): Add getpagesize.
47591         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47592         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
47593         m4/mmap-anon.m4.
47594         (Depends-on): Add getpagesize.
47595         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47596
47597 2009-05-12  Bruno Haible  <bruno@clisp.org>
47598
47599         Tests for module 'alignof'.
47600         * modules/alignof-tests: New file.
47601         * tests/test-alignof.c: New file.
47602
47603 2009-05-12  Bruno Haible  <bruno@clisp.org>
47604
47605         Fix alignof macro.
47606         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
47607         vendor compilers that are always correct.
47608
47609 2009-05-12  Bruno Haible  <bruno@clisp.org>
47610
47611         Make the MAP_ANONYMOUS detection work on HP-UX 11.
47612         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
47613         not whether its fully works.
47614
47615 2009-05-12  Bruno Haible  <bruno@clisp.org>
47616
47617         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
47618
47619 2009-05-12  Jim Meyering  <meyering@redhat.com>
47620
47621         * top/maint.mk: Adjust backslash alignment.
47622
47623 2009-05-11  Simon Josefsson  <simon@josefsson.org>
47624
47625         * top/maint.mk: Make $(srcdir)/build-aux configurable.
47626
47627 2009-05-11  Eric Blake  <ebb9@byu.net>
47628
47629         argp: avoid undefined behavior
47630         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
47631         macros.
47632
47633 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47634
47635         * tests/test-vc-list-files-git.sh: Do git config of user.email and
47636         user.name to prevent git commit from complaining.
47637
47638 2009-05-10  Bruno Haible  <bruno@clisp.org>
47639
47640         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
47641         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
47642         it rewrites every file name only once.
47643         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
47644
47645 2009-05-08  Bruno Haible  <bruno@clisp.org>
47646
47647         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
47648         instead of 'max'.
47649
47650 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47651
47652         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
47653         sockaddr_storage test.
47654
47655 2009-05-07  Simon Josefsson  <simon@josefsson.org>
47656
47657         * modules/sys_socket (Makefile.am): Substitute
47658         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
47659         * m4/sys_socket_h.m4: Check for sockaddr_storage.
47660         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
47661         * tests/test-sys_socket.c: Check sockaddr_storage.
47662
47663 2009-05-08  Bruno Haible  <bruno@clisp.org>
47664
47665         New module 'alignof'.
47666         * lib/alignof.h: New file.
47667         * modules/alignof: New file.
47668
47669 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47670             Bruno Haible  <bruno@clisp.org>
47671
47672         Fix test-file-has-acl on FreeBSD.
47673         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
47674         mask is implicitly added.
47675         * tests/test-file-has-acl.c: Include <signal.h>.
47676         (main): Terminate the test after 5 seconds.
47677         * modules/acl-tests (configure.ac): Check for alarm function.
47678
47679 2009-05-04  Bruno Haible  <bruno@clisp.org>
47680
47681         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
47682         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
47683         * modules/errno (configure.ac): Drop AC_REQUIRE.
47684         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
47685         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
47686
47687 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47688
47689         * modules/glob-tests: New module.
47690         * tests/test-glob.c: Add.
47691
47692 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47693
47694         * modules/fnmatch-tests: New module.
47695         * tests/test-fnmatch.c: Add.
47696
47697 2009-05-04  Eric Blake  <ebb9@byu.net>
47698
47699         maint: make the new no-submodule-changes rule VPATH-safe
47700         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
47701
47702 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47703             Bruno Haible  <bruno@clisp.org>
47704
47705         acl: Fix infinite loop on FreeBSD.
47706         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
47707         of return value from acl_get_entry.
47708         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
47709         Likewise.
47710
47711 2009-05-03  Bruno Haible  <bruno@clisp.org>
47712
47713         * lib/acl-internal.h (acl_entries): Clarify return value.
47714         * lib/acl_entries.c (acl_entries): Likewise.
47715
47716 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47717
47718         Bug fix in acl module.
47719         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
47720
47721 2009-05-03  Bruno Haible  <bruno@clisp.org>
47722
47723         Create gperf-generated file in the source dir, not in the build dir.
47724         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
47725         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
47726         * modules/unicase/locale-language (unicase/locale-languages.h):
47727         Likewise.
47728         * modules/unicase/special-casing (unicase/special-casing-table.h):
47729         Likewise.
47730         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
47731         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
47732         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
47733         Reported by Ralf Wildenhues.
47734
47735 2009-05-03  Bruno Haible  <bruno@clisp.org>
47736
47737         * modules/fnmatch (Description, configure.ac): Taken from
47738         fnmatch-posix.
47739         * modules/fnmatch-posix: Turn into a symbolic reference to the
47740         'fnmatch' module, and deprecate.
47741         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
47742
47743 2009-05-03  Bruno Haible  <bruno@clisp.org>
47744
47745         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
47746         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
47747         Reported by Ralf Wildenhues.
47748
47749 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47750
47751         * m4/fnmatch.m4: Fix fnmatch re-define.
47752
47753 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47754
47755         priv-set: new module and tests; adapt write-any-file
47756         * lib/priv-set.c: New file.
47757         * lib/priv-set.h: New file.
47758         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
47759         * lib/write-any-file.c: Simplify by using priv-set module.
47760         * m4/priv-set.m4: New file.
47761         * modules/priv-set: New file.
47762         * modules/unlinkdir: Add dependency on priv-set module.
47763         * modules/write-any-file: Likewise.
47764
47765         Tests for module 'priv-set'.
47766         * modules/priv-set-tests: New file.
47767         * tests/test-priv-set.c: New file.
47768
47769 2009-05-03  Jim Meyering  <meyering@redhat.com>
47770             Bruno Haible  <bruno@clisp.org>
47771
47772         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
47773         use the converted UTF-8 variant of the name instead.
47774
47775 2009-05-03  Jim Meyering  <meyering@redhat.com>
47776
47777         tests: tighten some getdate tests
47778         * tests/test-getdate.c (main): Tighten tests: require equality,
47779         not just greater than.  Set TZ envvar to UTC0.
47780
47781 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
47782
47783         getdate: correctly interpret "next monday" when run on a Monday
47784         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
47785         that e.g., "next tues" (when run on a tuesday) results in a date
47786         that is one week in the future, and not today's date.
47787         I.e., add a week when the wday is the same as the current one.
47788         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
47789         and earlier by Martin Bernreuther and Jan Minář.
47790         * tests/test-getdate.c (main): Check that "next DAY" is always in
47791         the future and that "last DAY" is always in the past.
47792
47793 2009-05-02  Jim Meyering  <meyering@redhat.com>
47794
47795         build: ensure that a release build fails when a submodule is unclean
47796         * top/maint.mk (no-submodule-changes): New rule.
47797         (alpha beta major): Depend on it.
47798
47799 2009-05-02  Bruno Haible  <bruno@clisp.org>
47800
47801         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
47802         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
47803         shell variable gl_fnmatch_required to detect which variant is
47804         requested.
47805         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
47806         gl_FUNC_FNMATCH_POSIX.
47807         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
47808         exclude fnmatch-posix.
47809
47810 2009-05-02  Bruno Haible  <bruno@clisp.org>
47811
47812         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
47813         * modules/mbsrtowcs (License): Change to LGPLv2+.
47814         * modules/strnlen1 (License): Likewise.
47815         Reported by Simon Josefsson.
47816
47817 2009-05-02  Bruno Haible  <bruno@clisp.org>
47818
47819         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
47820         "cross".
47821         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
47822         gnulib-tool was called with option --source-base=lib.
47823
47824 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47825
47826         Use automake *-local hooks without commands, for extensibility.
47827         * modules/localcharset (Makefile.am): Rename install-exec-local
47828         rule to install-exec-localcharset, and make it a prerequisite of
47829         install-exec-local.  Likewise, rename the uninstall-local rule to
47830         uninstall-localcharset, and make it a prerequisite of the former.
47831
47832 2009-05-01  Bruno Haible  <bruno@clisp.org>
47833
47834         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
47835         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47836         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
47837         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
47838         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
47839         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47840         m4/locale-zh.m4, m4/codeset.m4.
47841
47842         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47843         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
47844         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47845         m4/locale-zh.m4.
47846
47847         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
47848         REPLACE_WCRTOMB if mbstate_t must be replaced.
47849         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
47850         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
47851
47852 2009-05-01  Bruno Haible  <bruno@clisp.org>
47853
47854         Avoid compiler warnings when redefining macros defined by <libintl.h>.
47855         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
47856         dngettext, dcngettext, textdomain, bindtextdomain,
47857         bind_textdomain_codeset): Undefine before redefining.
47858
47859 2009-04-30  Bruno Haible  <bruno@clisp.org>
47860
47861         Fix bug introduced on 2009-04-25.
47862         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
47863         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
47864         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
47865         is defined.
47866         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
47867         is defined.
47868         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
47869         is defined.
47870         Reported by Elbert_Pol <elbert.pol@gmail.com>.
47871
47872 2009-04-28  Bruno Haible  <bruno@clisp.org>
47873
47874         Comment tweaks.
47875         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
47876         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
47877         * lib/unicase.h (u*_casexfrm): Likewise.
47878         Reported by Paolo Bonzini.
47879
47880 2009-04-28  Bruno Haible  <bruno@clisp.org>
47881
47882         Fix a compilation error.
47883         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
47884         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47885         Reported by Jim Meyering.
47886
47887 2009-04-27  Bruno Haible  <bruno@clisp.org>
47888
47889         New module 'libunistring'.
47890         * modules/libunistring: New file.
47891         * m4/libunistring.m4: New file.
47892         * MODULES.html.sh (Unicode string functions): Add it.
47893
47894 2009-04-27  Eric Blake  <ebb9@byu.net>
47895
47896         maint.mk: allow package-specific header to provide <config.h>
47897         * top/maint.mk (sc_require_config_h): New variable.
47898         (sc_require_config_h, sc_require_config_h_first): Use it.
47899
47900 2009-04-27  Simon Josefsson  <simon@josefsson.org>
47901
47902         * top/maint.mk (sc_avoid_if_before_free): Except
47903         useless-if-before-free script.
47904
47905 2009-04-27  Eric Blake  <ebb9@byu.net>
47906
47907         maintainer-makefile: depend on all required helper scripts
47908         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
47909         useless-if-before-free.
47910         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
47911         version, rather than assuming gnulib checkout is available.
47912         Reported by Simen Josefsson.
47913
47914 2009-04-26  Bruno Haible  <bruno@clisp.org>
47915
47916         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
47917         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
47918         "../" or "..".
47919
47920 2009-04-26  Bruno Haible  <bruno@clisp.org>
47921
47922         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
47923         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
47924         AC_LIB_HAVE_LINKFLAGS.
47925
47926 2009-04-26  Bruno Haible  <bruno@clisp.org>
47927
47928         Simplify calling convention of u*_conv_from_encoding.
47929         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
47930         u32_conv_from_encoding): Expect a resultbuf argument and return the
47931         result directly as a pointer.
47932         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
47933         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
47934         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
47935         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
47936         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
47937         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47938         Update.
47939         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
47940         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
47941         * lib/vasnprintf.c (VASNPRINTF): Update.
47942         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
47943         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
47944         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
47945         * NEWS: Mention the change.
47946
47947 2009-04-26  Bruno Haible  <bruno@clisp.org>
47948
47949         Simplify calling convention of u*_conv_to_encoding.
47950         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47951         u32_conv_to_encoding): Expect a resultbuf argument and return the
47952         result directly as a pointer.
47953         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47954         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
47955         freeing scaled_offsets if mem_iconveha failed.
47956         * lib/unicase/u-casexfrm.h (FUNC): Update.
47957         * lib/uninorm/u-normxfrm.h (FUNC): Update.
47958         * lib/vasnprintf.c (VASNPRINTF): Update.
47959         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
47960         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
47961         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
47962         * NEWS: Mention the change.
47963
47964 2009-04-26  Bruno Haible  <bruno@clisp.org>
47965
47966         Avoid test failures on AIX and OSF/1.
47967         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
47968         malloc(0).
47969         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47970         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47971         Likewise.
47972         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
47973         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
47974         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
47975         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
47976         * doc/posix-functions/malloc.texi: Document the portability problem
47977         related to malloc(0).
47978
47979 2009-04-26  Bruno Haible  <bruno@clisp.org>
47980
47981         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
47982         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
47983         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
47984
47985 2009-04-25  Bruno Haible  <bruno@clisp.org>
47986
47987         Avoid link error when creating a namespace clean library.
47988         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
47989         as macro with arguments if already defined as an alias.
47990         * lib/signbitf.c (gl_signbitf): Don't undefine.
47991         * lib/signbitd.c (gl_signbitd): Don't undefine.
47992         * lib/signbitl.c (gl_signbitl): Don't undefine.
47993
47994 2009-04-25  Jim Meyering  <meyering@redhat.com>
47995
47996         vc-list-files: fix another quoting bug
47997         * build-aux/vc-list-files: Avoid sed backslash expansion
47998         of pathological directory names.
47999
48000 2009-04-25  Eric Blake  <ebb9@byu.net>
48001
48002         vc-list-files: fix shell quoting error
48003         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
48004         timestamp.
48005
48006 2009-04-25  Jim Meyering  <meyering@redhat.com>
48007
48008         vc-list-files: restore lost functionality with subdir argument
48009         * build-aux/vc-list-files: When given a non-"." sub-directory
48010         argument, substitute the $dir/ prefix back onto each resulting name.
48011         Otherwise, coreutils' root_tests check would fail.
48012
48013 2009-04-24  Eric Blake  <ebb9@byu.net>
48014
48015         vc-list-files: ignore git symlinks
48016         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
48017         than ls-files, to ignore git symlinks.
48018
48019         maint.mk: import improvements from m4
48020         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
48021         (move_if_change): Delete unused macro.
48022         (news-date-check, vc-diff-check): Support VPATH builds.
48023         (announcement): Likewise.  Split --bootstrap-tools list...
48024         (boostrap-tools): ...into separate list, which can be overridden
48025         in cfg.mk.
48026         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
48027         requiring dependency on useless-if-before-free module.
48028         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
48029         Support VPATH builds.
48030
48031 2009-04-24  Jim Meyering  <meyering@redhat.com>
48032
48033         maint.mk: remove coreutils-specific rules and variables
48034         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
48035         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
48036         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
48037
48038         maint.mk: remove obsolete rule
48039         * top/maint.mk (rel-check): Remove rule.
48040         (WGET, WGETFLAGS): Remove now-unused variables.
48041
48042 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48043
48044         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
48045         consistency.
48046
48047         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
48048         '$(PATH_SEPARATOR)' instead of ':'.
48049
48050 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48051
48052         * lib/getopt1.c (main): Use 'const' for static array.
48053
48054 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48055
48056         * top/maint.mk: Sync with coreutils.
48057         * NEWS: Explain incompatibilities.
48058
48059 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48060             Bruno Haible  <bruno@clisp.org>
48061
48062         Fix cross-compilation results.
48063         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
48064         statement, as third argument of AC_TRY_RUN.
48065         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
48066         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
48067         Likewise.
48068         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
48069         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
48070         Likewise.
48071         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
48072         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
48073         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
48074
48075 2009-04-20  Bruno Haible  <bruno@clisp.org>
48076
48077         Avoid test failure on mingw.
48078         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
48079
48080 2009-04-20  Bruno Haible  <bruno@clisp.org>
48081
48082         Avoid compilation error on mingw.
48083         * modules/localename-tests (Depends-on): Add locale.
48084
48085 2009-04-19  Bruno Haible  <bruno@clisp.org>
48086
48087         Support for building a shared library on Windows platforms.
48088         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
48089         (main): Test the presence of UNINORM_NFC here.
48090         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
48091         (main): Test the presence of UNINORM_NFD here.
48092         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
48093         (main): Test the presence of UNINORM_NFKC here.
48094         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
48095         (main): Test the presence of UNINORM_NFKD here.
48096
48097 2009-04-19  Bruno Haible  <bruno@clisp.org>
48098
48099         Avoid a compiler warning.
48100         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
48101         Change type of variable 'sequence'.
48102
48103 2009-04-19  Bruno Haible  <bruno@clisp.org>
48104
48105         * modules/configmake (Makefile.am): When the contents of configmake.h
48106         does not change, arrange to preserve its modification time.
48107
48108 2009-04-17  Simon Josefsson  <simon@josefsson.org>
48109
48110         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
48111         gettext domain.
48112
48113 2009-04-16  Jim Meyering  <meyering@redhat.com>
48114
48115         useless-if-before-free: improve conversion code
48116         * build-aux/useless-if-before-free: Adjust code-in-comment to match
48117         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
48118
48119 2009-04-14  Bruno Haible  <bruno@clisp.org>
48120
48121         * modules/fcntl (Depends-on): Add extensions.
48122         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
48123
48124 2009-04-12  Ben Pfaff  <blp@gnu.org>
48125
48126         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
48127         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
48128
48129 2009-03-20  Ben Pfaff  <blp@gnu.org>
48130
48131         Make rename replace existing destinations on Windows.
48132         * m4/rename.m4: Add test for Mingw.
48133         * lib/rename.c: Add rename replacement that uses MoveFileEx with
48134         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
48135         * doc/posix-functions/rename.texi: Document.
48136
48137 2009-04-10  Bruno Haible  <bruno@clisp.org>
48138
48139         New include file "iconveh.h".
48140         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
48141         * lib/striconveh.h: Include it.
48142         (enum iconv_ilseq_handler): Remove definition.
48143         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
48144         striconveh.h.
48145         * lib/striconveha.c: Include striconveh.h.
48146         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
48147         * modules/striconveh (Files): Add lib/iconveh.h.
48148         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
48149         lib/striconveh.h.
48150
48151 2009-04-10  Bruno Haible  <bruno@clisp.org>
48152
48153         * lib/uniconv.h: Update comment.
48154
48155 2009-04-10  Bruno Haible  <bruno@clisp.org>
48156
48157         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
48158         always.
48159         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48160         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48161         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48162         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
48163         "unistring-notinline.h", so that the function gets defined always.
48164         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48165         * lib/unistr/u8-uctomb.c: Likewise.
48166         * lib/unistr/u16-mbtouc.c: Likewise.
48167         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48168         * lib/unistr/u16-uctomb.c: Likewise.
48169         * lib/unistr/u32-mbtouc.c: Likewise.
48170         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48171         * lib/unistr/u32-uctomb.c: Likewise.
48172
48173 2009-04-10  Bruno Haible  <bruno@clisp.org>
48174
48175         Mark 'utime' obsolete.
48176         * modules/utime (Status, Notice): New sections.
48177         Suggested by Jim Meyering.
48178
48179         Fix cross-compile guess for utime test.
48180         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
48181         autoconf.
48182         * doc/posix-functions/utime.texi: Give more precisions.
48183         Reported by Jan <ipif@ymail.com>.
48184
48185 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
48186
48187         filevercmp: correct today's change
48188         * lib/filevercmp.c: Also handle coreutils' test inputs.
48189         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
48190
48191         Fix regression in 'filevercmp' module. Thanks Sven Joachim
48192         for reporting it.
48193         * lib/filevercmp.c: Special handle for "", "." and "..".
48194         * tests/test-filevercmp.c: Enlarge the set suite.
48195
48196 2009-04-07  Jim Meyering  <meyering@redhat.com>
48197
48198         useless-if-before-free: show how to remove braced useless free, too
48199         * build-aux/useless-if-before-free: still only in a comment, though.
48200
48201 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
48202
48203         maint.mk: import changes to syntax-check macros from coreutils
48204         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
48205         Use them in the relevant macros.
48206
48207 2009-04-06  Bruno Haible  <bruno@clisp.org>
48208
48209         Fix unportable use of bit-fields.
48210         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
48211         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
48212         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
48213
48214 2009-04-06  Bruno Haible  <bruno@clisp.org>
48215
48216         Avoid test failures on AIX and OSF/1.
48217         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
48218         that malloc(0) = NULL.
48219         * tests/unicase/test-u8-tolower.c (check): Likewise.
48220         * tests/unicase/test-u8-totitle.c (check): Likewise.
48221         * tests/unicase/test-u8-toupper.c (check): Likewise.
48222         * tests/unicase/test-u16-casefold.c (check): Likewise.
48223         * tests/unicase/test-u16-tolower.c (check): Likewise.
48224         * tests/unicase/test-u16-totitle.c (check): Likewise.
48225         * tests/unicase/test-u16-toupper.c (check): Likewise.
48226         * tests/unicase/test-u32-casefold.c (check): Likewise.
48227         * tests/unicase/test-u32-tolower.c (check): Likewise.
48228         * tests/unicase/test-u32-totitle.c (check): Likewise.
48229         * tests/unicase/test-u32-toupper.c (check): Likewise.
48230         * tests/uninorm/test-u8-nfc.c (check): Likewise.
48231         * tests/uninorm/test-u8-nfd.c (check): Likewise.
48232         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
48233         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
48234         * tests/uninorm/test-u16-nfc.c (check): Likewise.
48235         * tests/uninorm/test-u16-nfd.c (check): Likewise.
48236         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
48237         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
48238         * tests/uninorm/test-u32-nfc.c (check): Likewise.
48239         * tests/uninorm/test-u32-nfd.c (check): Likewise.
48240         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
48241         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
48242
48243 2009-04-05  Bruno Haible  <bruno@clisp.org>
48244
48245         Work around an autoconf limitation.
48246         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
48247         comment line if it would be longer than 3 KB.
48248
48249 2009-04-05  Bruno Haible  <bruno@clisp.org>
48250
48251         Avoid test failure with libiconv-1.13.
48252         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
48253         of the expected test results.
48254
48255 2009-04-05  Bruno Haible  <bruno@clisp.org>
48256
48257         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
48258         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
48259         that it should be installed.
48260
48261 2009-04-05  Bruno Haible  <bruno@clisp.org>
48262
48263         * gnulib-tool: New option --copy-file.
48264         (func_usage): Document it.
48265         (func_dest_tmpfilename): Moved out of func_import.
48266         (func_add_file, func_update_file): New functions, extracted from
48267         func_import.
48268         (func_import): Update.
48269
48270 2009-04-05  Karl Berry  <karl@gnu.org>
48271
48272         * README: prominently mention gnulib-tool.
48273         Rearrange sections so getting the code is near the top.
48274
48275 2009-04-05  Bruno Haible  <bruno@clisp.org>
48276
48277         * lib/unicase.h: Mention u*_cmp2.
48278         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48279         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
48280         * lib/unicase/ulc-casecmp.c: Likewise.
48281         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
48282         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
48283         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
48284         unistr/u8-cmp.
48285         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
48286         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
48287         unistr/u16-cmp.
48288         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
48289         unistr/u32-cmp.
48290
48291         * lib/uninorm.h: Mention u*_cmp2.
48292         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48293         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
48294         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
48295         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
48296         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
48297         unistr/u8-cmp.
48298         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
48299         unistr/u16-cmp.
48300         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
48301         unistr/u32-cmp.
48302
48303         New module 'unistr/u32-cmp2'.
48304         * lib/unistr/u32-cmp2.c: New file.
48305         * modules/unistr/u32-cmp2: New file.
48306
48307         New module 'unistr/u16-cmp2'.
48308         * lib/unistr/u16-cmp2.c: New file.
48309         * modules/unistr/u16-cmp2: New file.
48310
48311         New module 'unistr/u8-cmp2'.
48312         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
48313         * lib/unistr/u8-cmp2.c: New file.
48314         * lib/unistr/u-cmp2.h: New file.
48315         * modules/unistr/u8-cmp2: New file.
48316
48317 2009-04-05  Bruno Haible  <bruno@clisp.org>
48318
48319         * lib/unictype.h (uc_property_is_valid): New macro.
48320         * tests/unictype/test-pr_byname.c (main): Use it.
48321
48322         * lib/unistr.h: Doc fixes.
48323         * lib/uniconv.h: Doc fixes.
48324         * lib/unictype.h: Doc fixes.
48325
48326 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
48327
48328         Port coreutils 7.2 to Solaris 8.
48329
48330         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
48331         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
48332         for Solaris 8.  This is a bit of a hack, as it means it's the
48333         caller's responsibility to add -lnsl if needed, but most likely it
48334         won't be needed since only getaddrinfo uses this and getaddrinfo
48335         isn't needed on Solaris 8.
48336
48337         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
48338         problem to Solaris 8 encountered with coreutils 7.2, which
48339         resulted in a message "fnmatch.c:292: warning: passing argument 4
48340         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
48341         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
48342
48343 2009-04-03  Simon Josefsson  <simon@josefsson.org>
48344
48345         * m4/ld-version-script.m4: Add FIXME comment.
48346
48347 2009-04-02  Simon Josefsson  <simon@josefsson.org>
48348
48349         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
48350         SOVERSION variable.
48351
48352 2009-04-02  Bruno Haible  <bruno@clisp.org>
48353
48354         * Makefile (info, html, dvi, pdf): Combine the rules.
48355         Suggested by Jim Meyering.
48356
48357 2009-04-01  Bruno Haible  <bruno@clisp.org>
48358
48359         * Makefile (info, html, dvi, pdf): New targets.
48360         Reported by Reuben Thomas <rrt@sc3d.org>.
48361
48362 2009-04-01  Bruno Haible  <bruno@clisp.org>
48363
48364         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
48365         can be put into PATH.
48366         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
48367
48368 2009-04-01  Bruno Haible  <bruno@clisp.org>
48369
48370         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
48371
48372 2009-04-01  Bruno Haible  <bruno@clisp.org>
48373
48374         Rename module 'visibility'.
48375         * modules/lib-symbol-visibility: Renamed from modules/visibility.
48376         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
48377         * doc/gnulib.texi: Update.
48378         * MODULES.html.sh (Misc): Update.
48379         * NEWS: Mention the change.
48380
48381 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48382
48383         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
48384         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
48385         Eric Blake <ebb9@byu.net> for review.
48386         * MODULES.html.sh: Add lib-msvc-compat.
48387         * doc/gnulib.texi: Link to new section.
48388         * m4/ld-output-def.m4: New file.
48389         * doc/ld-output-def.texi: New file.
48390
48391 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48392
48393         Rename ld-version-script to lib-symbol-versions.  Suggested by
48394         Bruno Haible <bruno@clisp.org>.
48395         * modules/ld-version-script: Renamed to lib-symbol-versions.
48396         * doc/ld-version-script.texi: Fix module name.
48397         * MODULES.html.sh: Add lib-symbol-versions.
48398
48399 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48400
48401         * modules/u64-tests: New file.
48402         * tests/test-u64.c: New file.
48403
48404 2009-03-04  Simon Josefsson  <simon@josefsson.org>
48405
48406         * MODULES.html.sh: Mention u64.
48407         * modules/u64: New module.
48408         * modules/crypto/sha512: Depend on u64 module instead of providing
48409         u64.h.
48410
48411 2009-03-27  Eric Blake  <ebb9@byu.net>
48412
48413         test-strerror: make debugging EAI_SYSTEM easier
48414         * modules/getaddrinfo-tests (Depends-on): Add strerror.
48415         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
48416         failure was EAI_SYSTEM.
48417
48418 2009-03-25  Bruno Haible  <bruno@clisp.org>
48419
48420         Fix a problem with --enable-relocatable on Solaris 7.
48421         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
48422         since 2008-02-24.
48423
48424 2009-03-25  Eric Blake  <ebb9@byu.net>
48425
48426         test-sockets: avoid gcc warning
48427         * tests/test-sockets.c (main): Silence compiler warning.
48428
48429 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
48430
48431         New modules nproc, pthread, contributed by Glen Lenker.
48432
48433         * MODULES.html.sh: Add pthread, nproc.
48434         * lib/nproc.c: New file.
48435         * lib/nproc.h: New file.
48436         * lib/pthread.in.h: New file.
48437         * m4/pthread.m4: New file.
48438         * modules/nproc: New file.
48439         * modules/pthread: New file.
48440
48441 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48442
48443         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
48444         New variable.
48445
48446 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
48447
48448         filevercmp: handle simple~ and numbered.~3~ backup suffixes
48449         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
48450         * tests/test-filevercmp.c: Add tests for backup suffixes.
48451
48452 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48453
48454         * modules/stdlib (Depends-on): Add stdint, needed when defining
48455         struct random_data on, for example, HP-UX 10.20.  Reported by
48456         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48457
48458 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48459
48460         * lib/readline.c (readline): Call fflush on stdout after printing
48461         prompt.
48462
48463 2009-03-20  Bruno Haible  <bruno@clisp.org>
48464
48465         Remove dependency from 'close' module to -lws2_32 on native Windows.
48466         * lib/close-hook.h: New file.
48467         * lib/close-hook.c: New file.
48468         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
48469         w32sock.h.
48470         (_gl_close_fd_maybe_socket): Remove function.
48471         (rpl_close): Invoke execute_all_close_hooks instead of
48472         _gl_close_fd_maybe_socket.
48473         * lib/sockets.c: Include close-hook.h, w32sock.h.
48474         (close_fd_maybe_socket): New function, essentially from lib/close.c.
48475         (close_sockets_hook): New variable.
48476         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
48477         (gl_sockets_cleanup): Unregister it.
48478         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
48479         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
48480         * modules/close-hook: New file.
48481         * modules/close (Files): Remove lib/w32sock.h.
48482         (Depends-on): Add close-hook.
48483         (Link): Remove section.
48484         * modules/sockets (Files): Add lib/w32sock.h.
48485         (Depends-on): Add close-hook.
48486         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
48487         invocation.
48488         * NEWS: Mention that LIB_CLOSE is gone.
48489
48490 2009-03-23  Eric Blake  <ebb9@byu.net>
48491
48492         signal-tests: test previous patch
48493         * tests/test-signal.c: New file.
48494         * modules/signal-tests: Likewise.
48495
48496         signal.h: always support 'volatile sig_atomic_t'
48497         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
48498         (gl_SIGNAL_H_DEFAULTS): Add a default.
48499         * modules/signal (Makefile.am): Substitute if needed.
48500         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
48501         users can blindly add volatile.
48502         * doc/posix-headers/signal.texi (signal.h): Document it.
48503         Reported by Matthew Woehlke.
48504
48505 2009-03-23  Jim Meyering  <meyering@redhat.com>
48506
48507         pathmax: PATH_MAX: use pathconf only when available
48508         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
48509         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
48510         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
48511         This avoids a link failure in a PSP cross-compilation environment
48512         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
48513
48514         * lib/vasnprintf.c (divide): Fix typo in comment.
48515
48516 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48517
48518         * gnulib-tool (func_filter_filelist): Fix comment.
48519
48520 2009-03-20  Bruno Haible  <bruno@clisp.org>
48521
48522         Make sockets.h self-contained.
48523         * lib/sockets.c: Include sockets.h first.
48524         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
48525
48526 2009-03-19  Eric Blake  <ebb9@byu.net>
48527
48528         doc: mention more functions added in cygwin 1.7.0
48529         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
48530         addition.
48531         * doc/posix-functions/log2f.texi: Likewise.
48532
48533 2009-03-19  Jim Meyering  <meyering@redhat.com>
48534
48535         fsusage: avoid syntax error due to statement-before-declaration
48536         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
48537         after all declarations.  Reported by Matthew Woehlke in
48538         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
48539
48540 2009-03-18  Eric Blake  <ebb9@byu.net>
48541
48542         build-aux/compile: sync from automake
48543         * build-aux/compile: New file, from automake.
48544         * config/srclist.txt: Mention build-aux/compile.
48545
48546 2009-03-17  Bruno Haible  <bruno@clisp.org>
48547
48548         * lib/git-merge-changelog.c: Fix typo in comment.
48549         Reported by Reuben Thomas <rrt@sc3d.org>.
48550
48551 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
48552
48553         * m4/regex.m4: update and improve help for
48554         --without-included-regex.
48555
48556 2009-03-17  Simon Josefsson  <simon@josefsson.org>
48557
48558         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
48559         failure on missing include files.
48560
48561 2009-03-17  Eric Blake  <ebb9@byu.net>
48562
48563         doc: mention more functions added in cygwin 1.7.0
48564         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
48565         addition.
48566         * doc/posix-functions/fwscanf.texi: Likewise.
48567         * doc/posix-functions/swprintf.texi: Likewise.
48568         * doc/posix-functions/swscanf.texi: Likewise.
48569         * doc/posix-functions/vfwprintf.texi: Likewise.
48570         * doc/posix-functions/vfwscanf.texi: Likewise.
48571         * doc/posix-functions/vswprintf.texi: Likewise.
48572         * doc/posix-functions/vswscanf.texi: Likewise.
48573         * doc/posix-functions/vwprintf.texi: Likewise.
48574         * doc/posix-functions/vwscanf.texi: Likewise.
48575         * doc/posix-functions/wcscasecmp.texi: Likewise.
48576         * doc/posix-functions/wcsdup.texi: Likewise.
48577         * doc/posix-functions/wcsftime.texi: Likewise.
48578         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48579         * doc/posix-functions/wprintf.texi: Likewise.
48580         * doc/posix-functions/wscanf.texi: Likewise.
48581         * doc/glibc-functions/gethostbyname2.texi: Likewise.
48582
48583 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48584
48585         maint.mk: really add $(AM_MAKEFLAGS)
48586         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
48587         was inadvertently omitted in the last commit.
48588         Spotted by Bruno Haible.
48589
48590         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
48591         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
48592         $(AM_MAKEFLAGS)' rather than plain `make'.
48593
48594         gnulib-tool: execute $MAKE not make
48595         * gnulib-tool: Default $MAKE to 'make'.
48596         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
48597         than make.  Initialize $MAKE in the do-autobuild script.
48598
48599         gnulib-tool: use $MAKE not make in generated files
48600         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
48601         make, in generated files.  Initialize $MAKE in the do-autobuild
48602         script.
48603
48604         * top/GNUmakefile (_have-git-version-gen): Fix typo.
48605
48606         GNUmakefile: disable parallelism only for multiple, recursive targets
48607         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
48608         additions in the Makefile.
48609         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
48610         by Automake.
48611         (.NOTPARALLEL): Only disable parallel builds if multiple targets
48612         are listed on the command line and at least one of them is
48613         listed in $(ALL_RECURSIVE_TARGETS).
48614
48615 2009-03-14  Bruno Haible  <bruno@clisp.org>
48616
48617         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
48618         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
48619         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
48620         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
48621         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
48622         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
48623         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
48624         unistr/u8-uctomb.
48625         * modules/unistr/u8-strchr (Depends-on): Likewise.
48626         * modules/unistr/u8-strrchr (Depends-on): Likewise.
48627         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
48628         unistr/u16-uctomb.
48629         * modules/unistr/u16-strchr (Depends-on): Likewise.
48630         * modules/unistr/u16-strrchr (Depends-on): Likewise.
48631
48632 2009-03-12  Bruno Haible  <bruno@clisp.org>
48633
48634         Work around select() bug on Interix 3.5.
48635         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
48636         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
48637         * m4/select.m4: New file.
48638         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
48639         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
48640         * modules/select (Files): Add m4/select.m4.
48641         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
48642         * modules/nanosleep (Depends-on): Add select.
48643         * modules/poll (Depends-on): Likewise.
48644         * doc/posix-functions/select.texi: Mention the Interix bug.
48645         Reported by Markus Duft <mduft@gentoo.org>.
48646
48647         * lib/select.c: Renamed from lib/winsock-select.c.
48648         * modules/select (Files): Add lib/select.c, remove
48649         lib/winsock-select.c.
48650         (configure.ac): Update.
48651
48652 2009-03-12  Jim Meyering  <meyering@redhat.com>
48653
48654         avoid gcc warnings about unused macro definitions
48655         * lib/readtokens.c (STREQ): Remove unused definition.
48656         * lib/xmalloc.c (SIZE_MAX): Likewise.
48657         * lib/openat-die.c (N_): Likewise.
48658         * lib/mountlist.c (SIZE_MAX): Remove definition.
48659         Instead, include <stdint.h>.
48660         * lib/readutmp.c: Likewise.
48661         * modules/readutmp (Depends-on): Add stdint.
48662         * modules/mountlist (Depends-on): Add stdint.
48663         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
48664
48665 2009-03-10  Bruno Haible  <bruno@clisp.org>
48666
48667         Tests for module 'mbmemcasecoll'.
48668         * modules/mbmemcasecoll-tests: New file.
48669         * tests/test-mbmemcasecoll1.sh: New file.
48670         * tests/test-mbmemcasecoll2.sh: New file.
48671         * tests/test-mbmemcasecoll3.sh: New file.
48672         * tests/test-mbmemcasecoll.c: New file.
48673
48674         New module 'mbmemcasecoll'.
48675         * lib/mbmemcasecoll.h: New file.
48676         * lib/mbmemcasecoll.c: New file.
48677         * modules/mbmemcasecoll: New file.
48678
48679         * tests/test-mbmemcasecmp.h: New file, extracted from
48680         tests/test-mbmemcasecmp.c.
48681         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
48682         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
48683         (main): Update.
48684         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
48685
48686 2009-03-09  Bruno Haible  <bruno@clisp.org>
48687
48688         Tests for module 'mbmemcasecmp'.
48689         * modules/mbmemcasecmp-tests: New file.
48690         * tests/test-mbmemcasecmp1.sh: New file.
48691         * tests/test-mbmemcasecmp2.sh: New file.
48692         * tests/test-mbmemcasecmp3.sh: New file.
48693         * tests/test-mbmemcasecmp.c: New file.
48694
48695         New module 'mbmemcasecmp'.
48696         * lib/mbmemcasecmp.h: New file.
48697         * lib/mbmemcasecmp.c: New file.
48698         * modules/mbmemcasecmp: New file.
48699
48700 2009-03-09  Bruno Haible  <bruno@clisp.org>
48701
48702         Tests for module 'unicase/ulc-casecoll'.
48703         * modules/unicase/ulc-casecoll-tests: New file.
48704         * tests/unicase/test-ulc-casecoll1.sh: New file.
48705         * tests/unicase/test-ulc-casecoll2.sh: New file.
48706         * tests/unicase/test-ulc-casecoll.c: New file.
48707
48708         New module 'unicase/ulc-casecoll'.
48709         * lib/unicase.h (ulc_casecoll): New declaration.
48710         * lib/unicase/ulc-casecoll.c: New file.
48711         * modules/unicase/ulc-casecoll: New file.
48712
48713         New module 'unicase/ulc-casexfrm'.
48714         * lib/unicase.h (ulc_casexfrm): New declaration.
48715         * lib/unicase/ulc-casexfrm.c: New file.
48716         * modules/unicase/ulc-casexfrm: New file.
48717
48718 2009-03-09  Bruno Haible  <bruno@clisp.org>
48719
48720         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
48721         invocations.
48722
48723         * m4/mbscasecmp.m4: Remove file.
48724         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
48725         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
48726
48727         * m4/mbscasestr.m4: Remove file.
48728         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
48729         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
48730
48731         * m4/mbschr.m4: Remove file.
48732         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
48733         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
48734
48735         * m4/mbscspn.m4: Remove file.
48736         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
48737         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
48738
48739         * m4/mbslen.m4: Remove file.
48740         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
48741         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
48742
48743         * m4/mbsncasecmp.m4: Remove file.
48744         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
48745         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
48746
48747         * m4/mbsnlen.m4: Remove file.
48748         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
48749         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
48750
48751         * m4/mbspbrk.m4: Remove file.
48752         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
48753         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
48754
48755         * m4/mbspcasecmp.m4: Remove file.
48756         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
48757         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
48758
48759         * m4/mbsrchr.m4: Remove file.
48760         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
48761         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
48762
48763         * m4/mbssep.m4: Remove file.
48764         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
48765         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
48766
48767         * m4/mbsspn.m4: Remove file.
48768         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
48769         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
48770
48771         * m4/mbsstr.m4: Remove file.
48772         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
48773         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
48774
48775         * m4/mbstok_r.m4: Remove file.
48776         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
48777         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
48778
48779         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
48780
48781         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
48782         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
48783
48784         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
48785
48786 2009-03-08  Bruno Haible  <bruno@clisp.org>
48787
48788         Tests for module 'unicase/ulc-casecmp'.
48789         * modules/unicase/ulc-casecmp-tests: New file.
48790         * tests/unicase/test-ulc-casecmp1.sh: New file.
48791         * tests/unicase/test-ulc-casecmp2.sh: New file.
48792         * tests/unicase/test-ulc-casecmp.c: New file.
48793
48794         New module 'unicase/ulc-casecmp'.
48795         * lib/unicase.h (ulc_casecmp): New declaration.
48796         * lib/unicase/ulc-casecmp.c: New file.
48797         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
48798         'const SRC_UNIT *'.
48799         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
48800         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
48801         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
48802         * modules/unicase/ulc-casecmp: New file.
48803
48804         Tests for module 'unicase/u32-is-cased'.
48805         * modules/unicase/u32-is-cased-tests: New file.
48806         * tests/unicase/test-u32-is-cased.c: New file.
48807
48808         Tests for module 'unicase/u16-is-cased'.
48809         * modules/unicase/u16-is-cased-tests: New file.
48810         * tests/unicase/test-u16-is-cased.c: New file.
48811
48812         Tests for module 'unicase/u8-is-cased'.
48813         * modules/unicase/u8-is-cased-tests: New file.
48814         * tests/unicase/test-u8-is-cased.c: New file.
48815         * tests/unicase/test-is-cased.h: New file.
48816
48817         New module 'unicase/u32-is-cased'.
48818         * lib/unicase/u32-is-cased.c: New file.
48819         * modules/unicase/u32-is-cased: New file.
48820
48821         New module 'unicase/u16-is-cased'.
48822         * lib/unicase/u16-is-cased.c: New file.
48823         * modules/unicase/u16-is-cased: New file.
48824
48825         New module 'unicase/u8-is-cased'.
48826         * lib/unicase/u8-is-cased.c: New file.
48827         * lib/unicase/u-is-cased.h: New file.
48828         * modules/unicase/u8-is-cased: New file.
48829
48830         Tests for module 'unicase/u32-is-casefolded'.
48831         * modules/unicase/u32-is-casefolded-tests: New file.
48832         * tests/unicase/test-u32-is-casefolded.c: New file.
48833
48834         Tests for module 'unicase/u16-is-casefolded'.
48835         * modules/unicase/u16-is-casefolded-tests: New file.
48836         * tests/unicase/test-u16-is-casefolded.c: New file.
48837
48838         Tests for module 'unicase/u8-is-casefolded'.
48839         * modules/unicase/u8-is-casefolded-tests: New file.
48840         * tests/unicase/test-u8-is-casefolded.c: New file.
48841         * tests/unicase/test-is-casefolded.h: New file.
48842
48843         New module 'unicase/u32-is-casefolded'.
48844         * lib/unicase/u32-is-casefolded.c: New file.
48845         * modules/unicase/u32-is-casefolded: New file.
48846
48847         New module 'unicase/u16-is-casefolded'.
48848         * lib/unicase/u16-is-casefolded.c: New file.
48849         * modules/unicase/u16-is-casefolded: New file.
48850
48851         New module 'unicase/u8-is-casefolded'.
48852         * lib/unicase/u8-is-casefolded.c: New file.
48853         * modules/unicase/u8-is-casefolded: New file.
48854
48855         Tests for module 'unicase/u32-is-titlecase'.
48856         * modules/unicase/u32-is-titlecase-tests: New file.
48857         * tests/unicase/test-u32-is-titlecase.c: New file.
48858
48859         Tests for module 'unicase/u16-is-titlecase'.
48860         * modules/unicase/u16-is-titlecase-tests: New file.
48861         * tests/unicase/test-u16-is-titlecase.c: New file.
48862
48863         Tests for module 'unicase/u8-is-titlecase'.
48864         * modules/unicase/u8-is-titlecase-tests: New file.
48865         * tests/unicase/test-u8-is-titlecase.c: New file.
48866         * tests/unicase/test-is-titlecase.h: New file.
48867
48868         New module 'unicase/u32-is-titlecase'.
48869         * lib/unicase/u32-is-titlecase.c: New file.
48870         * modules/unicase/u32-is-titlecase: New file.
48871
48872         New module 'unicase/u16-is-titlecase'.
48873         * lib/unicase/u16-is-titlecase.c: New file.
48874         * modules/unicase/u16-is-titlecase: New file.
48875
48876         New module 'unicase/u8-is-titlecase'.
48877         * lib/unicase/u8-is-titlecase.c: New file.
48878         * modules/unicase/u8-is-titlecase: New file.
48879
48880         Tests for module 'unicase/u32-is-lowercase'.
48881         * modules/unicase/u32-is-lowercase-tests: New file.
48882         * tests/unicase/test-u32-is-lowercase.c: New file.
48883
48884         Tests for module 'unicase/u16-is-lowercase'.
48885         * modules/unicase/u16-is-lowercase-tests: New file.
48886         * tests/unicase/test-u16-is-lowercase.c: New file.
48887
48888         Tests for module 'unicase/u8-is-lowercase'.
48889         * modules/unicase/u8-is-lowercase-tests: New file.
48890         * tests/unicase/test-u8-is-lowercase.c: New file.
48891         * tests/unicase/test-is-lowercase.h: New file.
48892
48893         New module 'unicase/u32-is-lowercase'.
48894         * lib/unicase/u32-is-lowercase.c: New file.
48895         * modules/unicase/u32-is-lowercase: New file.
48896
48897         New module 'unicase/u16-is-lowercase'.
48898         * lib/unicase/u16-is-lowercase.c: New file.
48899         * modules/unicase/u16-is-lowercase: New file.
48900
48901         New module 'unicase/u8-is-lowercase'.
48902         * lib/unicase/u8-is-lowercase.c: New file.
48903         * modules/unicase/u8-is-lowercase: New file.
48904
48905         Tests for module 'unicase/u32-is-uppercase'.
48906         * modules/unicase/u32-is-uppercase-tests: New file.
48907         * tests/unicase/test-u32-is-uppercase.c: New file.
48908
48909         Tests for module 'unicase/u16-is-uppercase'.
48910         * modules/unicase/u16-is-uppercase-tests: New file.
48911         * tests/unicase/test-u16-is-uppercase.c: New file.
48912
48913         Tests for module 'unicase/u8-is-uppercase'.
48914         * modules/unicase/u8-is-uppercase-tests: New file.
48915         * tests/unicase/test-u8-is-uppercase.c: New file.
48916         * tests/unicase/test-is-uppercase.h: New file.
48917
48918         New module 'unicase/u32-is-uppercase'.
48919         * lib/unicase/u32-is-uppercase.c: New file.
48920         * modules/unicase/u32-is-uppercase: New file.
48921
48922         New module 'unicase/u16-is-uppercase'.
48923         * lib/unicase/u16-is-uppercase.c: New file.
48924         * modules/unicase/u16-is-uppercase: New file.
48925
48926         New module 'unicase/u8-is-uppercase'.
48927         * lib/unicase/u8-is-uppercase.c: New file.
48928         * modules/unicase/u8-is-uppercase: New file.
48929
48930         New module 'unicase/u32-is-invariant'.
48931         * lib/unicase/u32-is-invariant.c: New file.
48932         * modules/unicase/u32-is-invariant: New file.
48933
48934         New module 'unicase/u16-is-invariant'.
48935         * lib/unicase/u16-is-invariant.c: New file.
48936         * modules/unicase/u16-is-invariant: New file.
48937
48938         New module 'unicase/u8-is-invariant'.
48939         * lib/unicase/u8-is-invariant.c: New file.
48940         * lib/unicase/invariant.h: New file.
48941         * lib/unicase/u-is-invariant.h: New file.
48942         * modules/unicase/u8-is-invariant: New file.
48943
48944         Tests for module 'unicase/u32-casecoll'.
48945         * modules/unicase/u32-casecoll-tests: New file.
48946         * tests/unicase/test-u32-casecoll.c: New file.
48947
48948         Tests for module 'unicase/u16-casecoll'.
48949         * modules/unicase/u16-casecoll-tests: New file.
48950         * tests/unicase/test-u16-casecoll.c: New file.
48951
48952         Tests for module 'unicase/u8-casecoll'.
48953         * modules/unicase/u8-casecoll-tests: New file.
48954         * tests/unicase/test-u8-casecoll.c: New file.
48955
48956         New module 'unicase/u32-casecoll'.
48957         * lib/unicase/u32-casecoll.c: New file.
48958         * modules/unicase/u32-casecoll: New file.
48959
48960         New module 'unicase/u16-casecoll'.
48961         * lib/unicase/u16-casecoll.c: New file.
48962         * modules/unicase/u16-casecoll: New file.
48963
48964         New module 'unicase/u8-casecoll'.
48965         * lib/unicase/u8-casecoll.c: New file.
48966         * lib/unicase/u-casecoll.h: New file.
48967         * modules/unicase/u8-casecoll: New file.
48968
48969         New module 'unicase/u32-casexfrm'.
48970         * lib/unicase/u32-casexfrm.c: New file.
48971         * modules/unicase/u32-casexfrm: New file.
48972
48973         New module 'unicase/u16-casexfrm'.
48974         * lib/unicase/u16-casexfrm.c: New file.
48975         * modules/unicase/u16-casexfrm: New file.
48976
48977         New module 'unicase/u8-casexfrm'.
48978         * lib/unicase/u8-casexfrm.c: New file.
48979         * lib/unicase/u-casexfrm.h: New file.
48980         * modules/unicase/u8-casexfrm: New file.
48981
48982         Tests for module 'unicase/u32-casecmp'.
48983         * modules/unicase/u32-casecmp-tests: New file.
48984         * tests/unicase/test-u32-casecmp.c: New file.
48985
48986         Tests for module 'unicase/u16-casecmp'.
48987         * modules/unicase/u16-casecmp-tests: New file.
48988         * tests/unicase/test-u16-casecmp.c: New file.
48989
48990         Tests for module 'unicase/u8-casecmp'.
48991         * modules/unicase/u8-casecmp-tests: New file.
48992         * tests/unicase/test-u8-casecmp.c: New file.
48993         * tests/unicase/test-casecmp.h: New file.
48994
48995         New module 'unicase/u32-casecmp'.
48996         * lib/unicase/u32-casecmp.c: New file.
48997         * modules/unicase/u32-casecmp: New file.
48998
48999         New module 'unicase/u16-casecmp'.
49000         * lib/unicase/u16-casecmp.c: New file.
49001         * modules/unicase/u16-casecmp: New file.
49002
49003         New module 'unicase/u8-casecmp'.
49004         * lib/unicase/u8-casecmp.c: New file.
49005         * lib/unicase/u-casecmp.h: New file.
49006         * modules/unicase/u8-casecmp: New file.
49007
49008         Tests for module 'unicase/u32-casefold'.
49009         * modules/unicase/u32-casefold-tests: New file.
49010         * tests/unicase/test-u32-casefold.c: New file.
49011
49012         Tests for module 'unicase/u16-casefold'.
49013         * modules/unicase/u16-casefold-tests: New file.
49014         * tests/unicase/test-u16-casefold.c: New file.
49015
49016         Tests for module 'unicase/u8-casefold'.
49017         * modules/unicase/u8-casefold-tests: New file.
49018         * tests/unicase/test-u8-casefold.c: New file.
49019
49020         New module 'unicase/u32-casefold'.
49021         * lib/unicase/u32-casefold.c: New file.
49022         * modules/unicase/u32-casefold: New file.
49023
49024         New module 'unicase/u16-casefold'.
49025         * lib/unicase/u16-casefold.c: New file.
49026         * modules/unicase/u16-casefold: New file.
49027
49028         New module 'unicase/u8-casefold'.
49029         * lib/unicase/u8-casefold.c: New file.
49030         * lib/unicase/u-casefold.h: New file.
49031         * modules/unicase/u8-casefold: New file.
49032
49033         New module 'unicase/tocasefold'.
49034         * lib/unicase/casefold.h: New file.
49035         * lib/unicase/tocasefold.c: New file.
49036         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
49037         * modules/unicase/tocasefold: New file.
49038
49039         Tests for module 'unicase/u32-totitle'.
49040         * modules/unicase/u32-totitle-tests: New file.
49041         * tests/unicase/test-u32-totitle.c: New file.
49042
49043         Tests for module 'unicase/u16-totitle'.
49044         * modules/unicase/u16-totitle-tests: New file.
49045         * tests/unicase/test-u16-totitle.c: New file.
49046
49047         Tests for module 'unicase/u8-totitle'.
49048         * modules/unicase/u8-totitle-tests: New file.
49049         * tests/unicase/test-u8-totitle.c: New file.
49050
49051         New module 'unicase/u32-totitle'.
49052         * lib/unicase/u32-totitle.c: New file.
49053         * modules/unicase/u32-totitle: New file.
49054
49055         New module 'unicase/u16-totitle'.
49056         * lib/unicase/u16-totitle.c: New file.
49057         * modules/unicase/u16-totitle: New file.
49058
49059         New module 'unicase/u8-totitle'.
49060         * lib/unicase/u8-totitle.c: New file.
49061         * lib/unicase/u-totitle.h: New file.
49062         * modules/unicase/u8-totitle: New file.
49063
49064         Tests for module 'unicase/u32-tolower'.
49065         * modules/unicase/u32-tolower-tests: New file.
49066         * tests/unicase/test-u32-tolower.c: New file.
49067
49068         Tests for module 'unicase/u16-tolower'.
49069         * modules/unicase/u16-tolower-tests: New file.
49070         * tests/unicase/test-u16-tolower.c: New file.
49071
49072         Tests for module 'unicase/u8-tolower'.
49073         * modules/unicase/u8-tolower-tests: New file.
49074         * tests/unicase/test-u8-tolower.c: New file.
49075
49076         New module 'unicase/u32-tolower'.
49077         * lib/unicase/u32-tolower.c: New file.
49078         * modules/unicase/u32-tolower: New file.
49079
49080         New module 'unicase/u16-tolower'.
49081         * lib/unicase/u16-tolower.c: New file.
49082         * modules/unicase/u16-tolower: New file.
49083
49084         New module 'unicase/u8-tolower'.
49085         * lib/unicase/u8-tolower.c: New file.
49086         * modules/unicase/u8-tolower: New file.
49087
49088         Tests for module 'unicase/u32-toupper'.
49089         * modules/unicase/u32-toupper-tests: New file.
49090         * tests/unicase/test-u32-toupper.c: New file.
49091
49092         Tests for module 'unicase/u16-toupper'.
49093         * modules/unicase/u16-toupper-tests: New file.
49094         * tests/unicase/test-u16-toupper.c: New file.
49095
49096         Tests for module 'unicase/u8-toupper'.
49097         * modules/unicase/u8-toupper-tests: New file.
49098         * tests/unicase/test-u8-toupper.c: New file.
49099
49100         New module 'unicase/u32-toupper'.
49101         * lib/unicase/u32-toupper.c: New file.
49102         * modules/unicase/u32-toupper: New file.
49103
49104         New module 'unicase/u16-toupper'.
49105         * lib/unicase/u16-toupper.c: New file.
49106         * modules/unicase/u16-toupper: New file.
49107
49108         New module 'unicase/u8-toupper'.
49109         * lib/unicase/u8-toupper.c: New file.
49110         * modules/unicase/u8-toupper: New file.
49111
49112         New module 'unicase/u32-casemap'.
49113         * lib/unicase/u32-casemap.c: New file.
49114         * modules/unicase/u32-casemap: New file.
49115
49116         New module 'unicase/u16-casemap'.
49117         * lib/unicase/u16-casemap.c: New file.
49118         * modules/unicase/u16-casemap: New file.
49119
49120         New module 'unicase/u8-casemap'.
49121         * lib/unicase/unicasemap.h: New file.
49122         * lib/unicase/u8-casemap.c: New file.
49123         * lib/unicase/u-casemap.h: New file.
49124         * modules/unicase/u8-casemap: New file.
49125
49126         New module 'unicase/special-casing'.
49127         * lib/unicase/special-casing.h: New file.
49128         * lib/unicase/special-casing.c: New file.
49129         * lib/unicase/special-casing-table.gperf: New file, generated by
49130         gen-uni-tables.c.
49131         * modules/unicase/special-casing: New file.
49132
49133         Tests for module 'unicase/locale-language'.
49134         * modules/unicase/locale-language-tests: New file.
49135         * tests/unicase/test-locale-language.sh: New file.
49136         * tests/unicase/test-locale-language.c: New file.
49137
49138         New module 'unicase/locale-language'.
49139         * lib/unicase/locale-language.c: New file.
49140         * lib/unicase/locale-languages.gperf: New file.
49141         * modules/unicase/locale-language: New file.
49142
49143         Generate more tables for case conversion and case folding.
49144         * lib/gen-uni-tables.c (SCC_*): New enum items.
49145         (struct special_casing_rule): New type.
49146         (casing_rules, num_casing_rules, allocated_casing_rules): New
49147         variables.
49148         (add_casing_rule, fill_casing_rules): New functions.
49149         (struct casefold_rule): New type.
49150         (casefolding_rules, num_casefolding_rules,
49151         allocated_casefolding_rules): New variables.
49152         (fill_casefolding_rules): New function.
49153         (unicode_casefold): New variable.
49154         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
49155         sort_casing_rules, output_casing_rules): New functions.
49156         (main): Accept to more arguments: SpecialCasing.txt and
49157         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
49158         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
49159         Output mapping for casefolding.
49160
49161         * lib/unicase.h: Include stdbool.h, uninorm.h.
49162         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
49163         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
49164         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
49165         arguments.
49166         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
49167         resultp arguments.
49168         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
49169         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
49170         resultp arguments.
49171         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
49172         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
49173         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
49174         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
49175         declarations.
49176         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
49177
49178 2009-03-08  Bruno Haible  <bruno@clisp.org>
49179
49180         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49181         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
49182         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
49183         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49184
49185 2009-03-07  Bruno Haible  <bruno@clisp.org>
49186
49187         Adjust u*_normcmp, u*_normcoll API.
49188         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49189         u16_normcoll, u32_normcoll): Change failure conventions.
49190         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
49191         errno and return -1.
49192         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49193
49194 2009-03-07  Bruno Haible  <bruno@clisp.org>
49195
49196         Tests for module 'uninorm/u32-normcoll'.
49197         * modules/uninorm/u32-normcoll-tests: New file.
49198         * tests/uninorm/test-u32-normcoll.c: New file.
49199
49200         Tests for module 'uninorm/u16-normcoll'.
49201         * modules/uninorm/u16-normcoll-tests: New file.
49202         * tests/uninorm/test-u16-normcoll.c: New file.
49203
49204         Tests for module 'uninorm/u8-normcoll'.
49205         * modules/uninorm/u8-normcoll-tests: New file.
49206         * tests/uninorm/test-u8-normcoll.c: New file.
49207
49208 2009-03-07  Bruno Haible  <bruno@clisp.org>
49209
49210         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
49211         tests/uninorm/test-u32-normcmp.c.
49212         * tests/uninorm/test-u32-normcmp.c: Include it.
49213         (test_nonascii): New function, extracted from main. Add some more
49214         tests.
49215         (main): Invoke test_ascii and test_nonascii.
49216         * modules/uninorm/u32-normcmp-tests (Files): Add
49217         tests/uninorm/test-u32-normcmp.h.
49218         (Depends-on): Remove uninorm/u32-normcmp.
49219
49220         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
49221         tests/uninorm/test-u16-normcmp.c.
49222         * tests/uninorm/test-u16-normcmp.c: Include it.
49223         (test_nonascii): New function, extracted from main. Add some more
49224         tests.
49225         (main): Invoke test_ascii and test_nonascii.
49226         * modules/uninorm/u16-normcmp-tests (Files): Add
49227         tests/uninorm/test-u16-normcmp.h.
49228         (Depends-on): Remove uninorm/u16-normcmp.
49229
49230         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
49231         tests/uninorm/test-u8-normcmp.c.
49232         * tests/uninorm/test-u8-normcmp.c: Include it.
49233         (test_nonascii): New function, extracted from main. Add some more
49234         tests.
49235         (main): Invoke test_ascii and test_nonascii.
49236         * modules/uninorm/u8-normcmp-tests (Files): Add
49237         tests/uninorm/test-u8-normcmp.h.
49238         (Depends-on): Remove uninorm/u8-normcmp.
49239
49240 2009-03-07  Bruno Haible  <bruno@clisp.org>
49241
49242         New module 'uninorm/u32-normcoll'.
49243         * lib/uninorm/u32-normcoll.c: New file.
49244         * modules/uninorm/u32-normcoll: New file.
49245
49246         New module 'uninorm/u16-normcoll'.
49247         * lib/uninorm/u16-normcoll.c: New file.
49248         * modules/uninorm/u16-normcoll: New file.
49249
49250         New module 'uninorm/u8-normcoll'.
49251         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
49252         declarations.
49253         * lib/uninorm/u8-normcoll.c: New file.
49254         * lib/uninorm/u-normcoll.h: New file.
49255         * modules/uninorm/u8-normcoll: New file.
49256
49257         New module 'uninorm/u32-normxfrm'.
49258         * lib/uninorm/u32-normxfrm.c: New file.
49259         * modules/uninorm/u32-normxfrm: New file.
49260
49261         New module 'uninorm/u16-normxfrm'.
49262         * lib/uninorm/u16-normxfrm.c: New file.
49263         * modules/uninorm/u16-normxfrm: New file.
49264
49265         New module 'uninorm/u8-normxfrm'.
49266         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
49267         declarations.
49268         * lib/uninorm/u8-normxfrm.c: New file.
49269         * lib/uninorm/u-normxfrm.h: New file.
49270         * modules/uninorm/u8-normxfrm: New file.
49271
49272 2009-03-07  Bruno Haible  <bruno@clisp.org>
49273
49274         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
49275         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
49276         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
49277
49278 2009-03-07  Bruno Haible  <bruno@clisp.org>
49279
49280         New module 'memxfrm'.
49281         * lib/memxfrm.h: New file.
49282         * lib/memxfrm.c: New file.
49283         * modules/memxfrm: New file.
49284
49285 2009-03-07  Bruno Haible  <bruno@clisp.org>
49286
49287         New module 'memcmp2'.
49288         * lib/memcmp2.h: New file.
49289         * lib/memcmp2.c: New file.
49290         * modules/memcmp2: New file.
49291
49292 2009-03-07  Bruno Haible  <bruno@clisp.org>
49293
49294         Tests for module 'uninorm/decomposing-form'.
49295         * modules/uninorm/decomposing-form-tests: New file.
49296         * tests/uninorm/test-decomposing-form.c: New file.
49297
49298         New module 'uninorm/decomposing-form'.
49299         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
49300         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
49301         Add 'decomposing_variant' field.
49302         * lib/uninorm/decomposing-form.c: New file.
49303         * lib/uninorm/nfc.c (uninorm_nfc): Update.
49304         * lib/uninorm/nfd.c (uninorm_nfd): Update.
49305         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
49306         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
49307         * modules/uninorm/decomposing-form: New file.
49308         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
49309         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
49310
49311 2009-03-07  Bruno Haible  <bruno@clisp.org>
49312
49313         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
49314         strings.
49315
49316 2009-03-06  Bruno Haible  <bruno@clisp.org>
49317
49318         Tests for module 'uninorm/u32-normcmp'.
49319         * tests/uninorm/test-u32-normcmp.c: New file.
49320         * modules/uninorm/u32-normcmp-tests: New file.
49321
49322         Tests for module 'uninorm/u16-normcmp'.
49323         * tests/uninorm/test-u16-normcmp.c: New file.
49324         * modules/uninorm/u16-normcmp-tests: New file.
49325
49326         Tests for module 'uninorm/u8-normcmp'.
49327         * tests/uninorm/test-u8-normcmp.c: New file.
49328         * modules/uninorm/u8-normcmp-tests: New file.
49329
49330         New module 'uninorm/u32-normcmp'.
49331         * lib/uninorm/u32-normcmp.c: New file.
49332         * modules/uninorm/u32-normcmp: New file.
49333
49334         New module 'uninorm/u16-normcmp'.
49335         * lib/uninorm/u16-normcmp.c: New file.
49336         * modules/uninorm/u16-normcmp: New file.
49337
49338         New module 'uninorm/u8-normcmp'.
49339         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
49340         declarations.
49341         * lib/uninorm/u8-normcmp.c: New file.
49342         * lib/uninorm/u-normcmp.h: New file.
49343         * modules/uninorm/u8-normcmp: New file.
49344
49345 2009-03-06  Bruno Haible  <bruno@clisp.org>
49346
49347         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
49348         Reported by Eric Blake.
49349
49350 2009-03-06  Eric Blake  <ebb9@byu.net>
49351             Bruno Haible  <bruno@clisp.org>
49352
49353         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
49354         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
49355         condition.
49356         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49357         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
49358         condition.
49359         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49360
49361 2009-03-06  Eric Blake  <ebb9@byu.net>
49362
49363         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
49364         to avoid compiler warnings.
49365         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
49366
49367 2009-03-05  Bruno Haible  <bruno@clisp.org>
49368
49369         * tests/test-ftell.c (main): Disable test beyond end of file on
49370         FreeMiNT.
49371         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49372
49373 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
49374
49375         * lib/filevercmp.c: Move hidden files up in ordering.
49376         * tests/test-filevercmp.c: Add tests for hidden files.
49377
49378 2009-03-04  Bruno Haible  <bruno@clisp.org>
49379
49380         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
49381         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
49382         AM_CFLAGS.
49383         Reported by Simon Josefsson.
49384
49385 2009-03-03  Bruno Haible  <bruno@clisp.org>
49386
49387         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
49388         Reported by Simon Josefsson.
49389
49390         * doc/ld-version-script.texi: Update node reference.
49391
49392 2009-03-03  Bruno Haible  <bruno@clisp.org>
49393
49394         * modules/visibility (License): Change to 'unlimited'.
49395         Suggested by Simon Josefsson.
49396
49397 2009-03-03  Jim Meyering  <meyering@redhat.com>
49398
49399         unlinkdir: cannot_unlink_dir may modify process state
49400         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
49401         it's neither thread-safe nor appropriate for use in a library.
49402
49403 2009-03-03  Eric Blake  <ebb9@byu.net>
49404
49405         test-closein: silence test under Darwin
49406         * tests/test-closein.sh: Ignore stderr from cat, since we don't
49407         care if it dies from EPIPE or EBADF.
49408
49409 2009-03-03  Bruno Haible  <bruno@clisp.org>
49410
49411         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
49412         earlier.
49413         * doc/visibility.texi: Fix @node and @section.
49414
49415 2009-03-03  Simon Josefsson  <simon@josefsson.org>
49416
49417         * doc/gnulib.texi: Link to sections for ld version script and
49418         visibility.
49419         * doc/visibility.texi: Add @node and @section.
49420         * modules/ld-version-script: New module.
49421         * m4/ld-version-script.m4: New file.
49422         * doc/ld-version-script.texi: New file.
49423
49424 2009-03-02  David Lutterkort  <lutter@redhat.com>
49425
49426         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
49427         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49428
49429 2009-03-02  Bruno Haible  <bruno@clisp.org>
49430
49431         * doc/visibility.texi: Mention libtool's -export-symbols option.
49432
49433 2009-03-02  Jim Meyering  <meyering@redhat.com>
49434
49435         announce-gen: new option: --no-print-checksums
49436         * build-aux/announce-gen (usage): Describe it.
49437         (print_checksums): Print a newline here, not in the [*] footnote.
49438         (main): Honor it.
49439
49440 2009-03-01  Bruno Haible  <bruno@clisp.org>
49441
49442         Use socklen_t in the native Windows replacements prototypes.
49443         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
49444         instead of 'int'.
49445         * lib/getsockopt.c (rpl_getsockopt): Likewise.
49446         * lib/setsockopt.c (rpl_setsockopt): Likewise.
49447         * modules/getsockopt (Depends-on): Add socklen.
49448         * modules/setsockopt (Depends-on): Add socklen.
49449
49450 2009-03-01  Bruno Haible  <bruno@clisp.org>
49451
49452         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
49453         least 4.2.
49454
49455 2009-03-01  Eric Blake  <ebb9@byu.net>
49456             Bruno Haible  <bruno@clisp.org>
49457
49458         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
49459         error messages.
49460         * lib/wait-process.c (wait_subprocess): Omit error message about
49461         deadly signal sent to the child of termsigp != NULL.
49462
49463 2009-03-01  Eric Blake  <ebb9@byu.net>
49464
49465         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
49466
49467 2009-03-01  Bruno Haible  <bruno@clisp.org>
49468
49469         Avoid a gcc warning.
49470         * tests/test-sched.c (b): Make global.
49471         Reported by Eric Blake.
49472
49473 2009-01-19  Martin Lambers  <marlam@marlam.de>
49474
49475         Provide POSIX semantics for socket timeout options on W32.
49476         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
49477         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
49478         * modules/setsockopt: Depend on sys_time module for struct timeval.
49479         * modules/getsockopt: Depend on sys_time module for struct timeval.
49480
49481 2009-03-01  Simon Josefsson  <simon@josefsson.org>
49482
49483         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
49484         __USE_GNU, for consistency with netdb.in.h.
49485         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49486
49487 2009-03-01  Bruno Haible  <bruno@clisp.org>
49488
49489         More support for FreeMiNT.
49490         * lib/fseeko.c (rpl_fseeko): Complete last commit.
49491         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49492
49493 2009-03-01  Bruno Haible  <bruno@clisp.org>
49494
49495         More support for FreeMiNT.
49496         * lib/fpurge.c (fpurge): Correct last commit.
49497         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49498
49499 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49500
49501         Fix unportable awk script in vc-list-files.
49502         * build-aux/vc-list-files: In the replacement awk script, use
49503         substr with a second argument of 1, not zero.
49504         Report by Simon Josefsson.
49505
49506 2009-02-28  Bruno Haible  <bruno@clisp.org>
49507
49508         More support for FreeMiNT.
49509         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
49510         to FreeMiNT today.
49511         * lib/fwriting.c (fwriting): Likewise.
49512         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
49513
49514 2009-02-28  Bruno Haible  <bruno@clisp.org>
49515
49516         * tests/test-freadseek.c (main): Disable test beyond end of file on
49517         FreeMiNT.
49518         * tests/test-ftello.c (main): Likewise.
49519         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49520
49521 2009-02-28  Bruno Haible  <bruno@clisp.org>
49522
49523         Add tentative support for FreeMiNT.
49524         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
49525         * lib/fpurge.c (fpurge): Likewise.
49526         * lib/freadable.c (freadable): Likewise.
49527         * lib/freading.c (freading): Likewise.
49528         * lib/freadptr.c (freadptr): Likewise.
49529         * lib/freadseek.c (freadptrinc): Likewise.
49530         * lib/fseeko.c (rpl_fseeko): Likewise.
49531         * lib/fseterr.c (fseterr): Likewise.
49532         * lib/fwritable.c (fwritable): Likewise.
49533         * lib/fwriting.c (fwriting): Likewise.
49534         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
49535         Hourihane.
49536         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49537
49538 2009-02-28  Bruno Haible  <bruno@clisp.org>
49539
49540         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
49541         SIGCHLD.
49542         Reported by Jim Meyering.
49543
49544 2009-02-28  Bruno Haible  <bruno@clisp.org>
49545
49546         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
49547         Mention the results of these tests on various platforms.
49548         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
49549         order.
49550         * doc/posix-functions/printf.texi: Likewise.
49551         * doc/posix-functions/snprintf.texi: Likewise.
49552         * doc/posix-functions/sprintf.texi: Likewise.
49553         * doc/posix-functions/vfprintf.texi: Likewise.
49554         * doc/posix-functions/vprintf.texi: Likewise.
49555         * doc/posix-functions/vsnprintf.texi: Likewise.
49556         * doc/posix-functions/vsprintf.texi: Likewise.
49557         * doc/glibc-functions/obstack_printf.texi: Likewise.
49558         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
49559
49560 2009-02-28  Bruno Haible  <bruno@clisp.org>
49561
49562         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
49563         Reported by Loïc Minier <lool@dooz.org>.
49564
49565 2009-02-27  Bruno Haible  <bruno@clisp.org>
49566
49567         * gnulib-tool (func_import): Make the sed expression used to create the
49568         sed script for updating the .gitignore file POSIX compliant.
49569         Reported by Eric Blake.
49570
49571 2009-02-27  Bruno Haible  <bruno@clisp.org>
49572
49573         * gnulib-tool (sed): Don't alias as "sed --posix".
49574         Reported by Eric Blake.
49575
49576 2009-02-27  Bruno Haible  <bruno@clisp.org>
49577
49578         Avoid test link errors.
49579         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
49580         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
49581         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
49582         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
49583         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49584
49585 2009-02-27  Bruno Haible  <bruno@clisp.org>
49586
49587         Avoid spurious "(cached)" in configure output.
49588         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
49589         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
49590         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49591         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49592         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49593         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
49594         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49595         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
49596         Reported by Eric Blake.
49597
49598 2009-02-27  Eric Blake  <ebb9@byu.net>
49599
49600         printf: fix regression in previous patch
49601         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
49602
49603 2009-02-27  Bruno Haible  <bruno@clisp.org>
49604
49605         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
49606         value.
49607         * lib/stdint.in.h: Likewise.
49608         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
49609
49610 2009-02-27  Eric Blake  <ebb9@byu.net>
49611
49612         doc: mention more functions added in cygwin 1.7.0
49613         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
49614         addition.
49615         * doc/posix-functions/open_wmemstream.texi: Likewise.
49616         * doc/posix-functions/wcsnlen.texi: Likewise.
49617         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49618         * doc/posix-functions/wcstod.texi: Likewise.
49619         * doc/posix-functions/wcstof.texi: Likewise.
49620         * doc/posix-functions/wcstoimax.texi: Likewise.
49621         * doc/posix-functions/wcstok.texi: Likewise.
49622         * doc/posix-functions/wcstoumax.texi: Likewise.
49623
49624         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
49625         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
49626         * doc/posix-functions/fprintf.texi: Update.
49627         * doc/posix-functions/printf.texi: Update.
49628         * doc/posix-functions/snprintf.texi: Update.
49629         * doc/posix-functions/sprintf.texi: Update.
49630         * doc/posix-functions/vfprintf.texi: Update.
49631         * doc/posix-functions/vprintf.texi: Update.
49632         * doc/posix-functions/vsnprintf.texi: Update.
49633         * doc/posix-functions/vsprintf.texi: Update.
49634         * doc/glibc-functions/obstack_printf.texi: Update.
49635         * doc/glibc-functions/obstack_vprintf.texi: Update.
49636
49637 2009-02-26  Eric Blake  <ebb9@byu.net>
49638
49639         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
49640         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
49641         compilation bug by using runtime conversion.
49642         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49643         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
49644         * modules/ceill-tests (Files): Use nan.h.
49645         * modules/floorl-tests (Files): Likewise.
49646         * modules/frexpl-tests (Files): Likewise.
49647         * modules/isnanl-tests (Files): Likewise.
49648         * modules/ldexpl-tests (Files): Likewise.
49649         * modules/roundl-tests (Files): Likewise.
49650         * modules/truncl-tests (Files): Likewise.
49651         * tests/test-ceill.c (main): Use a working NaN.
49652         * tests/test-floorl.c (main): Likewise.
49653         * tests/test-frexpl.c (main): Likewise.
49654         * tests/test-isnan.c (test_long_double): Likewise.
49655         * tests/test-isnanl.h (main): Likewise.
49656         * tests/test-ldexpl.h (main): Likewise.
49657         * tests/test-roundl.h (main): Likewise.
49658         * tests/test-truncl.h (main): Likewise.
49659         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
49660
49661 2009-02-26  Eric Blake  <ebb9@byu.net>
49662             Bruno Haible  <bruno@clisp.org>
49663
49664         Work around a *printf bug with %ls on Solaris.
49665         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
49666         precision is specified, sprintf stops converting the wide string
49667         argument when the number of bytes that have been produced by this
49668         conversion equals or exceeds the precision.
49669         * doc/posix-functions/fprintf.texi: Update.
49670         * doc/posix-functions/printf.texi: Update.
49671         * doc/posix-functions/snprintf.texi: Update.
49672         * doc/posix-functions/sprintf.texi: Update.
49673         * doc/posix-functions/vfprintf.texi: Update.
49674         * doc/posix-functions/vprintf.texi: Update.
49675         * doc/posix-functions/vsnprintf.texi: Update.
49676         * doc/posix-functions/vsprintf.texi: Update.
49677         * doc/glibc-functions/obstack_printf.texi: Update.
49678         * doc/glibc-functions/obstack_vprintf.texi: Update.
49679
49680 2009-02-26  Eric Blake  <ebb9@byu.net>
49681
49682         stdlib: favor compiler check of random.h
49683         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
49684         to avoid an ObjC random.h installed by Swarm.
49685
49686 2009-02-26  Bruno Haible  <bruno@clisp.org>
49687
49688         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
49689         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
49690         Reported by Gary V. Vaughan <gary@gnu.org>.
49691
49692 2009-02-26  Bruno Haible  <bruno@clisp.org>
49693
49694         Fix *printf behaviour regarding the %ls directive.
49695         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
49696         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
49697         NEED_PRINTF_DIRECTIVE_LS.
49698         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
49699         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49700         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49701         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
49702         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
49703         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
49704         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49705         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49706         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49707         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49708         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49709         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
49710         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49711         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49712         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49713         * doc/posix-functions/fprintf.texi: Update.
49714         * doc/posix-functions/printf.texi: Update.
49715         * doc/posix-functions/snprintf.texi: Update.
49716         * doc/posix-functions/sprintf.texi: Update.
49717         * doc/posix-functions/vfprintf.texi: Update.
49718         * doc/posix-functions/vprintf.texi: Update.
49719         * doc/posix-functions/vsnprintf.texi: Update.
49720         * doc/posix-functions/vsprintf.texi: Update.
49721         * doc/glibc-functions/obstack_printf.texi: Update.
49722         * doc/glibc-functions/obstack_vprintf.texi: Update.
49723         Reported by Eric Blake.
49724
49725 2009-02-25  Bruno Haible  <bruno@clisp.org>
49726
49727         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
49728         with known value.
49729         Reported by Gary V. Vaughan <gary@gnu.org>.
49730
49731 2009-02-25  Bruno Haible  <bruno@clisp.org>
49732
49733         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
49734         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
49735         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
49736         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
49737         Reported by Gary V. Vaughan <gary@gnu.org>.
49738
49739 2009-02-25  Bruno Haible  <bruno@clisp.org>
49740
49741         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
49742         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
49743         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
49744         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
49745         Reported by Gary V. Vaughan <gary@gnu.org>.
49746
49747 2009-02-25  Eric Blake  <ebb9@byu.net>
49748
49749         tests: skip fseek/ftell tests if ungetc is broken
49750         * m4/ungetc.m4: New file.
49751         * modules/fseek-tests: Split test, so ungetc dependency is
49752         separate from rest of test.
49753         * modules/fseeko-tests: Likewise.
49754         * modules/ftell-tests: Likewise.
49755         * modules/ftello-tests: Likewise.
49756         * tests/test-fseek.c (main): Isolate ungetc dependency.
49757         * tests/test-fseeko.c (main): Likewise.
49758         * tests/test-ftell.c (main): Likewise.
49759         * tests/test-ftello.c (main): Likewise.
49760         * tests/test-fseek2.sh: New file.
49761         * tests/test-fseeko2.sh: Likewise.
49762         * tests/test-ftell2.sh: Likewise.
49763         * tests/test-ftello2.sh: Likewise.
49764
49765 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
49766
49767         test-getaddrinfo: fix usage of skip return code 77
49768         * tests/test-gettaddrinfo.c: Return skip code 77 only
49769         for first occurrence of skip (4x77 is not 77)
49770
49771 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
49772
49773         strtod: avoid C99 decl-after-statement
49774         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
49775
49776 2009-02-24  Eric Blake  <ebb9@byu.net>
49777
49778         strtod: detect HP-UX 11.31 bug
49779         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
49780         Reported by Gary V. Vaughan.
49781
49782 2009-02-23  Bruno Haible  <bruno@clisp.org>
49783
49784         Fix invalid read past end of memory block.
49785         * lib/vasnprintf.c (DCHAR_SET): Define.
49786         (local_wcslen): Define only when needed.
49787         (local_strnlen, local_wcsnlen): New functions.
49788         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
49789         directives that involve a conversion ourselves.
49790         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
49791         wcsnlen, mbrtowc, wcrtomb.
49792         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
49793         * tests/test-vasprintf-posix.c (test_function): Likewise.
49794         * tests/test-snprintf-posix.h (test_function): Likewise.
49795         * tests/test-sprintf-posix.h (test_function): Likewise.
49796         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49797
49798 2009-02-22  Bruno Haible  <bruno@clisp.org>
49799
49800         Implement new clarified decomposition of Hangul syllables.
49801         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
49802         of type LTV, return only a pairwise decomposition.
49803         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
49804         Likewise.
49805         * tests/uninorm/test-decomposition.c (main): Updated expected result.
49806         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
49807         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
49808
49809 2009-02-22  Bruno Haible  <bruno@clisp.org>
49810
49811         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
49812         zero-length results and shrink excess allocated memory.
49813         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
49814         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
49815         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
49816         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
49817         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
49818         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
49819         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
49820         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
49821         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
49822         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
49823         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
49824         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
49825
49826 2009-02-21  Bruno Haible  <bruno@clisp.org>
49827
49828         * doc/gnulib.texi: Include safe-alloc.texi earlier.
49829         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
49830         spaces after a period. Put a space between a macro name and its
49831         argument list. Trivial rewordings.
49832         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
49833         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
49834         (main): Return 0 explicitly.
49835
49836 2009-02-21  Bruno Haible  <bruno@clisp.org>
49837
49838         Tests for module 'uninorm/filter'.
49839         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
49840         * modules/uninorm/filter-tests: New file.
49841
49842         New module 'uninorm/filter'.
49843         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
49844         uninorm_filter_flush, uninorm_filter_free): New declarations.
49845         * lib/uninorm/uninorm-filter.c: New file.
49846         * modules/uninorm/filter: New file.
49847
49848 2009-02-21  Bruno Haible  <bruno@clisp.org>
49849
49850         Tests for module 'uninorm/nfkc'.
49851         * tests/uninorm/test-nfkc.c: New file.
49852         * tests/uninorm/test-u8-nfkc.c: New file.
49853         * tests/uninorm/test-u16-nfkc.c: New file.
49854         * tests/uninorm/test-u32-nfkc.c: New file.
49855         * tests/uninorm/test-u32-nfkc-big.sh: New file.
49856         * tests/uninorm/test-u32-nfkc-big.c: New file.
49857         * modules/uninorm/nfkc-tests: New file.
49858
49859         New module 'uninorm/nfkc'.
49860         * lib/uninorm/nfkc.c: New file.
49861         * modules/uninorm/nfkc: New file.
49862
49863         Tests for module 'uninorm/nfkd'.
49864         * tests/uninorm/test-nfkd.c: New file.
49865         * tests/uninorm/test-u8-nfkd.c: New file.
49866         * tests/uninorm/test-u16-nfkd.c: New file.
49867         * tests/uninorm/test-u32-nfkd.c: New file.
49868         * tests/uninorm/test-u32-nfkd-big.sh: New file.
49869         * tests/uninorm/test-u32-nfkd-big.c: New file.
49870         * modules/uninorm/nfkd-tests: New file.
49871
49872         New module 'uninorm/nfkd'.
49873         * lib/uninorm/nfkd.c: New file.
49874         * modules/uninorm/nfkd: New file.
49875
49876         Tests for module 'uninorm/nfc'.
49877         * tests/uninorm/test-nfc.c: New file.
49878         * tests/uninorm/test-u8-nfc.c: New file.
49879         * tests/uninorm/test-u16-nfc.c: New file.
49880         * tests/uninorm/test-u32-nfc.c: New file.
49881         * tests/uninorm/test-u32-nfc-big.sh: New file.
49882         * tests/uninorm/test-u32-nfc-big.c: New file.
49883         * modules/uninorm/nfc-tests: New file.
49884
49885         New module 'uninorm/nfc'.
49886         * lib/uninorm/nfc.c: New file.
49887         * modules/uninorm/nfc: New file.
49888
49889         Tests for module 'uninorm/nfd'.
49890         * tests/uninorm/test-nfd.c: New file.
49891         * tests/uninorm/test-u8-nfd.c: New file.
49892         * tests/uninorm/test-u16-nfd.c: New file.
49893         * tests/uninorm/test-u32-nfd.c: New file.
49894         * tests/uninorm/test-u32-nfd-big.sh: New file.
49895         * tests/uninorm/test-u32-nfd-big.c: New file.
49896         * tests/uninorm/test-u32-normalize-big.h: New file.
49897         * tests/uninorm/test-u32-normalize-big.c: New file.
49898         * tests/uninorm/NormalizationTest.txt: New file, created from
49899         Unicode 5.1.0 NormalizationTest.txt.
49900         * modules/uninorm/nfd-tests: New file.
49901
49902         New module 'uninorm/nfd'.
49903         * lib/uninorm/nfd.c: New file.
49904         * modules/uninorm/nfd: New file.
49905
49906         New module 'uninorm/u32-normalize'.
49907         * lib/uninorm/u32-normalize.c: New file.
49908         * modules/uninorm/u32-normalize: New file.
49909
49910         New module 'uninorm/u16-normalize'.
49911         * lib/uninorm/u16-normalize.c: New file.
49912         * modules/uninorm/u16-normalize: New file.
49913
49914         New module 'uninorm/u8-normalize'.
49915         * lib/uninorm/u8-normalize.c: New file.
49916         * lib/uninorm/normalize-internal.h: New file.
49917         * lib/uninorm/u-normalize-internal.h: New file.
49918         * modules/uninorm/u8-normalize: New file.
49919
49920         New module 'uninorm/decompose-internal'.
49921         * lib/uninorm/decompose-internal.c: New file.
49922         * modules/uninorm/decompose-internal: New file.
49923
49924         Tests for module 'uninorm/composition'.
49925         * tests/uninorm/test-composition.c: New file.
49926         * modules/uninorm/composition-tests: New file.
49927
49928         New module 'uninorm/composition'.
49929         * lib/uninorm/composition.c: New file.
49930         * lib/uninorm/composition-table.gperf: New file, generated by
49931         gen-uni-tables.
49932         * modules/uninorm/composition: New file.
49933
49934         Tests for module 'uninorm/compat-decomposition'.
49935         * tests/uninorm/test-compat-decomposition.c: New file.
49936         * modules/uninorm/compat-decomposition-tests: New file.
49937
49938         New module 'uninorm/compat-decomposition'.
49939         * lib/uninorm/decompose-internal.h: New file.
49940         * lib/uninorm/compat-decomposition.c: New file.
49941         * modules/uninorm/compat-decomposition: New file.
49942
49943         Tests for module 'uninorm/canonical-decomposition'.
49944         * tests/uninorm/test-canonical-decomposition.c: New file.
49945         * modules/uninorm/canonical-decomposition-tests: New file.
49946
49947         New module 'uninorm/canonical-decomposition'.
49948         * lib/uninorm/canonical-decomposition.c: New file.
49949         * modules/uninorm/canonical-decomposition: New file.
49950
49951         Tests for module 'uninorm/decomposition'.
49952         * tests/uninorm/test-decomposition.c: New file.
49953         * modules/uninorm/decomposition-tests: New file.
49954
49955         New module 'uninorm/decomposition'.
49956         * lib/uninorm/decomposition.c: New file.
49957         * modules/uninorm/decomposition: New file.
49958
49959         New module 'uninorm/decomposition-table'.
49960         * lib/uninorm/decomposition-table.h: New file.
49961         * lib/uninorm/decomposition-table.c: New file.
49962         * lib/uninorm/decomposition-table1.h: New file, generated by
49963         gen-uni-tables.
49964         * lib/uninorm/decomposition-table2.h: New file, generated by
49965         gen-uni-tables.
49966         * modules/uninorm/decomposition-table: New file.
49967
49968         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
49969         (UC_DECOMP_*): New enumeration items.
49970         (get_decomposition): New function.
49971         (struct decomp_table): New type.
49972         (output_decomposition, output_decomposition_tables): New functions.
49973         (unicode_composition_exclusions): New variable.
49974         (fill_composition_exclusions, debug_output_composition_tables): New
49975         functions.
49976         (main): Accept one more argument. Invoke fill_composition_exclusions.
49977         Output decomposition and composition tables.
49978
49979         New module 'uninorm/base'.
49980         * lib/uninorm.h: New file.
49981         * lib/unictype.h: Update comment.
49982         * modules/uninorm/base: New file.
49983
49984 2009-02-21  David Lutterkort  <lutter@redhat.com>
49985
49986         Tests for module 'safe-alloc'.
49987         * tests/test-safe-alloc.c: New file.
49988         * modules/safe-alloc-tests: New file.
49989
49990         New module 'safe-alloc'.
49991         * lib/safe-alloc.h: New file.
49992         * lib/safe-alloc.c: New file.
49993         * m4/safe-alloc.m4: New file.
49994         * modules/safe-alloc: New file.
49995         * doc/safe-alloc.texi: New file.
49996         * doc/gnulib.texi: Include it.
49997         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49998         safe-alloc.
49999
50000 2009-02-18  Bruno Haible  <bruno@clisp.org>
50001
50002         Fix link error on non-glibc systems.
50003         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
50004         variable.
50005         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50006
50007 2009-02-18  Jim Meyering  <meyering@redhat.com>
50008
50009         fts: avoid used-uninitialized error due to recent change
50010         * lib/fts.c (fts_read): Guard uses of the new member,
50011         parent->fts_n_dirs_remaining, since it's not relevant for
50012         the parent of a directory specified on the command-line.
50013
50014 2009-02-17  James Youngman  <jay@gnu.org>
50015             Bruno Haible  <bruno@clisp.org>
50016
50017         * m4/include_next.m4: Reformulate comment.
50018
50019 2009-02-16  Jim Meyering  <meyering@redhat.com>
50020
50021         fts: add #if guards so that the fts_lgpl module still builds
50022         * lib/fts.c: Guard just-added hash-table-using parts with
50023         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
50024         Reported by Simon Josefsson.
50025
50026 2009-02-15  Bruno Haible  <bruno@clisp.org>
50027
50028         * modules/array-mergesort-tests: New file.
50029         * tests/test-array-mergesort.c: New file.
50030
50031         New module 'array-mergesort'.
50032         * modules/array-mergesort: New file.
50033         * lib/array-mergesort.h: New file.
50034
50035 2009-02-15  Bruno Haible  <bruno@clisp.org>
50036
50037         Fix 2009-02-07 commit.
50038         * lib/gen-uni-tables.c (output_predicate, output_category,
50039         output_combclass, output_bidi_category, output_decimal_digit,
50040         output_digit, output_numeric, output_mirror, output_scripts,
50041         output_ident_category, output_simple_mapping): Fix format directives.
50042         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
50043
50044 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
50045
50046         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
50047         fixes are available from IBM.
50048
50049 2009-02-13  Jim Meyering  <meyering@redhat.com>
50050
50051         fts: arrange not to stat non-directories in more cases
50052         This makes GNU find (when it doesn't need to stat each file)
50053         *much* more efficient at traversing reiserfs file systems.
50054         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
50055         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
50056         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
50057         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
50058         (leaf_optimization_applies): New function.
50059         (LCO_hash, LCO_compare): New helper functions.
50060         (link_count_optimize_ok): New function.
50061         (fts_stat): Initialize new member (if dir).
50062         (fts_read): Decrement parent's fts_n_dirs_remaining count if
50063         we've just stat'ed a directory.  Skip the stat call when possible.
50064         ---
50065         Note this AFS-related exchange:
50066         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
50067         and note find's pioctl call in find/fstype.c.
50068         But that is necessary only if you want to enable the
50069         optimization for AFS, and for now, I don't.
50070
50071         fts: move a function definition "up" (no semantic change)
50072         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
50073         "up" to precede upcoming use of a related function.
50074
50075 2009-02-11  Jim Meyering  <meyering@redhat.com>
50076
50077         fts: correct internal computation of nlinks (optimization-related)
50078         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
50079         whether the current entry is a directory, so don't test it.
50080
50081 2009-02-10  Bruno Haible  <bruno@clisp.org>
50082
50083         Tests for module 'uniwbrk/ulc-wordbreaks'.
50084         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
50085         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
50086         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
50087
50088         Tests for module 'uniwbrk/u32-wordbreaks'.
50089         * modules/uniwbrk/u32-wordbreaks-tests: New file.
50090         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
50091
50092         Tests for module 'uniwbrk/u16-wordbreaks'.
50093         * modules/uniwbrk/u16-wordbreaks-tests: New file.
50094         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
50095
50096         Tests for module 'uniwbrk/u8-wordbreaks'.
50097         * modules/uniwbrk/u8-wordbreaks-tests: New file.
50098         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
50099
50100 2009-02-10  Bruno Haible  <bruno@clisp.org>
50101
50102         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
50103         property.
50104         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
50105         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
50106         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
50107
50108 2009-02-10  Simon Josefsson  <simon@josefsson.org>
50109
50110         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
50111         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
50112
50113 2009-02-10  Bruno Haible  <bruno@clisp.org>
50114
50115         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
50116         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
50117         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
50118         * lib/unilbrk/u8-possible-linebreaks.c: Update.
50119         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
50120         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
50121
50122 2009-02-09  Simon Josefsson  <simon@josefsson.org>
50123
50124         * lib/sockets.h (gl_fd_to_handle): New function.
50125
50126         * tests/test-sockets.c: Call gl_fd_to_handle.
50127
50128 2009-02-09  Bruno Haible  <bruno@clisp.org>
50129
50130         * doc/havelib.texi: Document the conventions on bi-arch systems.
50131
50132 2009-02-08  Bruno Haible  <bruno@clisp.org>
50133
50134         Document the AC_LIB_LINKFLAGS macro.
50135         * doc/havelib.texi: New file, mostly written on 2005-05-24.
50136         * doc/gnulib.texi: Include it.
50137
50138 2009-02-08  Bruno Haible  <bruno@clisp.org>
50139
50140         Fix wrong order of sections, compared to TOC.
50141         * doc/gnulib.texi: Include relocatable-maint.texi after the
50142         "Regular expressions" node, not before.
50143
50144 2009-02-08  Bruno Haible  <bruno@clisp.org>
50145
50146         Tests for module 'unicase/totitle'.
50147         * modules/unicase/totitle-tests: New file.
50148
50149         Tests for module 'unicase/tolower'.
50150         * modules/unicase/tolower-tests: New file.
50151
50152         Tests for module 'unicase/toupper'.
50153         * modules/unicase/toupper-tests: New file.
50154         * tests/unicase/test-mapping-part1.h: New file.
50155         * tests/unicase/test-mapping-part2.h: New file.
50156
50157         New module 'unicase/totitle'.
50158         * modules/unicase/totitle: New file.
50159         * lib/unicase/totitle.c: New file.
50160
50161         New module 'unicase/tolower'.
50162         * modules/unicase/tolower: New file.
50163         * lib/unicase/tolower.c: New file.
50164
50165         New module 'unicase/toupper'.
50166         * modules/unicase/toupper: New file.
50167         * lib/unicase/toupper.c: New file.
50168         * lib/unicase/simple-mapping.h: New file.
50169
50170         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
50171         (mapping_table): New structure.
50172         (output_simple_mapping): New function.
50173         (main): Invoke output_simple_mapping_test and output_simple_mapping.
50174         * modules/gen-uni-tables (Description): Update.
50175         * lib/unicase/toupper.h: New file, automatically generated by
50176         gen-uni-tables.
50177         * lib/unicase/tolower.h: New file, automatically generated by
50178         gen-uni-tables.
50179         * lib/unicase/totitle.h: New file, automatically generated by
50180         gen-uni-tables.
50181         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
50182         gen-uni-tables.
50183         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
50184         gen-uni-tables.
50185         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
50186         gen-uni-tables.
50187
50188         New module 'unicase/base'.
50189         * modules/unicase/base: New file.
50190         * lib/unicase.h: New file.
50191
50192 2009-02-08  Bruno Haible  <bruno@clisp.org>
50193
50194         New module 'uniwbrk/ulc-wordbreaks'.
50195         * modules/uniwbrk/ulc-wordbreaks: New file.
50196         * lib/uniwbrk/ulc-wordbreaks.c: New file.
50197
50198         New module 'uniwbrk/u32-wordbreaks'.
50199         * modules/uniwbrk/u32-wordbreaks: New file.
50200         * lib/uniwbrk/u32-wordbreaks.c: New file.
50201
50202         New module 'uniwbrk/u16-wordbreaks'.
50203         * modules/uniwbrk/u16-wordbreaks: New file.
50204         * lib/uniwbrk/u16-wordbreaks.c: New file.
50205
50206         New module 'uniwbrk/u8-wordbreaks'.
50207         * modules/uniwbrk/u8-wordbreaks: New file.
50208         * lib/uniwbrk/u8-wordbreaks.c: New file.
50209         * lib/uniwbrk/u-wordbreaks.h: New file.
50210
50211         New module 'uniwbrk/table'.
50212         * modules/uniwbrk/table: New file.
50213         * lib/uniwbrk/wbrktable.h: New file.
50214         * lib/uniwbrk/wbrktable.c: New file.
50215
50216         New module 'uniwbrk/wordbreak-property'.
50217         * modules/uniwbrk/wordbreak-property: New file.
50218         * lib/uniwbrk/wordbreak-property.c: New file.
50219
50220         * lib/gen-uni-tables.c (WBP_*): New enum items.
50221         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
50222         (unicode_org_wbp): New variable.
50223         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
50224         New functions.
50225         (wbp_table): New structure.
50226         (output_wbp, output_wbrk_tables): New functions.
50227         (main): Accept additional argument. Invoke fill_org_wbp,
50228         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
50229         output_wbrk_tables.
50230         * modules/gen-uni-tables (Description): Update.
50231         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
50232         gen-uni-tables.
50233
50234         New module 'uniwbrk/base'.
50235         * modules/uniwbrk/base: New file.
50236         * lib/uniwbrk.h: New file.
50237
50238 2009-02-08  Bruno Haible  <bruno@clisp.org>
50239
50240         Update to Unicode 5.1.0.
50241         * lib/gen-uni-tables.c (is_property_alphabetic): Include
50242         U+2185..U+2188.
50243         (is_property_default_ignorable_code_point): Don't include characters
50244         of category Cc or Cs and not-a-characters.
50245         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
50246         U+0D79, U+109E, U+109F, U+A60C.
50247         * lib/unictype/bidi_of.h: Regenerated.
50248         * lib/unictype/blocks.h: Regenerated.
50249         * lib/unictype/categ_C.h: Regenerated.
50250         * lib/unictype/categ_Cf.h: Regenerated.
50251         * lib/unictype/categ_Cn.h: Regenerated.
50252         * lib/unictype/categ_L.h: Regenerated.
50253         * lib/unictype/categ_Ll.h: Regenerated.
50254         * lib/unictype/categ_Lm.h: Regenerated.
50255         * lib/unictype/categ_Lo.h: Regenerated.
50256         * lib/unictype/categ_Lu.h: Regenerated.
50257         * lib/unictype/categ_M.h: Regenerated.
50258         * lib/unictype/categ_Mc.h: Regenerated.
50259         * lib/unictype/categ_Me.h: Regenerated.
50260         * lib/unictype/categ_Mn.h: Regenerated.
50261         * lib/unictype/categ_N.h: Regenerated.
50262         * lib/unictype/categ_Nd.h: Regenerated.
50263         * lib/unictype/categ_Nl.h: Regenerated.
50264         * lib/unictype/categ_No.h: Regenerated.
50265         * lib/unictype/categ_P.h: Regenerated.
50266         * lib/unictype/categ_Pd.h: Regenerated.
50267         * lib/unictype/categ_Pe.h: Regenerated.
50268         * lib/unictype/categ_Pf.h: Regenerated.
50269         * lib/unictype/categ_Pi.h: Regenerated.
50270         * lib/unictype/categ_Po.h: Regenerated.
50271         * lib/unictype/categ_Ps.h: Regenerated.
50272         * lib/unictype/categ_S.h: Regenerated.
50273         * lib/unictype/categ_Sk.h: Regenerated.
50274         * lib/unictype/categ_Sm.h: Regenerated.
50275         * lib/unictype/categ_So.h: Regenerated.
50276         * lib/unictype/categ_of.h: Regenerated.
50277         * lib/unictype/combining.h: Regenerated.
50278         * lib/unictype/ctype_alnum.h: Regenerated.
50279         * lib/unictype/ctype_alpha.h: Regenerated.
50280         * lib/unictype/ctype_graph.h: Regenerated.
50281         * lib/unictype/ctype_lower.h: Regenerated.
50282         * lib/unictype/ctype_print.h: Regenerated.
50283         * lib/unictype/ctype_punct.h: Regenerated.
50284         * lib/unictype/ctype_upper.h: Regenerated.
50285         * lib/unictype/decdigit.h: Regenerated.
50286         * lib/unictype/digit.h: Regenerated.
50287         * lib/unictype/mirror.h: Regenerated.
50288         * lib/unictype/numeric.h: Regenerated.
50289         * lib/unictype/pr_alphabetic.h: Regenerated.
50290         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
50291         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
50292         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
50293         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
50294         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
50295         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
50296         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
50297         * lib/unictype/pr_combining.h: Regenerated.
50298         * lib/unictype/pr_dash.h: Regenerated.
50299         * lib/unictype/pr_decimal_digit.h: Regenerated.
50300         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
50301         * lib/unictype/pr_deprecated.h: Regenerated.
50302         * lib/unictype/pr_diacritic.h: Regenerated.
50303         * lib/unictype/pr_extender.h: Regenerated.
50304         * lib/unictype/pr_format_control.h: Regenerated.
50305         * lib/unictype/pr_grapheme_base.h: Regenerated.
50306         * lib/unictype/pr_grapheme_extend.h: Regenerated.
50307         * lib/unictype/pr_grapheme_link.h: Regenerated.
50308         * lib/unictype/pr_id_continue.h: Regenerated.
50309         * lib/unictype/pr_id_start.h: Regenerated.
50310         * lib/unictype/pr_ideographic.h: Regenerated.
50311         * lib/unictype/pr_ignorable_control.h: Regenerated.
50312         * lib/unictype/pr_lowercase.h: Regenerated.
50313         * lib/unictype/pr_math.h: Regenerated.
50314         * lib/unictype/pr_numeric.h: Regenerated.
50315         * lib/unictype/pr_other_alphabetic.h: Regenerated.
50316         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
50317         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
50318         * lib/unictype/pr_other_id_continue.h: Regenerated.
50319         * lib/unictype/pr_other_lowercase.h: Regenerated.
50320         * lib/unictype/pr_other_math.h: Regenerated.
50321         * lib/unictype/pr_punctuation.h: Regenerated.
50322         * lib/unictype/pr_sentence_terminal.h: Regenerated.
50323         * lib/unictype/pr_soft_dotted.h: Regenerated.
50324         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
50325         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
50326         * lib/unictype/pr_unified_ideograph.h: Regenerated.
50327         * lib/unictype/pr_uppercase.h: Regenerated.
50328         * lib/unictype/pr_xid_continue.h: Regenerated.
50329         * lib/unictype/pr_xid_start.h: Regenerated.
50330         * lib/unictype/pr_zero_width.h: Regenerated.
50331         * lib/unictype/scripts.h: Regenerated.
50332         * lib/unictype/scripts_byname.gperf: Regenerated.
50333         * lib/unictype/sy_java_ident.h: Regenerated.
50334         * lib/unilbrk/lbrkprop1.h: Regenerated.
50335         * lib/unilbrk/lbrkprop2.h: Regenerated.
50336         * tests/unictype/test-categ_C.c: Regenerated.
50337         * tests/unictype/test-categ_Cf.c: Regenerated.
50338         * tests/unictype/test-categ_Cn.c: Regenerated.
50339         * tests/unictype/test-categ_L.c: Regenerated.
50340         * tests/unictype/test-categ_Ll.c: Regenerated.
50341         * tests/unictype/test-categ_Lm.c: Regenerated.
50342         * tests/unictype/test-categ_Lo.c: Regenerated.
50343         * tests/unictype/test-categ_Lu.c: Regenerated.
50344         * tests/unictype/test-categ_M.c: Regenerated.
50345         * tests/unictype/test-categ_Mc.c: Regenerated.
50346         * tests/unictype/test-categ_Me.c: Regenerated.
50347         * tests/unictype/test-categ_Mn.c: Regenerated.
50348         * tests/unictype/test-categ_N.c: Regenerated.
50349         * tests/unictype/test-categ_Nd.c: Regenerated.
50350         * tests/unictype/test-categ_Nl.c: Regenerated.
50351         * tests/unictype/test-categ_No.c: Regenerated.
50352         * tests/unictype/test-categ_P.c: Regenerated.
50353         * tests/unictype/test-categ_Pd.c: Regenerated.
50354         * tests/unictype/test-categ_Pe.c: Regenerated.
50355         * tests/unictype/test-categ_Pf.c: Regenerated.
50356         * tests/unictype/test-categ_Pi.c: Regenerated.
50357         * tests/unictype/test-categ_Po.c: Regenerated.
50358         * tests/unictype/test-categ_Ps.c: Regenerated.
50359         * tests/unictype/test-categ_S.c: Regenerated.
50360         * tests/unictype/test-categ_Sk.c: Regenerated.
50361         * tests/unictype/test-categ_Sm.c: Regenerated.
50362         * tests/unictype/test-categ_So.c: Regenerated.
50363         * tests/unictype/test-ctype_alnum.c: Regenerated.
50364         * tests/unictype/test-ctype_alpha.c: Regenerated.
50365         * tests/unictype/test-ctype_graph.c: Regenerated.
50366         * tests/unictype/test-ctype_lower.c: Regenerated.
50367         * tests/unictype/test-ctype_print.c: Regenerated.
50368         * tests/unictype/test-ctype_punct.c: Regenerated.
50369         * tests/unictype/test-ctype_upper.c: Regenerated.
50370         * tests/unictype/test-decdigit.h: Regenerated.
50371         * tests/unictype/test-digit.h: Regenerated.
50372         * tests/unictype/test-numeric.h: Regenerated.
50373         * tests/unictype/test-pr_alphabetic.c: Regenerated.
50374         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
50375         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
50376         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
50377         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
50378         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
50379         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
50380         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
50381         * tests/unictype/test-pr_combining.c: Regenerated.
50382         * tests/unictype/test-pr_dash.c: Regenerated.
50383         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
50384         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
50385         * tests/unictype/test-pr_deprecated.c: Regenerated.
50386         * tests/unictype/test-pr_diacritic.c: Regenerated.
50387         * tests/unictype/test-pr_extender.c: Regenerated.
50388         * tests/unictype/test-pr_format_control.c: Regenerated.
50389         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
50390         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
50391         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
50392         * tests/unictype/test-pr_id_continue.c: Regenerated.
50393         * tests/unictype/test-pr_id_start.c: Regenerated.
50394         * tests/unictype/test-pr_ideographic.c: Regenerated.
50395         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
50396         * tests/unictype/test-pr_lowercase.c: Regenerated.
50397         * tests/unictype/test-pr_math.c: Regenerated.
50398         * tests/unictype/test-pr_numeric.c: Regenerated.
50399         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
50400         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
50401         Regenerated.
50402         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
50403         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
50404         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
50405         * tests/unictype/test-pr_other_math.c: Regenerated.
50406         * tests/unictype/test-pr_punctuation.c: Regenerated.
50407         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
50408         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
50409         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
50410         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
50411         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
50412         * tests/unictype/test-pr_uppercase.c: Regenerated.
50413         * tests/unictype/test-pr_xid_continue.c: Regenerated.
50414         * tests/unictype/test-pr_xid_start.c: Regenerated.
50415         * tests/unictype/test-pr_zero_width.c: Regenerated.
50416
50417         Update to Unicode 5.1.0.
50418         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
50419         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
50420         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
50421         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
50422         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
50423         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
50424         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
50425         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
50426         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
50427         (nonspacing_table_ind): Update.
50428         * tests/uniwidth/test-uc_width2.sh: Update expected result.
50429
50430         Update to Unicode 5.1.0.
50431         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
50432         code transform.
50433         * lib/uniname/uniname.c (unicode_character_name,
50434         unicode_name_character): Add the range 0x1Fxxx to the code transform.
50435         * lib/uniname/uninames.h: Regenerated.
50436         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
50437
50438 2009-02-07  Bruno Haible  <bruno@clisp.org>
50439
50440         Merge gen-ctype and gen-lbrk into a single program.
50441         * lib/gen-uni-tables.c: New file, incorporating
50442         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
50443         Add directory prefixes to the names of the generated files.
50444         * lib/unictype/gen-ctype.c: Remove file.
50445         * lib/unilbrk/gen-lbrk.c: Remove file.
50446         * modules/gen-uni-tables: New file.
50447         * modules/unictype/gen-ctype: Remove file.
50448         * modules/unilbrk/gen-lbrk: Remove file.
50449
50450 2009-02-07  Bruno Haible  <bruno@clisp.org>
50451
50452         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
50453
50454         New module 'unistr/u32-strcoll'.
50455         * modules/unistr/u32-strcoll: New file.
50456         * lib/unistr/u32-strcoll.c: New file.
50457
50458         New module 'unistr/u16-strcoll'.
50459         * modules/unistr/u16-strcoll: New file.
50460         * lib/unistr/u16-strcoll.c: New file.
50461
50462         New module 'unistr/u8-strcoll'.
50463         * modules/unistr/u8-strcoll: New file.
50464         * lib/unistr/u8-strcoll.c: New file.
50465         * lib/unistr/u-strcoll.h: New file.
50466
50467 2009-02-07  Bruno Haible  <bruno@clisp.org>
50468
50469         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
50470         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50471         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50472         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
50473         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
50474         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
50475
50476 2009-02-07  Bruno Haible  <bruno@clisp.org>
50477
50478         Make 64-bit clean.
50479         * lib/unictype/gen-ctype.c (output_predicate, output_category,
50480         output_combclass, output_bidi_category, output_decimal_digit,
50481         output_digit, output_numeric, output_mirror, output_scripts,
50482         output_ident_category): Use proper width specifier in format strings.
50483
50484 2009-02-07  Bruno Haible  <bruno@clisp.org>
50485
50486         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
50487         failure behaviour.
50488
50489 2009-02-07  Jim Meyering  <meyering@redhat.com>
50490
50491         regex: avoid compilation failure with upcoming gcc-4.4
50492         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
50493         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
50494         "... error: integer overflow in preprocessor expression".
50495
50496 2009-02-05  Ben Pfaff  <blp@gnu.org>
50497
50498         Fix link errors on Windows when close module is used.
50499         * modules/close: Add $(LIB_CLOSE) to Link section.
50500         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
50501         $(LIB_CLOSE) on Windows.
50502
50503 2009-02-05  Jim Meyering  <meyering@redhat.com>
50504
50505         still avoid unused-parameter warnings, but do it cleanly
50506         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
50507         (get_fs_usage): Cast to void instead.
50508         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
50509         (dev_from_mount_options, read_file_system_list): Cast to void.
50510         Prompted by Bruno Haible.
50511
50512 2009-02-04  Jim Meyering  <meyering@redhat.com>
50513
50514         fsusage.c: correct copyright year
50515         * lib/fsusage.c: Reflect year in which the change is pushed into
50516
50517         avoid misc. warnings
50518         * lib/fsusage.c (UNUSED_PARAM): Define.
50519         (get_fs_usage): Mark parameter "disk" as unused.
50520         * lib/getugroups.c (getgrent): Use "void" in prototype.
50521         * lib/mountlist.c: Mark unused parameters.
50522         (read_file_system_list): Declare a local with "const".
50523         * lib/nanosleep.c (getnow): Declare static.
50524         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
50525
50526         dirfd: set errno upon failure
50527         * lib/dirfd.c: Include <errno.h>.
50528         Set errno to ENOTSUP when returning -1.
50529         * modules/dirfd (Depends-on): Add errno.
50530         Suggested by John Kodis <kodis@comcast.net>.
50531
50532 2009-02-01  Bruno Haible  <bruno@clisp.org>
50533
50534         Don't assume sizeof (long) >= sizeof (void *).
50535         * lib/memcmp.c: Include stdint.h.
50536         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
50537         srcp2 to 'const byte *'.
50538         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
50539         types to uintptr_t.
50540         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
50541         * modules/memcmp (Depends-on): Add stdint.
50542         Reported by Ozkan Sezer <sezeroz@gmail.com>.
50543
50544 2009-01-30  Eric Blake  <ebb9@byu.net>
50545
50546         fix more require-before-expand issues
50547         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
50548         expand, AC_PROG_AWK.
50549         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
50550
50551 2009-01-28  Eric Blake  <ebb9@byu.net>
50552
50553         version-etc: use consistent URL formatting
50554         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
50555         Improve formatting.  Use fputs for string without %.
50556
50557 2009-01-28  Jim Meyering  <meyering@redhat.com>
50558
50559         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
50560         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
50561         "underquoted definition of NAME" from autoconf-2.59.
50562
50563 2009-01-28  Bruno Haible  <bruno@clisp.org>
50564
50565         * doc/gnulib.texi: Add "Obsolete modules" to index.
50566
50567 2009-01-28  Jim Meyering  <meyering@redhat.com>
50568
50569         useless-if-before-free: recognize more variants
50570         * build-aux/useless-if-before-free: Also recognize e.g.,
50571         if (NULL != p) free (p);
50572
50573 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
50574
50575         test-getaddrinfo: skip (don't fail) this test when there's no network
50576         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
50577         on the presumption that it means you lack network access.
50578
50579 2009-01-26  Jim Meyering  <meyering@redhat.com>
50580
50581         fflush: avoid warnings on modern systems
50582         * lib/fflush.c (rpl_fflush): Move declarations of locals,
50583         pos and result, into scopes where they're used.
50584
50585 2009-01-26  Eric Blake  <ebb9@byu.net>
50586
50587         Silence warning reintroduced by recent extensions patch.
50588         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
50589         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
50590         autoconf.
50591
50592         Backport improved autoconf semantics of AC_DEFUN_ONCE.
50593         * m4/00gnulib.m4: New file.
50594         * gnulib-tool (func_get_filelist): Always use it.
50595         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
50596         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
50597
50598 2009-01-25  Bruno Haible  <bruno@clisp.org>
50599
50600         Make test-quotearg work on MacOS X and AIX.
50601         * tests/test-quotearg.sh: New file.
50602         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
50603         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
50604         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
50605         include <libintl.h>.
50606         (fake_locale): Remove variable.
50607         (gettext, dgettext, dcgettext): Remove functions.
50608         (main): Instead of setting a fake locale, set a real locale. Call
50609         textdomain and bindtextdomain.
50610         * modules/quotearg-tests (Files): Add the new files.
50611         (Depends-on): Add gettext, setenv, unsetenv.
50612         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50613         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
50614         Augment TESTS_ENVIRONMENT.
50615
50616 2009-01-25  Bruno Haible  <bruno@clisp.org>
50617
50618         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
50619         fr_FR.ISO8859-1 locale on MacOS X.
50620         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
50621         ja_JP.eucJP locale on MacOS X.
50622         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
50623         zh_CN.GB18030 locale on MacOS X.
50624
50625 2009-01-25  Bruno Haible  <bruno@clisp.org>
50626
50627         Avoid link errors on MacOS X 10.3.
50628         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
50629         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
50630
50631 2009-01-25  Bruno Haible  <bruno@clisp.org>
50632
50633         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50634         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
50635         * modules/pipe (Files): Remove m4/posix_spawn.m4.
50636         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50637         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
50638         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50639         posix_spawnattr_init, posix_spawnattr_setsigmask,
50640         posix_spawnattr_setflags, posix_spawnattr_destroy.
50641
50642         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50643         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
50644         * modules/execute (Files): Remove m4/posix_spawn.m4.
50645         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50646         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50647         posix_spawnattr_init, posix_spawnattr_setsigmask,
50648         posix_spawnattr_setflags, posix_spawnattr_destroy.
50649
50650 2009-01-25  Bruno Haible  <bruno@clisp.org>
50651
50652         * lib/glthread/threadlib.c: Include <stdlib.h>.
50653
50654 2009-01-25  Bruno Haible  <bruno@clisp.org>
50655
50656         * lib/glthread/threadlib.c (dummy): New declaration.
50657
50658 2009-01-25  Bruno Haible  <bruno@clisp.org>
50659
50660         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
50661         multibyte characters also for the GB18030 encoding. Don't crash when
50662         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
50663
50664 2009-01-25  Bruno Haible  <bruno@clisp.org>
50665
50666         Avoid redefining 'struct random_data' on OSF/1 5.1.
50667         * lib/stdlib.in.h: Include <random.h> if it exists.
50668         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
50669         HAVE_RANDOM_H. Include <random.h> when testing whether
50670         'struct random_data' exists.
50671         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
50672
50673 2009-01-25  Bruno Haible  <bruno@clisp.org>
50674
50675         Don't install charset.alias on MacOS X >= 10.3.
50676         * lib/localcharset.c (DARWIN7): New macro.
50677         (get_charset_aliases): Hardcode the result for Darwin7.
50678         * modules/localcharset (install-exec-local): Don't install
50679         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
50680
50681 2009-01-25  Bruno Haible  <bruno@clisp.org>
50682
50683         Don't install charset.alias on mingw and Cygwin.
50684         * modules/localcharset (install-exec-local): Don't install
50685         charset.alias on mingw and Cygwin, if the file does not yet exist.
50686         The result for these platforms is hardcoded in localcharset.c.
50687
50688 2009-01-25  Bruno Haible  <bruno@clisp.org>
50689
50690         Make it possible again to use AC_GNU_SOURCE together with gnulib.
50691         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
50692         before requiring AC_USE_SYSTEM_EXTENSIONS.
50693
50694 2009-01-25  Jim Meyering  <meyering@redhat.com>
50695
50696         c-strtod: avoid warnings
50697         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
50698         "assignment discards qualifiers from pointer target type" warnings.
50699
50700 2009-01-24  Bruno Haible  <bruno@clisp.org>
50701
50702         Add support for non-UTF-8 locales on MacOS X.
50703         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
50704         canonical encodings. For Darwin 7 and newer, don't map traditional
50705         encodings to UTF-8.
50706         Reported by Vincent Lefevre <vincent@vinc17.org>
50707         at <http://savannah.gnu.org/bugs/?25235>.
50708
50709 2009-01-24  Bruno Haible  <bruno@clisp.org>
50710
50711         * doc/gnulib.texi (Obsolete modules): New section.
50712         Reported by Mike Frysinger <vapier@gentoo.org>.
50713
50714 2009-01-24  Bruno Haible  <bruno@clisp.org>
50715
50716         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
50717         (%.dvi): New rule.
50718
50719 2009-01-24  Bruno Haible  <bruno@clisp.org>
50720
50721         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
50722         Reported by Eric Blake.
50723
50724 2009-01-24  Bruno Haible  <bruno@clisp.org>
50725
50726         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
50727         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
50728         Reported by Gary V. Vaughan <gary@gnu.org>.
50729
50730 2009-01-24  Bruno Haible  <bruno@clisp.org>
50731
50732         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
50733
50734 2009-01-23  Bruno Haible  <bruno@clisp.org>
50735
50736         Make c-strtod, c-strtold usable in libraries.
50737         * lib/c-strtod.c: Include string.h instead of xalloc.h.
50738         (C_STRTOD): Call strdup instead of xstrdup.
50739         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
50740         * modules/c-strtold (Depends-on): Likewise.
50741         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
50742         * NEWS: Mention the change.
50743         Reported by Michael Gold <mgold@ncf.ca>.
50744
50745 2009-01-23  Jim Meyering  <meyering@redhat.com>
50746
50747         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
50748         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
50749         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
50750
50751 2009-01-23  Simon Josefsson  <simon@josefsson.org>
50752
50753         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
50754         GNU CoreUtils.
50755         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
50756         * modules/version-etc (Description): Update.
50757
50758 2009-01-22  Bruno Haible  <bruno@clisp.org>
50759
50760         Cache the C locale object.
50761         * lib/c-strtod.c (c_locale_cache): New variable.
50762         (c_locale): New function.
50763         (C_STRTOD): Use it, and don't call freelocale.
50764         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
50765         Suggested by Paolo Bonzini.
50766
50767 2009-01-21  Bruno Haible  <bruno@clisp.org>
50768
50769         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
50770         conditions other than overflow.
50771
50772 2009-01-21  Bruno Haible  <bruno@clisp.org>
50773
50774         * lib/c-strtod.c: Include errno.h.
50775         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
50776         value from STRTOD_L and STRTOD.
50777
50778 2009-01-21  Bruno Haible  <bruno@clisp.org>
50779         and Jim Meyering  <meyering@redhat.com>
50780
50781         nanosleep: skip configure test (fail it) for apple universal builds
50782         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
50783         universal builds, assume that nanosleep does not work.
50784         * modules/nanosleep (Depends-on): Add multiarch.
50785
50786         mktime: skip configure test (fail it) for apple universal builds
50787         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
50788         universal builds, assume that mktime does not work.
50789         * modules/mktime (Depends-on): Add multiarch.
50790
50791 2009-01-21  Eric Blake  <ebb9@byu.net>
50792
50793         multiarch: avoid expand-before-require warning
50794         * modules/multiarch (configure.ac): Require, rather than expand,
50795         gl_MULTIARCH.
50796         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
50797         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
50798         enforce that all clients require it.  Partial reversion of
50799         2008-12-29 patch.
50800
50801         error: avoid expand-before-require warning
50802         * modules/errno (configure.ac): Require, rather than expand,
50803         gl_HEADER_ERRNO_H.
50804         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
50805         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
50806         enforce that all clients require it.
50807
50808         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
50809         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
50810         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
50811         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
50812
50813 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
50814
50815         Revert:
50816         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50817
50818         regex: do not depend on obsolete modules.
50819         * modules/regex: Remove memcmp and memmove.
50820
50821 2009-01-20  Bruno Haible  <bruno@clisp.org>
50822
50823         Make the 'link' module link on Windows NT 4.
50824         * lib/link.c (_WIN32_WINNT): Don't define.
50825         (CreateHardLinkFuncType): New type.
50826         (CreateHardLinkFunc, initialized): New variables.
50827         (initialize): New function.
50828         (link): Invoke CreateHardLink indirectly through the function pointer.
50829
50830 2009-01-20  Bruno Haible  <bruno@clisp.org>
50831
50832         Fix compilation failure on mingw.
50833         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
50834
50835 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
50836
50837         * doc/c-strtod.texi: Mention a couple of restrictions.
50838
50839 2009-01-20  Jim Meyering  <meyering@redhat.com>
50840
50841         gettimeofday: move more declarations out of functions
50842         * lib/gettimeofday.c: Move extern declarations of tzset and
50843         gmtime out of containing functions.  Prompted by Bruno Haible.
50844
50845 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50846
50847         regex: do not depend on obsolete modules.
50848         * modules/regex: Remove memcmp and memmove.
50849
50850 2009-01-19  Bruno Haible  <bruno@clisp.org>
50851
50852         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50853         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
50854         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50855         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
50856         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
50857
50858 2009-01-19  Bruno Haible  <bruno@clisp.org>
50859
50860         * tests/test-link.c: Include <errno.h>.
50861         (main): Exit with code 77 when a hard link cannot be created due to
50862         the file system.
50863         * tests/test-link.sh: Skip test when a hard link cannot be created due
50864         to the file system.
50865         Suggested by Eric Blake.
50866
50867 2009-01-19  Martin Lambers  <marlam@marlam.de>
50868
50869         * modules/link-tests: New file.
50870         * tests/test-link.sh: New file.
50871         * tests/test-link.c: New file.
50872
50873 2009-01-19  Eric Blake  <ebb9@byu.net>
50874
50875         doc: mention another function added in cygwin 1.7.0
50876         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
50877         Another new function in cygwin 1.7.
50878
50879 2009-01-19  Bruno Haible  <bruno@clisp.org>
50880
50881         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50882         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
50883         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
50884         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50885         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
50886         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
50887         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
50888         * m4/md4.m4 (gl_MD4): Likewise.
50889         * m4/md5.m4 (gl_MD5): Likewise.
50890         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
50891         * m4/sha1.m4 (gl_SHA1): Likewise.
50892         * m4/sha256.m4 (gl_SHA256): Likewise.
50893         * m4/sha512.m4 (gl_SHA512): Likewise.
50894
50895 2009-01-19  Bruno Haible  <bruno@clisp.org>
50896
50897         * modules/uniname/uniname-tests (Depends-on): Add progname.
50898         * tests/uniname/test-uninames.c: Include progname.h.
50899         (main): Call set_program_name.
50900
50901         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
50902         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
50903         (main): Call set_program_name.
50904
50905         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
50906         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
50907         (main): Call set_program_name.
50908
50909         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
50910         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
50911         (main): Call set_program_name.
50912
50913         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
50914         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
50915         (main): Call set_program_name.
50916
50917         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
50918         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
50919         (main): Call set_program_name.
50920
50921         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
50922         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
50923         (main): Call set_program_name.
50924
50925         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
50926         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
50927         (main): Call set_program_name.
50928
50929         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
50930         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
50931         (main): Call set_program_name.
50932
50933 2009-01-19  Eric Blake  <ebb9@byu.net>
50934
50935         test-unistd: test previous patch
50936         * tests/test-unistd.c: Test *_FILENO macros.
50937
50938         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
50939         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50940         Guarantee a definition.
50941         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
50942         * modules/unistd-safer (Depends-on): Add dependency on unistd.
50943         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
50944         * lib/dup-safer.c (STDERR_FILENO): Likewise.
50945         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50946         Likewise.
50947         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
50948         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
50949         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50950         Likewise.
50951         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
50952         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
50953         (STDERR_FILENO): Likewise.
50954         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
50955         (STDERR_FILENO): Likewise.
50956         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
50957         (STDERR_FILENO): Likewise.
50958         Reported by Elbert Pol.
50959
50960 2009-01-19  Eric Blake  <ebb9@byu.net>
50961
50962         doc: mention more functions added in cygwin 1.7.0
50963         * doc/posix-functions/abort.texi (abort): Update wording related
50964         to cygwin.
50965         * doc/posix-functions/daylight.texi (daylight): Likewise.
50966         * doc/posix-functions/optarg.texi (optarg): Likewise.
50967         * doc/posix-functions/optarg.texi (opterr): Likewise.
50968         * doc/posix-functions/optarg.texi (optind): Likewise.
50969         * doc/posix-functions/optarg.texi (optopt): Likewise.
50970         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
50971         worked in 1.5.x, and was withdrawn in 1.7.
50972         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
50973         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
50974         cygwin versions.
50975         * doc/posix-functions/perror.texi (perror): Likewise.
50976         * doc/posix-functions/printf.texi (printf): Likewise.
50977         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
50978         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
50979         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50980         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50981         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50982         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
50983         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50984         Likewise.
50985         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50986         Likewise.
50987         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
50988         this function.
50989         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
50990         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
50991         Likewise.
50992         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
50993         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
50994         * doc/posix-functions/confstr.texi (confstr): Likewise.
50995         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
50996         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
50997         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
50998         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
50999         * doc/posix-functions/fputws.texi (fputws): Likewise.
51000         * doc/posix-functions/fwide.texi (fwide): Likewise.
51001         * doc/posix-functions/getwc.texi (getwc): Likewise.
51002         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
51003         * doc/posix-functions/putwc.texi (putwc): Likewise.
51004         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
51005         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
51006         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
51007         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
51008         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
51009         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
51010         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
51011         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
51012         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
51013         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
51014         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
51015
51016 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51017
51018         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
51019         * lib/ioctl.c: Include <sys/ioctl.h>.
51020
51021 2009-01-19  Simon Josefsson  <simon@josefsson.org>
51022
51023         * modules/getdate-tests (Depends-on): Add progname.
51024         * tests/test-getdate.c: Use progname module, to avoid link errors
51025         on non-glibc systems.
51026
51027 2009-01-18  Simon Josefsson  <simon@josefsson.org>
51028
51029         * modules/filenamecat-tests (Depends-on): Add progname.
51030         * modules/fstrcmp-tests (Depends-on): Likewise.
51031
51032         * tests/test-filenamecat.c: Use progname module, to avoid link
51033         errors on non-glibc systems.
51034         * tests/test-fstrcmp.c: Likewise.
51035
51036 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51037
51038         gettimeofday: avoid warning: nested extern declaration of 'localtime'
51039         * lib/gettimeofday.c: Move extern declaration out of function.
51040
51041 2009-01-18  Bruno Haible  <bruno@clisp.org>
51042
51043         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
51044         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
51045         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
51046
51047 2009-01-18  Bruno Haible  <bruno@clisp.org>
51048
51049         * lib/strftime.c (MEMPCPY): Remove unused macro.
51050         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
51051
51052 2009-01-18  Martin Lambers  <marlam@marlam.de>
51053
51054         New module 'link'.
51055         * lib/unistd.in.h (link): New declaration.
51056         * lib/link.c: New file.
51057         * m4/link.m4: New file.
51058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
51059         HAVE_LINK.
51060         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
51061         * modules/link: New file.
51062         * doc/posix-functions/link.texi: Mention the new module.
51063
51064 2009-01-18  Bruno Haible  <bruno@clisp.org>
51065
51066         * tests/test-avltree_list.c (main): Call set_program_name.
51067         * tests/test-avltree_oset.c (main): Likewise.
51068         * tests/test-obstack-printf.c: Include progname.h.
51069         (main): Call set_program_name.
51070         * tests/test-quotearg.c: Include progname.h.
51071         (main): Call set_program_name.
51072         * tests/test-xmemdup0.c: Include progname.h.
51073         (main): Call set_program_name.
51074
51075 2009-01-18  Bruno Haible  <bruno@clisp.org>
51076
51077         New module 'alphasort'.
51078         * lib/dirent.in.h (alphasort): New declaration.
51079         * lib/alphasort.c: New file, from glibc with modifications.
51080         * m4/alphasort.m4: New file.
51081         * modules/alphasort: New file.
51082         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
51083         HAVE_ALPHASORT.
51084         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
51085         HAVE_ALPHASORT.
51086         * doc/posix-functions/alphasort.texi: Mention the new module and the
51087         portability problems.
51088
51089 2009-01-18  Bruno Haible  <bruno@clisp.org>
51090
51091         New module 'scandir'.
51092         * lib/dirent.in.h (scandir): New declaration.
51093         * lib/scandir.c: New file, from glibc with modifications.
51094         * m4/scandir.m4: New file.
51095         * modules/scandir: New file.
51096         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
51097         HAVE_SCANDIR.
51098         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
51099         HAVE_SCANDIR.
51100         * doc/posix-functions/scandir.texi: Mention the new module and the
51101         portability problems.
51102
51103 2009-01-17  Bruno Haible  <bruno@clisp.org>
51104
51105         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
51106         Update documentation.
51107         (func_remove_suffix): Escape all dots in the suffix. Update
51108         documentation.
51109         (func_filter_filelist): Update documentation.
51110         Reported by Ralf Wildenhues.
51111
51112 2009-01-17  Bruno Haible  <bruno@clisp.org>
51113
51114         * modules/dprintf-posix-tests: New file.
51115         * tests/test-dprintf-posix.sh: New file.
51116         * tests/test-dprintf-posix.c: New file.
51117
51118         New modules 'dprintf', 'dprintf-posix'.
51119         * lib/stdio.in.h (dprintf): New declaration.
51120         * lib/dprintf.c: New file.
51121         * m4/dprintf.m4: New file.
51122         * m4/dprintf-posix.m4: New file.
51123         * modules/dprintf: New file.
51124         * modules/dprintf-posix: New file.
51125         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
51126         HAVE_DPRINTF, REPLACE_DPRINTF.
51127         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
51128         HAVE_DPRINTF, REPLACE_DPRINTF.
51129         * doc/posix-functions/dprintf.texi: Mention the new modules.
51130
51131 2009-01-17  Bruno Haible  <bruno@clisp.org>
51132
51133         * modules/vdprintf-posix-tests: New file.
51134         * tests/test-vdprintf-posix.sh: New file.
51135         * tests/test-vdprintf-posix.c: New file.
51136
51137         New modules 'vdprintf', 'vdprintf-posix'.
51138         * lib/stdio.in.h (vdprintf): New declaration.
51139         * lib/vdprintf.c: New file.
51140         * m4/vdprintf.m4: New file.
51141         * m4/vdprintf-posix.m4: New file.
51142         * modules/vdprintf: New file.
51143         * modules/vdprintf-posix: New file.
51144         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
51145         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51146         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
51147         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51148         * doc/posix-functions/vdprintf.texi: Mention the new modules.
51149
51150 2009-01-17  Bruno Haible  <bruno@clisp.org>
51151
51152         Fix replacement of fopen on mingw.
51153         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
51154         mingw.
51155
51156 2009-01-17  Bruno Haible  <bruno@clisp.org>
51157
51158         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
51159         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
51160
51161 2009-01-17  Bruno Haible  <bruno@clisp.org>
51162
51163         Avoid test-fflush2.sh failure on mingw.
51164         * tests/test-fflush2.c: Include binary-io.h.
51165         (main): Put standard input into binary mode.
51166         * modules/fflush-tests (Depends-on): Add binary-io.
51167
51168 2009-01-17  Bruno Haible  <bruno@clisp.org>
51169
51170         * lib/wchar.in.h: In another particular situation, include only the
51171         system's <wchar.h> file.
51172         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
51173         Reported by Albert Chin-A-Young <china@thewrittenword.com>
51174         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
51175
51176 2009-01-17  Bruno Haible  <bruno@clisp.org>
51177
51178         Support for stripping executables in --enable-relocatable.
51179         * build-aux/install-reloc: Expect one more argument, or an environment
51180         variable RELOC_STRIP_PROG. If set, strip the destination program and
51181         its wrapper.
51182         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
51183         RELOC_STRIP_PROG.
51184         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
51185         to set RELOCATABLE_STRIP.
51186         * NEWS: Mention the new Makefile requirement.
51187
51188 2009-01-17  Bruno Haible  <bruno@clisp.org>
51189
51190         * build-aux/install-reloc: Remove debugging information left over by
51191         C compiler on MacOS X.
51192
51193 2009-01-17  Bruno Haible  <bruno@clisp.org>
51194
51195         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
51196         * lib/progreloc.c (find_executable): Fix type of pointer passed to
51197         _NSGetExecutablePath.
51198
51199 2009-01-16  Jim Meyering  <meyering@redhat.com>
51200
51201         strerror: avoid warnings about discarding "const"
51202         * lib/strerror.c (rpl_strerror): Instead of returning a const
51203         string from each and every "case", use a variable, and add a single
51204         cast after the switch.
51205
51206 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
51207
51208         * lib/arpa_inet.in.h: Add extern "C" block for C++.
51209
51210 2009-01-16  Bruno Haible  <bruno@clisp.org>
51211
51212         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
51213         array initializer syntax that also works in C++ mode.
51214         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51215
51216 2009-01-16  Jim Meyering  <meyering@redhat.com>
51217
51218         poll: suppress a warning
51219         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
51220         to ignore "...unsigned expression < 0 is always false" warnings.
51221
51222 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
51223
51224         poll: remove declarations of unused variables
51225         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
51226         sockbuf and optlen.
51227
51228 2009-01-15  Bruno Haible  <bruno@clisp.org>
51229
51230         Make fflush-after-ungetc POSIX compliant on BSD systems.
51231         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
51232         (clear_ungetc_buffer): Implement also for other systems.
51233         (rpl_fflush): On glibc systems, invoke
51234         clear_ungetc_buffer_preserving_position. Otherwise, invoke
51235         clear_ungetc_buffer after fetching the stream's position, not before.
51236
51237 2009-01-15  Bruno Haible  <bruno@clisp.org>
51238
51239         Make fflush-after-ungetc POSIX compliant on glibc systems.
51240         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
51241         after ungetc.
51242         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
51243         (rpl_fflush): On glibc systems, simply call the system's fflush
51244         function after clearing the ungetc buffer.
51245         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
51246         Instead, lseek only to the end of file, then use the system's fseeko
51247         for the rest. On glibc systems, reset the EOF indicator bit.
51248
51249 2009-01-15  Jim Meyering  <meyering@redhat.com>
51250
51251         openmp.m4: revert quote-adding change, for portability to older autoconf
51252         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
51253         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
51254         Simon Josefsson noticed the problem when using autoconf-2.61.
51255
51256 2009-01-15  Bruno Haible  <bruno@clisp.org>
51257
51258         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
51259         * tests/test-fflush2.c (ASSERT): Always fail.
51260         (main): Add two tests for fflush() after ungetc(), taking into account
51261         the Austin Group's clarification.
51262         Suggested by Eric Blake.
51263
51264 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
51265
51266         mktime.m4: remove K&R-style function prototypes
51267         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
51268         for the Sun C++ compiler.
51269
51270 2009-01-14  Bruno Haible  <bruno@clisp.org>
51271
51272         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
51273         while including <wchar.h>.
51274         * lib/wchar.in.h: In two particular situations on HP-UX, include only
51275         the system's <wchar.h> file.
51276         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51277
51278 2009-01-14  Bruno Haible  <bruno@clisp.org>
51279
51280         * m4/csharp.m4: Don't mention gettext on the serial number line.
51281         * m4/csharpexec.m4: Likewise.
51282         * m4/eaccess.m4: Likewise.
51283         * m4/javaexec.m4: Likewise.
51284         * m4/sig_atomic_t.m4: Likewise.
51285         * m4/tmpdir.m4: Likewise.
51286         * m4/intldir.m4: Bump gettext version.
51287         * m4/lib-ld.m4: Likewise.
51288
51289 2009-01-14  Bruno Haible  <bruno@clisp.org>
51290
51291         * lib/progname.c (set_program_name): Add more comments.
51292         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
51293
51294 2009-01-14  Simon Josefsson  <simon@josefsson.org>
51295
51296         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
51297         were sys/stat.h does not define it.
51298
51299 2009-01-14  Jim Meyering  <meyering@redhat.com>
51300
51301         many *.m4 files: improve m4 quoting
51302         99% of this change was performed by running the following commands:
51303         git ls-files | grep '\.m4$' | xargs perl -pi \
51304           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
51305           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51306           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51307           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
51308         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
51309         The remainder were to add Copyright dates, increment serial numbers,
51310         undo some changes in comments, exclude m4/intl.m4, and add quotes
51311         around the "1" in ",1" where the unusual spacing prohibited the
51312         above regexps from doing the job.  For more details, see
51313         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
51314         * m4/acl.m4: Modified.
51315         * m4/afs.m4: Likewise.
51316         * m4/alloca.m4: Likewise.
51317         * m4/argp.m4: Likewise.
51318         * m4/argz.m4: Likewise.
51319         * m4/atexit.m4: Likewise.
51320         * m4/bison-i18n.m4: Likewise.
51321         * m4/bison.m4: Likewise.
51322         * m4/byteswap.m4: Likewise.
51323         * m4/c-stack.m4: Likewise.
51324         * m4/c-strtod.m4: Likewise.
51325         * m4/calloc.m4: Likewise.
51326         * m4/canonicalize-lgpl.m4: Likewise.
51327         * m4/chown.m4: Likewise.
51328         * m4/clock_time.m4: Likewise.
51329         * m4/codeset.m4: Likewise.
51330         * m4/copy-file.m4: Likewise.
51331         * m4/csharp.m4: Likewise.
51332         * m4/csharpcomp.m4: Likewise.
51333         * m4/csharpexec.m4: Likewise.
51334         * m4/d-ino.m4: Likewise.
51335         * m4/d-type.m4: Likewise.
51336         * m4/dirfd.m4: Likewise.
51337         * m4/double-slash-root.m4: Likewise.
51338         * m4/eaccess.m4: Likewise.
51339         * m4/eealloc.m4: Likewise.
51340         * m4/environ.m4: Likewise.
51341         * m4/errno_h.m4: Likewise.
51342         * m4/euidaccess.m4: Likewise.
51343         * m4/execute.m4: Likewise.
51344         * m4/fatal-signal.m4: Likewise.
51345         * m4/fchdir.m4: Likewise.
51346         * m4/fcntl_h.m4: Likewise.
51347         * m4/fileblocks.m4: Likewise.
51348         * m4/filenamecat.m4: Likewise.
51349         * m4/findprog.m4: Likewise.
51350         * m4/flexmember.m4: Likewise.
51351         * m4/fnmatch.m4: Likewise.
51352         * m4/fopen.m4: Likewise.
51353         * m4/fpending.m4: Likewise.
51354         * m4/fprintf-posix.m4: Likewise.
51355         * m4/free.m4: Likewise.
51356         * m4/frexp.m4: Likewise.
51357         * m4/frexpl.m4: Likewise.
51358         * m4/fsusage.m4: Likewise.
51359         * m4/ftruncate.m4: Likewise.
51360         * m4/gc-camellia.m4: Likewise.
51361         * m4/gc-random.m4: Likewise.
51362         * m4/gc.m4: Likewise.
51363         * m4/getaddrinfo.m4: Likewise.
51364         * m4/getcwd-abort-bug.m4: Likewise.
51365         * m4/getcwd-path-max.m4: Likewise.
51366         * m4/getdate.m4: Likewise.
51367         * m4/getdomainname.m4: Likewise.
51368         * m4/getgroups.m4: Likewise.
51369         * m4/gethostname.m4: Likewise.
51370         * m4/gethrxtime.m4: Likewise.
51371         * m4/getline.m4: Likewise.
51372         * m4/getloadavg.m4: Likewise.
51373         * m4/getndelim2.m4: Likewise.
51374         * m4/getpass.m4: Likewise.
51375         * m4/gettext.m4: Likewise.
51376         * m4/gettime.m4: Likewise.
51377         * m4/gettimeofday.m4: Likewise.
51378         * m4/gnulib-common.m4: Likewise.
51379         * m4/group-member.m4: Likewise.
51380         * m4/host-os.m4: Likewise.
51381         * m4/iconv.m4: Likewise.
51382         * m4/iconv_open.m4: Likewise.
51383         * m4/inet_ntop.m4: Likewise.
51384         * m4/inet_pton.m4: Likewise.
51385         * m4/inline.m4: Likewise.
51386         * m4/intldir.m4: Likewise.
51387         * m4/intlmacosx.m4: Likewise.
51388         * m4/intmax.m4: Likewise.
51389         * m4/intmax_t.m4: Likewise.
51390         * m4/inttypes.m4: Likewise.
51391         * m4/inttypes_h.m4: Likewise.
51392         * m4/inttypes-pri.m4: Likewise.
51393         * m4/isapipe.m4: Likewise.
51394         * m4/isnand.m4: Likewise.
51395         * m4/isnanf.m4: Likewise.
51396         * m4/isnanl.m4: Likewise.
51397         * m4/javacomp.m4: Likewise.
51398         * m4/javaexec.m4: Likewise.
51399         * m4/jm-winsz1.m4: Likewise.
51400         * m4/jm-winsz2.m4: Likewise.
51401         * m4/lchown.m4: Likewise.
51402         * m4/lcmessage.m4: Likewise.
51403         * m4/ldexpl.m4: Likewise.
51404         * m4/lib-ld.m4: Likewise.
51405         * m4/lib-link.m4: Likewise.
51406         * m4/libsigsegv.m4: Likewise.
51407         * m4/link-follow.m4: Likewise.
51408         * m4/localcharset.m4: Likewise.
51409         * m4/locale-fr.m4: Likewise.
51410         * m4/locale-ja.m4: Likewise.
51411         * m4/locale-tr.m4: Likewise.
51412         * m4/locale-zh.m4: Likewise.
51413         * m4/lock.m4: Likewise.
51414         * m4/longlong.m4: Likewise.
51415         * m4/ls-mntd-fs.m4: Likewise.
51416         * m4/lstat.m4: Likewise.
51417         * m4/malloc.m4: Likewise.
51418         * m4/mathl.m4: Likewise.
51419         * m4/mbrtowc.m4: Likewise.
51420         * m4/mbstate_t.m4: Likewise.
51421         * m4/mbswidth.m4: Likewise.
51422         * m4/memchr.m4: Likewise.
51423         * m4/memcmp.m4: Likewise.
51424         * m4/memcpy.m4: Likewise.
51425         * m4/memmem.m4: Likewise.
51426         * m4/memmove.m4: Likewise.
51427         * m4/mempcpy.m4: Likewise.
51428         * m4/memrchr.m4: Likewise.
51429         * m4/memset.m4: Likewise.
51430         * m4/minmax.m4: Likewise.
51431         * m4/mkdir-slash.m4: Likewise.
51432         * m4/mkdtemp.m4: Likewise.
51433         * m4/mktime.m4: Likewise.
51434         * m4/mmap-anon.m4: Likewise.
51435         * m4/mountlist.m4: Likewise.
51436         * m4/nanosleep.m4: Likewise.
51437         * m4/nls.m4: Likewise.
51438         * m4/nocrash.m4: Likewise.
51439         * m4/open.m4: Likewise.
51440         * m4/openat.m4: Likewise.
51441         * m4/openmp.m4: Likewise.
51442         * m4/pathmax.m4: Likewise.
51443         * m4/perl.m4: Likewise.
51444         * m4/physmem.m4: Likewise.
51445         * m4/pipe.m4: Likewise.
51446         * m4/po.m4: Likewise.
51447         * m4/poll.m4: Likewise.
51448         * m4/posixtm.m4: Likewise.
51449         * m4/posixver.m4: Likewise.
51450         * m4/printf-frexp.m4: Likewise.
51451         * m4/printf-frexpl.m4: Likewise.
51452         * m4/printf-posix.m4: Likewise.
51453         * m4/printf-posix-rpl.m4: Likewise.
51454         * m4/printf.m4: Likewise.
51455         * m4/progtest.m4: Likewise.
51456         * m4/putenv.m4: Likewise.
51457         * m4/readline.m4: Likewise.
51458         * m4/readlink.m4: Likewise.
51459         * m4/readutmp.m4: Likewise.
51460         * m4/realloc.m4: Likewise.
51461         * m4/regex.m4: Likewise.
51462         * m4/relocatable.m4: Likewise.
51463         * m4/relocatable-lib.m4: Likewise.
51464         * m4/rename-dest-slash.m4: Likewise.
51465         * m4/rename.m4: Likewise.
51466         * m4/rmdir-errno.m4: Likewise.
51467         * m4/rmdir.m4: Likewise.
51468         * m4/roundf.m4: Likewise.
51469         * m4/roundl.m4: Likewise.
51470         * m4/rpmatch.m4: Likewise.
51471         * m4/save-cwd.m4: Likewise.
51472         * m4/selinux-selinux-h.m4: Likewise.
51473         * m4/setenv.m4: Likewise.
51474         * m4/settime.m4: Likewise.
51475         * m4/sig2str.m4: Likewise.
51476         * m4/sig_atomic_t.m4: Likewise.
51477         * m4/signalblocking.m4: Likewise.
51478         * m4/signbit.m4: Likewise.
51479         * m4/sigpipe.m4: Likewise.
51480         * m4/sockets.m4: Likewise.
51481         * m4/sockpfaf.m4: Likewise.
51482         * m4/st_dm_mode.m4: Likewise.
51483         * m4/stat-time.m4: Likewise.
51484         * m4/stdbool.m4: Likewise.
51485         * m4/stdint.m4: Likewise.
51486         * m4/stdint_h.m4: Likewise.
51487         * m4/stpcpy.m4: Likewise.
51488         * m4/stpncpy.m4: Likewise.
51489         * m4/strcase.m4: Likewise.
51490         * m4/strchrnul.m4: Likewise.
51491         * m4/strcspn.m4: Likewise.
51492         * m4/strdup.m4: Likewise.
51493         * m4/strftime.m4: Likewise.
51494         * m4/strndup.m4: Likewise.
51495         * m4/strnlen.m4: Likewise.
51496         * m4/strpbrk.m4: Likewise.
51497         * m4/strptime.m4: Likewise.
51498         * m4/strsep.m4: Likewise.
51499         * m4/strtod.m4: Likewise.
51500         * m4/strtoimax.m4: Likewise.
51501         * m4/strtok_r.m4: Likewise.
51502         * m4/strtol.m4: Likewise.
51503         * m4/strtoll.m4: Likewise.
51504         * m4/strtoul.m4: Likewise.
51505         * m4/strtoull.m4: Likewise.
51506         * m4/strtoumax.m4: Likewise.
51507         * m4/strverscmp.m4: Likewise.
51508         * m4/threadlib.m4: Likewise.
51509         * m4/timegm.m4: Likewise.
51510         * m4/tm_gmtoff.m4: Likewise.
51511         * m4/tmpdir.m4: Likewise.
51512         * m4/tmpfile.m4: Likewise.
51513         * m4/tzset.m4: Likewise.
51514         * m4/uintmax_t.m4: Likewise.
51515         * m4/unlinkdir.m4: Likewise.
51516         * m4/unlocked-io.m4: Likewise.
51517         * m4/uptime.m4: Likewise.
51518         * m4/userspec.m4: Likewise.
51519         * m4/utimbuf.m4: Likewise.
51520         * m4/utime.m4: Likewise.
51521         * m4/utimes-null.m4: Likewise.
51522         * m4/utimes.m4: Likewise.
51523         * m4/vararrays.m4: Likewise.
51524         * m4/vasnprintf.m4: Likewise.
51525         * m4/vfprintf-posix.m4: Likewise.
51526         * m4/vprintf-posix.m4: Likewise.
51527         * m4/wait-process.m4: Likewise.
51528         * m4/wchar_t.m4: Likewise.
51529         * m4/wint_t.m4: Likewise.
51530         * m4/write-any-file.m4: Likewise.
51531         * m4/yield.m4: Likewise.
51532
51533 2009-01-13  Bruno Haible  <bruno@clisp.org>
51534
51535         Avoid test-copy-file.sh failures when ACL support insufficient.
51536         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
51537         TESTS_ENVIRONMENT.
51538         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
51539         Reported by Jim Meyering.
51540
51541 2009-01-13  Bruno Haible  <bruno@clisp.org>
51542
51543         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
51544         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
51545         * modules/unistdio/u8-printf-parse (Files): Likewise.
51546         * modules/unistdio/u32-printf-parse (Files): Likewise.
51547         * modules/unistdio/ulc-printf-parse (Files): Likewise.
51548
51549 2009-01-13  Simon Josefsson  <simon@josefsson.org>
51550
51551         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
51552         and m4/inttypes_h.m4 too.
51553
51554 2009-01-12  Eric Blake  <ebb9@byu.net>
51555
51556         tests: IRIX 6.2 cc can't compile -0.0 into .data
51557         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
51558         rather than at compile-time.
51559         * tests/test-floorl.c (minus_zero): Likewise.
51560         * tests/test-frexpl.c (minus_zero): Likewise.
51561         * tests/test-isnan.c (minus_zerol): Likewise.
51562         * tests/test-isnanl.h (minus_zero): Likewise.
51563         * tests/test-ldexpl.c (minus_zero): Likewise.
51564         * tests/test-roundl.c (minus_zero): Likewise.
51565         * tests/test-signbit.c (minus_zerol): Likewise.
51566         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51567         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51568         * tests/test-truncl.c (minus_zero): Likewise.
51569         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51570         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51571         Reported by Tom G. Christensen and Nelson H. F. Beebe.
51572
51573 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51574
51575         regex: fix glibc bug 9697
51576         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
51577         handling.
51578
51579 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51580
51581         regex: fix glibc bug 697
51582         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
51583         being NULL also if there are no backreferences.
51584
51585 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51586
51587         regex: merge glibc changes
51588         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
51589         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
51590         re_string_skip_chars, re_string_reconstruct): Likewise.
51591         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
51592
51593 2009-01-07  Jim Meyering  <meyering@redhat.com>
51594
51595         poll: filter through cppi
51596         * lib/poll.c: Indent cpp directives to reflect nesting.
51597
51598 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
51599
51600         poll: don't return uninitialized
51601         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
51602
51603 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
51604
51605         avoid compile failure on AIX 6.1
51606         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
51607         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
51608
51609 2009-01-04  Jim Meyering  <meyering@redhat.com>
51610
51611         remove duplicate inclusion of <stdio.h>
51612         * tests/test-fprintf-posix.c: Likewise.
51613         * tests/test-printf-posix.c: Likewise.
51614         * tests/test-snprintf-posix.c: Likewise.
51615         * tests/test-sprintf-posix.c: Likewise.
51616         * tests/test-vasprintf-posix.c: Likewise.
51617         * tests/test-vfprintf-posix.c: Likewise.
51618         * tests/test-vprintf-posix.c: Likewise.
51619         * tests/test-vsnprintf-posix.c: Likewise.
51620         * tests/test-vsprintf-posix.c: Likewise.
51621
51622 2009-01-03  Jim Meyering  <meyering@redhat.com>
51623
51624         gnulib-tool: fix sed-based filtering
51625         * gnulib-tool (func_filter_filelist): Remove extra backslash
51626         in sed_fff_filter definition.
51627
51628 2009-01-02  Jim Meyering  <meyering@redhat.com>
51629
51630         strftime: avoid compilation failure on Solaris 2.6
51631         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
51632         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
51633         Don't #define mbrlen or mbsinit, since now they're guaranteed to
51634         be available.  Reported by Tom G. Christensen.  Details in
51635         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
51636
51637 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51638             Bruno Haible  <bruno@clisp.org>
51639
51640         Speed up gnulib-tool by doing more string processing through shell
51641         built-ins.
51642         * gnulib-tool (fast_func_append): New variable.
51643         (func_remove_prefix, func_remove_suffix): New functions.
51644         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
51645         (func_filter_filelist): New function.
51646         (func_get_dependencies): Use func_remove_suffix instead of sed.
51647         (func_get_automake_snippet): Use func_filter_filelist instead of a
51648         subshell and sed invocation.
51649
51650 2009-01-01  Bruno Haible  <bruno@clisp.org>
51651
51652         Fix a security bug.
51653         * gnulib-tool (func_import, import, update): Don't allow the characters
51654         '"', '$', '`', '\' in macro arguments that become part of commands that
51655         are evaluated.
51656
51657 2009-01-01  Bruno Haible  <bruno@clisp.org>
51658
51659         * gnulib-tool (func_reset_sigpipe): Add more comments.
51660
51661 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51662
51663         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
51664         func_emit_tests_Makefile_am, func_import): Abort loops early if we
51665         already know the answer.
51666
51667 2009-01-01  Jim Meyering  <meyering@redhat.com>
51668
51669         * lib/version-etc.c (version_etc_va): Update copyright year.
51670
51671 2008-12-30  Bruno Haible  <bruno@clisp.org>
51672
51673         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
51674         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
51675         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
51676
51677 2008-12-29  Eric Blake  <ebb9@byu.net>
51678
51679         multiarch: avoid autoconf AC_REQUIRE bug
51680         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
51681         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
51682         2.63 and older.
51683         Reported by Bruno Haible, and analyzed in
51684         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
51685
51686 2008-12-29  Bruno Haible  <bruno@clisp.org>
51687
51688         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
51689         files in subdirectories correctly.
51690         Reported by Ralf Wildenhues.
51691
51692 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51693
51694         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
51695         rather than 'join FILE -', for Solaris join.
51696
51697 2008-12-29  Bruno Haible  <bruno@clisp.org>
51698
51699         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
51700         quoting.
51701         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
51702         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
51703         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
51704         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
51705         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
51706         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
51707         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
51708         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
51709         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
51710         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
51711         * m4/nls.m4 (AM_NLS): Likewise.
51712         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
51713         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
51714         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
51715         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
51716         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
51717         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
51718         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
51719         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
51720         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
51721         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
51722         * m4/xsize.m4 (gl_XSIZE): Likewise.
51723         Suggested by Jim Meyering.
51724
51725 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51726
51727         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
51728         * lib/parse-duration.c: use a switch instead of cascading if's.
51729
51730 2008-12-29  Eric Blake  <ebb9@byu.net>
51731
51732         wchar.h: supply WEOF on Irix 5.3
51733         * lib/wchar.in.h (wint_t): Also supply WEOF.
51734         * lib/wctype.in.h (wint_t): Likewise.
51735         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
51736         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
51737         Reported by Tom G. Christensen.
51738
51739 2008-12-26  Bruno Haible  <bruno@clisp.org>
51740
51741         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
51742         i486, i586, i686.
51743
51744 2008-12-26  Bruno Haible  <bruno@clisp.org>
51745
51746         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
51747
51748 2008-12-26  Bruno Haible  <bruno@clisp.org>
51749
51750         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
51751         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
51752         not __STDC_CONSTANT_MACROS.
51753         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51754
51755 2008-12-25  Bruno Haible  <bruno@clisp.org>
51756
51757         Add support for universal builds to vasnprintf.
51758         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
51759         universal builds, guess no.
51760         * modules/vasnprintf-posix (Depends-on): Add multiarch.
51761         * modules/vasprintf-posix (Depends-on): Likewise.
51762         * modules/fprintf-posix (Depends-on): Likewise.
51763         * modules/vfprintf-posix (Depends-on): Likewise.
51764         * modules/snprintf-posix (Depends-on): Likewise.
51765         * modules/vsnprintf-posix (Depends-on): Likewise.
51766         * modules/sprintf-posix (Depends-on): Likewise.
51767         * modules/vsprintf-posix (Depends-on): Likewise.
51768         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51769         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51770         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51771         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51772         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51773         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51774         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51775
51776         Add support for universal builds to <inttypes.h>.
51777         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
51778         _SCNu64_PREFIX): In Apple
51779         universal builds, define directly, using _LP64.
51780         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
51781         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
51782         * modules/inttypes (Depends-on): Add multiarch.
51783         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51784
51785         Add support for universal builds to <stdint.h>.
51786         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
51787         universal builds, define directly, using _LP64.
51788         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
51789         Apple universal builds, don't test for the size and suffix of ptrdiff_t
51790         and size_t.
51791         * modules/stdint (Depends-on): Add multiarch.
51792         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51793
51794         New module 'multiarch'.
51795         * modules/multiarch: New file.
51796         * m4/multiarch.m4: New file.
51797
51798 2008-12-25  Bruno Haible  <bruno@clisp.org>
51799
51800         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
51801
51802 2008-12-25  Bruno Haible  <bruno@clisp.org>
51803
51804         * modules/btowc (License): Relicense under LGPLv2+.
51805         * modules/mbsinit (License): Likewise.
51806         * modules/mbrtowc (License): Likewise.
51807         * modules/wcrtomb (License): Likewise.
51808         * modules/streq (License): Likewise.
51809         Reported by David Lutterkort <lutter@redhat.com>.
51810
51811 2008-12-23  Bruno Haible  <bruno@clisp.org>
51812
51813         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
51814
51815 2008-12-23  Bruno Haible  <bruno@clisp.org>
51816
51817         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
51818         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
51819         GETADDRINFO_LIB, not in LIBS.
51820         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
51821         * modules/canon-host (Link): Likewise.
51822         * NEWS: Mention the change.
51823         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
51824         GETADDRINFO_LIB.
51825
51826 2008-12-22  Bruno Haible  <bruno@clisp.org>
51827
51828         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
51829         * doc/posix-functions/iswalpha_l.texi: Likewise.
51830         * doc/posix-functions/iswblank_l.texi: Likewise.
51831         * doc/posix-functions/iswcntrl_l.texi: Likewise.
51832         * doc/posix-functions/iswctype_l.texi: Likewise.
51833         * doc/posix-functions/iswdigit_l.texi: Likewise.
51834         * doc/posix-functions/iswgraph_l.texi: Likewise.
51835         * doc/posix-functions/iswlower_l.texi: Likewise.
51836         * doc/posix-functions/iswprint_l.texi: Likewise.
51837         * doc/posix-functions/iswpunct_l.texi: Likewise.
51838         * doc/posix-functions/iswspace_l.texi: Likewise.
51839         * doc/posix-functions/iswupper_l.texi: Likewise.
51840         * doc/posix-functions/iswxdigit_l.texi: Likewise.
51841         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
51842         * doc/posix-functions/open_wmemstream.texi: Likewise.
51843         * doc/posix-functions/swscanf.texi: Likewise.
51844         * doc/posix-functions/towctrans_l.texi: Likewise.
51845         * doc/posix-functions/towlower.texi: Likewise.
51846         * doc/posix-functions/towlower_l.texi: Likewise.
51847         * doc/posix-functions/towupper.texi: Likewise.
51848         * doc/posix-functions/towupper_l.texi: Likewise.
51849         * doc/posix-functions/vfwprintf.texi: Likewise.
51850         * doc/posix-functions/vfwscanf.texi: Likewise.
51851         * doc/posix-functions/vswscanf.texi: Likewise.
51852         * doc/posix-functions/vwprintf.texi: Likewise.
51853         * doc/posix-functions/vwscanf.texi: Likewise.
51854         * doc/posix-functions/wcpcpy.texi: Likewise.
51855         * doc/posix-functions/wcpncpy.texi: Likewise.
51856         * doc/posix-functions/wcscasecmp.texi: Likewise.
51857         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
51858         * doc/posix-functions/wcscoll_l.texi: Likewise.
51859         * doc/posix-functions/wcsdup.texi: Likewise.
51860         * doc/posix-functions/wcsncasecmp.texi: Likewise.
51861         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
51862         * doc/posix-functions/wcsnlen.texi: Likewise.
51863         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51864         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
51865         * doc/posix-functions/wctrans_l.texi: Likewise.
51866         * doc/posix-functions/wctype_l.texi: Likewise.
51867         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
51868         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
51869         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
51870         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
51871         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
51872         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
51873         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
51874         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
51875         * doc/glibc-functions/wcschrnul.texi: Likewise.
51876         * doc/glibc-functions/wcsftime_l.texi: Likewise.
51877         * doc/glibc-functions/wcstod_l.texi: Likewise.
51878         * doc/glibc-functions/wcstof_l.texi: Likewise.
51879         * doc/glibc-functions/wcstol_l.texi: Likewise.
51880         * doc/glibc-functions/wcstold_l.texi: Likewise.
51881         * doc/glibc-functions/wcstoll_l.texi: Likewise.
51882         * doc/glibc-functions/wcstoq.texi: Likewise.
51883         * doc/glibc-functions/wcstoul_l.texi: Likewise.
51884         * doc/glibc-functions/wcstoull_l.texi: Likewise.
51885         * doc/glibc-functions/wcstouq.texi: Likewise.
51886         * doc/glibc-functions/wmempcpy.texi: Likewise.
51887
51888 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
51889             Eric Blake  <ebb9@byu.net>
51890             Paolo Bonzini  <bonzini@gnu.org>
51891             Bruno Haible  <bruno@clisp.org>
51892
51893         Make c-stack work on Haiku.
51894         * lib/c-stack.c (SA_ONSTACK): Define fallback.
51895         (c_stack_action): Use SA_ONSTACK flag.
51896
51897 2008-12-22  Bruno Haible  <bruno@clisp.org>
51898
51899         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
51900
51901 2008-12-22  Bruno Haible  <bruno@clisp.org>
51902
51903         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
51904         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
51905         being overridden.
51906         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
51907         New macros.
51908         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
51909         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
51910         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
51911         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
51912
51913 2008-12-22  Bruno Haible  <bruno@clisp.org>
51914
51915         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
51916         from test code.
51917
51918 2008-12-22  Eric Blake  <ebb9@byu.net>
51919
51920         Avoid gcc warnings on cygwin.
51921         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
51922         Avoid unused variable.
51923         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
51924         Likewise.
51925
51926 2008-12-22  Bruno Haible  <bruno@clisp.org>
51927
51928         Remove HAVE_MBRTOWC conditionals.
51929         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
51930         (mbscasecmp): Assume mbrtowc function.
51931         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
51932         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
51933         * lib/mbschr.c: Include mbuiter.h unconditionally.
51934         (mbschr): Assume mbrtowc function.
51935         * lib/mbscspn.c: Include mbuiter.h unconditionally.
51936         (mbscspn): Assume mbrtowc function.
51937         * lib/mbslen.c: Include mbuiter.h unconditionally.
51938         (mbslen): Assume mbrtowc function.
51939         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
51940         (mbsncasecmp): Assume mbrtowc function.
51941         * lib/mbsnlen.c: Include mbiter.h unconditionally.
51942         (mbsnlen): Assume mbrtowc function.
51943         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
51944         (mbspbrk): Assume mbrtowc function.
51945         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
51946         (mbspcasecmp): Assume mbrtowc function.
51947         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
51948         (mbsrchr): Assume mbrtowc function.
51949         * lib/mbssep.c: Include mbuiter.h unconditionally.
51950         (mbssep): Assume mbrtowc function.
51951         * lib/mbsspn.c: Include mbuiter.h unconditionally.
51952         (mbsspn): Assume mbrtowc function.
51953         * lib/mbsstr.c: Include mbuiter.h unconditionally.
51954         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
51955         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
51956         (mbstok_r): Assume mbrtowc function.
51957         * lib/propername.c: Include mbuiter.h unconditionally.
51958         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
51959         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
51960         (trim2): Assume mbrtowc function.
51961         * lib/mbswidth.c (mbsinit): Remove fallback definition.
51962         (mbsnwidth): Assume mbrtowc function.
51963         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
51964         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
51965         fallback definitions.
51966         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
51967
51968 2008-12-22  Bruno Haible  <bruno@clisp.org>
51969
51970         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
51971
51972 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
51973
51974         * modules/regex: Request emulations for the mb*/wc* functions we need.
51975         * m4/regex.m4: Don't look for those functions here.
51976         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
51977
51978 2008-12-22  Bruno Haible  <bruno@clisp.org>
51979
51980         * modules/fnmatch (Depends-on): Remove duplicated dependency.
51981
51982 2008-12-21  Bruno Haible  <bruno@clisp.org>
51983
51984         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
51985         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
51986         (Include): Remove conditionalization.
51987         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
51988         (Include): Remove conditionalization.
51989         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
51990         (Include): Remove conditionalization.
51991         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
51992         * m4/mbfile.m4 (gl_MBFILE): Likewise.
51993         * NEWS: Mention the change.
51994         Reported by Alan Hourihane <alanh@fairlite.co.uk>
51995         via Sergey Poznyakoff <gray@gnu.org.ua>.
51996
51997 2008-12-21  Bruno Haible  <bruno@clisp.org>
51998
51999         * MODULES.html.sh (Extended multibyte and wide character utilities
52000         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
52001         wcrtomb, wcsrtombs.
52002         (Support for systems lacking POSIX:2008): Add accept, bind, close,
52003         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
52004         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
52005         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
52006
52007 2008-12-21  Bruno Haible  <bruno@clisp.org>
52008
52009         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
52010
52011 2008-12-21  Bruno Haible  <bruno@clisp.org>
52012
52013         * modules/wcsnrtombs-tests: New file.
52014         * tests/test-wcsnrtombs1.sh: New file.
52015         * tests/test-wcsnrtombs2.sh: New file.
52016         * tests/test-wcsnrtombs3.sh: New file.
52017         * tests/test-wcsnrtombs4.sh: New file.
52018         * tests/test-wcsnrtombs.c: New file.
52019
52020         New module 'wcsnrtombs'.
52021         * lib/wchar.in.h (wcsnrtombs): New declaration.
52022         * lib/wcsnrtombs.c: New file.
52023         * lib/wcsrtombs-state.c: New file.
52024         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
52025         (internal_state): Remove variable.
52026         * m4/wcsnrtombs.m4: New file.
52027         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
52028         compilation units.
52029         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
52030         HAVE_WCSNRTOMBS.
52031         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
52032         HAVE_WCSNRTOMBS.
52033         * modules/wcsnrtombs: New file.
52034         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
52035         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
52036
52037 2008-12-21  Bruno Haible  <bruno@clisp.org>
52038
52039         * modules/wcsrtombs-tests: New file.
52040         * tests/test-wcsrtombs1.sh: New file.
52041         * tests/test-wcsrtombs2.sh: New file.
52042         * tests/test-wcsrtombs3.sh: New file.
52043         * tests/test-wcsrtombs4.sh: New file.
52044         * tests/test-wcsrtombs.c: New file.
52045
52046         New module 'wcsrtombs'.
52047         * lib/wchar.in.h (wcsrtombs): New declaration.
52048         * lib/wcsrtombs.c: New file.
52049         * m4/wcsrtombs.m4: New file.
52050         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
52051         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52052         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
52053         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52054         * modules/wcsrtombs: New file.
52055         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
52056         bugs.
52057
52058 2008-12-21  Bruno Haible  <bruno@clisp.org>
52059
52060         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
52061         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
52062         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
52063         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
52064         if not correct.
52065         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
52066         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
52067         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52068         m4/locale-zh.m4, m4/codeset.m4.
52069         * doc/posix-functions/wcrtomb.texi: Document the bug.
52070
52071 2008-12-21  Bruno Haible  <bruno@clisp.org>
52072
52073         Work around a btowc() bug on IRIX 6.5.
52074         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
52075         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
52076         REPLACE_WTOBC if not.
52077         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
52078         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
52079         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
52080
52081 2008-12-21  Bruno Haible  <bruno@clisp.org>
52082
52083         * modules/wcrtomb-tests: New file.
52084         * tests/test-wcrtomb.sh: New file.
52085         * tests/test-wcrtomb.c: New file.
52086
52087         New module 'wcrtomb'.
52088         * lib/wchar.in.h (wcrtomb): New declaration.
52089         * lib/wcrtomb.c: New file.
52090         * m4/wcrtomb.m4: New file.
52091         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
52092         HAVE_WCRTOMB.
52093         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
52094         HAVE_WCRTOMB.
52095         * modules/wcrtomb: New file.
52096         * doc/posix-functions/wcrtomb.texi: Mention the new module.
52097
52098 2008-12-21  Bruno Haible  <bruno@clisp.org>
52099
52100         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
52101         * modules/mbsrtowcs (Files): Likewise.
52102         * modules/wctob (Files): Likewise.
52103         * modules/c-strcase-tests (Files): Likewise.
52104         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
52105         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
52106         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
52107         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
52108         * modules/vasnprintf-posix-tests (Files): Likewise.
52109
52110 2008-12-21  William Pursell  <bill.pursell@gmail.com>
52111
52112         gitlog-to-changelog: pass all command-line arguments to git-log
52113         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
52114         it is sometimes convenient to filter the commits in various ways.
52115         gitlog-to-changelog only allows --since to specify a start date,
52116         but git-log itself supports many other filtering mechanisms.
52117         At the moment, I want to filter by branch name.  Rather than
52118         adding a --branch option to gitlog-to-changelog, it seems more
52119         flexible to simply pass all options directly to git-log and let
52120         git do the work.  Notice that this effectively makes --since a
52121         redundant option for gitlog-to-changelog, but removing it would
52122         require current usage to change since calls would then require
52123         an additional '--'.
52124
52125 2008-12-21  Bruno Haible  <bruno@clisp.org>
52126
52127         * modules/mbsnrtowcs-tests: New file.
52128         * tests/test-mbsnrtowcs1.sh: New file.
52129         * tests/test-mbsnrtowcs2.sh: New file.
52130         * tests/test-mbsnrtowcs3.sh: New file.
52131         * tests/test-mbsnrtowcs4.sh: New file.
52132         * tests/test-mbsnrtowcs.c: New file.
52133
52134         New module 'mbsnrtowcs'.
52135         * lib/wchar.in.h (mbsnrtowcs): New declaration.
52136         * lib/mbsnrtowcs.c: New file.
52137         * lib/mbsrtowcs-state.c: New file.
52138         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
52139         (internal_state): Remove variable.
52140         * m4/mbsnrtowcs.m4: New file.
52141         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
52142         compilation units.
52143         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
52144         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52145         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
52146         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52147         * modules/mbsnrtowcs: New file.
52148         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
52149         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
52150         portability problem.
52151
52152 2008-12-21  Bruno Haible  <bruno@clisp.org>
52153
52154         Work around mbsrtowcs bug.
52155         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
52156         (gl_FUNC_MBSRTOWCS): Invoke it.
52157         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52158         m4/locale-zh.m4.
52159         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
52160
52161 2008-12-21  Bruno Haible  <bruno@clisp.org>
52162
52163         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
52164
52165 2008-12-21  Bruno Haible  <bruno@clisp.org>
52166
52167         Update doc for AIX.
52168         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
52169         16-bit wchar_t type.
52170         * doc/posix-functions/btowc.texi: Likewise.
52171         * doc/posix-functions/fgetwc.texi: Likewise.
52172         * doc/posix-functions/fgetws.texi: Likewise.
52173         * doc/posix-functions/fputwc.texi: Likewise.
52174         * doc/posix-functions/fputws.texi: Likewise.
52175         * doc/posix-functions/fwide.texi: Likewise.
52176         * doc/posix-functions/fwprintf.texi: Likewise.
52177         * doc/posix-functions/fwscanf.texi: Likewise.
52178         * doc/posix-functions/getwchar.texi: Likewise.
52179         * doc/posix-functions/getwc.texi: Likewise.
52180         * doc/posix-functions/iswalnum.texi: Likewise.
52181         * doc/posix-functions/iswalpha.texi: Likewise.
52182         * doc/posix-functions/iswblank.texi: Likewise.
52183         * doc/posix-functions/iswcntrl.texi: Likewise.
52184         * doc/posix-functions/iswctype.texi: Likewise.
52185         * doc/posix-functions/iswdigit.texi: Likewise.
52186         * doc/posix-functions/iswgraph.texi: Likewise.
52187         * doc/posix-functions/iswlower.texi: Likewise.
52188         * doc/posix-functions/iswprint.texi: Likewise.
52189         * doc/posix-functions/iswpunct.texi: Likewise.
52190         * doc/posix-functions/iswspace.texi: Likewise.
52191         * doc/posix-functions/iswupper.texi: Likewise.
52192         * doc/posix-functions/iswxdigit.texi: Likewise.
52193         * doc/posix-functions/mbrtowc.texi: Likewise.
52194         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52195         * doc/posix-functions/mbstowcs.texi: Likewise.
52196         * doc/posix-functions/mbtowc.texi: Likewise.
52197         * doc/posix-functions/putwchar.texi: Likewise.
52198         * doc/posix-functions/putwc.texi: Likewise.
52199         * doc/posix-functions/swprintf.texi: Likewise.
52200         * doc/posix-functions/tolower.texi: Likewise.
52201         * doc/posix-functions/toupper.texi: Likewise.
52202         * doc/posix-functions/towctrans.texi: Likewise.
52203         * doc/posix-functions/ungetwc.texi: Likewise.
52204         * doc/posix-functions/vswprintf.texi: Likewise.
52205         * doc/posix-functions/wcrtomb.texi: Likewise.
52206         * doc/posix-functions/wcscat.texi: Likewise.
52207         * doc/posix-functions/wcschr.texi: Likewise.
52208         * doc/posix-functions/wcscmp.texi: Likewise.
52209         * doc/posix-functions/wcscoll.texi: Likewise.
52210         * doc/posix-functions/wcscpy.texi: Likewise.
52211         * doc/posix-functions/wcscspn.texi: Likewise.
52212         * doc/posix-functions/wcsftime.texi: Likewise.
52213         * doc/posix-functions/wcslen.texi: Likewise.
52214         * doc/posix-functions/wcsncat.texi: Likewise.
52215         * doc/posix-functions/wcsncmp.texi: Likewise.
52216         * doc/posix-functions/wcsncpy.texi: Likewise.
52217         * doc/posix-functions/wcspbrk.texi: Likewise.
52218         * doc/posix-functions/wcsrchr.texi: Likewise.
52219         * doc/posix-functions/wcsrtombs.texi: Likewise.
52220         * doc/posix-functions/wcsspn.texi: Likewise.
52221         * doc/posix-functions/wcsstr.texi: Likewise.
52222         * doc/posix-functions/wcstod.texi: Likewise.
52223         * doc/posix-functions/wcstof.texi: Likewise.
52224         * doc/posix-functions/wcstoimax.texi: Likewise.
52225         * doc/posix-functions/wcstok.texi: Likewise.
52226         * doc/posix-functions/wcstold.texi: Likewise.
52227         * doc/posix-functions/wcstoll.texi: Likewise.
52228         * doc/posix-functions/wcstol.texi: Likewise.
52229         * doc/posix-functions/wcstombs.texi: Likewise.
52230         * doc/posix-functions/wcstoull.texi: Likewise.
52231         * doc/posix-functions/wcstoul.texi: Likewise.
52232         * doc/posix-functions/wcstoumax.texi: Likewise.
52233         * doc/posix-functions/wcswidth.texi: Likewise.
52234         * doc/posix-functions/wcsxfrm.texi: Likewise.
52235         * doc/posix-functions/wctob.texi: Likewise.
52236         * doc/posix-functions/wctomb.texi: Likewise.
52237         * doc/posix-functions/wctrans.texi: Likewise.
52238         * doc/posix-functions/wctype.texi: Likewise.
52239         * doc/posix-functions/wcwidth.texi: Likewise.
52240         * doc/posix-functions/wmemchr.texi: Likewise.
52241         * doc/posix-functions/wmemcmp.texi: Likewise.
52242         * doc/posix-functions/wmemcpy.texi: Likewise.
52243         * doc/posix-functions/wmemmove.texi: Likewise.
52244         * doc/posix-functions/wmemset.texi: Likewise.
52245         * doc/posix-functions/wprintf.texi: Likewise.
52246         * doc/posix-functions/wscanf.texi: Likewise.
52247
52248 2008-12-21  Bruno Haible  <bruno@clisp.org>
52249
52250         Update doc for HP-UX 11.11.
52251         * doc/posix-functions/btowc.texi: Clarify that the function is missing
52252         in HP-UX version 11.00, not in all versions of HP-UX 11.
52253         * doc/posix-functions/fwide.texi: Likewise.
52254         * doc/posix-functions/fwprintf.texi: Likewise.
52255         * doc/posix-functions/fwscanf.texi: Likewise.
52256         * doc/posix-functions/inet_ntop.texi: Likewise.
52257         * doc/posix-functions/inet_pton.texi: Likewise.
52258         * doc/posix-functions/mbrlen.texi: Likewise.
52259         * doc/posix-functions/mbrtowc.texi: Likewise.
52260         * doc/posix-functions/mbsinit.texi: Likewise.
52261         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52262         * doc/posix-functions/swprintf.texi: Likewise.
52263         * doc/posix-functions/swscanf.texi: Likewise.
52264         * doc/posix-functions/towctrans.texi: Likewise.
52265         * doc/posix-functions/vfwprintf.texi: Likewise.
52266         * doc/posix-functions/vswprintf.texi: Likewise.
52267         * doc/posix-functions/vwprintf.texi: Likewise.
52268         * doc/posix-functions/wcrtomb.texi: Likewise.
52269         * doc/posix-functions/wcsrtombs.texi: Likewise.
52270         * doc/posix-functions/wcsstr.texi: Likewise.
52271         * doc/posix-functions/wctob.texi: Likewise.
52272         * doc/posix-functions/wctrans.texi: Likewise.
52273         * doc/posix-functions/wmemchr.texi: Likewise.
52274         * doc/posix-functions/wmemcmp.texi: Likewise.
52275         * doc/posix-functions/wmemcpy.texi: Likewise.
52276         * doc/posix-functions/wmemmove.texi: Likewise.
52277         * doc/posix-functions/wmemset.texi: Likewise.
52278         * doc/posix-functions/wprintf.texi: Likewise.
52279         * doc/posix-functions/wscanf.texi: Likewise.
52280
52281 2008-12-21  Bruno Haible  <bruno@clisp.org>
52282
52283         Work around a portability problem.
52284         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
52285         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
52286
52287 2008-12-20  Bruno Haible  <bruno@clisp.org>
52288
52289         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
52290         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
52291         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
52292         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
52293         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
52294
52295         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
52296         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
52297         set.
52298         (GNULIB_defined_mbstate_t): New macro.
52299         (mbsinit): Redefine if REPLACE_MBSINIT is set.
52300         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
52301         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
52302         reuses the system's mbrtowc function but works around the bugs.
52303         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
52304         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
52305         macros.
52306         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
52307         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
52308         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
52309         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
52310         REPLACE_MBSINIT if mbsinit needs to be overridden.
52311         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
52312         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52313         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
52314         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52315         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52316         m4/locale-zh.m4.
52317         (Depends): Add mbsinit.
52318         * modules/mbsinit (Depends): Add mbrtowc.
52319         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
52320
52321 2008-12-20  Bruno Haible  <bruno@clisp.org>
52322
52323         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
52324         so that there are no conversion errors on AIX.
52325         * tests/test-mbsrtowcs.c (main): LIkewise.
52326
52327 2008-12-20  Bruno Haible  <bruno@clisp.org>
52328
52329         Work around wctob bug on Solaris <= 9.
52330         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
52331         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
52332         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
52333         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
52334         * modules/wctob (Files): Add m4/locale-fr.m4.
52335         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
52336
52337 2008-12-20  Bruno Haible  <bruno@clisp.org>
52338
52339         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
52340         /dev/null.
52341         * tests/test-select-in.sh: Likewise.
52342         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52343
52344 2008-12-20  Bruno Haible  <bruno@clisp.org>
52345
52346         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
52347         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
52348         Cygwin 1.5.x.
52349
52350 2008-12-20  Bruno Haible  <bruno@clisp.org>
52351
52352         Ensure mbstate_t is defined on HP-UX 11.11.
52353         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
52354         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
52355         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
52356         AC_USE_SYSTEM_EXTENSIONS.
52357         * modules/fnmatch (Depends-on): Add extensions.
52358         * modules/mbrlen (Depends-on): Likewise.
52359         * modules/mbrtowc (Depends-on): Likewise.
52360         * modules/mbsinit (Depends-on): Likewise.
52361         * modules/mbsrtowcs (Depends-on): Likewise.
52362         * modules/mbswidth (Depends-on): Likewise.
52363         * modules/quotearg (Depends-on): Likewise.
52364         * modules/strftime (Depends-on): Likewise.
52365
52366 2008-12-20  Bruno Haible  <bruno@clisp.org>
52367
52368         Ensure wctob is declared on IRIX 6.5.
52369         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
52370         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
52371         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
52372         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
52373         of HAVE_WCTOB.
52374         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
52375         HAVE_WCTOB.
52376         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
52377
52378 2008-12-19  Bruno Haible  <bruno@clisp.org>
52379
52380         * modules/mbsrtowcs-tests: New file.
52381         * tests/test-mbsrtowcs1.sh: New file.
52382         * tests/test-mbsrtowcs2.sh: New file.
52383         * tests/test-mbsrtowcs3.sh: New file.
52384         * tests/test-mbsrtowcs4.sh: New file.
52385         * tests/test-mbsrtowcs.c: New file.
52386
52387         New module 'mbsrtowcs'.
52388         * lib/wchar.in.h (mbsrtowcs): New declaration.
52389         * lib/mbsrtowcs.c: New file.
52390         * m4/mbsrtowcs.m4: New file.
52391         * modules/mbsrtowcs: New file.
52392         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
52393         HAVE_MBSRTOWCS.
52394         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
52395         HAVE_MBSRTOWCS.
52396         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
52397
52398 2008-12-19  Bruno Haible  <bruno@clisp.org>
52399
52400         New module 'mbrlen'.
52401         * lib/wchar.in.h (mbrlen): New declaration.
52402         * lib/mbrlen.c: New file.
52403         * m4/mbrlen.m4: New file.
52404         * modules/mbrlen: New file.
52405         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
52406         HAVE_MBRLEN.
52407         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
52408         HAVE_MBRLEN.
52409         * doc/posix-functions/mbrlen.texi: Document the new module.
52410
52411 2008-12-19  Bruno Haible  <bruno@clisp.org>
52412
52413         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
52414         * modules/mbrtowc (Depends-on): Add verify.
52415         Suggested by Paul Eggert.
52416
52417 2008-12-18  Bruno Haible  <bruno@clisp.org>
52418
52419         * modules/mbsinit-tests: New file.
52420         * tests/test-mbsinit.sh: New file.
52421         * tests/test-mbsinit.c: New file.
52422
52423 2008-12-18  Bruno Haible  <bruno@clisp.org>
52424
52425         * modules/mbrtowc-tests: New file.
52426         * tests/test-mbrtowc1.sh: New file.
52427         * tests/test-mbrtowc2.sh: New file.
52428         * tests/test-mbrtowc3.sh: New file.
52429         * tests/test-mbrtowc4.sh: New file.
52430         * tests/test-mbrtowc.c: New file.
52431
52432         New module 'mbrtowc'.
52433         * lib/wchar.in.h (mbstate_t): Override when the system does not have
52434         mbsinit and mbrtowc.
52435         (mbrtowc): New declaration.
52436         * lib/mbrtowc.c: New file.
52437         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
52438         * modules/mbrtowc: New file.
52439         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
52440         HAVE_MBRTOWC.
52441         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
52442         HAVE_MBRTOWC.
52443         * doc/posix-functions/mbrtowc.texi: Document the new module.
52444
52445 2008-12-18  Bruno Haible  <bruno@clisp.org>
52446
52447         New module 'wctob'.
52448         * lib/wchar.in.h (wctob): New declaration.
52449         * lib/wctob.c: New file.
52450         * m4/wctob.m4: New file.
52451         * modules/wctob: New file.
52452         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
52453         HAVE_WCTOB.
52454         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
52455         * doc/posix-functions/wctob.texi: Document the new module.
52456
52457 2008-12-18  Bruno Haible  <bruno@clisp.org>
52458
52459         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
52460         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
52461
52462 2008-12-18  Simon Josefsson  <simon@josefsson.org>
52463
52464         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
52465         G. Christensen" <tgc@jupiterrise.com>.
52466
52467         * lib/flock.c: Need to include errno.h.  Reported by "Tom
52468         G. Christensen" <tgc@jupiterrise.com>.
52469
52470         * lib/flock.c: Need to include string.h.  Reported by "Tom
52471         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
52472         <ebb9@byu.net>.
52473
52474 2008-12-18  Bruno Haible  <bruno@clisp.org>
52475
52476         * m4/locale-ja.m4: New file, from GNU gettext.
52477
52478 2008-12-17  Bruno Haible  <bruno@clisp.org>
52479
52480         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
52481         Suggested by Eric Blake.
52482
52483 2008-12-17  Bruno Haible  <bruno@clisp.org>
52484
52485         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
52486
52487 2008-12-17  Bruno Haible  <bruno@clisp.org>
52488
52489         * lib/mbsinit.c: Include verify.h. Verify an assumption.
52490         * modules/mbsinit (Depends-on): Add verify.
52491         Suggested by Paul Eggert.
52492
52493 2008-12-17  Bruno Haible  <bruno@clisp.org>
52494
52495         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
52496         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
52497         gl_FUNC_MBRTOWC.
52498         * m4/mbiter.m4 (gl_MBITER): LIkewise.
52499         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
52500         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
52501         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
52502         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
52503         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
52504         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
52505         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
52506         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
52507         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
52508         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
52509         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
52510         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
52511         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
52512         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
52513         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52514         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
52515         * modules/trim (configure.ac): Likewise.
52516
52517 2008-12-17  Bruno Haible  <bruno@clisp.org>
52518
52519         * modules/btowc-tests: New file.
52520         * tests/test-btowc1.sh: New file.
52521         * tests/test-btowc2.sh: New file.
52522         * tests/test-btowc.c: New file.
52523
52524         New module 'btowc'.
52525         * lib/wchar.in.h (btowc): New declaration.
52526         * lib/btowc.c: New file.
52527         * m4/btowc.m4: New file.
52528         * modules/btowc: New file.
52529         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
52530         HAVE_BTOWC.
52531         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
52532         * doc/posix-functions/btowc.texi: Document the new module.
52533
52534 2008-12-17  Bruno Haible  <bruno@clisp.org>
52535
52536         New module 'mbsinit'.
52537         * lib/wchar.in.h (mbsinit): New declaration.
52538         * lib/mbsinit.c: New file.
52539         * m4/mbsinit.m4: New file.
52540         * modules/mbsinit: New file.
52541         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
52542         HAVE_MBSINIT.
52543         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
52544         HAVE_MBSINIT.
52545         * doc/posix-functions/mbsinit.texi: Document the new module.
52546
52547 2008-12-16  Bruno Haible  <bruno@clisp.org>
52548
52549         * lib/unistd.in.h: Add comment.
52550         * tests/test-environ.c: Don't include <stdlib.h>.
52551
52552 2008-12-16  Bruno Haible  <bruno@clisp.org>
52553
52554         * lib/parse-duration.h (parse_duration): Document return value
52555         convention.
52556         * lib/parse-duration.c: Include specification header first. Add
52557         comments.
52558         (_): Remove macro.
52559         (parse_year_month_day, parse_hour_minute_second): Move side effects
52560         outside of strchr call.
52561         (parse_non_iso8601): Move side effects outside of isspace call.
52562         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
52563         call.
52564
52565 2008-12-16  Bruno Haible  <bruno@clisp.org>
52566
52567         * tests/test-parse-duration.sh: Produce no output when the test
52568         succeeds.
52569
52570 2008-12-16  Bruno Haible  <bruno@clisp.org>
52571
52572         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
52573         expressions.
52574
52575 2008-12-15  Bruno Haible  <bruno@clisp.org>
52576
52577         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
52578         * doc/glibc-functions/flistxattr.texi: Likewise.
52579         * doc/glibc-functions/fopencookie.texi: Likewise.
52580         * doc/glibc-functions/fremovexattr.texi: Likewise.
52581         * doc/glibc-functions/fsetxattr.texi: Likewise.
52582         * doc/glibc-functions/getxattr.texi: Likewise.
52583         * doc/glibc-functions/lgetxattr.texi: Likewise.
52584         * doc/glibc-functions/listxattr.texi: Likewise.
52585         * doc/glibc-functions/llistxattr.texi: Likewise.
52586         * doc/glibc-functions/lremovexattr.texi: Likewise.
52587         * doc/glibc-functions/lsetxattr.texi: Likewise.
52588         * doc/glibc-functions/removexattr.texi: Likewise.
52589         * doc/glibc-functions/setxattr.texi: Likewise.
52590         * doc/posix-functions/open_memstream.texi: Likewise.
52591
52592 2008-12-15  Eric Blake  <ebb9@byu.net>
52593
52594         Update doc for cygwin 1.7.
52595         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
52596         functions.
52597         * doc/posix-functions/fchmodat.texi: Likewise.
52598         * doc/posix-functions/fchownat.texi: Likewise.
52599         * doc/posix-functions/fdopendir.texi: Likewise.
52600         * doc/posix-functions/fmemopen.texi: Likewise.
52601         * doc/posix-functions/freeaddrinfo.texi: Likewise.
52602         * doc/posix-functions/fstatat.texi: Likewise.
52603         * doc/posix-functions/futimens.texi: Likewise.
52604         * doc/posix-functions/gai_strerror.texi: Likewise.
52605         * doc/posix-functions/getaddrinfo.texi: Likewise.
52606         * doc/posix-functions/getnameinfo.texi: Likewise.
52607         * doc/posix-functions/if_freenameindex.texi: Likewise.
52608         * doc/posix-functions/if_indextoname.texi: Likewise.
52609         * doc/posix-functions/if_nameindex.texi: Likewise.
52610         * doc/posix-functions/if_nametoindex.texi: Likewise.
52611         * doc/posix-functions/insque.texi: Likewise.
52612         * doc/posix-functions/linkat.texi: Likewise.
52613         * doc/posix-functions/llrint.texi: Likewise.
52614         * doc/posix-functions/llrintf.texi: Likewise.
52615         * doc/posix-functions/llrintl.texi: Likewise.
52616         * doc/posix-functions/lockf.texi: Likewise.
52617         * doc/posix-functions/lrintl.texi: Likewise.
52618         * doc/posix-functions/mkdirat.texi: Likewise.
52619         * doc/posix-functions/mkfifoat.texi: Likewise.
52620         * doc/posix-functions/mknodat.texi: Likewise.
52621         * doc/posix-functions/mq_close.texi: Likewise.
52622         * doc/posix-functions/mq_getattr.texi: Likewise.
52623         * doc/posix-functions/mq_notify.texi: Likewise.
52624         * doc/posix-functions/mq_open.texi: Likewise.
52625         * doc/posix-functions/mq_receive.texi: Likewise.
52626         * doc/posix-functions/mq_send.texi: Likewise.
52627         * doc/posix-functions/mq_setattr.texi: Likewise.
52628         * doc/posix-functions/mq_timedreceive.texi: Likewise.
52629         * doc/posix-functions/mq_timedsend.texi: Likewise.
52630         * doc/posix-functions/mq_unlink.texi: Likewise.
52631         * doc/posix-functions/open_memstream.texi: Likewise.
52632         * doc/posix-functions/openat.texi: Likewise.
52633         * doc/posix-functions/posix_fadvise.texi: Likewise.
52634         * doc/posix-functions/posix_fallocate.texi: Likewise.
52635         * doc/posix-functions/posix_madvise.texi: Likewise.
52636         * doc/posix-functions/posix_memalign.texi: Likewise.
52637         * doc/posix-functions/posix_openpt.texi: Likewise.
52638         * doc/posix-functions/readlinkat.texi: Likewise.
52639         * doc/posix-functions/remque.texi: Likewise.
52640         * doc/posix-functions/renameat.texi: Likewise.
52641         * doc/posix-functions/rintl.texi: Likewise.
52642         * doc/posix-functions/sem_unlink.texi: Likewise.
52643         * doc/posix-functions/shm_open.texi: Likewise.
52644         * doc/posix-functions/shm_unlink.texi: Likewise.
52645         * doc/posix-functions/signgam.texi: Likewise.
52646         * doc/posix-functions/sigset.texi: Likewise.
52647         * doc/posix-functions/stpcpy.texi: Likewise.
52648         * doc/posix-functions/stpncpy.texi: Likewise.
52649         * doc/posix-functions/strerror.texi: Likewise.
52650         * doc/posix-functions/strtod.texi: Likewise.
52651         * doc/posix-functions/symlinkat.texi: Likewise.
52652         * doc/posix-functions/unlinkat.texi: Likewise.
52653         * doc/posix-functions/utimensat.texi: Likewise.
52654         * doc/glibc-functions/bindresvport.texi: Likewise.
52655         * doc/glibc-functions/dn_expand.texi: Likewise.
52656         * doc/glibc-functions/exp10.texi: Likewise.
52657         * doc/glibc-functions/exp10f.texi: Likewise.
52658         * doc/glibc-functions/fgetxattr.texi: Likewise.
52659         * doc/glibc-functions/flistxattr.texi: Likewise.
52660         * doc/glibc-functions/fopencookie.texi: Likewise.
52661         * doc/glibc-functions/freeifaddrs.texi: Likewise.
52662         * doc/glibc-functions/fremovexattr.texi: Likewise.
52663         * doc/glibc-functions/fsetxattr.texi: Likewise.
52664         * doc/glibc-functions/getifaddrs.texi: Likewise.
52665         * doc/glibc-functions/getxattr.texi: Likewise.
52666         * doc/glibc-functions/lgetxattr.texi: Likewise.
52667         * doc/glibc-functions/listxattr.texi: Likewise.
52668         * doc/glibc-functions/llistxattr.texi: Likewise.
52669         * doc/glibc-functions/lremovexattr.texi: Likewise.
52670         * doc/glibc-functions/lsetxattr.texi: Likewise.
52671         * doc/glibc-functions/pow10.texi: Likewise.
52672         * doc/glibc-functions/pow10f.texi: Likewise.
52673         * doc/glibc-functions/rcmd_af.texi: Likewise.
52674         * doc/glibc-functions/removexattr.texi: Likewise.
52675         * doc/glibc-functions/res_init.texi: Likewise.
52676         * doc/glibc-functions/res_mkquery.texi: Likewise.
52677         * doc/glibc-functions/res_query.texi: Likewise.
52678         * doc/glibc-functions/res_querydomain.texi: Likewise.
52679         * doc/glibc-functions/res_send.texi: Likewise.
52680         * doc/glibc-functions/rresvport_af.texi: Likewise.
52681         * doc/glibc-functions/setxattr.texi: Likewise.
52682         * doc/glibc-functions/strcasestr.texi: Likewise.
52683
52684 2008-12-15  Bruno Haible  <bruno@clisp.org>
52685
52686         Fix compilation error on OSF/1 4.0.
52687         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
52688         <sys/time.h>, simply delegate to the system header.
52689         Reported by Daniel Richard G. <oss@teragram.com>.
52690
52691 2008-12-15  Bruno Haible  <bruno@clisp.org>
52692
52693         * doc/posix-functions/openat.texi: Mention the 'openat' module.
52694         * doc/posix-functions/fchmodat.texi: Likewise.
52695         * doc/posix-functions/fchownat.texi: Likewise.
52696         * doc/posix-functions/fdopendir.texi: Likewise.
52697         * doc/posix-functions/fstatat.texi: Likewise.
52698         * doc/posix-functions/mkdirat.texi: Likewise.
52699         * doc/posix-functions/unlinkat.texi: Likewise.
52700
52701 2008-12-14  Bruno Haible  <bruno@clisp.org>
52702
52703         Update doc for POSIX:2008.
52704         * doc/posix-functions/faccessat.texi: New file.
52705         * doc/posix-functions/fchmodat.texi: New file.
52706         * doc/posix-functions/fchownat.texi: New file.
52707         * doc/posix-functions/fdopendir.texi: New file.
52708         * doc/posix-functions/fstatat.texi: New file.
52709         * doc/posix-functions/futimens.texi: New file.
52710         * doc/posix-functions/linkat.texi: New file.
52711         * doc/posix-functions/mkdirat.texi: New file.
52712         * doc/posix-functions/mkfifoat.texi: New file.
52713         * doc/posix-functions/mknodat.texi: New file.
52714         * doc/posix-functions/open_wmemstream.texi: New file.
52715         * doc/posix-functions/openat.texi: New file.
52716         * doc/posix-functions/psiginfo.texi: New file.
52717         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
52718         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
52719         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
52720         * doc/posix-functions/readlinkat.texi: New file.
52721         * doc/posix-functions/renameat.texi: New file.
52722         * doc/posix-functions/strerror_l.texi: New file.
52723         * doc/posix-functions/symlinkat.texi: New file.
52724         * doc/posix-functions/unlinkat.texi: New file.
52725         * doc/posix-functions/utimensat.texi: New file.
52726         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52727
52728 2008-12-14  Bruno Haible  <bruno@clisp.org>
52729
52730         Update doc for POSIX:2008.
52731         * doc/posix-functions/alphasort.texi: Renamed from
52732         doc/glibc-functions/alphasort.texi.
52733         * doc/posix-functions/dirfd.texi: Renamed from
52734         doc/glibc-functions/dirfd.texi.
52735         * doc/posix-functions/dprintf.texi: Renamed from
52736         doc/glibc-functions/dprintf.texi.
52737         * doc/posix-functions/duplocale.texi: Renamed from
52738         doc/glibc-functions/duplocale.texi.
52739         * doc/posix-functions/fexecve.texi: Renamed from
52740         doc/glibc-functions/fexecve.texi.
52741         * doc/posix-functions/fmemopen.texi: Renamed from
52742         doc/glibc-functions/fmemopen.texi.
52743         * doc/posix-functions/freelocale.texi: Renamed from
52744         doc/glibc-functions/freelocale.texi.
52745         * doc/posix-functions/getdate_err.texi: Renamed from
52746         doc/glibc-functions/getdate_err.texi.
52747         * doc/posix-functions/isalnum_l.texi: Renamed from
52748         doc/glibc-functions/isalnum_l.texi.
52749         * doc/posix-functions/isalpha_l.texi: Renamed from
52750         doc/glibc-functions/isalpha_l.texi.
52751         * doc/posix-functions/isblank_l.texi: Renamed from
52752         doc/glibc-functions/isblank_l.texi.
52753         * doc/posix-functions/iscntrl_l.texi: Renamed from
52754         doc/glibc-functions/iscntrl_l.texi.
52755         * doc/posix-functions/isdigit_l.texi: Renamed from
52756         doc/glibc-functions/isdigit_l.texi.
52757         * doc/posix-functions/isgraph_l.texi: Renamed from
52758         doc/glibc-functions/isgraph_l.texi.
52759         * doc/posix-functions/islower_l.texi: Renamed from
52760         doc/glibc-functions/islower_l.texi.
52761         * doc/posix-functions/isprint_l.texi: Renamed from
52762         doc/glibc-functions/isprint_l.texi.
52763         * doc/posix-functions/ispunct_l.texi: Renamed from
52764         doc/glibc-functions/ispunct_l.texi.
52765         * doc/posix-functions/isspace_l.texi: Renamed from
52766         doc/glibc-functions/isspace_l.texi.
52767         * doc/posix-functions/isupper_l.texi: Renamed from
52768         doc/glibc-functions/isupper_l.texi.
52769         * doc/posix-functions/iswalnum_l.texi: Renamed from
52770         doc/glibc-functions/iswalnum_l.texi.
52771         * doc/posix-functions/iswalpha_l.texi: Renamed from
52772         doc/glibc-functions/iswalpha_l.texi.
52773         * doc/posix-functions/iswblank_l.texi: Renamed from
52774         doc/glibc-functions/iswblank_l.texi.
52775         * doc/posix-functions/iswcntrl_l.texi: Renamed from
52776         doc/glibc-functions/iswcntrl_l.texi.
52777         * doc/posix-functions/iswctype_l.texi: Renamed from
52778         doc/glibc-functions/iswctype_l.texi.
52779         * doc/posix-functions/iswdigit_l.texi: Renamed from
52780         doc/glibc-functions/iswdigit_l.texi.
52781         * doc/posix-functions/iswgraph_l.texi: Renamed from
52782         doc/glibc-functions/iswgraph_l.texi.
52783         * doc/posix-functions/iswlower_l.texi: Renamed from
52784         doc/glibc-functions/iswlower_l.texi.
52785         * doc/posix-functions/iswprint_l.texi: Renamed from
52786         doc/glibc-functions/iswprint_l.texi.
52787         * doc/posix-functions/iswpunct_l.texi: Renamed from
52788         doc/glibc-functions/iswpunct_l.texi.
52789         * doc/posix-functions/iswspace_l.texi: Renamed from
52790         doc/glibc-functions/iswspace_l.texi.
52791         * doc/posix-functions/iswupper_l.texi: Renamed from
52792         doc/glibc-functions/iswupper_l.texi.
52793         * doc/posix-functions/iswxdigit_l.texi: Renamed from
52794         doc/glibc-functions/iswxdigit_l.texi.
52795         * doc/posix-functions/isxdigit_l.texi: Renamed from
52796         doc/glibc-functions/isxdigit_l.texi.
52797         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
52798         doc/glibc-functions/mbsnrtowcs.texi.
52799         * doc/posix-functions/mkdtemp.texi: Renamed from
52800         doc/glibc-functions/mkdtemp.texi.
52801         * doc/posix-functions/newlocale.texi: Renamed from
52802         doc/glibc-functions/newlocale.texi.
52803         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
52804         doc/glibc-functions/nl_langinfo_l.texi.
52805         * doc/posix-functions/open_memstream.texi: Renamed from
52806         doc/glibc-functions/open_memstream.texi.
52807         * doc/posix-functions/opterr.texi: Renamed from
52808         doc/glibc-functions/opterr.texi.
52809         * doc/posix-functions/optind.texi: Renamed from
52810         doc/glibc-functions/optind.texi.
52811         * doc/posix-functions/optopt.texi: Renamed from
52812         doc/glibc-functions/optopt.texi.
52813         * doc/posix-functions/psignal.texi: Renamed from
52814         doc/glibc-functions/psignal.texi.
52815         * doc/posix-functions/scandir.texi: Renamed from
52816         doc/glibc-functions/scandir.texi.
52817         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
52818         doc/glibc-functions/sched_get_priority_min.texi.
52819         * doc/posix-functions/signgam.texi: Renamed from
52820         doc/glibc-functions/signgam.texi.
52821         * doc/posix-functions/stpcpy.texi: Renamed from
52822         doc/glibc-functions/stpcpy.texi.
52823         * doc/posix-functions/stpncpy.texi: Renamed from
52824         doc/glibc-functions/stpncpy.texi.
52825         * doc/posix-functions/strcasecmp_l.texi: Renamed from
52826         doc/glibc-functions/strcasecmp_l.texi.
52827         * doc/posix-functions/strcoll_l.texi: Renamed from
52828         doc/glibc-functions/strcoll_l.texi.
52829         * doc/posix-functions/strfmon_l.texi: Renamed from
52830         doc/glibc-functions/strfmon_l.texi.
52831         * doc/posix-functions/strftime_l.texi: Renamed from
52832         doc/glibc-functions/strftime_l.texi.
52833         * doc/posix-functions/strncasecmp_l.texi: Renamed from
52834         doc/glibc-functions/strncasecmp_l.texi.
52835         * doc/posix-functions/strndup.texi: Renamed from
52836         doc/glibc-functions/strndup.texi.
52837         * doc/posix-functions/strnlen.texi: Renamed from
52838         doc/glibc-functions/strnlen.texi.
52839         * doc/posix-functions/strsignal.texi: Renamed from
52840         doc/glibc-functions/strsignal.texi.
52841         * doc/posix-functions/strxfrm_l.texi: Renamed from
52842         doc/glibc-functions/strxfrm_l.texi.
52843         * doc/posix-functions/timer_gettime.texi: Renamed from
52844         doc/glibc-functions/timer_gettime.texi.
52845         * doc/posix-functions/tolower_l.texi: Renamed from
52846         doc/glibc-functions/tolower_l.texi.
52847         * doc/posix-functions/toupper_l.texi: Renamed from
52848         doc/glibc-functions/toupper_l.texi.
52849         * doc/posix-functions/towctrans_l.texi: Renamed from
52850         doc/glibc-functions/towctrans_l.texi.
52851         * doc/posix-functions/towlower_l.texi: Renamed from
52852         doc/glibc-functions/towlower_l.texi.
52853         * doc/posix-functions/towupper_l.texi: Renamed from
52854         doc/glibc-functions/towupper_l.texi.
52855         * doc/posix-functions/uselocale.texi: Renamed from
52856         doc/glibc-functions/uselocale.texi.
52857         * doc/posix-functions/vdprintf.texi: Renamed from
52858         doc/glibc-functions/vdprintf.texi.
52859         * doc/posix-functions/wcpcpy.texi:
52860         Renamed from doc/glibc-functions/wcpcpy.texi.
52861         * doc/posix-functions/wcpncpy.texi: Renamed from
52862         doc/glibc-functions/wcpncpy.texi.
52863         * doc/posix-functions/wcscasecmp.texi: Renamed from
52864         doc/glibc-functions/wcscasecmp.texi.
52865         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
52866         doc/glibc-functions/wcscasecmp_l.texi.
52867         * doc/posix-functions/wcscoll_l.texi: Renamed from
52868         doc/glibc-functions/wcscoll_l.texi.
52869         * doc/posix-functions/wcsdup.texi: Renamed from
52870         doc/glibc-functions/wcsdup.texi.
52871         * doc/posix-functions/wcsncasecmp.texi: Renamed from
52872         doc/glibc-functions/wcsncasecmp.texi.
52873         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
52874         doc/glibc-functions/wcsncasecmp_l.texi.
52875         * doc/posix-functions/wcsnlen.texi: Renamed from
52876         doc/glibc-functions/wcsnlen.texi.
52877         * doc/posix-functions/wcsnrtombs.texi: Renamed from
52878         doc/glibc-functions/wcsnrtombs.texi.
52879         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
52880         doc/glibc-functions/wcsxfrm_l.texi.
52881         * doc/posix-functions/wctrans_l.texi: Renamed from
52882         doc/glibc-functions/wctrans_l.texi.
52883         * doc/posix-functions/wctype_l.texi: Renamed from
52884         doc/glibc-functions/wctype_l.texi.
52885         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52886         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
52887         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
52888         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
52889         these subsections.
52890         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
52891         Remove sections.
52892
52893 2008-12-14  Bruno Haible  <bruno@clisp.org>
52894
52895         Update doc for POSIX:2008.
52896         * doc/posix-functions/*.texi: Update URL of POSIX specification.
52897
52898 2008-12-14  Bruno Haible  <bruno@clisp.org>
52899
52900         Update doc for POSIX:2008.
52901         * doc/pastposix-functions/bcmp.texi: Renamed from
52902         doc/posix-functions/bcmp.texi.
52903         * doc/pastposix-functions/bcopy.texi: Renamed from
52904         doc/posix-functions/bcopy.texi.
52905         * doc/pastposix-functions/bsd_signal.texi: Renamed from
52906         doc/posix-functions/bsd_signal.texi.
52907         * doc/pastposix-functions/bzero.texi: Renamed from
52908         doc/posix-functions/bzero.texi.
52909         * doc/pastposix-functions/ecvt.texi: Renamed from
52910         doc/posix-functions/ecvt.texi.
52911         * doc/pastposix-functions/fcvt.texi: Renamed from
52912         doc/posix-functions/fcvt.texi.
52913         * doc/pastposix-functions/ftime.texi: Renamed from
52914         doc/posix-functions/ftime.texi.
52915         * doc/pastposix-functions/gcvt.texi: Renamed from
52916         doc/posix-functions/gcvt.texi.
52917         * doc/pastposix-functions/getcontext.texi: Renamed from
52918         doc/posix-functions/getcontext.texi.
52919         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
52920         doc/posix-functions/gethostbyaddr.texi.
52921         * doc/pastposix-functions/gethostbyname.texi: Renamed from
52922         doc/posix-functions/gethostbyname.texi.
52923         * doc/pastposix-functions/getwd.texi: Renamed from
52924         doc/posix-functions/getwd.texi.
52925         * doc/pastposix-functions/h_errno.texi: Renamed from
52926         doc/posix-functions/h_errno.texi.
52927         * doc/pastposix-functions/index.texi: Renamed from
52928         doc/posix-functions/index.texi.
52929         * doc/pastposix-functions/makecontext.texi: Renamed from
52930         doc/posix-functions/makecontext.texi.
52931         * doc/pastposix-functions/mktemp.texi: Renamed from
52932         doc/posix-functions/mktemp.texi.
52933         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
52934         doc/posix-functions/pthread_attr_getstackaddr.texi.
52935         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
52936         doc/posix-functions/pthread_attr_setstackaddr.texi.
52937         * doc/pastposix-functions/rindex.texi: Renamed from
52938         doc/posix-functions/rindex.texi.
52939         * doc/pastposix-functions/scalb.texi: Renamed from
52940         doc/posix-functions/scalb.texi.
52941         * doc/pastposix-functions/setcontext.texi: Renamed from
52942         doc/posix-functions/setcontext.texi.
52943         * doc/pastposix-functions/swapcontext.texi: Renamed from
52944         doc/posix-functions/swapcontext.texi.
52945         * doc/pastposix-functions/ualarm.texi: Renamed from
52946         doc/posix-functions/ualarm.texi.
52947         * doc/pastposix-functions/usleep.texi: Renamed from
52948         doc/posix-functions/usleep.texi.
52949         * doc/pastposix-functions/vfork.texi: Renamed from
52950         doc/posix-functions/vfork.texi.
52951         * doc/pastposix-functions/wcswcs.texi: Renamed from
52952         doc/posix-functions/wcswcs.texi.
52953         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
52954         (Function Substitutes): Update.
52955
52956 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52957
52958         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
52959         m4/strerror.m4.
52960
52961 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52962             Bruno Haible  <bruno@clisp.org>
52963
52964         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
52965
52966 2008-12-13  Bruno Haible  <bruno@clisp.org>
52967
52968         * modules/strtoull (Depends-on): Remove unistd.
52969
52970 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52971
52972         * modules/strtoull (Depends-on): Add stdlib.
52973
52974 2008-12-11  Simon Josefsson  <simon@josefsson.org>
52975
52976         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
52977
52978 2008-12-10  Jim Meyering  <meyering@redhat.com>
52979
52980         gl_ASSERT: don't say assertions are disabled when they're not
52981         * m4/assert.m4 (gl_ASSERT): Do not make configure report
52982         "checking whether to enable assertions... no", when they are in
52983         fact enabled.  This is solely a bug in the output of configure.
52984         In spite of saying "no", NDEBUG was not defined in that case.
52985         Also, as noted by Eric Blake, leave assertions enabled upon
52986         --enable-assert=INVALID.
52987
52988 2008-12-10  Bruno Haible  <bruno@clisp.org>
52989
52990         Change MODULES.html to refer to POSIX:2008 where possible.
52991         * MODULES.html.sh (POSIX2008_URL): New variable.
52992         (posix_headers): Remove sys/timeb, ucontext.
52993         (posix2001_headers): New variable.
52994         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
52995         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
52996         index, makecontext, mktemp, pthread_attr_getstackaddr,
52997         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
52998         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
52999         (posix2001_functions): New variable.
53000         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
53001         otherwise.
53002
53003 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53004
53005         add missing include to parse-duration.c
53006         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
53007         * modules/parse-duration (Depends-on): Add xalloc.
53008
53009         fix sed script reading maint.mk
53010         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
53011         (syntax-check-rules): Use it.
53012
53013 2008-12-09  Bruno Haible  <bruno@clisp.org>
53014
53015         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
53016         MacOS X 10.4/PowerPC.
53017         Reported by Simon Josefsson.
53018
53019 2008-12-08  Jim Meyering  <meyering@redhat.com>
53020
53021         work around mingw's lack of some S_IF definitions
53022         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
53023         Reported by Simon Josefsson.
53024
53025 2008-12-08  Bruno Haible  <bruno@clisp.org>
53026
53027         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
53028         applied to variables. Needed on MacOS X 10.4/PowerPC.
53029         Reported by Simon Josefsson.
53030
53031 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
53032         and Eric Blake  <ebb9@byu.net>
53033
53034         assert: honor --enable-assert
53035         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
53036         order to honor --enable-assert, rather than treating it as a
53037         synonym for --disable-assert.
53038
53039 2008-12-08  Jim Meyering  <meyering@redhat.com>
53040
53041         * lib/posixtm.c: Remove now-useless declaration of mktime.
53042
53043         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
53044
53045 2008-12-07  Bruno Haible  <bruno@clisp.org>
53046
53047         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
53048         test_once): Mark functions as static.
53049         * tests/test-tls.c (test_tls): Likewise.
53050
53051 2008-12-07  Bruno Haible  <bruno@clisp.org>
53052
53053         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
53054         iconv_register_autodetect.
53055
53056 2008-12-07  Jim Meyering  <meyering@redhat.com>
53057
53058         posixtm.c: avoid a warning
53059         * lib/posixtm.c (posixtime): Don't initialize tm0.
53060         It's no longer needed to placate gcc4's -Wuninitialized,
53061         and the attempt to placate would elicit a new warning.
53062
53063         unicodeio.c: mark unused parameters
53064         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53065         (fallback_failure_callback): Likewise.
53066
53067 2008-12-07  Bruno Haible  <bruno@clisp.org>
53068
53069         * gnulib-tool (func_create_testdir): When building the tests
53070         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
53071         Reported by Simon Josefsson.
53072
53073 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53074
53075         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
53076
53077 2008-12-06  Bruno Haible  <bruno@clisp.org>
53078
53079         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
53080         Suggested by Eric Blake.
53081
53082 2008-12-06  Bruno Haible  <bruno@clisp.org>
53083
53084         Fix a c-stack test failure on MacOS X.
53085         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
53086         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
53087         handler for SIGBUS as well.
53088         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
53089         install a signal handler for SIGBUS as well.
53090         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
53091
53092 2008-12-06  Bruno Haible  <bruno@clisp.org>
53093
53094         Advocacy documentation.
53095         * doc/gnulib-intro.texi (Benefits): New section.
53096         * doc/gnulib.texi: Update.
53097
53098 2008-12-06  Bruno Haible  <bruno@clisp.org>
53099
53100         Document the 'manywarnings' module.
53101         * doc/manywarnings.texi: New file.
53102         * doc/gnulib.texi: Include it.
53103
53104 2008-12-05  Eric Blake  <ebb9@byu.net>
53105
53106         tests: silence some gcc warnings
53107         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
53108         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
53109         type mismatches.
53110
53111 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53112             Bruno Haible  <bruno@clisp.org>
53113
53114         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
53115
53116 2008-11-29  Jim Meyering  <meyering@redhat.com>
53117
53118         unicodeio.c: mark unused parameters
53119         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53120         (fallback_failure_callback): Likewise.
53121
53122         fts: fix a thinko
53123         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
53124         (set_stat_type): Return S_IF*-valued "type" directly.
53125         Prompted by James Youngman's spotting a related bug.
53126         Confirmed by further testing through find.
53127
53128         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
53129         * lib/fts.c (D_TYPE): Define.
53130         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
53131         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
53132         (s_ifmt_shift_bits): New function.
53133         (set_stat_type): New function.
53134         (fts_build): When not calling fts_stat, call set_stat_type
53135         to propagate dirent.d_type info to fts_read caller.
53136         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
53137         fts_statp->st_mode type information may be valid.
53138
53139 2008-11-28  Simon Josefsson  <simon@josefsson.org>
53140
53141         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
53142         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
53143         <sds@gnu.org>.
53144
53145 2008-11-20  Bruno Haible  <bruno@clisp.org>
53146
53147         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
53148         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
53149         INCLUDE_NEXT.
53150         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
53151         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
53152         * modules/math (Makefile.am): Substitute
53153         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
53154         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53155
53156 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
53157             Bruno Haible  <bruno@clisp.org>
53158
53159         * lib/stdint.in.h: Define all type macros so that their expansion is
53160         a single typedef'ed token. Fixes a compilation failure in Boost which
53161         does "using ::int8_t;".
53162
53163 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53164
53165         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
53166         gl_MANYWARN_ALL_GCC.
53167         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
53168         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
53169         * modules/manywarnings: New file.
53170         * MODULES.html.sh: Mention manywarnings module.
53171
53172 2008-11-18  Bruno Haible  <bruno@clisp.org>
53173
53174         * doc/gnulib-tool.texi (Unit tests): New section.
53175
53176 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53177
53178         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
53179         paths like 'lib/po/foo.po'.
53180
53181 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53182
53183         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
53184         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
53185
53186 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53187
53188         * m4/warnings.m4: Use CPPFLAGS to really check whether the
53189         parameter works.
53190
53191 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53192
53193         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
53194
53195 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53196
53197         * modules/parse-duration-tests: New file.
53198         * tests/test-parse-duration.sh: New file.
53199         * tests/test-parse-duration.c: New file.
53200
53201         New module 'parse-duration'.
53202         * lib/parse-duration.h: New file.
53203         * lib/parse-duration.c: New file.
53204         * modules/parse-duration: New file.
53205
53206 2008-11-17  Bruno Haible  <bruno@clisp.org>
53207
53208         * tests/test-select-out.sh: Comment out the first pipe test.
53209         Reported by Simon Josefsson.
53210
53211 2008-11-17  Bruno Haible  <bruno@clisp.org>
53212
53213         * modules/getaddrinfo (Depends-on): Add servent, hostent.
53214         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
53215         gl_HOSTENT.
53216
53217 2008-11-17  Bruno Haible  <bruno@clisp.org>
53218
53219         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
53220         -lnetwork and -lnet. Needed for Haiku and BeOS.
53221
53222 2008-11-16  Bruno Haible  <bruno@clisp.org>
53223
53224         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
53225
53226 2008-11-16  Bruno Haible  <bruno@clisp.org>
53227
53228         Avoid test failure on Haiku.
53229         * tests/test-fsync.c: Include <errno.h>.
53230         (main): Don't require that fsync (0) fails.
53231
53232 2008-11-15  Bruno Haible  <bruno@clisp.org>
53233
53234         New module 'hostent'.
53235         * modules/hostent: New file.
53236         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
53237
53238 2008-11-15  Bruno Haible  <bruno@clisp.org>
53239
53240         New module 'servent'.
53241         * modules/servent: New file.
53242         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
53243
53244 2008-11-15  Bruno Haible  <bruno@clisp.org>
53245
53246         Avoid generating same test program with two different rules.
53247         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
53248         test-frexp to test-frexp-nolibm.
53249         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
53250         test-frexpl to test-frexpl-nolibm.
53251
53252 2008-11-15  Bruno Haible  <bruno@clisp.org>
53253
53254         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
53255         $(FREXPL_LIBM).
53256
53257 2008-11-15  Bruno Haible  <bruno@clisp.org>
53258
53259         * lib/netdb.in.h: Activate the definitions also when the system's
53260         <netdb.h> has 'struct addrinfo'.
53261         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
53262         EAI_OVERFLOW or AI_NUMERICSERV.
53263         * doc/posix-headers/netdb.texi: Document the problem.
53264
53265 2008-11-15  Bruno Haible  <bruno@clisp.org>
53266
53267         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
53268
53269         Make the 'sched' module work on platforms where <sched.h> exists but
53270         is incomplete (such as Haiku).
53271         * lib/sched.in.h; Include the system's <sched.h> if it exists.
53272         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
53273         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
53274         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
53275         HAVE_STRUCT_SCHED_PARAM.
53276         * modules/sched (Depends-on): Add include_next.
53277         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
53278         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
53279         * doc/posix-headers/sched.texi: Document the issue.
53280
53281 2008-11-13  Jim Meyering  <meyering@redhat.com>
53282
53283         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
53284         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
53285         test would fail due to the difference in the Report bugs to ...
53286         line.  The expected address is empty, "<>", while the actual
53287         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
53288
53289 2008-11-12  Bruno Haible  <bruno@clisp.org>
53290
53291         lstat: don't compile lstat.c on systems lacking lstat
53292         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
53293         which don't have lstat; this is handled by lib/sys_stat.in.h already.
53294         Reported by Daniel P. Berrange via Jim Meyering.
53295
53296 2008-11-12  Jim Meyering  <meyering@redhat.com>
53297
53298         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
53299
53300 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53301
53302         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
53303         instead.
53304
53305 2008-11-12  Bruno Haible  <bruno@clisp.org>
53306
53307         * lib/unicodeio.c: Include unistr.h.
53308         (utf8_wctomb): Remove function.
53309         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
53310
53311 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53312
53313         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
53314         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
53315         <bruno@clisp.org>.
53316         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
53317
53318 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53319
53320         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
53321         * doc/gnulib.texi: Add section for warnings.
53322
53323 2008-11-11  Bruno Haible  <bruno@clisp.org>
53324
53325         * lib/sockets.h: Add a comment.
53326
53327 2008-11-11  Karl Berry  <karl@gnu.org>
53328
53329         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
53330
53331 2008-11-11  Eric Blake  <ebb9@byu.net>
53332
53333         fdl.texi: avoid git symlinks
53334         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
53335
53336 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53337
53338         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
53339
53340 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53341
53342         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
53343         (gl_WARN_ADD): Substitute $2 if literal.
53344
53345 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53346
53347         * m4/warning.m4: Remove.
53348
53349 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53350
53351         * m4/warnings.m4: Almost complete rewrite. :-)
53352
53353 2008-11-10  Simon Josefsson  <simon@josefsson.org>
53354
53355         * modules/warnings: New module.
53356         * m4/warnings.m4: New file.
53357         * MODULES.html.sh: Mention warnings module.
53358         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
53359         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53360
53361 2008-11-10  Eric Blake  <ebb9@byu.net>
53362
53363         fdl.texi: make a symlink to the latest version
53364         * doc/standards.texi: Revert today's earlier change.
53365         * doc/fdl-1.2.texi: Rename from old fdl.texi...
53366         * doc/fdl.texi: ...and replace this with a symlink to the newer
53367         fdl-1.3.texi.
53368
53369 2008-11-10  Bruno Haible  <bruno@clisp.org>
53370
53371         * tests/test-select-fd.c (main): Accept the result file name as fourth
53372         argument.
53373         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
53374         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
53375
53376 2008-11-10  Bruno Haible  <bruno@clisp.org>
53377
53378         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
53379         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
53380         as autoconf-substituted macros.
53381         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
53382         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
53383         gl_NETDB_H_DEFAULTS. Set these variables.
53384         * modules/netdb (Makefile.am): Substitute these variables.
53385
53386 2008-11-10  Eric Blake  <ebb9@byu.net>
53387
53388         standards.texi: include correct file for FDL 1.3
53389         * doc/standards.texi (GNU Free Documentation License): Change
53390         include file to pull in FDL 1.3, not 1.2.
53391
53392         fdl.texi: revert accidental change to license
53393         * doc/fdl.texi: This is FDL 1.2, not 1.3.
53394
53395 2008-11-10  Bruno Haible  <bruno@clisp.org>
53396
53397         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
53398         cross-compiling guesses also when the native compile gives no result.
53399
53400 2008-11-10  Bruno Haible  <bruno@clisp.org>
53401
53402         * lib/spawni.c (__spawni): Force variable into the stack.
53403
53404 2008-11-10  Bruno Haible  <bruno@clisp.org>
53405
53406         Add support for Haiku.
53407         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
53408         glibc and BeOS, but also on Haiku.
53409         * lib/fpurge.c (fpurge): Likewise.
53410         * lib/freadable.c (freadable): Likewise.
53411         * lib/freadahead.c (freadahead): Likewise.
53412         * lib/freading.c (freading): Likewise.
53413         * lib/freadptr.c (freadptr): Likewise.
53414         * lib/freadseek.c (freadptrinc): Likewise.
53415         * lib/fseeko.c (rpl_fseeko): Likewise.
53416         * lib/fseterr.c (fseterr): Likewise.
53417         * lib/fwritable.c (fwritable): Likewise.
53418         * lib/fwriting.c (fwriting): Likewise.
53419         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
53420
53421 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53422
53423         * lib/config.charset: Treat Haiku like BeOS.
53424
53425 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53426
53427         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
53428         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
53429
53430 2008-11-08  Bruno Haible  <bruno@clisp.org>
53431
53432         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
53433         AC_CACHE_CHECK.
53434
53435 2008-11-08  Bruno Haible  <bruno@clisp.org>
53436
53437         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
53438
53439 2008-11-08  Bruno Haible  <bruno@clisp.org>
53440
53441         * tests/test-select-fd.c: New file.
53442         * tests/test-select-in.sh: New file.
53443         * tests/test-select-out.sh: New file.
53444         * tests/test-select-stdin.c: New file.
53445         * modules/select-tests (Files): Add the new files.
53446         (Depends-on): Add gettimeofday.
53447         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
53448         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
53449         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
53450
53451 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
53452             Bruno Haible  <bruno@clisp.org>
53453
53454         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
53455
53456 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
53457
53458         * build-aux/pmccabe2html: Added support for C++ source files.
53459
53460 2008-11-05  Ben Pfaff  <blp@gnu.org>
53461
53462         Fix lib/close.c build on Windows.
53463         * modules/close (Files): Add lib/w32sock.h.
53464
53465 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
53466
53467         Accept Bison's NEWS format.
53468         * build-aux/announce-gen (print_news_deltas): Tweak
53469         $re_prefix.
53470
53471 2008-11-04  Bruno Haible  <bruno@clisp.org>
53472
53473         * modules/random_r (Maintainer): Add glibc.
53474
53475 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53476
53477         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
53478         by karl@freefriends.org (Karl Berry).
53479         * doc/alloca.texi: Likewise.
53480         * doc/c-ctype.texi: Likewise.
53481         * doc/c-strcase.texi: Likewise.
53482         * doc/c-strcaseeq.texi: Likewise.
53483         * doc/c-strcasestr.texi: Likewise.
53484         * doc/c-strstr.texi: Likewise.
53485         * doc/c-strtod.texi: Likewise.
53486         * doc/c-strtold.texi: Likewise.
53487         * doc/ctime.texi: Likewise.
53488         * doc/error.texi: Likewise.
53489         * doc/fdl.texi: Likewise.
53490         * doc/gcd.texi: Likewise.
53491         * doc/getdate.texi: Likewise.
53492         * doc/gnulib-intro.texi: Likewise.
53493         * doc/gnulib-tool.texi: Likewise.
53494         * doc/gnulib.texi: Likewise.
53495         * doc/inet_ntoa.texi: Likewise.
53496         * doc/maintain.texi: Likewise.
53497         * doc/make-stds.texi: Likewise.
53498         * doc/quote.texi: Likewise.
53499         * doc/regexprops-generic.texi: Likewise.
53500         * doc/standards.texi: Likewise.
53501         * doc/verify.texi: Likewise.
53502         * doc/visibility.texi: Likewise.
53503         * doc/gnulib.texi (GNU Free Documentation License): Include
53504         fdl-1.3.texi instead of fdl.texi.
53505
53506 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53507
53508         * doc/fdl-1.3.texi: New file, from
53509         <http://www.gnu.org/licenses/fdl-1.3.texi>.
53510         * modules/fdl-1.3: Add.
53511         * MODULES.html.sh: Add fdl-1.3.
53512
53513 2008-11-03  Bruno Haible  <bruno@clisp.org>
53514
53515         Make determination of absolute name of header file work with AIX xlc.
53516         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
53517         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
53518         preprocessing.
53519         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53520         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53521
53522 2008-11-03  Simon Josefsson  <simon@josefsson.org>
53523
53524         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
53525         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
53526         <ludo@gnu.org>.
53527
53528 2008-11-02  Bruno Haible  <bruno@clisp.org>
53529
53530         Mark 'strpbrk' obsolete.
53531         * modules/strpbrk (Status, Notice): New sections.
53532         * modules/strtok_r (Depends-on): Add strpbrk.
53533
53534 2008-11-02  Bruno Haible  <bruno@clisp.org>
53535
53536         Mark 'strdup' obsolete.
53537         * modules/strdup (Status, Notice): New sections.
53538         * modules/findprog (Depends-on): Add strdup.
53539         * modules/getaddrinfo (Depends-on): Likewise.
53540         * modules/localename (Depends-on): Likewise.
53541         * modules/relocatable-lib (Depends-on): Likewise.
53542         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
53543         * modules/relocatable-prog (Depends-on): Likewise.
53544         * modules/trim (Depends-on): Likewise.
53545         * modules/unictype/gen-ctype (Depends-on): Likewise.
53546         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53547
53548 2008-11-02  Bruno Haible  <bruno@clisp.org>
53549
53550         Mark 'strcspn' obsolete.
53551         * modules/strcspn (Status, Notice): New sections.
53552
53553 2008-11-02  Bruno Haible  <bruno@clisp.org>
53554
53555         Mark 'rmdir' obsolete.
53556         * modules/rmdir (Status, Notice): New sections.
53557         * modules/clean-temp (Depends-on): Add rmdir.
53558         * modules/openat (Depends-on): Likewise.
53559
53560 2008-11-02  Bruno Haible  <bruno@clisp.org>
53561
53562         Mark 'raise' obsolete.
53563         * modules/raise (Status, Notice): New sections.
53564         (Include): Specify <signal.h>.
53565         * modules/stdio (Depends-on): Add raise.
53566         * modules/write (Depends-on): Likewise.
53567
53568 2008-11-02  Bruno Haible  <bruno@clisp.org>
53569
53570         Mark 'memset' obsolete.
53571         * modules/memset (Status, Notice): New sections.
53572
53573 2008-11-02  Bruno Haible  <bruno@clisp.org>
53574
53575         Mark 'memmove' obsolete.
53576         * modules/memmove (Status, Notice): New sections.
53577         * modules/argp (Depends-on): Add memmove.
53578         * modules/argz (Depends-on): Likewise.
53579         * modules/canonicalize (Depends-on): Likewise.
53580         * modules/canonicalize-lgpl (Depends-on): Likewise.
53581         * modules/fts (Depends-on): Likewise.
53582         * modules/getcwd (Depends-on): Likewise.
53583         * modules/human (Depends-on): Likewise.
53584         * modules/regex (Depends-on): Likewise.
53585         * modules/striconveh (Depends-on): Likewise.
53586         * modules/trim (Depends-on): Likewise.
53587         * modules/unistr/u8-move (Depends-on): Likewise.
53588         * modules/unistr/u16-move (Depends-on): Likewise.
53589         * modules/unistr/u32-move (Depends-on): Likewise.
53590
53591 2008-11-02  Bruno Haible  <bruno@clisp.org>
53592
53593         Mark 'memcpy' obsolete.
53594         * modules/memcpy (Status, Notice): New sections.
53595
53596 2008-11-02  Bruno Haible  <bruno@clisp.org>
53597
53598         Mark 'memcmp' obsolete.
53599         * modules/memcmp (Status, Notice): New sections.
53600         * modules/argmatch (Depends-on): Add memchr.
53601         * modules/backupfile (Depends-on): Likewise.
53602         * modules/c-strcasestr (Depends-on): Likewise.
53603         * modules/crypto/des (Depends-on): Likewise.
53604         * modules/csharpcomp (Depends-on): Likewise.
53605         * modules/fnmatch (Depends-on): Likewise.
53606         * modules/git-merge-changelog (Depends-on): Likewise.
53607         * modules/isnand (Depends-on): Likewise.
53608         * modules/isnand-nolibm (Depends-on): Likewise.
53609         * modules/isnanf (Depends-on): Likewise.
53610         * modules/isnanf-nolibm (Depends-on): Likewise.
53611         * modules/isnanl (Depends-on): Likewise.
53612         * modules/isnanl-nolibm (Depends-on): Likewise.
53613         * modules/mbchar (Depends-on): Likewise.
53614         * modules/memcoll (Depends-on): Likewise.
53615         * modules/quotearg (Depends-on): Likewise.
53616         * modules/regex (Depends-on): Likewise.
53617         * modules/relocatable-prog (Depends-on): Likewise.
53618         * modules/same (Depends-on): Likewise.
53619         * modules/signbit (Depends-on): Likewise.
53620         * modules/strcasestr-simple (Depends-on): Likewise.
53621         * modules/unictype/gen-ctype (Depends-on): Likewise.
53622         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53623         * modules/uniname/uniname (Depends-on): Likewise.
53624         * modules/unistr/u8-cmp (Depends-on): Likewise.
53625
53626 2008-11-02  Bruno Haible  <bruno@clisp.org>
53627
53628         Mark 'memchr' obsolete.
53629         * modules/memchr (Status, Notice): New sections.
53630         * modules/argp (Depends-on): Add memchr.
53631         * modules/base64 (Depends-on): Likewise.
53632         * modules/c-strcasestr (Depends-on): Likewise.
53633         * modules/chdir-long (Depends-on): Likewise.
53634         * modules/fnmatch (Depends-on): Likewise.
53635         * modules/getsubopt (Depends-on): Likewise.
53636         * modules/git-merge-changelog (Depends-on): Likewise.
53637         * modules/glob (Depends-on): Likewise.
53638         * modules/strcasestr-simple (Depends-on): Likewise.
53639         * modules/strnlen (Depends-on): Likewise.
53640
53641 2008-11-02  Bruno Haible  <bruno@clisp.org>
53642
53643         Mark 'atexit' obsolete.
53644         * modules/atexit (Status, Notice): New sections.
53645         * modules/chdir-long (Depends-on): Add atexit.
53646         * modules/wait-process (Depends-on): Likewise.
53647
53648 2008-11-02  Bruno Haible  <bruno@clisp.org>
53649
53650         * gnulib-tool: New option --with-obsolete.
53651         (func_usage): Document it.
53652         (func_modules_transitive_closure): Drop obsolete dependencies if
53653         incobsolete is not true.
53654         (func_import): Read and save the incobsolete variable to the cache.
53655
53656 2008-11-02  Bruno Haible  <bruno@clisp.org>
53657
53658         * modules/TEMPLATE-EXTENDED: New field 'Status'.
53659         * gnulib-tool: New option --extract-status.
53660         (func_usage): Document it.
53661         (sed_extract_prog): Recognize it.
53662         (func_get_status): New function.
53663
53664 2008-10-30  Simon Josefsson  <simon@josefsson.org>
53665
53666         * modules/sockets (License): Change from LGPL to LGPLv2+.
53667
53668 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53669
53670         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
53671
53672 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53673
53674         * MODULES.html.sh (Support for systems lacking POSIX:2001):
53675         Mention times and sys_times.
53676         * modules/sys_times, modules/sys_times-tests: New modules.
53677         * modules/times, modules/times-tests: Likewise
53678         * m4/sys_times_h.m4: New file.
53679         * lib/sys_times.in.h: Likewise
53680         * lib/times.c: Likewise.
53681         * tests/test-sys_times.c: Likewise.
53682         * tests/test-times.c: Likewise.
53683         * doc/posix-headers/sys_times.texi: Update.
53684         * doc/posix-functions/times.texi: Update.
53685
53686 2008-10-28  Jim Meyering  <meyering@redhat.com>
53687
53688         * modules/tempname (Depends-on): Add lstat.
53689
53690         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
53691
53692 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53693
53694         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
53695         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
53696         using idiom used elsewhere in gnulib.
53697
53698 2008-10-27  Jim Meyering  <meyering@redhat.com>
53699
53700         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
53701
53702 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53703
53704         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
53705         TESTS_ENVIRONMENT, for shell scripts that needs to call built
53706         programs.
53707         * tests/test-argp-2.sh: Use $EXEEXT when needed.
53708
53709 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53710
53711         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
53712
53713 2008-10-27  Bruno Haible  <bruno@clisp.org>
53714
53715         * tests/test-lstat.c: Include <stdio.h>.
53716
53717 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53718
53719         * modules/lstat-tests: New module.
53720         * tests/test-lstat.c: New file.
53721
53722 2008-10-26  Jim Meyering  <meyering@redhat.com>
53723
53724         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
53725
53726 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53727             Bruno Haible  <bruno@clisp.org>
53728
53729         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
53730         * modules/configmake (Include): Add a note that the include must come
53731         after all system headers.
53732         * lib/javaversion.c: Include configmake.h after all other includes.
53733
53734 2008-10-26  Bruno Haible  <bruno@clisp.org>
53735
53736         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
53737         HAVE_STRUCT_RANDOM_DATA to 1.
53738         (gl_STDLIB_H): Simplify.
53739
53740 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53741
53742         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
53743         substitute HAVE_STRUCT_RANDOM_DATA.
53744         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
53745         random_data.
53746         * modules/stdlib (Makefile.am): Substitute
53747         HAVE_STRUCT_RANDOM_DATA.
53748
53749 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53750
53751         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
53752         * doc/gnulib-intro.texi (Copyright): Likewise.
53753
53754 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53755
53756         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
53757         findings.
53758
53759 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
53760             Bruno Haible  <bruno@clisp.org>
53761
53762         * lib/unistd.in.h: Include <winsock2.h>.
53763         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
53764         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
53765         Provide dummy declarations.
53766         (gethostname): Override.
53767         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
53768         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
53769         gl_PREREQ_SYS_H_WINSOCK2.
53770         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
53771         * doc/posix-functions/gethostname.texi: More details.
53772
53773 2008-10-25  Bruno Haible  <bruno@clisp.org>
53774
53775         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
53776         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
53777         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
53778
53779         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
53780         here ...
53781         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
53782         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
53783         gl_UNISTD_H_DEFAULTS.
53784
53785 2008-10-25  Eric Blake  <ebb9@byu.net>
53786
53787         signbit: avoid spurious compiler failure
53788         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
53789         declarations inside function.
53790
53791 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53792             Bruno Haible  <bruno@clisp.org>
53793
53794         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
53795         * modules/random_r (Depends-on): Add stdint.
53796
53797 2008-10-24  Bruno Haible  <bruno@clisp.org>
53798
53799         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
53800         Eggert.
53801         * modules/strerror (License): Likewise.
53802
53803 2008-10-24  Jim Meyering  <meyering@redhat.com>
53804
53805         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
53806         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
53807
53808 2008-10-24  Eric Blake  <ebb9@byu.net>
53809
53810         getgroups: fix compilation when getgroups is available
53811         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
53812         but with <config.h> override of getgroups disabled.
53813
53814 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53815
53816         * doc/gnulib.texi (Header files): Add note about C++ problems.
53817         Explained by Bruno Haible <bruno@clisp.org>.
53818
53819 2008-10-23  Bruno Haible  <bruno@clisp.org>
53820
53821         Define a dummy SA_NODEFER macro on Interix.
53822         * lib/signal.in.h (SA_NODEFER): Define fallback.
53823         Reported by Aleksey Cheusov <cheusov@tut.by> via
53824         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
53825
53826 2008-10-23  Bruno Haible  <bruno@clisp.org>
53827
53828         * modules/freadahead (License): Change to LGPLv2+.
53829         Suggested by Simon Josefsson.
53830
53831 2008-10-23  Jim Meyering  <meyering@redhat.com>
53832
53833         random_r: new module
53834         * modules/random_r: New file.
53835         * m4/random_r.m4: New file.
53836         * lib/random_r.c: New file, from glibc.
53837         * modules/random_r-tests: New file.
53838         * tests/test-random_r.c: New file.
53839         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
53840          Declare.
53841         (RAND_MAX): Define.
53842         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
53843         * modules/stdlib: Substitute them, too.
53844         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
53845         * doc/glibc-functions/initstate_r.texi: Mention the new module.
53846         * doc/glibc-functions/random_r.texi: Likewise.
53847         * doc/glibc-functions/setstate_r.texi: Likewise.
53848         * doc/glibc-functions/srandom_r.texi: Likewise.
53849         * config/srclist.txt: Mention it.
53850
53851 2008-10-23  David Lutterkort  <lutter@redhat.com>
53852
53853         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
53854         link requirement
53855
53856 2008-10-23  Jim Meyering  <meyering@redhat.com>
53857
53858         selinux-h: mark parameters of stub functions as intentionally unused
53859         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
53860         * lib/se-context.in.h: Likewise.
53861
53862 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53863
53864         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
53865
53866 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53867
53868         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
53869
53870 2008-10-22  Eric Blake  <ebb9@byu.net>
53871
53872         glthread/thread: avoid compiler warning
53873         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
53874         Add unreachable abort to silence compiler.
53875
53876 2008-10-22  Eric Blake  <ebb9@byu.net>
53877
53878         netdb: also supply struct addrinfo for cygwin 1.5.x
53879         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
53880         older cygwin.
53881         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
53882         cygwin.
53883         * doc/posix-headers/netdb.texi (netdb.h): Document this.
53884
53885 2008-10-22  Bruno Haible  <bruno@clisp.org>
53886
53887         * users.txt: Update entry about pspp.
53888
53889 2008-10-21  Bruno Haible  <bruno@clisp.org>
53890
53891         Simplification.
53892         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
53893         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
53894
53895         Simplification.
53896         * lib/ioctl.c (ioctl): Don't undefine.
53897         * lib/socket.c (socket): Don't undefine.
53898
53899         Remove unused module indicator macros.
53900         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
53901         GNULIB_$1 as a C macro.
53902
53903         * doc/posix-functions/close.texi: Undo last change.
53904         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
53905         Windows platforms.
53906
53907 2008-10-21  Bruno Haible  <bruno@clisp.org>
53908
53909         Add gethostname() declaration to <unistd.h>.
53910         * lib/unistd.in.h (gethostname): New declaration.
53911         * lib/gethostname.c: Include <unistd.h>.
53912         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
53913         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
53914         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
53915         and HAVE_GETHOSTNAME.
53916         * modules/gethostname (Depends-on): Add unistd.
53917         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53918         (Include): Specify <unistd.h>.
53919         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
53920         HAVE_GETHOSTNAME.
53921         * tests/test-gethostname.c: Include <unistd.h> first.
53922
53923 2008-10-21  Bruno Haible  <bruno@clisp.org>
53924
53925         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
53926         * modules/select-tests (Depends-on): Likewise.
53927         Reported by Simon Josefsson.
53928
53929 2008-10-21  Simon Josefsson  <simon@josefsson.org>
53930
53931         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
53932         * lib/accept.c: New file, based on winsock.c.
53933         * lib/bind.c: New file, based on winsock.c.
53934         * lib/connect.c: New file, based on winsock.c.
53935         * lib/getpeername.c: New file, based on winsock.c.
53936         * lib/getsockname.c: New file, based on winsock.c.
53937         * lib/getsockopt.c: New file, based on winsock.c.
53938         * lib/ioctl.c: New file, based on winsock.c.
53939         * lib/listen.c: New file, based on winsock.c.
53940         * lib/recv.c: New file, based on winsock.c.
53941         * lib/recvfrom.c: New file, based on winsock.c.
53942         * lib/send.c: New file, based on winsock.c.
53943         * lib/sendto.c: New file, based on winsock.c.
53944         * lib/setsockopt.c: New file, based on winsock.c.
53945         * lib/shutdown.c: New file, based on winsock.c.
53946         * lib/socket.c: New file, based on winsock.c.
53947         * lib/w32sock.h: New file, based on winsock.c.
53948         * lib/winsock.c: Remove file.
53949         * modules/accept: Likewise.
53950         * modules/bind: Likewise.
53951         * modules/connect: Likewise.
53952         * modules/getpeername: Likewise.
53953         * modules/getsockname: Likewise.
53954         * modules/getsockopt: Likewise.
53955         * modules/ioctl: Likewise.
53956         * modules/listen: Likewise.
53957         * modules/recv: Likewise.
53958         * modules/recvfrom: Likewise.
53959         * modules/send: Likewise.
53960         * modules/sendto: Likewise.
53961         * modules/setsockopt: Likewise.
53962         * modules/shutdown: Likewise.
53963         * modules/socket: Use socket.c instead of winsock.c.
53964         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
53965         * doc/posix-functions/accept.texi: Doc fix.
53966         * doc/posix-functions/bind.texi: Doc fix.
53967         * doc/posix-functions/close.texi: Doc fix.
53968         * doc/posix-functions/connect.texi: Doc fix.
53969         * doc/posix-functions/getpeername.texi: Doc fix.
53970         * doc/posix-functions/getsockname.texi: Doc fix.
53971         * doc/posix-functions/getsockopt.texi: Doc fix.
53972         * doc/posix-functions/ioctl.texi: Doc fix.
53973         * doc/posix-functions/listen.texi: Doc fix.
53974         * doc/posix-functions/recv.texi: Doc fix.
53975         * doc/posix-functions/recvfrom.texi: Doc fix.
53976         * doc/posix-functions/send.texi: Doc fix.
53977         * doc/posix-functions/sendto.texi: Doc fix.
53978         * doc/posix-functions/setsockopt.texi: Doc fix.
53979         * doc/posix-functions/shutdown.texi: Doc fix.
53980         * doc/posix-functions/socket.texi: Doc fix.
53981
53982 2008-10-20  Bruno Haible  <bruno@clisp.org>
53983
53984         Take into account the role of SIGABRT_COMPAT on Windows 2008.
53985         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
53986         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
53987         as an alias for SIGABRT.
53988         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
53989         (sigaction): Map it to SIGABRT.
53990         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
53991
53992 2008-10-20  Bruno Haible  <bruno@clisp.org>
53993
53994         * lib/fts.c: Don't include lstat.h.
53995         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
53996
53997         Move the lstat() declaration to <sys/stat.h>.
53998         * lib/lstat.h: Remove file.
53999         * lib/sys_stat.in.h: Add special invocation convention.
54000         (lstat): New declaration.
54001         * lib/lstat.c (orig_lstat): New function.
54002         (rpl_lstat): Use orig_lstat instead of lstat.
54003         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
54004         AC_C_INLINE. Set REPLACE_LSTAT.
54005         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
54006         and REPLACE_LSTAT.
54007         * modules/lstat (Files): Remove lib/lstat.h.
54008         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54009         (Include): Specify <sys/stat.h> instead of lstat.h.
54010         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
54011         REPLACE_LSTAT.
54012         * NEWS: Mention the change.
54013
54014 2008-10-20  Bruno Haible  <bruno@clisp.org>
54015
54016         * modules/posix_spawn-tests: New file.
54017         * tests/test-posix_spawn3.c: New file.
54018
54019 2008-10-20  Bruno Haible  <bruno@clisp.org>
54020
54021         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
54022         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54023         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
54024         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54025         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
54026
54027 2008-10-20  Bruno Haible  <bruno@clisp.org>
54028
54029         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
54030         of posix_spawn on AIX 5.3.
54031
54032 2008-10-20  Bruno Haible  <bruno@clisp.org>
54033
54034         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
54035
54036 2008-10-20  Bruno Haible  <bruno@clisp.org>
54037
54038         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
54039         of AC_LANG_PROGRAM.
54040
54041 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54042
54043         * lib/netdb.in.h: Don't define GNU specific constants until they
54044         are supported or needed.  Reported by Bruno Haible
54045         <bruno@clisp.org>.
54046
54047 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54048
54049         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
54050
54051 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54052
54053         * lib/getaddrinfo.h: Remove file.
54054         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
54055         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
54056         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
54057         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
54058         * modules/netdb: Substitute GNULIB_GETADDRINFO.
54059         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
54060         * tests/test-getaddrinfo.c: Likewise.
54061         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
54062         * NEWS: Mention change.
54063
54064 2008-10-19  Bruno Haible  <bruno@clisp.org>
54065
54066         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
54067
54068 2008-10-19  Bruno Haible  <bruno@clisp.org>
54069
54070         * lib/wait-process.c: Include simply <sys/wait.h>.
54071         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
54072         WIFSTOPPED): Remove fallback definitions.
54073         * modules/wait-process (Depends-on): Add sys_wait.
54074
54075         New module 'sys_wait'.
54076         * modules/sys_wait: New file.
54077         * lib/sys_wait.in.h: New file, partially copied from
54078         lib/wait-process.c.
54079         * m4/sys_wait_h.m4: New file.
54080         * doc/posix-headers/sys_wait.texi: Mention the new module.
54081
54082 2008-10-19  Bruno Haible  <bruno@clisp.org>
54083
54084         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
54085
54086 2008-10-19  Bruno Haible  <bruno@clisp.org>
54087
54088         Assume that waitpid() fills an 'int' status, not a 'union wait'.
54089         * lib/wait-process.c (WAIT_T): Remove type.
54090         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
54091         (wait_subprocess): Update.
54092
54093 2008-10-19  Bruno Haible  <bruno@clisp.org>
54094
54095         New module 'atoll'.
54096         * modules/atoll: New file.
54097         * lib/stdlib.in.h (atoll): New declaration.
54098         * lib/atoll.c: New file, from glibc with modifications.
54099         * m4/atoll.m4: New file.
54100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
54101         HAVE_ATOLL.
54102         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
54103         * doc/posix-functions/atoll.texi: Mention the new module.
54104
54105 2008-10-19  Bruno Haible  <bruno@clisp.org>
54106
54107         Add strtoull() declaration to <stdlib.h>.
54108         * lib/stdlib.in.h (strtoull): New declaration.
54109         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54110         Set HAVE_STRTOULL.
54111         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
54112         HAVE_STRTOULL.
54113         * modules/strtoull (Depends-on): Add stdlib.
54114         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54115         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
54116         HAVE_STRTOULL.
54117
54118 2008-10-19  Bruno Haible  <bruno@clisp.org>
54119
54120         Add strtoll() declaration to <stdlib.h>.
54121         * lib/stdlib.in.h (strtoll): New declaration.
54122         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54123         Set HAVE_STRTOLL.
54124         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
54125         HAVE_STRTOLL.
54126         * modules/strtoll (Depends-on): Add stdlib.
54127         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54128         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
54129
54130 2008-10-19  Bruno Haible  <bruno@clisp.org>
54131
54132         * modules/bcopy (Depends-on): Add strings.
54133         (Include): Specify <strings.h>.
54134
54135 2008-10-19  Bruno Haible  <bruno@clisp.org>
54136
54137         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
54138
54139 2008-10-19  Bruno Haible  <bruno@clisp.org>
54140
54141         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
54142         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
54143         mingw.
54144
54145 2008-10-19  Bruno Haible  <bruno@clisp.org>
54146
54147         * lib/atanl.c: Don't include isnanl.h.
54148         * lib/cosl.c: Likewise.
54149         * lib/ldexpl.c: Likewise.
54150         * lib/logl.c: Likewise.
54151         * lib/sinl.c: Likewise.
54152         * lib/sqrtl.c: Likewise.
54153         * lib/tanl.c: Likewise.
54154
54155         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
54156         * lib/isnanf.h: Remove file.
54157         * lib/isnand.h: Remove file.
54158         * lib/isnanl.h: Remove file.
54159         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
54160         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
54161         macros.
54162         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
54163         HAVE_ISNANF, don't define it as a C macro.
54164         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
54165         HAVE_ISNAND, don't define it as a C macro.
54166         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
54167         HAVE_ISNANL, don't define it as a C macro.
54168         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
54169         HAVE_ISNAN[FDL].
54170         * modules/isnanf (Files): Remove lib/isnanf.h.
54171         (Depends-on): Add math.
54172         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54173         (Include): Specify <math.h> instead of isnanf.h.
54174         * modules/isnand (Files): Remove lib/isnand.h.
54175         (Depends-on): Add math.
54176         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54177         (Include): Specify <math.h> instead of isnand.h.
54178         * modules/isnanl (Files): Remove lib/isnanl.h.
54179         (Depends-on): Add math.
54180         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54181         (Include): Specify <math.h> instead of isnanl.h.
54182         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
54183         HAVE_ISNAN[FDL].
54184         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
54185         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
54186         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
54187         * NEWS: Mention the change.
54188
54189 2008-10-18  Bruno Haible  <bruno@clisp.org>
54190
54191         Add getusershell(), setusershell(), endusershell() declarations to
54192         <unistd.h>.
54193         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
54194         declarations.
54195         * lib/getusershell.c: Include unistd.h.
54196         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
54197         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54198         HAVE_GETUSERSHELL.
54199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
54200         and HAVE_GETUSERSHELL.
54201         * modules/getusershell (Depends-on): Add unistd, extensions.
54202         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54203         (Include): Specify <unistd.h>.
54204         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
54205         HAVE_GETUSERSHELL.
54206
54207 2008-10-18  Bruno Haible  <bruno@clisp.org>
54208
54209         Add a getloadavg() declaration to <stdlib.h>.
54210         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
54211         getloadavg declaration.
54212         (getloadavg): New declaration.
54213         * lib/getloadavg.c: Include <stdlib.h> first.
54214         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
54215         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
54216         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
54217         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
54218         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54219         * modules/getloadavg (Depends-on): Add stdlib, extensions.
54220         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54221         (Include): Specify <stdlib.h>.
54222         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
54223         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54224
54225 2008-10-18  Bruno Haible  <bruno@clisp.org>
54226
54227         * lib/dirchownmod.c: Don't include lchmod.h.
54228
54229         Move the lchmod() declaration to <sys/stat.h>.
54230         * lib/lchmod.h: Remove file.
54231         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
54232         (lchmod): New declaration, moved here from lib/lchown.h.
54233         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
54234         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
54235         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
54236         and HAVE_LCHMOD.
54237         * modules/lchmod (Files): Remove lib/lchmod.h.
54238         (Depends-on): Add sys_stat, extensions.
54239         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54240         (Include): Specify <sys/stat.h> instead of lchmod.h.
54241         * modules/sys_stat (Depends-on): Add link-warning.
54242         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
54243         definition of GL_LINK_WARNING.
54244         * NEWS: Mention the change.
54245
54246 2008-10-18  Bruno Haible  <bruno@clisp.org>
54247
54248         * lib/fchdir.c: Don't include dirfd.h.
54249         * lib/fts.c: Likewise.
54250         * lib/getcwd.c: Likewise.
54251         * lib/glob.c: Likewise.
54252
54253         Move the dirfd() declaration to <dirent.h>.
54254         * lib/dirfd.h: Remove file.
54255         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
54256         (dirfd): New declaration.
54257         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
54258         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
54259         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
54260         HAVE_DECL_DIRFD.
54261         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
54262         HAVE_DECL_DIRFD.
54263         * modules/dirfd (Files): Remove lib/dirfd.h.
54264         (Depends-on): Add dirent, extensions.
54265         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
54266         (Include): Specify <dirent.h> instead of dirfd.h.
54267         * modules/dirent (Depends-on): Add link-warning.
54268         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
54269         definition of GL_LINK_WARNING.
54270         * NEWS: Mention the change.
54271
54272 2008-10-18  Bruno Haible  <bruno@clisp.org>
54273
54274         Move the euidaccess() declaration to <unistd.h>.
54275         * lib/euidaccess.h: Remove file.
54276         * lib/unistd.in.h (euidaccess): New declaration.
54277         * lib/euidaccess.c: Don't include euidaccess.h.
54278         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
54279         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
54280         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
54281         and HAVE_EUIDACCESS.
54282         * modules/euidaccess (Files): Remove lib/euidaccess.h.
54283         (Depends-on): Add unistd.
54284         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54285         (Include): Specify <unistd.h> instead of euidaccess.h.
54286         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
54287         HAVE_EUIDACCESS.
54288         * NEWS: Mention the change.
54289
54290 2008-10-18  Bruno Haible  <bruno@clisp.org>
54291
54292         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
54293
54294         Move the getdomainname() declaration to <unistd.h>.
54295         * lib/getdomainname.h: Remove file.
54296         * lib/unistd.in.h (getdomainname): New declaration.
54297         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
54298         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
54299         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54300         HAVE_GETDOMAINNAME.
54301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54302         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
54303         * modules/getdomainname (Files): Remove lib/getdomainname.h.
54304         (Depends-on): Add unistd, extensions.
54305         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54306         (Includes): Specify <unistd.h> instead of getdomainname.h.
54307         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
54308         HAVE_GETDOMAINNAME.
54309         * NEWS: Mention the change.
54310
54311 2008-10-18  Bruno Haible  <bruno@clisp.org>
54312
54313         * modules/dirent: New file.
54314         * m4/dirent_h.m4: New file.
54315         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
54316         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
54317         * modules/fchdir (Files): Remove lib/dirent.in.h.
54318         (Depends-on): Add dirent.
54319         (Makefile.am): Move rules to modules/dirent.
54320         * doc/posix-headers/dirent.texi: Mention the new module.
54321
54322 2008-10-18  Bruno Haible  <bruno@clisp.org>
54323
54324         Avoid -Wunused-parameter warnings in public gnulib header files.
54325         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
54326         macro.
54327         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
54328
54329 2008-10-18  Bruno Haible  <bruno@clisp.org>
54330
54331         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
54332         * doc/glibc-functions/error.texi: Mention the module 'error'.
54333         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
54334         * doc/glibc-functions/getdomainname.texi: Mention the module
54335         'getdomainname'.
54336         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
54337         * doc/glibc-functions/getpagesize.texi: Mention the module
54338         'getpagesize'.
54339         * doc/glibc-functions/getusershell.texi: Mention the module
54340         'getusershell'.
54341         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
54342         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
54343         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
54344         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
54345         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
54346         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
54347         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
54348         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
54349         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
54350         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
54351         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
54352         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
54353         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
54354         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
54355
54356 2008-10-17  Bruno Haible  <bruno@clisp.org>
54357
54358         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
54359         HP-UX and IRIX, use -0.0L.
54360         * tests/test-ceill.c (minus_zero): Likewise.
54361         * tests/test-floorl.c (minus_zero): Likewise.
54362         * tests/test-frexpl.c (minus_zero): Likewise.
54363         * tests/test-isnan.c (minus_zerol): Likewise.
54364         * tests/test-isnanl.h (minus_zero): Likewise.
54365         * tests/test-ldexpl.c (minus_zero): Likewise.
54366         * tests/test-roundl.c (minus_zero): Likewise.
54367         * tests/test-signbit.c (minus_zerol): Likewise.
54368         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
54369         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
54370         * tests/test-truncl.c (minus_zero): Likewise.
54371         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
54372         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
54373         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
54374         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
54375
54376 2008-10-17  Bruno Haible  <bruno@clisp.org>
54377
54378         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
54379         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
54380         that it gets activated only for gcc >= 3.0.
54381         * lib/dirent.in.h: Likewise.
54382         * lib/errno.in.h: Likewise.
54383         * lib/fcntl.in.h: Likewise.
54384         * lib/float.in.h: Likewise.
54385         * lib/iconv.in.h: Likewise.
54386         * lib/inttypes.in.h: Likewise.
54387         * lib/locale.in.h: Likewise.
54388         * lib/math.in.h: Likewise.
54389         * lib/netdb.in.h: Likewise.
54390         * lib/netinet_in.in.h: Likewise.
54391         * lib/search.in.h: Likewise.
54392         * lib/signal.in.h: Likewise.
54393         * lib/spawn.in.h: Likewise.
54394         * lib/stdarg.in.h: Likewise.
54395         * lib/stdint.in.h: Likewise.
54396         * lib/stdio.in.h: Likewise.
54397         * lib/stdlib.in.h: Likewise.
54398         * lib/string.in.h: Likewise.
54399         * lib/strings.in.h: Likewise.
54400         * lib/sys_file.in.h: Likewise.
54401         * lib/sys_ioctl.in.h: Likewise.
54402         * lib/sys_select.in.h: Likewise.
54403         * lib/sys_socket.in.h: Likewise.
54404         * lib/sys_stat.in.h: Likewise.
54405         * lib/sys_time.in.h: Likewise.
54406         * lib/sysexits.in.h: Likewise.
54407         * lib/time.in.h: Likewise.
54408         * lib/unistd.in.h: Likewise.
54409         * lib/wchar.in.h: Likewise.
54410         * lib/wctype.in.h: Likewise.
54411         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54412
54413 2008-10-17  Jim Meyering  <meyering@redhat.com>
54414
54415         ignore-value: don't depend on inline module
54416         * modules/ignore-value (Depends-on): Remove 'inline'.
54417         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
54418         Suggestion from Bruno Haible.
54419
54420 2008-10-17  Bruno Haible  <bruno@clisp.org>
54421
54422         New implementation of condition variables for Win32.
54423         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
54424         (gl_linked_waitqueue_t): New type.
54425         (gl_cond_t): Use it.
54426         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
54427         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
54428         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
54429         (glthread_cond_init_func, glthread_cond_wait_func,
54430         glthread_cond_timedwait_func, glthread_cond_signal_func,
54431         glthread_cond_broadcast_func, glthread_cond_destroy_func):
54432         Reimplemented on the basis of gl_linked_waitqueue_t.
54433         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
54434         gl_waitqueue_t.
54435         (gl_rwlock_t): Update.
54436         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
54437
54438 2008-10-17  Simon Josefsson  <simon@josefsson.org>
54439
54440         * modules/recvfrom (Depends-on): Add dependency on getpeername.
54441         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54442
54443 2008-10-17  Jim Meyering  <meyering@redhat.com>
54444
54445         ignore-value: new module
54446         * modules/ignore-value: New file.
54447         * lib/ignore-value.h: New file.
54448         * MODULES.html.sh (Compiler warning management): New section,
54449         just for this module.  More to come.
54450
54451 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54452
54453         open-safer.c: avoid 'signed and unsigned in conditional...' warning
54454         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
54455         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
54456
54457 2008-10-16  Jim Meyering  <meyering@redhat.com>
54458
54459         openat-die.c: avoid 'no previous prototype' warning
54460         * lib/openat-die.c: Include "openat.h".
54461         Reported by Reuben Thomas <rrt@sc3d.org>.
54462
54463 2008-10-16  Simon Josefsson  <simon@josefsson.org>
54464
54465         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
54466         * lib/netdb.in.h: Fix typo.
54467         Reported by Bruno Haible  <bruno@clisp.org>
54468
54469         * lib/netdb.in.h: Include sys/socket.h for platforms without
54470         netdb.h, to get structures like hostent on MinGW.
54471         * modules/netdb (Depends-on): Add sys_socket.
54472
54473 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54474
54475         * modules/netdb, modules/netdb-tests: New file.
54476         * m4/netdb_h.m4: New file.
54477         * lib/netdb.in.h: Add, currently just an empty file pending
54478         definitions.
54479         * tests/test-netdb.c: New file.
54480         * doc/posix-headers/netdb.texi: Mention that we replace it if
54481         needed.
54482         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54483         netdb.
54484
54485 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54486
54487         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
54488         with code.
54489
54490 2008-10-13  Bruno Haible  <bruno@clisp.org>
54491
54492         * lib/glthread/cond.c (glthread_cond_wait_func,
54493         glthread_cond_timedwait_func): Add a comment.
54494
54495 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54496
54497         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
54498         * tests/test-select.c: Likewise,
54499
54500 2008-10-13  Bruno Haible  <bruno@clisp.org>
54501
54502         * lib/glthread/cond.c (glthread_cond_wait_func,
54503         glthread_cond_timedwait_func): Fix variable name.
54504         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54505
54506 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
54507
54508         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
54509         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
54510         struct sockaddr.sa_len.
54511         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
54512
54513 2008-10-13  Simon Josefsson  <simon@josefsson.org>
54514
54515         * build-aux/pmccabe2html: Add css and css_url parameters.
54516
54517 2008-10-12  Bruno Haible  <bruno@clisp.org>
54518
54519         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
54520         calling aclx_get.
54521         Reported by Rainer Tammer <tammer@tammer.net>.
54522
54523 2008-10-12  Bruno Haible  <bruno@clisp.org>
54524
54525         Use msvcrt aware primitives for creation/termination of Win32 threads.
54526         * lib/glthread/thread.c: Include <process.h>.
54527         (glthread_create_func): Use _beginthreadex instead of CreateThread.
54528         (wrapper_func): Update signature.
54529         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
54530
54531 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54532             Bruno Haible  <bruno@clisp.org>
54533
54534         Provide a Win32 implementation of the 'cond' module.
54535         * lib/glthread/cond.h [USE_WIN32]: New implementation.
54536         * lib/glthread/cond.c (glthread_cond_init_func,
54537         glthread_cond_wait_func, glthread_cond_timedwait_func,
54538         glthread_cond_signal_func, glthread_cond_broadcast_func,
54539         glthread_cond_destroy_func) [USE_WIN32]: New functions.
54540         * modules/cond (Dependencies): Add gettimeofday.
54541
54542 2008-10-11  Bruno Haible  <bruno@clisp.org>
54543
54544         Make sleep work on older versions of mingw.
54545         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
54546         only whether it exists.
54547         * doc/posix-functions/sleep.texi: Mention the problem with older
54548         versions of mingw.
54549
54550 2008-10-11  Bruno Haible  <bruno@clisp.org>
54551
54552         New module 'shutdown'.
54553         * modules/shutdown: New file.
54554         * lib/sys_socket.in.h (shutdown): New declaration.
54555         * lib/winsock.c (shutdown): New function.
54556         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
54557         GNULIB_SHUTDOWN.
54558         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
54559         * doc/posix-functions/shutdown.texi: Document the new module.
54560
54561 2008-10-11  Jim Meyering  <meyering@redhat.com>
54562
54563         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
54564
54565 2008-10-11  Bruno Haible  <bruno@clisp.org>
54566
54567         New module 'fclose'.
54568         * modules/fclose: New file.
54569         * lib/stdio.in.h (fclose): New declaration.
54570         * lib/fclose.c: New file.
54571         * m4/fclose.m4: New file.
54572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
54573         REPLACE_FCLOSE.
54574         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
54575         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
54576         REPLACE_FCLOSE.
54577         * modules/close (Depends-on): fclose.
54578         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
54579
54580 2008-10-11  Bruno Haible  <bruno@clisp.org>
54581
54582         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
54583         set errno and don't call _close.
54584
54585 2008-10-10  Bruno Haible  <bruno@clisp.org>
54586
54587         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
54588         ACL, not afterwards. Fixes test failure on Cygwin.
54589
54590 2008-10-09  Ben Pfaff  <blp@gnu.org>
54591
54592         * build-aux/announce-gen: Fix gnulib version related part of usage
54593         message.  Die with a useful error message if no tarballs are
54594         found.
54595
54596 2008-10-10  Jim Meyering  <meyering@redhat.com>
54597
54598         bootstrap: use git's --depth=N option only if it's supported
54599         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
54600         recognize the --depth option.  Reported by Pádraig Brady.
54601
54602 2008-10-09  Bruno Haible  <bruno@clisp.org>
54603
54604         New module 'ioctl'.
54605         * modules/ioctl: New file.
54606         * lib/sys_socket.in.h (ioctl): Remove declaration.
54607         * lib/winsock.c: Include <sys/ioctl.h>.
54608         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
54609         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54610         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
54611         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
54612         * doc/posix-functions/ioctl.texi: Mention the new module.
54613
54614 2008-10-09  Bruno Haible  <bruno@clisp.org>
54615
54616         New module 'sys_ioctl'.
54617         * lib/sys_ioctl.in.h: New file.
54618         * m4/sys_ioctl_h.m4: New file.
54619         * modules/sys_ioctl: New file.
54620         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
54621
54622 2008-10-09  Bruno Haible  <bruno@clisp.org>
54623
54624         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
54625         * lib/winsock.c: Include <stdarg.h>.
54626         (rpl_ioctl): Change to second argument 'int' and then varargs.
54627
54628 2008-10-09  Bruno Haible  <bruno@clisp.org>
54629
54630         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
54631         when the sys_socket module is present and the system has <winsock2.h>.
54632
54633 2008-10-09  Bruno Haible  <bruno@clisp.org>
54634
54635         * doc/posix-functions/close.texi: Mention module 'close' instead of
54636         module 'sys_socket'.
54637
54638 2008-10-09  Bruno Haible  <bruno@clisp.org>
54639
54640         * doc/glibc-headers/sys_ioctl.texi: New file.
54641         * doc/gnulib.texi: Include it.
54642
54643 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54644             Bruno Haible  <bruno@clisp.org>
54645
54646         Combine the two replacements of 'close'.
54647         * lib/sys_socket.in.h (close): Define to a reminder to include
54648         <unistd.h>.
54649         (_gl_close_fd_maybe_socket): New declaration.
54650         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
54651         * lib/winsock.c (close): Remove undefinition.
54652         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
54653         needed for the gnulib module 'close'.
54654         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
54655         define to an error symbol or to a warning, if suitable.
54656         * lib/close.c: Include <sys/socket.h>.
54657         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
54658         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
54659         UNISTD_H_HAVE_WINSOCK2_H.
54660         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
54661         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54662         UNISTD_H_HAVE_WINSOCK2_H.
54663         * modules/sys_socket (Files): Add m4/unistd_h.m4.
54664         (configure.ac): Set a module indicator.
54665         (Makefile.am): Substitute GNULIB_CLOSE.
54666         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
54667         * modules/poll-tests (Depends-on): Add close.
54668         * modules/select-tests (Depends-on): Likewise.
54669
54670 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54671             Bruno Haible  <bruno@clisp.org>
54672
54673         New module 'close'.
54674         * modules/close: New file.
54675         * lib/unistd.in.h (close): Move declaration out of the
54676         FCHDIR_REPLACEMENT scope.
54677         (_gl_unregister_fd): New declaration.
54678         * lib/close.c: New file.
54679         * lib/fchdir.c (rpl_close): Remove function.
54680         * m4/close.m4: New file.
54681         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54682         close.
54683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
54684         REPLACE_CLOSE.
54685         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
54686         REPLACE_CLOSE.
54687         * modules/fchdir (Depends-on): Add close.
54688
54689 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54690             Bruno Haible  <bruno@clisp.org>
54691
54692         * lib/fcntl.in.h (open): Simplify conditionals.
54693         (_gl_register_fd): New declaration.
54694         * lib/fchdir.c (rpl_open): Remove function.
54695         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
54696         also.
54697         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
54698         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54699         open.
54700
54701 2008-10-09  Jim Meyering  <meyering@redhat.com>
54702
54703         GNUmakefile: use the more name-space-friendly "_version"
54704         * top/GNUmakefile (_dummy): Update.
54705         (_version): Rename from "version".
54706
54707 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54708             Bruno Haible  <bruno@clisp.org>
54709
54710         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
54711         rpl_close.
54712         (_gl_register_fd): New function, extracted from rpl_open.
54713         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
54714         (rpl_open, rpl_opendir): Use _gl_register_fd.
54715
54716 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54717
54718         Fix organization of 'open' replacement.
54719         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
54720         (gl_FUNC_OPEN): Use it.
54721         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
54722
54723 2008-10-08  Bruno Haible  <bruno@clisp.org>
54724
54725         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
54726
54727 2008-10-08  Simon Josefsson  <simon@josefsson.org>
54728
54729         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
54730         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
54731         listen).
54732
54733 2008-10-08  Eric Blake  <ebb9@byu.net>
54734
54735         GNUmakefile: add 'make version' target
54736         * top/GNUmakefile (_curr-ver): Split version update rules...
54737         (version): ...into a target.
54738
54739 2008-10-07  Bruno Haible  <bruno@clisp.org>
54740
54741         Use a more portable replacement expression for -0.0L.
54742         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
54743         instead of -0.0L. Fix m4 quotation.
54744
54745         * tests/test-signbit.c: Include <float.h>.
54746         (minus_zero): New variable.
54747         (test_signbitl): Use minus_zero instead of -zero.
54748         * modules/signbit-tests (Depends-on): Add float.
54749
54750         * tests/test-ceill.c: Include <float.h>.
54751         (zero): Remove variable.
54752         (minus_zero): New variable.
54753         (main): Use minus_zero instead of -zero.
54754         * modules/ceill-tests (Depends-on): Add float.
54755
54756         * tests/test-floorl.c: Include <float.h>.
54757         (zero): Remove variable.
54758         (minus_zero): New variable.
54759         (main): Use minus_zero instead of -zero.
54760         * modules/floorl-tests (Depends-on): Add float.
54761
54762         * tests/test-roundl.c: Include <float.h>.
54763         (zero): Remove variable.
54764         (minus_zero): New variable.
54765         (main): Use minus_zero instead of -zero.
54766         * modules/roundl-tests (Depends-on): Add float.
54767
54768         * tests/test-truncl.c: Include <float.h>.
54769         (zero): Remove variable.
54770         (minus_zero): New variable.
54771         (main): Use minus_zero instead of -zero.
54772         * modules/truncl-tests (Depends-on): Add float.
54773
54774         * tests/test-frexpl.c (zero): Remove variable.
54775         (minus_zero): New variable.
54776         (main): Use minus_zero instead of -zero.
54777         * modules/frexpl-tests (Depends-on): Add float.
54778
54779         * tests/test-isnan.c (zerol): Remove variable.
54780         (minus_zerol): New variable.
54781         (test_long_double): Use minus_zerol instead of -zerol.
54782         * modules/isnan-tests (Depends-on): Add float.
54783
54784         * tests/test-isnanl.h (zero): Remove variable.
54785         (minus_zero): New variable.
54786         (main): Use minus_zero instead of -zero.
54787         * modules/isnanl-nolibm-tests (Depends-on): Add float.
54788         * modules/isnanl-tests (Depends-on): Add float.
54789
54790         * tests/test-ldexpl.c (zero): Remove variable.
54791         (minus_zero): New variable.
54792         (main): Use minus_zero instead of -zero.
54793         * modules/ldexpl-tests (Depends-on): Add float.
54794
54795         * tests/test-snprintf-posix.h (zerol): Remove variable.
54796         (minus_zerol): New variable.
54797         (test_function): Use minus_zerol instead of -zerol.
54798         * modules/snprintf-posix-tests (Depends-on): Add float.
54799         * modules/vsnprintf-posix-tests (Depends-on): Add float.
54800
54801         * tests/test-sprintf-posix.h (zerol): Remove variable.
54802         (minus_zerol): New variable.
54803         (test_function): Use minus_zerol instead of -zerol.
54804         * modules/sprintf-posix-tests (Depends-on): Add float.
54805         * modules/vsprintf-posix-tests (Depends-on): Add float.
54806
54807         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
54808         (minus_zerol): New variable.
54809         (test_function): Use minus_zerol instead of -zerol.
54810         * modules/vasnprintf-posix-tests (Depends-on): Add float.
54811
54812         * tests/test-vasprintf-posix.c (zerol): Remove variable.
54813         (minus_zerol): New variable.
54814         (test_function): Use minus_zerol instead of -zerol.
54815         * modules/vasprintf-posix-tests (Depends-on): Add float.
54816
54817 2008-10-07  Simon Josefsson  <simon@josefsson.org>
54818
54819         * MODULES.html.sh (Support for building documentation): Mention
54820         pmccabe2html.  Sort entries.
54821
54822         Add pmccabe2html module, from gnupdf.
54823         * build-aux/pmccabe.css: New file.
54824         * build-aux/pmccabe2html: New file.
54825         * m4/pmccabe2html.m4: New file.
54826         * modules/pmccabe2html: New file.
54827
54828 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
54829
54830         flock: new module
54831         * MODULES.html.sh: Add to list of modules.
54832         * lib/flock.c: flock implementation for Windows and Unix systems
54833         which have fcntl.
54834         * doc/glibc-functions/flock.texi: Update documentation.
54835         * lib/sys_file.in.h: <sys/file.h> header file.
54836         * m4/flock.m4: M4 macros.
54837         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
54838         * modules/flock: flock module.
54839         * modules/flock-tests: flock tests module.
54840         * modules/sys_file: sys/file.h module.
54841         * tests/test-flock.c: test suite for flock.
54842
54843 2008-10-06  Jim Meyering  <meyering@redhat.com>
54844
54845         bootstrap: check for LT_INIT more portably still ;-)
54846         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
54847         Spotted by Bruno Haible.
54848
54849 2008-10-06  Eric Blake  <ebb9@byu.net>
54850
54851         test-signbit: avoid tripping Irix cc bug on -0.0L
54852         * tests/test-signbit.c (minus_zerol): Delete, and replace with
54853         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
54854         entire testsuite consistent and avoids an Irix 6.2 bug.
54855
54856 2008-10-05  Bruno Haible  <bruno@clisp.org>
54857             Jim Meyering  <jim@meyering.net>
54858
54859         Add an option for ignoring EPIPE during close_stdout.
54860         * lib/closeout.h: Include <stdbool.h>.
54861         (close_stdout_set_ignore_EPIPE): New declaration.
54862         * lib/closeout.c: Include <stdbool.h>.
54863         (ignore_EPIPE): New variable.
54864         (close_stdout_set_ignore_EPIPE): New function.
54865         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
54866         * lib/close-stream.c (close_stream): Mention the possible EPIPE
54867         failure.
54868         * modules/closeout (Depends-on): Add stdbool.
54869
54870 2008-10-05  Bruno Haible  <bruno@clisp.org>
54871
54872         * modules/accept: New file.
54873         * modules/bind: New file.
54874         * modules/connect: New file.
54875         * modules/getpeername: New file.
54876         * modules/getsockname: New file.
54877         * modules/getsockopt: New file.
54878         * modules/listen: New file.
54879         * modules/recv: New file.
54880         * modules/recvfrom: New file.
54881         * modules/send: New file.
54882         * modules/sendto: New file.
54883         * modules/setsockopt: New file.
54884         * modules/socket: New file.
54885         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
54886         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
54887         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
54888         the particular module is requested. Add a link warning when the
54889         particular module is not requested.
54890         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
54891         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
54892         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
54893         the particular module is requested.
54894         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
54895         gl_SYS_SOCKET_H_DEFAULTS): New macros.
54896         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
54897         * modules/sys_socket (Depends-on): Add link-warning.
54898         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
54899         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
54900         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
54901         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
54902         GL_LINK_WARNING.
54903         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
54904         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
54905         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
54906         * doc/posix-functions/getpeername.texi: Mention the new module
54907         'getpeername'.
54908         * doc/posix-functions/getsockname.texi: Mention the new module
54909         'getsockname'.
54910         * doc/posix-functions/getsockopt.texi: Mention the new module
54911         'getsockopt'.
54912         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
54913         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
54914         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
54915         * doc/posix-functions/send.texi: Mention the new module 'send'.
54916         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
54917         * doc/posix-functions/setsockopt.texi: Mention the new module
54918         'setsockopt'.
54919         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
54920         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
54921         listen, connect, accept.
54922         * modules/select-tests (Depends-on): Likewise.
54923
54924 2008-10-05  Bruno Haible  <bruno@clisp.org>
54925
54926         * lib/winsock.c (strerror): Remove unused #undef.
54927         (rpl_close): Remove unused local variable.
54928
54929         * modules/sys_socket (Depends-on); Add errno.
54930
54931 2008-10-05  Bruno Haible  <bruno@clisp.org>
54932
54933         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
54934         (select): Add a link warning when the 'select' module is not used.
54935         * modules/sys_select (Depends-on): Add link-warning.
54936         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
54937         Suggested by Paolo Bonzini.
54938
54939 2008-10-05  Jim Meyering  <meyering@redhat.com>
54940
54941         bootstrap: check for LT_INIT more portably
54942         * build-aux/bootstrap: Avoid using grep -E, since it's not
54943         portable enough.  Suggestion from Bruno Haible.
54944
54945 2008-10-05  Bruno Haible  <bruno@clisp.org>
54946
54947         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
54948         as being fixed by gnulib.
54949
54950 2008-10-05  Bruno Haible  <bruno@clisp.org>
54951
54952         * modules/select-tests: New file, mostly copied from
54953         modules/sys_select-tests.
54954         * tests/test-select.c: New file, mostly copied from
54955         tests/test-sys_select.c.
54956         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
54957         * modules/sys_select-tests (Depends-on): Remove all dependencies.
54958         (Makefile.am): Remove test_sys_select_LDADD.
54959
54960         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
54961         to an undefined symbol, for an error message.
54962         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
54963         (gl_SYS_SELECT_H_DEFAULTS): New macro.
54964         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
54965         winsock-select.c here.
54966         * modules/sys_select (Files): Remove lib/winsock-select.c.
54967         (Depends-on): Remove alloca.
54968         (Makefile.am): Substitute GNULIB_SELECT.
54969         * modules/select: New file.
54970         * doc/posix-functions/select.texi: Update.
54971
54972 2008-10-05  Bruno Haible  <bruno@clisp.org>
54973
54974         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
54975         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
54976         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
54977         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
54978         getdtablesize.
54979         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
54980         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
54981
54982 2008-10-05  Bruno Haible  <bruno@clisp.org>
54983
54984         * modules/getdtablesize-tests: New file.
54985         * tests/test-getdtablesize.c: New file.
54986
54987         New module 'getdtablesize'.
54988         * lib/unistd.in.h (getdtablesize): New declaration.
54989         * lib/getdtablesize.c: New file.
54990         * m4/getdtablesize.m4: New file.
54991         * modules/getdtablesize: New file.
54992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54993         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
54994         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
54995         HAVE_GETDTABLESIZE.
54996         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
54997
54998 2008-10-05  Bruno Haible  <bruno@clisp.org>
54999
55000         * modules/sched (Makefile.am): Fix typo.
55001         Reported by Simon Josefsson.
55002
55003 2008-10-05  Jim Meyering  <meyering@redhat.com>
55004
55005         bootstrap: check for LT_INIT, too
55006         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
55007         are deprecated.  Suggestion from Ralf Wildenhues.
55008
55009 2008-10-05  Bruno Haible  <bruno@clisp.org>
55010
55011         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
55012         overriding them by ours.
55013         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
55014
55015 2008-10-05  Jim Meyering  <meyering@redhat.com>
55016
55017         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
55018         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
55019         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
55020
55021 2008-10-04  Bruno Haible  <bruno@clisp.org>
55022
55023         * modules/dup2 (License): Change to LGPLv2+.
55024         * modules/sleep (License): Likewise.
55025         * modules/perror (License): Likewise.
55026         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
55027         Blake.
55028         * modules/signal (License): Likewise.
55029         * modules/sigprocmask (License): Likewise.
55030         * modules/raise (License): Change to LGPLv2+, with approval by Jim
55031         Meyering.
55032
55033 2008-10-04  Bruno Haible  <bruno@clisp.org>
55034
55035         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
55036         Reported by Rainer Tammer <tammer@tammer.net>.
55037
55038 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
55039             Bruno Haible  <bruno@clisp.org>
55040
55041         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
55042         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
55043         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
55044
55045 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
55046
55047         filevercmp: new module
55048         * lib/filevercmp.h: New function filevercmp comparing version strings.
55049         * lib/filevercmp.c: Implementation of filevercmp function.
55050         * modules/filevercmp: Module metadata.
55051         * tests/test-filevercmp.c: Unit test for new module.
55052         * modules/filevercmp-tests: Unit test metadata.
55053         * MODULES.html.sh: Add filevercmp module.
55054
55055 2008-10-03  Bruno Haible  <bruno@clisp.org>
55056
55057         * lib/c-ctype.h: Add comment.
55058         Reported by Jim Meyering.
55059
55060 2008-10-02  Bruno Haible  <bruno@clisp.org>
55061
55062         * modules/posix_spawn-internal (Depends-on): Add 'open'.
55063
55064 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55065
55066         * build-aux/bootstrap: Allow renaming bootstrap, and change the
55067         name of bootstrap.conf accordingly.
55068
55069 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55070
55071         * build-aux/bootstrap: Install git-merge-changelog configuration
55072         items into .gitconfig if needed.
55073
55074 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55075
55076         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
55077         git repository, and initialize/update it accordingly.
55078
55079 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
55080
55081         * modules/fsync-tests: New file.
55082         * tests/test-fsync.c: New file.
55083
55084         New module 'fsync'.
55085         * lib/fsync.c: New file.
55086         * m4/fsync.m4: New file.
55087         * modules/fsync: New file.
55088         * lib/unistd.in.h (fsync): New declaration.
55089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
55090         GNULIB_FSYNC and HAVE_FSYNC.
55091         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
55092         * MODULES.html.sh (posix_functions): Add fsync.
55093         * doc/posix-functions/fsync.texi: Mention the new module.
55094
55095 2008-10-02  Jim Meyering  <meyering@redhat.com>
55096
55097         fts.c: sync with similar code from coreutils' remove.c
55098         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
55099         Guard also with "#if defined __linux__", since for now at least,
55100         this code is Linux-kernel-specific.
55101
55102 2008-10-02  Jim Meyering  <meyering@redhat.com>
55103
55104         fts: bug fixes
55105         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
55106         Include <sys/vfs.h>, not <sys/statfs.h>.
55107
55108         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
55109         Include <sys/vfs.h>, not <sys/statfs.h>.
55110
55111 2008-10-01  Bruno Haible  <bruno@clisp.org>
55112
55113         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
55114         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
55115         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
55116         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
55117         * doc/posix-functions/posix_spawnp.texi: Likewise.
55118         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
55119         whether posix_spawn actually works.
55120         * m4/pipe.m4 (gl_PIPE): Likewise.
55121         * modules/execute (Files): Add m4/posix_spawn.m4.
55122         * modules/pipe (Files): Add m4/posix_spawn.m4.
55123         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
55124
55125 2008-10-01  Jim Meyering  <meyering@redhat.com>
55126
55127         remove trailing spaces
55128         * NEWS: Likewise.
55129         * lib/poll.c (poll): Likewise.
55130         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
55131         * lib/winsock.c (rpl_close): Likewise.
55132         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
55133         * modules/yield: Likewise.
55134         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
55135         * tests/test-sys_select.c (connect_to_socket): Likewise.
55136
55137         fts.c: adjust a new interface to be more generally useful
55138         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
55139         (fts_build): Adjust caller.
55140
55141 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55142
55143         * modules/cond-tests: New file.
55144         * tests/test-cond.c: New file.
55145
55146 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55147             Bruno Haible  <bruno@clisp.org>
55148
55149         * modules/cond (Dependencies): Add errno, time.
55150         * lib/glthread/cond.h: Include <time.h>.
55151         (gl_cond_define, gl_cond_define_initialized): Use the same definition
55152         across platforms.
55153
55154 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55155             Bruno Haible  <bruno@clisp.org>
55156
55157         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
55158
55159 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55160             Bruno Haible  <bruno@clisp.org>
55161
55162         * modules/tls-tests (Depends-on): Add thread, yield.
55163         (configure.ac): Remove all checks.
55164         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
55165         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55166         gl_thread_self): Remove definitions. Include glthread/thread.h and
55167         glthread/yield.h instead.
55168         (test_tls): Pass an additional NULL argument to gl_thread_join.
55169
55170 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55171             Bruno Haible  <bruno@clisp.org>
55172
55173         * modules/lock-tests (Depends-on): Add thread, yield.
55174         (configure.ac): Remove all checks.
55175         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
55176         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55177         gl_thread_self): Remove definitions. Include glthread/thread.h and
55178         glthread/yield.h instead.
55179         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
55180         additional NULL argument to gl_thread_join.
55181
55182 2008-09-30  Bruno Haible  <bruno@clisp.org>
55183
55184         Fix the Win32 implementation of the 'thread' module.
55185         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
55186         pointer type.
55187         (gl_thread_self): Invoke gl_thread_self_func.
55188         (gl_thread_self_func): New declaration.
55189         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
55190         (do_init_self_key, init_self_key): New functions.
55191         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
55192         Remove some fields.
55193         (running_threads, running_lock): Remove variables.
55194         (get_current_thread_handle): New function.
55195         (gl_thread_self_func, wrapper_func, glthread_create_func,
55196         glthread_join_func, gl_thread_exit_func): Largely rewritten and
55197         simplified.
55198
55199 2008-09-30  Bruno Haible  <bruno@clisp.org>
55200
55201         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
55202         files.
55203
55204 2008-09-30  Jim Meyering  <meyering@redhat.com>
55205
55206         fts.m4: correct the test for statfs.f_type
55207         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
55208         when checking for statfs.f_type.
55209
55210 2008-09-15  Simon Josefsson  <simon@josefsson.org>
55211
55212         tests: avoid some compiler warnings
55213         * tests/test-memchr.c (main): Pass NULL indirectly.
55214         * tests/test-getdate.c (main): Remove unused variable 'ret'.
55215
55216 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
55217
55218         getdate.y: disallow countable dayshifts like "4 yesterday ago"
55219         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
55220         exactly specified dayshifts.
55221         (dayshift): New rule.
55222         (rel): Add dayshift.
55223         (relative_time_table) [tomorrow, yesterday, today, now]:
55224         Use tDAY_SHIFT in place of tDAY_UNIT.
55225         * tests/test-getdate.c: Add tests for now-disallowed countable
55226         dayshifts, e.g., "4 yesterday ago".
55227
55228 2008-09-29  Bruno Haible  <bruno@clisp.org>
55229
55230         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
55231         * tests/test-posix_spawn1.in.sh: Renamed from
55232         tests/test-posix_spawn.in.sh.
55233         * tests/test-posix_spawn2.c: New file.
55234         * tests/test-posix_spawn2.in.sh: New file.
55235         * modules/posix_spawnp-tests (Files): Update.
55236         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
55237
55238 2008-09-29  Bruno Haible  <bruno@clisp.org>
55239
55240         Propagate effects of putenv/setenv/unsetenv to child processes.
55241         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
55242         * lib/pipe.c (create_pipe): Likewise.
55243
55244 2008-09-29  Bruno Haible  <bruno@clisp.org>
55245
55246         Enable use of shell scripts as executables in mingw.
55247         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
55248         run the program as a shell script.
55249         * lib/pipe.c (create_pipe): Likewise.
55250         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
55251         resulting array.
55252
55253 2008-09-29  Eric Blake  <ebb9@byu.net>
55254
55255         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
55256
55257 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
55258
55259         * doc/posix-functions/accept.texi: Update mingw problems.
55260         * doc/posix-functions/bind.texi: Update mingw problems.
55261         * doc/posix-functions/close.texi: Update mingw problems.
55262         * doc/posix-functions/connect.texi: Update mingw problems.
55263         * doc/posix-functions/getpeername.texi: Update mingw problems.
55264         * doc/posix-functions/getsockname.texi: Update mingw problems.
55265         * doc/posix-functions/getsockopt.texi: Update mingw problems.
55266         * doc/posix-functions/ioctl.texi: Update mingw problems.
55267         * doc/posix-functions/listen.texi: Update mingw problems.
55268         * doc/posix-functions/recv.texi: Update mingw problems.
55269         * doc/posix-functions/recvfrom.texi: Update mingw problems.
55270         * doc/posix-functions/select.texi: Update mingw problems.
55271         * doc/posix-functions/send.texi: Update mingw problems.
55272         * doc/posix-functions/sendto.texi: Update mingw problems.
55273         * doc/posix-functions/setsockopt.texi: Update mingw problems.
55274         * doc/posix-functions/socket.texi: Update mingw problems.
55275
55276 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
55277             Bruno Haible  <bruno@clisp.org>
55278
55279         * lib/sys_select.in.h: Include sys/time.h.
55280         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
55281         * modules/sys_select: Depend on sys_time.
55282         * tests/test-sys_select.c: Test that sys/select.h defines struct
55283         timeval fully.
55284
55285 2008-09-29  Bruno Haible  <bruno@clisp.org>
55286
55287         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
55288         * lib/sys_select.in.h: Likewise.
55289
55290 2008-09-29  Bruno Haible  <bruno@clisp.org>
55291
55292         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
55293
55294 2008-09-29  Bruno Haible  <bruno@clisp.org>
55295
55296         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
55297         Set LIBSOCKET instead of augmenting LIBS.
55298         * modules/sockets (Link): New section.
55299         * modules/sockets-tests (test_sockets_LDADD): New variable.
55300         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
55301         * modules/poll-tests (test_poll_LDADD): New variable.
55302         * NEWS: Document the change.
55303
55304 2008-09-29  Bruno Haible  <bruno@clisp.org>
55305
55306         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
55307         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
55308         ARPA_INET_H directly.
55309         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55310
55311 2008-09-28  Bruno Haible  <bruno@clisp.org>
55312
55313         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
55314         from gl_HEADER_SYS_SOCKET.
55315         (gl_HEADER_SYS_SOCKET): Invoke it.
55316         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55317
55318 2008-09-28  Bruno Haible  <bruno@clisp.org>
55319
55320         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
55321         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
55322         Needed on OSF/1 4.0.
55323
55324 2008-09-28  Bruno Haible  <bruno@clisp.org>
55325
55326         Override open more carefully.
55327         * lib/open.c (orig_open): New function.
55328         (rpl_open): Use orig_open instead of open.
55329         * lib/fcntl.in.h: Add special invocation convention.
55330         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
55331         (gl_FUNC_OPEN): Invoke it.
55332
55333         Override freopen more carefully.
55334         * lib/freopen.c (orig_freopen): New function.
55335         (rpl_freopen): Use orig_freopen instead of freopen.
55336         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
55337         (gl_FUNC_FREOPEN): Invoke it.
55338
55339         Override fopen more carefully.
55340         * lib/fopen.c (orig_fopen): New function.
55341         (rpl_fopen): Use orig_fopen instead of fopen.
55342         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
55343         (gl_FUNC_FOPEN): Invoke it.
55344         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
55345
55346 2008-09-28  Bruno Haible  <bruno@clisp.org>
55347
55348         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
55349         SIGPIPE.
55350
55351 2008-09-28  Bruno Haible  <bruno@clisp.org>
55352
55353         * tests/test-sigaction.c (handler, main): Disable the check whether
55354         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
55355         glibc systems with LinuxThreads.
55356
55357 2008-09-28  Bruno Haible  <bruno@clisp.org>
55358
55359         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
55360
55361         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
55362         with AIX xlc.
55363         * lib/fcntl.in.h (open): Likewise.
55364         Reported by Rainer Tammer <tammer@tammer.net>.
55365
55366 2008-09-28  Bruno Haible  <bruno@clisp.org>
55367
55368         * modules/posix_spawnp-tests: New file.
55369         * tests/test-posix_spawn.c: New file.
55370         * tests/test-posix_spawn.in.sh: New file.
55371
55372         New module 'posix_spawnp'.
55373         * modules/posix_spawnp: New file.
55374         * lib/spawnp.c: New file, from GNU libc with modifications.
55375         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
55376
55377         New module 'posix_spawn'.
55378         * modules/posix_spawn: New file.
55379         * lib/spawn.c: New file, from GNU libc with modifications.
55380         * doc/posix-functions/posix_spawn.texi: Mention the new module.
55381
55382         New module 'posix_spawnattr_destroy'.
55383         * modules/posix_spawnattr_destroy: New file.
55384         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
55385         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
55386         module.
55387
55388         New module 'posix_spawnattr_setsigmask'.
55389         * modules/posix_spawnattr_setsigmask: New file.
55390         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
55391         modifications.
55392         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
55393         new module.
55394
55395         New module 'posix_spawnattr_getsigmask'.
55396         * modules/posix_spawnattr_getsigmask: New file.
55397         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
55398         modifications.
55399         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
55400         new module.
55401
55402         New module 'posix_spawnattr_setsigdefault'.
55403         * modules/posix_spawnattr_setsigdefault: New file.
55404         * lib/spawnattr_setdefault.c: New file, from GNU libc with
55405         modifications.
55406         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
55407         new module.
55408
55409         New module 'posix_spawnattr_getsigdefault'.
55410         * modules/posix_spawnattr_getsigdefault: New file.
55411         * lib/spawnattr_getdefault.c: New file, from GNU libc with
55412         modifications.
55413         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
55414         new module.
55415
55416         New module 'posix_spawnattr_setschedpolicy'.
55417         * modules/posix_spawnattr_setschedpolicy: New file.
55418         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
55419         modifications.
55420         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
55421         new module.
55422
55423         New module 'posix_spawnattr_getschedpolicy'.
55424         * modules/posix_spawnattr_getschedpolicy: New file.
55425         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
55426         modifications.
55427         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
55428         new module.
55429
55430         New module 'posix_spawnattr_setschedparam'.
55431         * modules/posix_spawnattr_setschedparam: New file.
55432         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
55433         modifications.
55434         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
55435         new module.
55436
55437         New module 'posix_spawnattr_getschedparam'.
55438         * modules/posix_spawnattr_getschedparam: New file.
55439         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
55440         modifications.
55441         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
55442         new module.
55443
55444         New module 'posix_spawnattr_setpgroup'.
55445         * modules/posix_spawnattr_setpgroup: New file.
55446         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
55447         modifications.
55448         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
55449         module.
55450
55451         New module 'posix_spawnattr_getpgroup'.
55452         * modules/posix_spawnattr_getpgroup: New file.
55453         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
55454         modifications.
55455         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
55456         module.
55457
55458         New module 'posix_spawnattr_setflags'.
55459         * modules/posix_spawnattr_setflags: New file.
55460         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
55461         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
55462         module.
55463
55464         New module 'posix_spawnattr_getflags'.
55465         * modules/posix_spawnattr_getflags: New file.
55466         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
55467         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
55468         module.
55469
55470         New module 'posix_spawnattr_init'.
55471         * modules/posix_spawnattr_init: New file.
55472         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
55473         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
55474         module.
55475
55476         New module 'posix_spawn_file_actions_destroy'.
55477         * modules/posix_spawn_file_actions_destroy: New file.
55478         * lib/spawn_faction_destroy.c: New file, from GNU libc with
55479         modifications.
55480         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
55481         the new module.
55482
55483         New module 'posix_spawn_file_actions_addopen'.
55484         * modules/posix_spawn_file_actions_addopen: New file.
55485         * lib/spawn_faction_addopen.c: New file, from GNU libc with
55486         modifications.
55487         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
55488         the new module.
55489
55490         New module 'posix_spawn_file_actions_adddup2'.
55491         * modules/posix_spawn_file_actions_adddup2: New file.
55492         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
55493         modifications.
55494         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
55495         the new module.
55496
55497         New module 'posix_spawn_file_actions_addclose'.
55498         * modules/posix_spawn_file_actions_addclose: New file.
55499         * lib/spawn_faction_addclose.c: New file, from GNU libc with
55500         modifications.
55501         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
55502         the new module.
55503
55504         New module 'posix_spawn_file_actions_init'.
55505         * modules/posix_spawn_file_actions_init: New file.
55506         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
55507         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
55508         new module.
55509
55510         New module 'posix_spawn-internal'.
55511         * modules/posix_spawn-internal: New file.
55512         * lib/spawn_int.h: New file, from GNU libc with modifications.
55513         * lib/spawni.c: New file, from GNU libc with modifications.
55514         * m4/posix_spawn.m4: New file.
55515
55516         New module 'spawn'.
55517         * modules/spawn: New file.
55518         * lib/spawn.in.h: New file, from GNU libc with modifications.
55519         * m4/spawn_h.m4: New file.
55520         * doc/posix-headers/spawn.texi: Mention the new module.
55521
55522 2008-09-28  Bruno Haible  <bruno@clisp.org>
55523
55524         * modules/sched-tests: New file.
55525         * tests/test-sched.c: New file.
55526
55527         New module 'sched'.
55528         * modules/sched: New file.
55529         * lib/sched.in.h: New file.
55530         * m4/sched_h.m4: New file.
55531         * doc/posix-headers/sched.texi: Mention the new module.
55532
55533 2008-09-27  Eric Blake  <ebb9@byu.net>
55534
55535         Fix previous patch, and tweak references to $0.
55536         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
55537         (func_version, func_gnulib_dir): Don't call this program
55538         gnulib-tool.
55539         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
55540         with using $0 in function.
55541         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
55542         (func_fatal_error): Reuse the name the user invoked us with.
55543
55544 2008-09-27  Bruno Haible  <bruno@clisp.org>
55545
55546         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
55547         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
55548         (gl_ICONV_H): Not here.
55549         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55550         instead of assigning ICONV_H directly.
55551
55552         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
55553         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
55554         WCHAR_H directly.
55555
55556 2008-09-27  Bruno Haible  <bruno@clisp.org>
55557
55558         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
55559         * modules/arpa_inet (Depends-on): Add link-warning.
55560         (Makefile.am): Insert the definition of GL_LINK-WARNING.
55561         * modules/unistd (Makefile.am): Likewise.
55562
55563 2008-09-26  Bruno Haible  <bruno@clisp.org>
55564
55565         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
55566         variables.
55567         (func_version): Essentially copied from gnulib-tool.
55568         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
55569         func_readlink): Copied from gnulib-tool.
55570
55571 2008-09-26  Bruno Haible  <bruno@clisp.org>
55572
55573         * gnulib-tool (func_version): Change directory to $gnulib_dir before
55574         invoking git-version-gen.
55575
55576 2008-09-26  Bruno Haible  <bruno@clisp.org>
55577
55578         * posix-modules: Update to directory names changed on 2008-01-19.
55579         Remove commas in output before splitting into words. No more need to
55580         avoid 'ftruncate' since 2007-02-19.
55581
55582 2008-09-26  Bruno Haible  <bruno@clisp.org>
55583
55584         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
55585
55586 2008-09-26  Bruno Haible  <bruno@clisp.org>
55587
55588         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
55589         * modules/fwriteerror (Depends-on): Add errno.
55590
55591 2008-09-26  Bruno Haible  <bruno@clisp.org>
55592
55593         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
55594         * tests/test-vc-list-files-cvs.sh: Likewise.
55595
55596 2008-09-26  Bruno Haible  <bruno@clisp.org>
55597
55598         * doc/posix-headers/sys_resource.texi: Reorder items.
55599
55600 2008-09-26  Jim Meyering  <meyering@redhat.com>
55601
55602         fts: tweak inode comparison function
55603         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
55604         inode numbers, as documented.
55605
55606         fts: sort dirent entries on inode number before traversing
55607         This avoids a quadratic, seek-related performance penalty when
55608         operating on a directory containing many entries (measurable at 10k;
55609         3.5 hours at 2 million entries with a cold cache) on certain types
55610         of file systems, including ext3 and ext4, but not tmpfs.
55611         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
55612         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
55613         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
55614         (fs_handles_readdir_ordered_dirents_efficiently): New function.
55615         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
55616         (fts_build): Set the stat.st_ino member from D_INO.
55617         If it is likely to be useful, sort dirent entries on inode number.
55618
55619         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
55620         and the struct statfs.f_type member.
55621         * modules/fts (Depends-on): Add d-ino.
55622
55623 2008-09-26  Bruno Haible  <bruno@clisp.org>
55624
55625         * modules/sigpipe-die (Depends-on): Add sigpipe.
55626
55627         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
55628         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
55629         and GNULIB_STDIO_H_SIGPIPE are set.
55630         * lib/stdio-write.c: New file.
55631         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
55632         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55633         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55634         REPLACE_STDIO_WRITE_FUNCS.
55635         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
55636         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55637         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55638         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55639         * modules/stdio (Files): Add lib/stdio-write.c.
55640         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
55641         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55642         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55643         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55644         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
55645         REPLACE_FPRINTF_POSIX.
55646         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
55647         REPLACE_PRINTF_POSIX.
55648         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
55649         REPLACE_VFPRINTF_POSIX.
55650         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
55651         REPLACE_VPRINTF_POSIX.
55652         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
55653         SIGPIPE issue.
55654         * doc/posix-functions/fputc.texi: Likewise.
55655         * doc/posix-functions/fputs.texi: Likewise.
55656         * doc/posix-functions/fwrite.texi: Likewise.
55657         * doc/posix-functions/printf.texi: Likewise.
55658         * doc/posix-functions/putc.texi: Likewise.
55659         * doc/posix-functions/putchar.texi: Likewise.
55660         * doc/posix-functions/puts.texi: Likewise.
55661         * doc/posix-functions/vfprintf.texi: Likewise.
55662         * doc/posix-functions/vprintf.texi: Likewise.
55663
55664         * modules/safe-write (Depends-on): Add write.
55665
55666         * modules/sigpipe-tests: New file.
55667         * tests/test-sigpipe.c: New file.
55668         * tests/test-sigpipe.sh: New file.
55669
55670         * modules/write: New file.
55671         * lib/unistd.in.h: Include <sys/types.h>.
55672         (write): New declaration.
55673         * lib/write.c: New file.
55674         * m4/write.m4: New file.
55675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55676         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
55677         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
55678         GNULIB_WRITE, REPLACE_WRITE.
55679         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
55680         and the SIGPIPE issue.
55681
55682         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
55683         (raise): New declaration.
55684         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
55685         (ext_signal): New function.
55686         (rpl_raise): New function.
55687         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
55688         GNULIB_SIGNAL_H_SIGPIPE.
55689         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
55690         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
55691
55692         * modules/sigpipe: New file.
55693         * m4/sigpipe.m4: New file.
55694
55695 2008-09-25  Derek Price  <derek@ximbiot.com>
55696             Bruno Haible  <bruno@clisp.org>
55697
55698         * gnulib-tool (func_import): Report all license incompatibilities, not
55699         just the first one.
55700
55701 2008-09-25  Bruno Haible  <bruno@clisp.org>
55702
55703         * gnulib-tool (func_import): When computing the edits, consider not
55704         only the Makefile.ams that exist but also those that will be generated.
55705
55706 2008-09-25  Simon Josefsson  <simon@josefsson.org>
55707
55708         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
55709         fixes gnulib-tool --test warning about duplicate dependency.
55710
55711 2008-09-25  Bruno Haible  <bruno@clisp.org>
55712
55713         * gnulib-tool: Don't ask the user to perform edits in the generated
55714         Makefile.ams.
55715         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
55716         apply to the Makefile.am being generated.
55717         (func_emit_tests_Makefile_am): Execute edits that apply to the
55718         Makefile.am being generated.
55719         (func_import): Setup list of Makefile.am edits before emitting the
55720         Makefile.ams, not at the end.
55721         (func_create_testdir): Update.
55722         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55723
55724 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55725
55726         * gnulib-tool (func_import): Store the --tests-base option in the
55727         comment in gnulib-cache.m4.
55728
55729 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
55730
55731         * NEWS: Document increased portability that sys_select now provides.
55732
55733         * lib/sys_select.in.h: Install select wrapper.
55734         * lib/sys_socket.in.h: Use more descriptive name when there is no
55735         select wrapper.
55736         * lib/winsock-select.c: New.
55737         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
55738         Require gl_HEADER_SYS_SOCKET.
55739         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
55740         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
55741         * tests/test-sys_select.c: Add functional tests.
55742
55743 2008-09-24  Eric Blake  <ebb9@byu.net>
55744
55745         open, fopen: close fd leak in last patch
55746         * lib/open.c (rpl_open): Close fd before returning error.
55747         * lib/fopen.c (rpl_fopen): Close fd before returning error.
55748         * doc/posix-functions/open.texi (open): Document that Irix also
55749         has the bug.
55750         * doc/posix-functions/fopen.texi (fopen): Likewise.
55751         Reported by Paolo Bonzini.
55752
55753 2008-09-24  Bruno Haible  <bruno@clisp.org>
55754
55755         Ensure that a filename ending in a slash cannot be used to access a
55756         non-directory.
55757         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
55758         to check whether it's really a directory.
55759         * lib/fopen.c: Include fcntl.h, unistd.h.
55760         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
55761         and fdopen().
55762         * modules/fopen (Depends-on): Add unistd.
55763         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
55764         * tests/test-fopen.c (main): Likewise.
55765         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
55766         * doc/posix-functions/fopen.texi: Likewise.
55767         Reported by Eric Blake.
55768
55769 2008-09-23  Eric Blake  <ebb9@byu.net>
55770
55771         c-stack: avoid compiler optimizations when provoking overflow
55772         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
55773         recursion harder to optimize, to ensure a stack overflow occurs.
55774         * tests/test-c-stack.c (recurse): Likewise.
55775         Borrowed from libsigsegv.
55776
55777         c-stack: work around Irix sigaltstack bug
55778         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
55779         whether sigaltstack uses wrong end of stack_t (copied in part from
55780         libsigsegv).
55781         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
55782         Irix bug, without requiring an over-allocation.
55783         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
55784         bug.
55785
55786         fopen: document mingw bug on directories
55787         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
55788         not allowing a stream visiting a directory, even though reading
55789         from such a stream is not portable.
55790
55791 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55792
55793         * lib/poll.c: Rewrite.
55794         * modules/poll: Depend on alloca.
55795
55796 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55797
55798         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
55799         instead define prototypes for a full set of wrappers.  Ensure
55800         that Cygwin does not use the compatibility code, which is only
55801         for MinGW.
55802         * lib/winsock.c: New.
55803         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
55804         * modules/sys_socket: Add lib/winsock.c.
55805
55806         * modules/poll-tests: Add errno and perror.
55807         * tests/test-poll.c: Use ioctl, not ioctlsocket.
55808
55809 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55810
55811         * tests/test-poll.c: Downgrade minimum needed Winsock version.
55812
55813 2008-09-23  Bruno Haible  <bruno@clisp.org>
55814
55815         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
55816         * doc/glibc-functions/*: Likewise.
55817
55818 2008-09-23  Simon Josefsson  <simon@josefsson.org>
55819
55820         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
55821         success.
55822
55823 2008-09-22  Eric Blake  <ebb9@byu.net>
55824             Bruno Haible  <bruno@clisp.org>
55825
55826         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
55827         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
55828         supply %A but mishandle pseudo-NaN.
55829         Reported by Simon Josefsson.
55830
55831 2008-09-21  Bruno Haible  <bruno@clisp.org>
55832
55833         * tests/test-lock.c (main): Tweak skip message.
55834         * tests/test-tls.c (main): Likewise.
55835
55836 2008-09-21  Bruno Haible  <bruno@clisp.org>
55837
55838         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
55839         whether 'struct sigaction' has sa_sigaction here...
55840         (gl_PREREQ_SIG_HANDLER_H): ... not here.
55841         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
55842
55843 2008-09-21  Bruno Haible  <bruno@clisp.org>
55844
55845         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
55846         section.
55847         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
55848         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
55849         the new section.
55850         (Support for obsolete systems lacking POSIX:2001): New section.
55851         (String handling <string.h>): Move strdup to the new section.
55852         Suggested by Simon Josefsson and Paolo Bonzini.
55853
55854 2008-09-21  Bruno Haible  <bruno@clisp.org>
55855
55856         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
55857         exponents in %e and %g results on 'long double'. Needed for mingw's
55858         improved *printf functions.
55859         * tests/test-vasprintf-posix.c (test_function): Likewise.
55860         * tests/test-snprintf-posix.h (test_function): Likewise.
55861         * tests/test-sprintf-posix.h (test_function): Likewise.
55862         Reported by Eric Blake.
55863
55864 2008-09-21  Bruno Haible  <bruno@clisp.org>
55865
55866         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
55867         * tests/test-sprintf-posix.h (test_function): Likewise.
55868
55869 2008-09-21  Bruno Haible  <bruno@clisp.org>
55870
55871         * modules/getpass (Depends-on): Add strdup-posix.
55872
55873         New module 'strdup-posix'.
55874         * modules/strdup-posix: New file.
55875         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
55876         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
55877         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55878         REPLACE_STRDUP.
55879         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
55880         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
55881         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55882         strdup-posix.
55883
55884         * modules/strdup (Depends-on): Remove malloc-posix.
55885
55886 2008-09-20  Bruno Haible  <bruno@clisp.org>
55887
55888         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
55889         Wildenhues.
55890
55891 2008-09-20  Bruno Haible  <bruno@clisp.org>
55892
55893         Ensure that wint_t gets defined on IRIX 5.3.
55894         * lib/wchar.in.h (wint_t): Define if not defined by the system.
55895         * lib/wctype.in.h (wint_t): Likewise.
55896         (__wctype_wint_t): Remove type.
55897         (isw*): Use wint_t instead of __wctype_wint_t.
55898         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
55899         * modules/wchar (Files): Add m4/wint_t.m4.
55900         (Makefile.am): Substitute HAVE_WINT_T.
55901         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
55902         * tests/test-wctype.c: Check that wint_t is defined.
55903         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
55904         * doc/posix-headers/wctype.texi: Likewise.
55905         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55906
55907 2008-09-18  Bruno Haible  <bruno@clisp.org>
55908
55909         * gnulib-tool (func_exit): Update comment.
55910
55911 2008-09-18  Simon Josefsson  <simon@josefsson.org>
55912
55913         * modules/getaddrinfo (Depends-on): Remove strdup, this module
55914         assumes strdup exists and does not depend on strdup to return
55915         ENOMEM on out of memory conditions.
55916
55917 2008-09-18  Bruno Haible  <bruno@clisp.org>
55918
55919         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
55920         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
55921         digits for the exponent.
55922
55923 2008-09-18  Jim Meyering  <meyering@redhat.com>
55924             Bruno Haible  <bruno@clisp.org>
55925
55926         * lib/vasnprintf.c (decimal_point_char): Define also if
55927         NEED_PRINTF_INFINITE_LONG_DOUBLE.
55928
55929 2008-09-16  Bruno Haible  <bruno@clisp.org>
55930         and Eric Blake  <ebb9@byu.net>
55931
55932         vasnprintf: support Irix 5.3
55933         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
55934         that mishandle long double infinity.
55935         Reported by Tom G. Christensen.
55936
55937 2008-09-16  Bruno Haible  <bruno@clisp.org>
55938
55939         * doc/glibc-functions/scandir.texi: Mention the function is missing on
55940         Solaris 9.
55941         * doc/glibc-functions/alphasort.texi: Likewise.
55942         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
55943
55944 2008-09-16  Jim Meyering  <meyering@redhat.com>
55945
55946         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
55947         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
55948         a umask modification leak out of a subshell.  Otherwise, the
55949         opensolaris /bin/sh would be accepted and thus cause unwarranted
55950         failures in the coreutils test suite.
55951
55952 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
55953
55954         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
55955         to succeed.
55956
55957 2008-09-16  Jim Meyering  <meyering@redhat.com>
55958
55959         avoid spurious test failure when library is built without ACL support
55960         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
55961         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
55962         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
55963         * tests/test-copy-acl.sh: Likewise.
55964
55965 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55966
55967         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
55968         based on character occurrence counts.
55969
55970 2008-09-15  Eric Blake  <ebb9@byu.net>
55971
55972         tests: avoid some compiler warnings
55973         * tests/test-memchr.c (main): Pass NULL indirectly.
55974         * tests/test-closein.c (main): Avoid unused variable.
55975
55976 2008-09-15  Bruno Haible  <bruno@clisp.org>
55977
55978         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
55979         are missing on OpenBSD 4.0 individually.
55980         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55981
55982 2008-09-15  Bruno Haible  <bruno@clisp.org>
55983
55984         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
55985         * doc/posix-functions/strerror.texi: Mention also Cygwin.
55986         * doc/posix-functions/perror.texi: Likewise.
55987         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
55988         is missing.
55989         Reported by Eric Blake.
55990
55991         * lib/errno.in.h: Use replacement values >= 2000.
55992         Reported by Eric Blake.
55993
55994 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55995
55996         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
55997         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
55998         limit.
55999         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
56000         compareseq was aborted.
56001
56002 2008-09-14  Bruno Haible  <bruno@clisp.org>
56003
56004         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
56005         yvec_edit_count.
56006         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
56007         (fstrcmp_bounded): Simplify result computation accordingly.
56008
56009 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56010
56011         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
56012         (fstrcmp): Define in terms of fstrcmp_bounded.
56013         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
56014         lower_bound argument.
56015         Return quickly if the result is certainly < lower_bound.
56016         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
56017
56018 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56019
56020         * lib/diffseq.h (EARLY_ABORT): New macro.
56021         (compareseq): Change return type to bool. Return true when EARLY_ABORT
56022         evaluates to true.
56023
56024 2008-09-14  Bruno Haible  <bruno@clisp.org>
56025
56026         * modules/perror-tests: New file.
56027         * tests/test-perror.sh: New file.
56028         * tests/test-perror.c: New file.
56029
56030         New module 'perror'.
56031         * lib/stdio.in.h (perror): New declaration.
56032         * lib/perror.c: New file.
56033         * m4/perror.m4: New file.
56034         * modules/perror: New file.
56035         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
56036         * doc/posix-functions/perror.texi: Mention the perror module.
56037         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
56038         REPLACE_PERROR.
56039         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
56040         REPLACE_PERROR.
56041
56042 2008-09-14  Bruno Haible  <bruno@clisp.org>
56043
56044         * modules/stdio (Makefile.am): Reorder to match the order in
56045         lib/stdio.in.h.
56046         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56047
56048 2008-09-13  Bruno Haible  <bruno@clisp.org>
56049
56050         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
56051
56052 2008-09-13  Bruno Haible  <bruno@clisp.org>
56053
56054         Extend strerror to cover the added errno values.
56055         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
56056         (rpl_strerror): Provide error messages for the added errno values and
56057         for the WSA* values.
56058         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
56059         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
56060         strerror.
56061         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
56062         * modules/strerror (Depends-on): Add errno.
56063         * doc/posix-functions/strerror.texi: Document the change.
56064         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
56065         and EOVERFLOW.
56066
56067 2008-09-13  Bruno Haible  <bruno@clisp.org>
56068
56069         * modules/EOVERFLOW: Remove file.
56070         * m4/eoverflow.m4: Remove file.
56071         * modules/EOVERFLOW-tests: Remove file.
56072         * tests/test-EOVERFLOW.c: Remove file.
56073         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
56074         * modules/ftell (Depends-on): Likewise.
56075         * modules/getdelim (Depends-on): Likewise.
56076         * modules/getugroups (Depends-on): Likewise.
56077         * modules/poll (Depends-on): Likewise.
56078         * modules/snprintf (Depends-on): Likewise.
56079         * modules/sprintf-posix (Depends-on): Likewise.
56080         * modules/vasnprintf (Depends-on): Likewise.
56081         * modules/vasprintf (Depends-on): Likewise.
56082         * modules/vfprintf-posix (Depends-on): Likewise.
56083         * modules/vsnprintf (Depends-on): Likewise.
56084         * modules/vsprintf-posix (Depends-on): Likewise.
56085         * modules/xvasprintf (Depends-on): Likewise.
56086         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56087         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
56088         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
56089         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
56090         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56091         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
56092         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
56093         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
56094         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56095         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
56096         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
56097         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
56098         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56099         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
56100         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
56101         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
56102         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56103         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
56104         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
56105         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
56106         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56107         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
56108         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
56109         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
56110         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
56111         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56112         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
56113         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
56114         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
56115         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
56116         * MODULES.html.sh: Remove EOVERFLOW.
56117         * NEWS: Mention the change.
56118
56119 2008-09-13  Bruno Haible  <bruno@clisp.org>
56120
56121         * modules/errno-tests: New file.
56122         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
56123
56124         * lib/errno.in.h: New file.
56125         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
56126         * modules/errno: New file.
56127         * doc/posix-headers/errno.texi: Update documentation.
56128         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
56129
56130 2008-09-13  Bruno Haible  <bruno@clisp.org>
56131
56132         * tests/test-poll.c: Use #if for native Windows, rather than testing
56133         __MSVCRT__.
56134
56135 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56136             Bruno Haible  <bruno@clisp.org>
56137
56138         * lib/glob.c: Don't include <pwd.h> on native Windows.
56139         (WINDOWS32): New macro.
56140         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
56141
56142 2008-09-13  Bruno Haible  <bruno@clisp.org>
56143
56144         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
56145         (ETIMEDOUT): Remove macro.
56146         (glthread_cond_timedwait_multithreaded): New declaration.
56147         (glthread_cond_timedwait): Use it.
56148         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
56149         (glthread_cond_timedwait_multithreaded): New function.
56150
56151 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56152
56153         * modules/poll-tests: Do not check for io.h.
56154         * tests/test-poll.c: Check for __MSVCRT__ instead.
56155
56156 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56157
56158         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
56159         * modules/poll-tests: Add inet_pton, stdbool, sockets.
56160         * tests/test-poll.c: Use them.  Use _pipe on Windows.
56161
56162 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56163
56164         * modules/poll-tests: New.
56165         * tests/test-poll.c: New.
56166
56167 2008-09-12  Eric Blake  <ebb9@byu.net>
56168
56169         frexp: test for NetBSD failure on -0.0
56170         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
56171         not all, bugs from NetBSD 3.0 have been fixed.
56172         * doc/posix-functions/frexp.texi (frexp): Document bug.
56173         Reported by Thomas Klausner.
56174
56175         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
56176         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
56177         literal -0.0.
56178         Reported by Jonathan C. Patschke <jp@centtech.com>.
56179
56180 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56181
56182         * lib/glthread/cond.h: Use dummy implementation also if
56183         USE_WIN32_THREADS.
56184
56185 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56186
56187         * modules/fnmatch-posix (License): Change to LGPLv2+.
56188         * modules/fnmatch-gnu (License): Likewise.
56189
56190 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56191
56192         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
56193
56194 2008-09-11  Jim Meyering  <meyering@redhat.com>
56195
56196         * users.txt: Add gtk-vnc.
56197
56198 2008-09-08  Simon Josefsson  <simon@josefsson.org>
56199
56200         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
56201         rotate amounts.
56202
56203         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
56204         required for 16-bit and 8-bit rotates.
56205         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
56206         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
56207         UINT8_MAX instead of hard-coded constants.
56208         Suggested by Paul Eggert.
56209
56210 2008-09-07  Bruno Haible  <bruno@clisp.org>
56211
56212         * tests/test-striconveh.c (main): Check behaviour when converting from
56213         UTF-7.
56214
56215         Make striconveh work better with stateful encodings.
56216         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
56217         that iconv does not increment the inptr when returning -1/EINVAL.
56218
56219 2008-09-07  Bruno Haible  <bruno@clisp.org>
56220
56221         * build-aux/config.rpath: Update according to libtool-2.2.6.
56222         * build-aux/config.libpath: Likewise.
56223
56224 2008-09-06  Bruno Haible  <bruno@clisp.org>
56225
56226         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
56227         * lib/freadptr.c (freadptr): Likewise.
56228         * lib/freadseek.c (freadptrinc): Likewise.
56229         Reported by Simon Josefsson.
56230
56231 2008-09-06  Bruno Haible  <bruno@clisp.org>
56232
56233         * modules/freadptr (License): Change to LGPLv2+.
56234         * modules/freadseek (License): Likewise.
56235         Suggested by Eric Blake.
56236
56237         * modules/memchr2 (License): Change to LGPLv2+.
56238         Approved by Eric Blake.
56239
56240 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56241             Bruno Haible  <bruno@clisp.org>
56242
56243         Make gnulib-tool work with native 'sed' on AIX.
56244         * gnulib-tool (sed_noop): New variable.
56245         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
56246         func_add_or_update, func_create_testdir): Use it to initialize sed
56247         script variables.
56248         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56249
56250 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
56251             Bruno Haible  <bruno@clisp.org>
56252
56253         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
56254         also works after #include directives.
56255
56256 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
56257
56258         getdate.y: reject an out-of-range timezone value
56259         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
56260         the range [-24...+24].  When specified with only one or two digits,
56261         * tests/test-getdate.c: Tests for the fix.
56262         * doc/getdate.texi: Document this change.
56263
56264 2008-09-03  Bruno Haible  <bruno@clisp.org>
56265
56266         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
56267
56268 2008-09-02  Simon Josefsson  <simon@josefsson.org>
56269
56270         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
56271         <bruce.korb@gmail.com> with ideas from Ben Pfaff
56272         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
56273         Blake <ebb9@byu.net>.
56274
56275         * tests/test-bitrotate.c: Add more test vectors.
56276
56277 2008-09-02  Eric Blake  <ebb9@byu.net>
56278
56279         vasnprintf-posix: handle large precision via %.*d
56280         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
56281         when handling it ourselves.
56282         * tests/test-vasnprintf-posix.c (test_function): Add test.
56283         * tests/test-snprintf-posix.h (test_function): Likewise.
56284         * tests/test-sprintf-posix.h (test_function): Likewise.
56285         * tests/test-vasprintf-posix.c (test_function): Likewise.
56286         Reported by Alain Guibert.
56287
56288 2008-09-01  Eric Blake  <ebb9@byu.net>
56289
56290         c-stack: make configure-time check more robust
56291         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
56292         successful sigaction call.
56293         Reported by Tom G. Christensen.
56294
56295 2008-09-01  Bruno Haible  <bruno@clisp.org>
56296
56297         New module 'findprog-lgpl'.
56298         * modules/findprog-lgpl: New file.
56299         * lib/findprog-lgpl.c: New file.
56300         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
56301         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
56302         to decide whether to use strdup or xstrdup, concatenated_filename or
56303         xconcatenated_filename.
56304
56305 2008-09-01  Bruno Haible  <bruno@clisp.org>
56306
56307         Split module 'concat-filename' into 'concat-filename' (LGPL) and
56308         'xconcat-filename' (GPL).
56309         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
56310         (License): Change to LGPLv2+.
56311         * modules/xconcat-filename: New file.
56312         * lib/concat-filename.h (concatenated_filename): Change specification.
56313         (xconcatenated_filename): New declaration.
56314         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
56315         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
56316         memory situations.
56317         * lib/xconcat-filename.c: New file.
56318         * NEWS: Mention the change.
56319         * lib/findprog.c: Include concat-filename.h, not filename.h.
56320         (find_in_path): Use xconcatenated_filename instead of
56321         concatenated_filename.
56322         * lib/javacomp.c: Include concat-filename.h, not filename.h.
56323         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56324         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56325         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56326         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
56327         instead of concatenated_filename.
56328         * lib/javaexec.c: Include concat-filename.h, not filename.h.
56329         (execute_java_class): Use xconcatenated_filename instead of
56330         concatenated_filename.
56331         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
56332         * modules/javacomp (Depends-on): Likewise.
56333         * modules/javaexec (Depends-on): Likewise.
56334
56335 2008-09-01  Bruno Haible  <bruno@clisp.org>
56336
56337         Split module 'filename' into 'filename' and 'concat-filename'.
56338         * modules/filename: Keep only lib/filename.h.
56339         (License): Change to LGPLv2+.
56340         * modules/concat-filename: New file, extracted from modules/filename.
56341         * lib/filename.h (concatenated_filename): Remove declaration.
56342         * lib/concat-filename.h: New file, extracted from lib/filename.h.
56343         * lib/concat-filename.c: Include concat-filename.h.
56344         * NEWS: Mention the change.
56345
56346 2008-09-01  Simon Josefsson  <simon@josefsson.org>
56347
56348         * lib/bitrotate.h (rotl8, rotr8): Add.
56349
56350         * modules/bitrotate (configure.ac): Need
56351         AC_REQUIRE([AC_C_INLINE]).
56352         (Description): Mention stdint.h.  Reported by Bruno Haible
56353         <bruno@clisp.org>.
56354
56355         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
56356         Paolo Bonzini <bonzini@gnu.org>.
56357
56358 2008-08-31  Bruno Haible  <bruno@clisp.org>
56359
56360         Assume Solaris specific bi-arch conventions on Solaris systems.
56361         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
56362         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
56363         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
56364         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
56365         like acl_libdirstem.
56366         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
56367         acl_libdirstem.
56368         * NEWS: Mention the change.
56369         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
56370
56371 2008-08-31  Jim Meyering  <meyering@redhat.com>
56372
56373         * lib/strftime.h: Add comments describing the two added arguments.
56374
56375         remove duplicate #include directives
56376         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
56377         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
56378
56379 2008-08-31  Bruno Haible  <bruno@clisp.org>
56380
56381         New module 'sigpipe-die'.
56382         * modules/sigpipe-die: New file.
56383         * lib/sigpipe-die.h: New file.
56384         * lib/sigpipe-die.c: New file.
56385         * MODULES.html.sh (Signal handling): Add sigpipe-die.
56386
56387 2008-08-31  Bruno Haible  <bruno@clisp.org>
56388
56389         Don't override previously installed signal handlers.
56390         * lib/fatal-signal.c (saved_sigactions): New variable.
56391         (uninstall_handlers): Reset the signal to the saved handler, not
56392         to SIG_DFL (except when ignored).
56393         (install_handlers): Save the previous handlers.
56394
56395 2008-08-30  Bruno Haible  <bruno@clisp.org>
56396
56397         * gnulib-tool (func_reset_sigpipe): New function.
56398         (func_get_automake_snippet, func_modules_transitive_closure,
56399         func_import): Invoke it before a join command that reads from stdin,
56400         to avoid "echo: write error: Broken pipe" error messages on stderr.
56401         Reported by Sam Steingold <sds@gnu.org>.
56402
56403 2008-08-30  Bruno Haible  <bruno@clisp.org>
56404
56405         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
56406         Code copied from m4/open.m4.
56407         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
56408         access and the filename ends in a slash. Code copied from lib/open.c.
56409         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
56410         * tests/test-fopen.c (main): Check against bug with trailing slash.
56411
56412 2008-08-29  Bruno Haible  <bruno@clisp.org>
56413
56414         Avoid some "gcc -pedantic" warnings.
56415         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
56416         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
56417         * lib/dirent.in.h: Likewise.
56418         * lib/fcntl.in.h: Likewise.
56419         * lib/float.in.h: Likewise.
56420         * lib/iconv.in.h: Likewise.
56421         * lib/inttypes.in.h: Likewise.
56422         * lib/locale.in.h: Likewise.
56423         * lib/math.in.h: Likewise.
56424         * lib/netinet_in.in.h: Likewise.
56425         * lib/search.in.h: Likewise.
56426         * lib/signal.in.h: Likewise.
56427         * lib/stdarg.in.h: Likewise.
56428         * lib/stdint.in.h: Likewise.
56429         * lib/stdio.in.h: Likewise.
56430         * lib/stdlib.in.h: Likewise.
56431         * lib/string.in.h: Likewise.
56432         * lib/strings.in.h: Likewise.
56433         * lib/sys_select.in.h: Likewise.
56434         * lib/sys_socket.in.h: Likewise.
56435         * lib/sys_stat.in.h: Likewise.
56436         * lib/sys_time.in.h: Likewise.
56437         * lib/sysexits.in.h: Likewise.
56438         * lib/time.in.h: Likewise.
56439         * lib/unistd.in.h: Likewise.
56440         * lib/wchar.in.h: Likewise.
56441         * lib/wctype.in.h: Likewise.
56442         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
56443         * modules/fchdir (Makefile.am): Likewise.
56444         * modules/fcntl (Makefile.am): Likewise.
56445         * modules/float (Makefile.am): Likewise.
56446         * modules/iconv_open (Makefile.am): Likewise.
56447         * modules/inttypes (Makefile.am): Likewise.
56448         * modules/locale (Makefile.am): Likewise.
56449         * modules/math (Makefile.am): Likewise.
56450         * modules/netinet_in (Makefile.am): Likewise.
56451         * modules/search (Makefile.am): Likewise.
56452         * modules/signal (Makefile.am): Likewise.
56453         * modules/stdarg (Makefile.am): Likewise.
56454         * modules/stdint (Makefile.am): Likewise.
56455         * modules/stdio (Makefile.am): Likewise.
56456         * modules/stdlib (Makefile.am): Likewise.
56457         * modules/string (Makefile.am): Likewise.
56458         * modules/strings (Makefile.am): Likewise.
56459         * modules/sys_select (Makefile.am): Likewise.
56460         * modules/sys_socket (Makefile.am): Likewise.
56461         * modules/sys_stat (Makefile.am): Likewise.
56462         * modules/sys_time (Makefile.am): Likewise.
56463         * modules/sysexits (Makefile.am): Likewise.
56464         * modules/time (Makefile.am): Likewise.
56465         * modules/unistd (Makefile.am): Likewise.
56466         * modules/wchar (Makefile.am): Likewise.
56467         * modules/wctype (Makefile.am): Likewise.
56468         Reported by Reuben Thomas <rrt@sc3d.org>.
56469
56470 2008-08-29  Bruno Haible  <bruno@clisp.org>
56471
56472         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
56473         any more.
56474
56475 2008-08-29  Simon Josefsson  <simon@josefsson.org>
56476
56477         * MODULES.html.sh (Misc): Add bitrotate.
56478
56479         * modules/bitrotate: New file.
56480
56481         * lib/bitrotate.h: New file.
56482
56483         * modules/bitrotate-tests: New file.
56484
56485         * tests/test-bitrotate.c: New file.
56486
56487         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
56488         on the bitrotate module.
56489
56490         * lib/arctwo.c: Use new bitrotate module.
56491
56492 2008-08-29  Jim Meyering  <meyering@redhat.com>
56493
56494         bootstrap: merge changes from coreutils
56495         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
56496         of copied files.  Remove a kludge, now that this is fixed.
56497         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
56498         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
56499         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
56500
56501 2008-08-29  Bruno Haible  <bruno@clisp.org>
56502
56503         * MODULES.html.sh: Remove --cvs-urls option.
56504
56505 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
56506
56507         maint.mk: adjust to file name change
56508         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
56509
56510 2008-08-28  Jim Meyering  <meyering@redhat.com>
56511
56512         * modules/getndelim2 (License): Relicense to LGPLv2+.
56513         Approved by Richard Stallman for the version of 1995, and by
56514         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
56515
56516 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
56517
56518         * lib/getdelim.c (flockfile, funlockfile): Make all of them
56519         dummy if one is not available.  Do not touch them if
56520         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
56521         (getc_maybe_unlocked): New.
56522         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
56523
56524 2008-08-26  Eric Blake  <ebb9@byu.net>
56525
56526         doc/INSTALL: resync from autoconf
56527         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
56528         (INSTALL_PRELUDE): Delete; this is done more efficiently by
56529         moving...
56530         * install.texi [!autoconf]: ...here.  Resync from autoconf.
56531         * INSTALL: Regenerate.
56532         * INSTALL.ISO: New file.
56533         * INSTALL.UTF-8: Likewise.
56534
56535 2008-08-26  Jim Meyering  <meyering@redhat.com>
56536
56537         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
56538         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
56539         these definitions conditional, so that they may be overridden, too.
56540
56541 2008-08-26  Bruno Haible  <bruno@clisp.org>
56542
56543         Generate INSTALL file variants with prettier quotes.
56544         * doc/Makefile (INSTALL_PRELUDE): New macro.
56545         (INSTALL): Use it.
56546         (INSTALL.ISO, INSTALL.UTF-8): New rules.
56547
56548 2008-08-26  Bruno Haible  <bruno@clisp.org>
56549
56550         Run makeinfo in an English locale.
56551         * doc/Makefile (MAKEINFO): New variable.
56552
56553 2008-08-26  Bruno Haible  <bruno@clisp.org>
56554
56555         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
56556         Suggested by Eric Blake.
56557
56558 2008-08-25  Bruno Haible  <bruno@clisp.org>
56559
56560         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
56561
56562 2008-08-25  Eric Blake  <ebb9@byu.net>
56563
56564         c-stack: test that stack overflow can be caught
56565         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
56566         that platform allows handling stack overflow; at least OS/2 EMX
56567         has sigaltstack, but crashes before transferring control to
56568         handler on stack overflow.
56569         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
56570         check for HAVE_STACK_OVERFLOW_HANDLING.
56571         Reported by Elbert Pol.
56572
56573 2008-08-25  Bruno Haible  <bruno@clisp.org>
56574
56575         * doc/posix-functions/strftime.texi: Fix description of strftime
56576         module.
56577
56578 2008-08-24  Bruno Haible  <bruno@clisp.org>
56579
56580         * tests/uniwidth/test-uc_width2.c: New file.
56581         * tests/uniwidth/test-uc_width2.sh: New file.
56582         * modules/uniwidth/width-tests (Files): Add the new files.
56583         (TESTS): Add uniwidth/test-uc_width2.sh.
56584         (TESTS_ENVIRONMENT): New variable.
56585         (check_PROGRAMS): Add test-uc_width2.
56586         (test_uc_width2_SOURCES): New variable.
56587
56588         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
56589         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
56590         not 0x00AB.
56591         Reported by Alexander V. Lukyanov <lav@netis.ru>.
56592
56593 2008-08-22  Eric Blake  <ebb9@byu.net>
56594
56595         test-lock, test-tls: mention why a test is skipped
56596         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
56597         skipped.
56598         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
56599
56600         count-one-bits: relax license
56601         * modules/count-one-bits (License): Relicense to LGPLv2+.
56602         Suggested by Ludovic Courtès, approved by Ben Pfaff.
56603
56604 2008-08-22  Andreas Schwab  <schwab@suse.de>
56605
56606         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
56607         Remove spurious space in assignment.
56608
56609 2008-08-21  Simon Josefsson  <simon@josefsson.org>
56610
56611         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
56612         Paul Eggert <eggert@CS.UCLA.EDU>.
56613
56614 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
56615
56616         * modules/gettext: Add m4/threadlib.m4.
56617
56618 2008-08-19  Eric Blake  <ebb9@byu.net>
56619
56620         test-c-stack: fix compilation failure on FreeBSD 5.0
56621         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
56622         headers before <sys/resource.h>.
56623         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
56624         the bug.
56625         Reported by Nelson H. F. Beebe.
56626
56627         strverscmp: migrate from "strverscmp.h" to <string.h>
56628         * modules/string (Makefile.am): Add new hooks.
56629         * modules/strverscmp (Files): Remove strverscmp.h.
56630         (Depends-on): Add string.
56631         (configure.ac): Add indicator.
56632         (Include): Mention new header.
56633         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
56634         defaults.
56635         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
56636         results.
56637         * lib/strverscmp.h: Delete.
56638         * lib/string.in.h (strverscmp): Provide declaration, when needed.
56639         * tests/test-strverscmp.c (includes): Adjust client.
56640         * lib/check-version.c (includes): Likewise.
56641         * NEWS: Document the change.
56642
56643         strverscmp: add unit test
56644         * modules/strverscmp-tests: New file.
56645         * tests/test-strverscmp.c: Likewise.
56646
56647 2008-08-19  Simon Josefsson  <simon@josefsson.org>
56648
56649         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
56650         regarding Windows crypto stuff, from Mono.
56651
56652 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
56653
56654         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
56655         if present, for intel RND.  Return error on failures.
56656
56657 2008-08-18  Ben Pfaff  <blp@gnu.org>
56658
56659         gitlog-to-changelog: give better diagnostic for failed pipe-open
56660         * build-aux/gitlog-to-changelog: Improve error message: suggest
56661         that the version of Git may be too old.
56662
56663 2008-08-18  Simon Josefsson  <simon@josefsson.org>
56664
56665         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
56666         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
56667
56668 2008-08-18  Bruno Haible  <bruno@clisp.org>
56669
56670         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
56671         pthread_in_use().
56672
56673 2008-08-18  Bruno Haible  <bruno@clisp.org>
56674
56675         * lib/glthread/threadlib.c: Include <pthread.h>.
56676
56677 2008-08-18  Bruno Haible  <bruno@clisp.org>
56678
56679         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
56680         glthread_recursive_lock_* macros.
56681         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
56682         Fix syntax error.
56683
56684 2008-08-18  Bruno Haible  <bruno@clisp.org>
56685
56686         * lib/glthread/thread.c: Avoid forcing a context switch right after
56687         thread creation.
56688
56689 2008-08-17  Bruno Haible  <bruno@clisp.org>
56690
56691         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
56692         * lib/glthread/thread.h: Provide Win32 specific implementation.
56693         * modules/thread (Files): Add lib/glthread/thread.c.
56694         (Depends-on): Add lock.
56695         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
56696
56697 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56698
56699         New module 'yield'.
56700         * modules/yield: New file.
56701         * lib/glthread/yield.h: New file.
56702         * m4/yield.m4: New file.
56703         * MODULES.html.sh (Multithreading): Add yield.
56704
56705 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56706
56707         New module 'thread'.
56708         * modules/thread: New file.
56709         * lib/glthread/thread.h: New file.
56710         * m4/thread.m4: New file.
56711         * MODULES.html.sh (Multithreading): Add thread.
56712
56713 2008-08-17  Bruno Haible  <bruno@clisp.org>
56714
56715         * lib/glthread/lock.h: Include <stdlib.h> always.
56716         * lib/glthread/tls.h: Likewise.
56717         * lib/glthread/cond.h: Likewise.
56718
56719 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56720
56721         New module 'cond'.
56722         * modules/cond: New file.
56723         * lib/glthread/cond.h: New file.
56724         * lib/glthread/cond.c: New file.
56725         * m4/cond.m4: New file.
56726         * MODULES.html.sh (Multithreading): Add cond.
56727
56728 2008-08-16  Eric Blake  <ebb9@byu.net>
56729
56730         c-stack: fix regression on Irix 5.3 from 2008-06-21
56731         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
56732         sa_sigaction...
56733         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
56734         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
56735         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
56736         * modules/signal (Makefile.am): Use the value.
56737         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
56738         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
56739         * doc/posix-headers/signal.texi (signal.h): Document this
56740         portability issue.
56741         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
56742         Reported by Tom G. Christensen.
56743
56744 2008-08-17  Bruno Haible  <bruno@clisp.org>
56745
56746         New module 'threadlib'.
56747         * modules/threadlib: New file.
56748         * lib/glthread/threadlib.c: New file, extracted from
56749         lib/glthread/lock.c.
56750         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
56751         functions.
56752         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
56753         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
56754         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
56755         macros.
56756         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
56757         (gl_DISABLE_THREADS): Remove macro.
56758         * modules/lock (Files): Remove build-aux/config.rpath.
56759         (Depends-on): Remove havelib. Add threadlib.
56760         (configure.ac-early): Remove section.
56761         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
56762         * modules/tls (Depends-on): Remove lock. Add threadlib.
56763         (Link): New section, copied from threadlib.
56764         * MODULES.html.sh (Multithreading): Add threadlib.
56765
56766 2008-08-14  Bruno Haible  <bruno@clisp.org>
56767
56768         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
56769         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
56770         glthread_rwlock_unlock, glthread_rwlock_destroy,
56771         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
56772         glthread_recursive_lock_destroy): Define as macros always.
56773         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
56774         glthread_lock_lock.
56775         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
56776         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
56777         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
56778         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
56779         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
56780         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
56781         (glthread_recursive_lock_lock_func): Renamed from
56782         glthread_recursive_lock_lock.
56783         (glthread_recursive_lock_unlock_func): Renamed from
56784         glthread_recursive_lock_unlock.
56785         (glthread_recursive_lock_destroy_func): Renamed from
56786         glthread_recursive_lock_destroy.
56787
56788 2008-08-14  Bruno Haible  <bruno@clisp.org>
56789
56790         * lib/glthread/lock.h: Renamed from lib/lock.h.
56791         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
56792         * lib/glthread/tls.h: Renamed from lib/tls.h.
56793         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
56794         * lib/fstrcmp.c: Update includes.
56795         * lib/strsignal.c: Update includes.
56796         * modules/lock (Files, Makefile.am): Update.
56797         (Include): Change to "glthread/lock.h".
56798         * modules/tls (Files, Makefile.am): Update.
56799         (Include): Change to "glthread/tls.h".
56800         * tests/test-lock.c: Update includes.
56801         * tests/test-tls.c: Update includes.
56802         * NEWS: Mention the renamed header files.
56803
56804 2008-08-11  Jim Meyering  <meyering@redhat.com>
56805
56806         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
56807
56808 2008-08-11  Eric Blake  <ebb9@byu.net>
56809
56810         test-c-stack: avoid C99-ism
56811         * tests/test-c-stack.c (main): Fix whitespace, move declaration
56812         before statement.
56813         Reported by Alain Guibert.
56814
56815 2008-08-10  Jim Meyering  <meyering@redhat.com>
56816
56817         ensure that return value of uinttostr et al are not ignored
56818         * lib/inttostr.h (__GNUC_PREREQ): Define.
56819         (__attribute_warn_unused_result__): Define.
56820         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
56821
56822 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
56823
56824         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
56825         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
56826
56827 2008-08-07  Jim Meyering  <meyering@redhat.com>
56828
56829         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
56830
56831         * modules/mkstemp (License): Relicense under LGPLv2+.
56832         * modules/tempname (License): Likewise.
56833
56834 2008-08-06  Bruno Haible  <bruno@clisp.org>
56835
56836         * lib/poll.c (poll): Further micro-optimization.
56837
56838 2008-08-06  Jim Meyering  <meyering@redhat.com>
56839
56840         inet_pton.c: use locale-independent tolower
56841         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
56842         (inet_pton6): Use c_tolower rather than tolower.
56843         * modules/inet_pton (Depends-on): Add c-ctype.
56844
56845 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
56846
56847         * lib/poll.c (poll): Avoid division when timeout is 0, cache
56848         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
56849
56850 2008-08-06  Jim Meyering  <meyering@redhat.com>
56851
56852         * modules/inet_pton (License): Relicense under LGPLv2+.
56853
56854 2008-08-03  Bruno Haible  <bruno@clisp.org>
56855
56856         Additional non-aborting API for lock and tls.
56857         * lib/lock.h: Include <errno.h>.
56858         (glthread_lock_init): New macro/function.
56859         (gl_lock_init): Define as wrapper around glthread_lock_init.
56860         (glthread_lock_lock): New macro/function.
56861         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
56862         (glthread_lock_unlock): New macro/function.
56863         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
56864         (glthread_lock_destroy): New macro/function.
56865         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
56866         (glthread_rwlock_init): New macro/function.
56867         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
56868         (glthread_rwlock_rdlock): New macro/function.
56869         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
56870         (glthread_rwlock_wrlock): New macro/function.
56871         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
56872         (glthread_rwlock_unlock): New macro/function.
56873         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
56874         (glthread_rwlock_destroy): New macro/function.
56875         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
56876         (glthread_recursive_lock_init): New macro/function.
56877         (gl_recursive_lock_init): Define as wrapper around
56878         glthread_recursive_lock_init.
56879         (glthread_recursive_lock_lock): New macro/function.
56880         (gl_recursive_lock_lock): Define as wrapper around
56881         glthread_recursive_lock_lock.
56882         (glthread_recursive_lock_unlock): New macro/function.
56883         (gl_recursive_lock_unlock): Define as wrapper around
56884         glthread_recursive_lock_unlock.
56885         (glthread_recursive_lock_destroy): New macro/function.
56886         (gl_recursive_lock_destroy): Define as wrapper around
56887         glthread_recursive_lock_destroy.
56888         (glthread_once): New macro/function.
56889         (gl_once): Define as wrapper around glthread_once.
56890         Update function declarations.
56891         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
56892         glthread_rwlock_init. Return error code.
56893         (glthread_rwlock_rdlock_multithreaded): Renamed from
56894         glthread_rwlock_rdlock. Return error code.
56895         (glthread_rwlock_wrlock_multithreaded): Renamed from
56896         glthread_rwlock_wrlock. Return error code.
56897         (glthread_rwlock_unlock_multithreaded): Renamed from
56898         glthread_rwlock_unlock. Return error code.
56899         (glthread_rwlock_destroy_multithreaded): Renamed from
56900         glthread_rwlock_destroy. Return error code.
56901         (glthread_recursive_lock_init_multithreaded): Renamed from
56902         glthread_recursive_lock_init. Return error code.
56903         (glthread_recursive_lock_lock_multithreaded): Renamed from
56904         glthread_recursive_lock_lock. Return error code.
56905         (glthread_recursive_lock_unlock_multithreaded): Renamed from
56906         glthread_recursive_lock_unlock. Return error code.
56907         (glthread_recursive_lock_destroy_multithreaded): Renamed from
56908         glthread_recursive_lock_destroy. Return error code.
56909         (glthread_once_call): Make static.
56910         (glthread_once_multithreaded): Renamed from glthread_once.
56911         * lib/tls.h: Include <errno.h>.
56912         (glthread_tls_key_init): New macro/function.
56913         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
56914         (glthread_tls_set): New macro/function.
56915         (gl_tls_set): Define as wrapper around glthread_tls_set.
56916         (glthread_tls_key_destroy): New macro/function.
56917         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
56918         Update function declarations.
56919         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
56920         glthread_tls_get.
56921         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56922
56923 2008-08-04  Eric Blake  <ebb9@byu.net>
56924
56925         gnumakefile: use space, not TAB, outside of targets
56926         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
56927
56928 2008-08-02  Jim Meyering  <meyering@redhat.com>
56929
56930         getdate.y: avoid locale-dependent date parsing failure
56931         In Turkish locales, getdate would fail to recognize keywords
56932         containing a lowercase "i".  The solution is not to rely on
56933         locale-sensitive case-conversion.
56934         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
56935         (lookup_word): Use c_toupper in place of toupper.
56936         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
56937         Reported by Vefa Bicakci <bicave@superonline.com> in
56938         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
56939         * modules/getdate (Depends-on): Add c-ctype.
56940
56941 2008-08-02  Bruno Haible  <bruno@clisp.org>
56942
56943         * gnulib-tool (func_import): When updating or creating a .gitignore
56944         file, prepend each added line with a slash, and ignore leading slashes
56945         from the existing lines.
56946         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56947
56948 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56949
56950         Portability fix for GNU make 3.79.1.
56951         * top/GNUmakefile: Avoid 'else COND', which older GNU make
56952         versions do not understand.
56953
56954 2008-08-01  Bruno Haible  <bruno@clisp.org>
56955
56956         Work around bug of HP-UX 10.20 cc with -0.0 literal.
56957         * tests/test-isnanf.h (zero): New variable.
56958         (main): Avoid literal -0.0f.
56959         * tests/test-isnand.h (zero): New variable.
56960         (main): Avoid literal -0.0.
56961         * tests/test-isnanl.h (zero): New variable.
56962         (main): Avoid literal -0.0L.
56963         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
56964         (test_float, test_double, test_long_double): Avoid literals -0.0f,
56965         -0.0, -0.0L.
56966         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
56967         (test_signbitd): Avoid literal -0.0.
56968         (test_signbitl): Avoid literal -0.0L.
56969         * tests/test-ceilf1.c (zero): New variable.
56970         (main): Avoid literal -0.0f.
56971         * tests/test-ceill.c (zero): New variable.
56972         (main): Avoid literal -0.0L.
56973         * tests/test-floorf1.c (zero): New variable.
56974         (main): Avoid literal -0.0f.
56975         * tests/test-floorl.c (zero): New variable.
56976         (main): Avoid literal -0.0L.
56977         * tests/test-roundf1.c (zero): New variable.
56978         (main): Avoid literal -0.0f.
56979         * tests/test-round1.c (zero): New variable.
56980         (main): Avoid literal -0.0.
56981         * tests/test-roundl.c (zero): New variable.
56982         (main): Avoid literal -0.0L.
56983         * tests/test-truncf1.c (zero): New variable.
56984         (main): Avoid literal -0.0f.
56985         * tests/test-trunc1.c (zero): New variable.
56986         (main): Avoid literal -0.0.
56987         * tests/test-truncl.c (zero): New variable.
56988         (main): Avoid literal -0.0L.
56989         * tests/test-frexp.c (zero): New variable.
56990         (main): Avoid literal -0.0.
56991         * tests/test-frexpl.c (zero): New variable.
56992         (main): Avoid literal -0.0L.
56993         * tests/test-ldexpl.c (zero): New variable.
56994         (main): Avoid literal -0.0L.
56995         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56996         (zerod, zerol): New variables.
56997         (test_function): Avoid literals -0.0, -0.0L.
56998         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56999         (zerod, zerol): New variables.
57000         (test_function): Avoid literals -0.0, -0.0L.
57001         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57002         (zerod, zerol): New variables.
57003         (test_function): Avoid literals -0.0, -0.0L.
57004         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57005         (zerod, zerol): New variables.
57006         (test_function): Avoid literals -0.0, -0.0L.
57007         * tests/test-strtod.c (zero): New variable.
57008         (main): Avoid literal -0.0.
57009         Reported by Jonathan C. Patschke <jp@centtech.com>.
57010
57011 2008-07-31  Jim Meyering  <meyering@redhat.com>
57012
57013         sha256.h: correct definition of SHA224_DIGEST_SIZE
57014         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
57015         Reported by Paulie Pena IV <paulie4@gmail.com>.
57016         Define as 224 / 8, rather than as a literal.
57017         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
57018         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
57019         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
57020
57021 2008-07-31  Bruno Haible  <bruno@clisp.org>
57022
57023         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
57024         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
57025         Reported by Jonathan Patschke <jp@centtech.com>.
57026
57027 2008-07-31  Bruno Haible  <bruno@clisp.org>
57028
57029         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
57030         Reported by Paolo Bonzini <bonzini@gnu.org>.
57031
57032 2008-07-30  Eric Blake  <ebb9@byu.net>
57033
57034         test-strtod: allow compilation without -lm
57035         * tests/test-strtod.c (main): Avoid link dependence on fabs.
57036         Reported by Dennis Clarke <blastwave@gmail.com>.
57037
57038 2008-07-28  Jim Meyering  <meyering@redhat.com>
57039
57040         bootstrap: work also when there are no .po files in po/
57041         * build-aux/bootstrap (update_po_files): Complete the change
57042         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
57043
57044 2008-07-27  Jim Meyering  <meyering@redhat.com>
57045
57046         * users.txt: Add zile.
57047
57048 2008-07-26  Ben Pfaff  <blp@gnu.org>
57049
57050         Add missing dependencies on new m4/exponent[fdl].m4 files.
57051         * modules/isnanf-nolibm: Add m4/exponentf.m4.
57052         * modules/isnand-nolibm: Add m4/exponentd.m4.
57053         * modules/isnanl-nolibm: Add m4/exponentl.m4.
57054         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
57055         m4/isnan[fdl].m4, because the macros actually used moved.
57056         Reported by Jim Meyering.
57057
57058 2008-07-14  Ben Pfaff  <blp@gnu.org>
57059
57060         Add isinf module.
57061         * lib/isinf.c: New file.
57062         * lib/math.in.h: Define isinf macro if we have decided to replace
57063         it.
57064         * m4/isinf.m4: New file.
57065         * m4/math_h.m4: Initialize and substitute variables for isinf
57066         module.
57067         * modules/isinf: New file.
57068         * modules/isinf-tests: New file.
57069         * modules/math: Add substitutions for new module.
57070         * tests/test-isinf.c: New file.
57071         * doc/posix-functions/isinf.texi: Mention new module.
57072         * MODULES.html.sh: Mention new module.
57073
57074 2008-07-14  Ben Pfaff  <blp@gnu.org>
57075
57076         Factor out some macros for use by additional modules.
57077         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
57078         exponentf.m4.
57079         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
57080         exponentd.m4.
57081         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
57082         file exponentl.m4.
57083         * m4/exponentf.m4: New file.
57084         * m4/exponentd.m4: New file.
57085         * m4/exponentl.m4: New file.
57086         * modules/isnanf: Use new file m4/exponentf.m4.
57087         * modules/isnand: Use new file m4/exponentd.m4.
57088         * modules/isnanl: Use new file m4/exponentl.m4.
57089
57090 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
57091
57092         mktime.c: normalize tp->tm_isdst value to -1/0/1.
57093         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
57094         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
57095         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
57096
57097         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
57098         readlink on platforms without PATH_MAX.
57099
57100 2008-07-21  Eric Blake  <ebb9@byu.net>
57101
57102         Warn, not fail, on stale version.
57103         * top/GNUmakefile (_curr-ver): Tone down previous patch.
57104
57105         Don't allow installation with stale devel version number.
57106         * top/GNUmakefile (_is-install-target): New macro.
57107         (_curr-ver): Forbid installation with stale version number.
57108
57109 2008-07-20  Bruno Haible  <bruno@clisp.org>
57110
57111         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
57112         TESTS_ENVIRONMENT.
57113         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
57114
57115 2008-07-20  Bruno Haible  <bruno@clisp.org>
57116
57117         * lib/c-stack.h (c_stack_action): Add documentation.
57118         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
57119
57120 2008-07-20  Bruno Haible  <bruno@clisp.org>
57121
57122         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
57123         * modules/readlink (License): Likewise.
57124
57125 2008-07-17  Eric Blake  <ebb9@byu.net>
57126
57127         * modules/c-stack (Link): Fix typo.
57128
57129         Make c-stack use libsigsegv, when available.
57130         * modules/c-stack (Depends-on): Add libsigsegv.
57131         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
57132         needed.
57133         * lib/c-stack.c (SIGSTKSZ): Define fallback.
57134         (segv_handler, overflow_handler, c_stack_action)
57135         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
57136         implementation when libsigsegv is available, but only when using
57137         the library is necessary.
57138         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
57139         comment, explaining why XSI check fails on Linux.
57140         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
57141         * tests/test-c-stack2.sh: Tweak skip message.
57142         * NEWS: Document new link-time requirements.
57143
57144 2008-07-16  Eric Blake  <ebb9@byu.net>
57145
57146         c-stack: Expose false positives when not using libsigsegv.
57147         * modules/c-stack-tests (Files): Expand test.
57148         * tests/test-c-stack.c (main): Add means to conditionally trigger
57149         non-overflow SIGSEGV.
57150         * tests/test-c-stack2.sh: New file.
57151
57152 2008-07-14  Bruno Haible  <bruno@clisp.org>
57153
57154         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
57155         Reported by Eric Blake.
57156
57157 2008-07-14  Sam Steingold  <sds@gnu.org>
57158             Bruno Haible  <bruno@clisp.org>
57159
57160         New module libsigsegv.
57161         * modules/libsigsegv: New file.
57162         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
57163         modifications.
57164         * MODULES.html.sh (Signal handling): New section.
57165
57166 2008-07-14  Bruno Haible  <bruno@clisp.org>
57167
57168         * modules/unictype/ctype-* (Description): Add the word "function".
57169         Improves the resulting doc in MODULES.html.
57170
57171 2008-07-12  Ben Pfaff  <blp@gnu.org>
57172
57173         Add longlong module.
57174         * modules/longlong: New file.
57175
57176 2008-07-12  Bruno Haible  <bruno@clisp.org>
57177
57178         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
57179         to empty.
57180
57181 2008-07-10  Ben Pfaff  <blp@gnu.org>
57182
57183         Add isnan module.
57184         * doc/posix-functions/isnan.texi: Mention new module.
57185         * lib/math.in.h: Define isnan macro if we have decided to replace
57186         it.
57187         * m4/isnan.m4: New file.
57188         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
57189         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
57190         also.
57191         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
57192         redundancy.
57193         * m4/math_h.m4: Initialize and substitute variables for isnan
57194         module.
57195         * modules/isnan: New file.
57196         * modules/isnan-tests: New file.
57197         * modules/math: Add substitutions for new module.
57198         * tests/test-isnan.c: New file.
57199         * MODULES.html.sh: Mention new module.
57200
57201 2008-07-10  Ben Pfaff  <blp@gnu.org>
57202
57203         Add isnanf module.
57204         * lib/isnanf.m4: New file.
57205         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
57206         (gl_HAVE_ISNANF_IN_LIBM): New macro.
57207         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
57208         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
57209         * modules/isnanf: New file.
57210         * modules/isnanf-tests: New file.
57211         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
57212         files.
57213         * tests/test-isnanf-nolibm.c: factored most of its contents into
57214         new file tests/test-isnanf.h.
57215         * tests/test-isnanf.h: New file.
57216         * tests/test-isnanf.c: New file.
57217         * MODULES.html.sh: Mention new module.
57218         * doc/glibc-functions/isnanf.texi: Mention new module.
57219
57220 2008-07-10  Ben Pfaff  <blp@gnu.org>
57221
57222         Add isnand module.
57223         * lib/isnand.h: New file.
57224         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
57225         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
57226         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
57227         functionality also.
57228         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
57229         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
57230         (gl_HAVE_ISNAND_IN_LIBM): New macro.
57231         * modules/isnand: New file.
57232         * modules/isnand-tests: New file.
57233         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
57234         files.
57235         * tests/test-isnand-nolibm.c: factored most of its contents into
57236         new file tests/test-isnand.h.
57237         * tests/test-isnand.h: New file.
57238         * tests/test-isnand.c: New file.
57239         * MODULES.html.sh: Mention new module.
57240
57241 2008-07-10  Ben Pfaff  <blp@gnu.org>
57242
57243         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
57244         * lib/isnand.h: Rename lib/isnand-nolibm.h.
57245         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
57246         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
57247         * modules/isnanf-nolibm: Update references to renamed files.
57248         * modules/isnand-nolibm: Likewise.
57249         * modules/isnanf-nolibm-tests: Likewise.
57250         * modules/isnand-nolibm-tests: Likewise.
57251         * lib/frexp.c: Likewise.
57252         * lib/isfinite.c: Likewise.
57253         * lib/signbitd.c: Likewise.
57254         * lib/signbitf.c: Likewise.
57255         * lib/vasnprintf.c: Likewise.
57256         * tests/test-ceilf1.c: Likewise.
57257         * tests/test-ceilf2.c: Likewise.
57258         * tests/test-floorf1.c: Likewise.
57259         * tests/test-floorf2.c: Likewise.
57260         * tests/test-frexp.c: Likewise.
57261         * tests/test-round1.c: Likewise.
57262         * tests/test-round2.c: Likewise.
57263         * tests/test-roundf1.c: Likewise.
57264         * tests/test-strtod.c: Likewise.
57265         * tests/test-trunc1.c: Likewise.
57266         * tests/test-trunc2.c: Likewise.
57267         * tests/test-truncf1.c: Likewise.
57268         * tests/test-truncf2.c: Likewise.
57269         * NEWS: Mention the renamed header files.
57270
57271 2008-07-11  Jim Meyering  <meyering@redhat.com>
57272
57273         vc-list-files: make the last-resort awk code more portable
57274         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
57275         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
57276         does not support it.
57277
57278 2008-07-10  Eric Blake  <ebb9@byu.net>
57279
57280         Work with tar's bootstrap.
57281         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
57282         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
57283         an m4 comment.
57284
57285 2008-07-09  Jim Meyering  <meyering@redhat.com>
57286
57287         posix-shell.m4: fix typo that made this test malfunction
57288         * m4/posix-shell.m4: Remove capitalization in variable name.
57289
57290 2008-07-08  Bruno Haible  <bruno@clisp.org>
57291
57292         * m4/onceonly.m4: Update comments.
57293         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57294
57295 2008-07-04  Jim Meyering  <meyering@redhat.com>
57296
57297         * users.txt: Add vc-dwim.
57298         (bison, coreutils): Use the gitweb URL.
57299
57300 2008-07-03  Jim Meyering  <meyering@redhat.com>
57301
57302         * users.txt: Add libffcall.  From Sam Steingold.
57303
57304 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
57305
57306         getdate.y: do not ignore TZ with relative day, month or year offset
57307         * lib/getdate.y (get_date): Move the tz-handling block to follow the
57308         relative-date-handling, since otherwise, the latter would clobber the
57309         sole output (an updated Start value) of the tz-handling block.
57310         * tests/test-getdate.c: Tests for the fix
57311
57312 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57313
57314         Recognize 'foo_LIBRARIES += libgnu.a'.
57315         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
57316         makefile snippet has already specified an installation location,
57317         also using '+='.
57318
57319 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
57320
57321         getdate.y: factor out common actions
57322         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
57323         Use them in place of open-coded actions.
57324
57325 2008-07-01  Simon Josefsson  <simon@josefsson.org>
57326
57327         Add self-test for getdate module.
57328         * modules/getdate-tests: New file.
57329         * tests/test-getdate.c: New file.
57330
57331 2008-06-29  Bruno Haible  <bruno@clisp.org>
57332
57333         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
57334         .gitignore.
57335         Reported by Sylvain Beucler <beuc@beuc.net>.
57336
57337 2008-06-29  Bruno Haible  <bruno@clisp.org>
57338
57339         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
57340         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
57341
57342 2008-06-29  Bruno Haible  <bruno@clisp.org>
57343
57344         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
57345         EXTRA_DIST.
57346         Reported by Sylvain Beucler <beuc@beuc.net>.
57347
57348 2008-06-26  Jim Meyering  <meyering@redhat.com>
57349
57350         make several modules depend on the "open" module
57351         This provides slightly increased consistency when opening-for-write
57352         the name of a non-directory spelled with a trailing slash.
57353         * modules/chdir-safer: Likewise.
57354         * modules/chown: Likewise.
57355         * modules/clean-temp: Likewise.
57356         * modules/copy-file: Likewise.
57357         * modules/fchdir: Likewise.
57358         * modules/fcntl-safer: Likewise.
57359         * modules/pipe: Likewise.
57360         * modules/utime: Likewise.
57361         Prompted by Eric Blake and Bruno Haible.
57362
57363 2008-06-24  Andreas Schwab  <schwab@suse.de>
57364
57365         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
57366         literals can be used as initializers for global variables.
57367
57368 2008-06-23  Eric Blake  <ebb9@byu.net>
57369
57370         Make gnulib-cache.m4 easier to diff.
57371         * gnulib-tool (func_import): Allow newlines when reading cached
57372         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
57373
57374 2008-06-23  Bruno Haible  <bruno@clisp.org>
57375
57376         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
57377         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
57378         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
57379         m4/signalblocking.m4.
57380         (gl_PREREQ_SIGACTION): Don't invoke it.
57381         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
57382         gl_PREREQ_SIG_HANDLER_H.
57383         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57384         Don't check for sigaction here.
57385
57386 2008-06-23  Bruno Haible  <bruno@clisp.org>
57387
57388         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
57389         (install_handlers): Don't set the SA_RESETHAND flag.
57390
57391 2008-06-23  Bruno Haible  <bruno@clisp.org>
57392
57393         * m4/sigaction.m4: Comment fixes.
57394         * lib/signal.in.h: Likewise.
57395
57396 2008-06-23  Eric Blake  <ebb9@byu.net>
57397
57398         Fix typo.
57399         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
57400
57401         Avoid SA_ namespace.
57402         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
57403         Reported by Ralf Wildenhues.
57404
57405         Avoid test failure due to SA_RESTORER.
57406         * tests/test-sigaction.c (SA_MASK): New macro.
57407         (main): Avoid failing due to extension flags being set.
57408         Reported by Jim Meyering.
57409
57410         Revert use of sig-handler.h in sigprocmask.c.
57411         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
57412         it requires the existence of struct sigaction.
57413         * lib/sigprocmask.c (handler_t): Restore typedef.
57414         (rpl_signal, old_handlers): Use local type.
57415
57416 2008-06-22  Bruno Haible  <bruno@clisp.org>
57417
57418         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
57419         conditionally.
57420         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57421
57422 2008-06-22  Bruno Haible  <bruno@clisp.org>
57423
57424         * doc/posix-functions/siginterrupt.texi: Move note.
57425
57426         * lib/signal.in.h (SA_RESTART): New macro.
57427         * lib/sigaction.c: Update comment.
57428
57429         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
57430
57431         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
57432         (gl_PREREQ_SIGPROCMASK): Invoke it.
57433         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
57434
57435         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
57436
57437         * lib/sigprocmask.c: Update a comment.
57438
57439 2008-06-21  Eric Blake  <ebb9@byu.net>
57440
57441         Use sigaction module rather than signal().
57442         * modules/c-stack (Depends-on): Add sigaction.
57443         * modules/fatal-signal (Depends-on): Likewise.
57444         * modules/nanosleep (Depends-on): Likewise.
57445         * modules/sigprocmask (Files): Add sig-handler.h.
57446         * modules/sigaction (Files): Likewise.
57447         * lib/sig-handler.h (get_handler): New file, suggested by Paul
57448         Eggert.
57449         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
57450         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
57451         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
57452         (init_fatal_signals): Likewise.
57453         * lib/nanosleep.c (rpl_nanosleep): Likewise.
57454         (siginterrupt): Delete fallback.
57455         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
57456         instead.
57457         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
57458         siginterrupt.
57459
57460         New module sigaction, for mingw.
57461         * modules/sigaction: New module...
57462         * modules/sigaction-tests: ...and its test.
57463         * m4/sigaction.m4: New file.
57464         * lib/sigaction.c: Likewise.
57465         * tests/test-sigaction.c: Likewise.
57466         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
57467         * modules/signal (Makefile.am): Likewise.
57468         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
57469         needed.
57470         * doc/posix-headers/signal.texi (signal.h): Mention provided
57471         types.
57472         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
57473         that sigaction is preferable.
57474         * doc/posix-functions/sigaction.texi (sigaction): Mention new
57475         module.
57476         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57477         sigaction.
57478
57479         Improve robustness of sigprocmask by overriding signal.
57480         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
57481         is in use.
57482         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
57483         (SIGKILL, SIGSTOP): Provide fallbacks.
57484         (rpl_signal): Implement.
57485         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
57486         signal can be called inside handlers.
57487
57488         Fix nanosleep module on mingw.
57489         * modules/nanosleep (Depends-on): Add sys_select.
57490         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
57491
57492         Fix licensing of sigprocmask.
57493         * modules/raise (License): Relicense as LGPL.
57494
57495 2008-06-21  Bruno Haible  <bruno@clisp.org>
57496
57497         * lib/propername.c (proper_name_utf8): Don't use the transliterated
57498         result if it contains question marks.
57499         Reported by Michael Geng <linux@michaelgeng.de>.
57500
57501 2008-06-19  Bruno Haible  <bruno@clisp.org>
57502
57503         Fix CVS-ism.
57504         * doc/gnulib.texi: Include updated-stamp.texi.
57505         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
57506         (updated-stamp.texi): New rule.
57507         (gnulib.info): Depend on it.
57508         * doc/.gitignore: Add updated-stamp.texi.
57509         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
57510
57511 2008-06-19  Bruno Haible  <bruno@clisp.org>
57512
57513         * doc/Makefile (gnulib.info): Update and simplify dependencies.
57514         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57515
57516 2008-06-19  Eric Blake  <ebb9@byu.net>
57517
57518         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
57519         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
57520         Reported by Stepan Kasal.
57521
57522 2008-06-18  Bruno Haible  <bruno@clisp.org>
57523
57524         * lib/fatal-signal.c (init_fatal_signals): Add comment.
57525         Reported by Eric Blake.
57526
57527 2008-06-18  Eric Blake  <ebb9@byu.net>
57528
57529         Work around cygwin 1.5.25 strsignal bug.
57530         * tests/test-strsignal.c: Allow for const char *.
57531         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
57532
57533 2008-06-18  Simon Josefsson  <simon@josefsson.org>
57534
57535         * users.txt: Update URL to article and add author/date
57536         information.
57537
57538 2008-06-17  Bruno Haible  <bruno@clisp.org>
57539
57540         New macro gl_DISABLE_THREADS.
57541         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
57542         if the user did not pass --enable-threads or --disable-threads option.
57543         (gl_DISABLE_THREADS): New macro.
57544         Reported by Eric Blake <ebb9@byu.net>.
57545
57546 2008-06-17  Bruno Haible  <bruno@clisp.org>
57547
57548         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
57549         when the macro ignores it.
57550         Based on a patch by Eric Blake <ebb9@byu.net>.
57551
57552 2008-06-17  Bruno Haible  <bruno@clisp.org>
57553
57554         * modules/tls (License): Change to LGPLv2+.
57555         Reported by Eric Blake.
57556
57557 2008-06-17  Eric Blake  <ebb9@byu.net>
57558
57559         Simplify c-stack prerequisites.
57560         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
57561         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
57562         no longer requires <ucontext.h> to exist.  Optimize setrlimit
57563         check.
57564         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
57565         <sys/resource.h>.
57566
57567         Move c-stack test into testsuite.
57568         * modules/c-stack-tests: New file.
57569         * lib/c-stack.c [DEBUG]: Move test program...
57570         * tests/test-c-stack.c: ...into this new file.  Skip rather than
57571         fail test if sigaltstack is lacking.
57572         * tests/test-c-stack.sh: New driver file.
57573
57574 2008-06-16  Eric Blake  <ebb9@byu.net>
57575
57576         Use raise module consistently.
57577         * modules/fatal-signal (Depends-on): Add raise.
57578         * modules/sigprocmask (Depends-on): Likewise.
57579         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
57580         * lib/sigprocmask.c (sigprocmask): Likewise.
57581         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57582         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
57583
57584         Fix compliance bug in sigpending.
57585         * lib/sigprocmask.c (sigpending): Return pending array via
57586         parameter, not return value.
57587
57588 2008-06-14  Eric Blake  <ebb9@byu.net>
57589
57590         Improve obstack-printf test code.
57591         * tests/test-obstack-printf.c (test_function): Fix comment, and
57592         simplify usage of obstack_* in macros.  Add a test for coverage.
57593         Reported by Bruno Haible.
57594
57595 2008-06-14  Bruno Haible  <bruno@clisp.org>
57596
57597         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
57598         array size as a constant, not as a const variable.
57599         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
57600         AC_USE_SYSTEM_EXTENSIONS.
57601         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
57602         Test whether the obstack_printf function actually exists.
57603         * modules/obstack-printf (Depends-on): Add extensions.
57604         (Include): Remove obstack.h.
57605         * modules/obstack-printf-posix (Depends-on): Add extensions.
57606         (Include): Remove obstack.h.
57607
57608 2008-06-13  Eric Blake  <ebb9@byu.net>
57609
57610         Add obstack-printf and obstack-printf-posix modules.
57611         * modules/obstack-printf: New file.
57612         * modules/obstack-printf-posix: Likewise.
57613         * MODULES.html.sh (Misc): Mention them.
57614         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
57615         Likewise.
57616         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
57617         Likewise.
57618         * modules/stdio (Makefile.am): Accomodate new modules.
57619         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57620         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
57621         Declare.
57622         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
57623         functions.
57624         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
57625         (gl_REPLACE_OBSTACK_PRINTF): New macros
57626         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
57627         * tests/test-obstack-printf.c: New file.
57628         * modules/obstack-printf-tests: Likewise.
57629         * modules/obstack-printf-posix-tests: Likewise.
57630
57631 2008-06-11  Bruno Haible  <bruno@clisp.org>
57632
57633         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
57634         * lib/open.c: Include errno.h.
57635         (open): Fail when attempting to write to a file that has a trailing
57636         slash.
57637         * tests/test-open.c (main): Test against trailing slash bug.
57638         * doc/posix-functions/open.texi: Mention the trailing slash bug.
57639
57640 2008-06-10  Bruno Haible  <bruno@clisp.org>
57641
57642         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
57643         for $? to work inside the trap command, with various /bin/sh-s.
57644         * tests/test-vc-list-files-cvs.sh: Likewise.
57645
57646 2008-06-10  Bruno Haible  <bruno@clisp.org>
57647
57648         * lib/acl-internal.h: Don't include gettext.h here.
57649         * lib/set-mode-acl.c: Include gettext.h here.
57650         * lib/copy-acl.c: Likewise.
57651
57652 2008-06-10  Bruno Haible  <bruno@clisp.org>
57653
57654         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
57655         * lib/wait-process.c (wait_subprocess): Likewise.
57656         * lib/execute.h (execute): Add termsigp argument.
57657         * lib/execute.c (execute): Likewise.
57658         * lib/csharpcomp.c (compile_csharp_using_pnet,
57659         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
57660         * lib/csharpexec.c (execute_csharp_using_pnet,
57661         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
57662         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
57663         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
57664         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
57665         is_jikes_present): Update.
57666         * lib/javaexec.c (execute_java_class): Update.
57667         * lib/javaversion.c (execute_and_read_line): Update.
57668         * NEWS: Document the changes.
57669         Reported by Eric Blake.
57670
57671 2008-06-10  Eric Blake  <ebb9@byu.net>
57672
57673         Add missing include.
57674         * tests/test-strstr.c (includes): Add <signal.h>.
57675         * tests/test-strcasestr.c (includes): Likewise.
57676         * tests/test-memmem.c (includes): Likewise.
57677
57678 2008-06-10  Bruno Haible  <bruno@clisp.org>
57679
57680         * lib/wait-process.c (wait_subprocess): Add an assertion.
57681
57682 2008-06-10  Bruno Haible  <bruno@clisp.org>
57683
57684         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
57685
57686 2008-06-10  Bruno Haible  <bruno@clisp.org>
57687
57688         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
57689         using alarm().
57690         * tests/test-strcasestr.c (main): Likewise.
57691         * tests/test-strstr.c (main): Likewise.
57692
57693 2008-06-09  Bruno Haible  <bruno@clisp.org>
57694
57695         Work around the Solaris 10 ACE ACLs ABI change.
57696         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
57697         declare if ACL_NO_TRIVIAL is present.
57698         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
57699         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
57700         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
57701         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
57702         define if ACL_NO_TRIVIAL is present.
57703         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
57704         and use the current ABI.
57705         (file_has_acl): Use same #if condition as elsewhere.
57706         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
57707         in use, and use the current ABI.
57708         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
57709         Reported by Jim Meyering.
57710
57711 2008-06-09  Eric Blake  <ebb9@byu.net>
57712
57713         Work around environments that (stupidly) ignore SIGALRM.
57714         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
57715         before using alarm().
57716         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57717         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57718         Reported by Ian Beckwith <ianb@erislabs.net>.
57719
57720         Produce autobuild blurb earlier in log.
57721         * modules/autobuild (configure.ac-early): Move AB_INIT here.
57722
57723 2008-06-09  Jim Meyering  <meyering@redhat.com>
57724         and OndÅ™ej Vašík  <ovasik@redhat.com>
57725
57726         utimens.c: correct kernel bug work-around
57727         OndÅ™ej Vašík found that the invalid return value of 280 indicates
57728         failure, not success, and the kernel bug we're trying to work
57729         around affects not just the utimensat call, but also the fallback
57730         futimens call.
57731         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
57732         not success.
57733         [HAVE_FUTIMENS]: Use the same work-around, here.
57734
57735 2008-06-09  Jim Meyering  <meyering@redhat.com>
57736
57737         add more guards around definition of ACE_-related code
57738         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
57739         ALLOW and ACE_OWNER are also defined.
57740
57741 2008-06-08  Bruno Haible  <bruno@clisp.org>
57742
57743         * lib/acl-internal.h: Add me as co-author.
57744         * lib/file-has-acl.c: Likewise.
57745         * lib/set-mode-acl.c: Likewise.
57746         * lib/copy-acl.c: Likewise.
57747
57748 2008-06-08  Bruno Haible  <bruno@clisp.org>
57749
57750         Add support for AIX ACLs.
57751         * lib/acl-internal.h (acl_nontrivial): New declaration.
57752         * lib/file-has-acl.c (acl_nontrivial): New function.
57753         (file_has_acl): Add implementation using AIX 4 ACL API.
57754         * lib/set-mode-acl.c (qset_acl): Likewise.
57755         * lib/copy-acl.c (qcopy_acl): Likewise.
57756
57757 2008-06-08  Bruno Haible  <bruno@clisp.org>
57758
57759         Add support for HP-UX ACLs.
57760         * lib/acl-internal.h (acl_nontrivial): New declaration.
57761         * lib/file-has-acl.c (acl_nontrivial): New function.
57762         (file_has_acl): Add implementation using HP-UX 11 ACL API.
57763         * lib/set-mode-acl.c (qset_acl): Likewise.
57764         * lib/copy-acl.c (qcopy_acl): Likewise.
57765
57766 2008-06-08  Bruno Haible  <bruno@clisp.org>
57767
57768         Add support for Cygwin ACLs.
57769         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
57770         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
57771         the chmod_or_fchmod call.
57772         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
57773
57774 2008-06-08  Bruno Haible  <bruno@clisp.org>
57775
57776         Fix bug with setuid modes in Solaris 10+ code.
57777         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
57778         succeeded, when the mode contains some special bits.
57779
57780 2008-06-08  Bruno Haible  <bruno@clisp.org>
57781
57782         Add support for Solaris 7..10 ACLs.
57783         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
57784         declarations.
57785         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
57786         functions.
57787         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
57788         * lib/set-mode-acl.c (qset_acl): Likewise.
57789         * lib/copy-acl.c (qcopy_acl): Likewise.
57790
57791 2008-06-08  Bruno Haible  <bruno@clisp.org>
57792
57793         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
57794         declaration.
57795         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
57796         (acl_access_nontrivial): Remove MacOS X case.
57797         (file_has_acl): Use acl_extended_nontrivial.
57798         * lib/copy-acl.c (qcopy_acl): Likewise.
57799
57800 2008-06-08  Bruno Haible  <bruno@clisp.org>
57801
57802         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
57803
57804 2008-06-08  Jim Meyering  <meyering@redhat.com>
57805
57806         * modules/acl (Maintainer): Add Bruno Haible.
57807
57808 2008-06-07  Bruno Haible  <bruno@clisp.org>
57809
57810         Improve support for Tru64 ACLs.
57811         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
57812         ACL on OSF/1.
57813
57814 2008-06-07  Bruno Haible  <bruno@clisp.org>
57815
57816         Add support for MacOS X ACLs.
57817         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
57818         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
57819         * lib/set-mode-acl.c (qset_acl): Likewise.
57820         * lib/copy-acl.c (qcopy_acl): Likewise.
57821
57822 2008-06-07  Bruno Haible  <bruno@clisp.org>
57823
57824         Fix memory leak introduced on 2008-05-22.
57825         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
57826         use.
57827
57828 2008-06-07  Bruno Haible  <bruno@clisp.org>
57829
57830         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
57831         to construct an empty ACL.
57832
57833 2008-06-07  Bruno Haible  <bruno@clisp.org>
57834
57835         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
57836         precisely.
57837         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
57838
57839 2008-06-07  Bruno Haible  <bruno@clisp.org>
57840
57841         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
57842         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
57843
57844 2008-06-07  Bruno Haible  <bruno@clisp.org>
57845
57846         * doc/posix-functions/_setjmp.texi: Explain the use of this function
57847         regardless of POSIX.
57848         * doc/posix-functions/_longjmp.texi: Likewise.
57849         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
57850         SystemV platform in this case.
57851
57852 2008-06-06  Eric Blake  <ebb9@byu.net>
57853
57854         Document abort() bugs.
57855         * doc/posix-functions/abort.texi (abort): Mention anomalies.
57856
57857         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
57858         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
57859         sigsetjmp.
57860         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
57861         siglongjmp, but only as a macro.
57862         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
57863         is obsolete.
57864         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
57865
57866         Tweak documentation to cover cygwin argz bugs.
57867         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
57868         argz bug fix; no code change needed since no cygwin releases
57869         occurred between the last fix and the bug being tested.
57870         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
57871         module and recently fixed cygwin bugs.
57872         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
57873         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
57874         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
57875         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
57876         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
57877         Likewise.
57878         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
57879         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
57880         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
57881         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
57882         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
57883         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
57884         Likewise.
57885
57886         Avoid gcc warning on cygwin.
57887         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
57888         !ACL_NO_TRIVIAL]: Avoid unused variable.
57889
57890 2008-06-05  Eric Blake  <ebb9@byu.net>
57891
57892         Be tolerant of UNKNOWN version in gnulib-tool test dir.
57893         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
57894         git-version-gen fails to come up with a version.
57895         Reported by Simon Josefsson.
57896
57897 2008-06-05  Jim Meyering  <meyering@redhat.com>
57898             Paul Eggert  <eggert@cs.ucla.edu>
57899
57900         utimens.c: work around a probable Linux kernel bug
57901         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
57902         appears to be a kernel bug that causes utimensat to return 280
57903         instead of 0, indicating success.
57904
57905 2008-06-04  Bruno Haible  <bruno@clisp.org>
57906
57907         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
57908         2008-06-01 commit.
57909
57910 2008-06-04  Bruno Haible  <bruno@clisp.org>
57911
57912         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
57913         * lib/file-has-acl.c (acl_access_nontrivial): New function.
57914         (file_has_acl): Use it. Save errno afterwards.
57915         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
57916
57917 2008-06-03  Bruno Haible  <bruno@clisp.org>
57918
57919         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
57920         draft code. Simplify #ifs.
57921         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
57922         Put Solaris code after POSIX-draft code. Fix comments regarding
57923         Solaris 10, HP-UX. Mention Cygwin.
57924         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
57925
57926 2008-06-03  Eric Blake  <ebb9@byu.net>
57927
57928         Provide fallback for older kernels.
57929         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
57930         Provide runtime fallback if kernel lacks support.
57931         Reported by Mike Frysinger.
57932
57933 2008-06-02  Bruno Haible  <bruno@clisp.org>
57934
57935         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
57936         it exists.
57937
57938 2008-06-02  Bruno Haible  <bruno@clisp.org>
57939
57940         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
57941         * lib/copy-acl.c (qcopy_acl): Update comment.
57942
57943 2008-06-02  Bruno Haible  <bruno@clisp.org>
57944
57945         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
57946         like ACL APIs.
57947
57948 2008-06-02  Bruno Haible  <bruno@clisp.org>
57949
57950         * tests/test-file-has-acl.sh: Use different code for Cygwin.
57951         * tests/test-set-mode-acl.sh: Likewise.
57952         * tests/test-copy-acl.sh: Likewise.
57953         * tests/test-copy-file.sh: Likewise.
57954
57955 2008-06-02  Bruno Haible  <bruno@clisp.org>
57956
57957         * tests/test-file-has-acl.sh: Remove unused code.
57958
57959 2008-06-01  Bruno Haible  <bruno@clisp.org>
57960
57961         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
57962         (copy_acl): Just a wrapper around qcopy_acl that emits the error
57963         messages.
57964         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
57965
57966 2008-06-01  Bruno Haible  <bruno@clisp.org>
57967
57968         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
57969         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
57970         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
57971         APIs.
57972         * modules/acl-tests (configure.ac): Remove tests now contained in
57973         m4/acl.m4.
57974
57975 2008-06-02  Jim Meyering  <meyering@redhat.com>
57976
57977         announce-gen: use a better key-server host name
57978         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
57979         it may be more consistently reliable.  Suggested by Werner Koch
57980         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
57981
57982 2008-06-01  Bruno Haible  <bruno@clisp.org>
57983
57984         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
57985         Reported by Voroskoi Andras <voroskoi@gmail.com>.
57986
57987 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
57988
57989         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
57990
57991 2008-06-01  Bruno Haible  <bruno@clisp.org>
57992
57993         New ACL tests.
57994         * tests/test-file-has-acl.sh: New file.
57995         * tests/test-file-has-acl.c: New file.
57996         * tests/test-set-mode-acl.sh: New file.
57997         * tests/test-set-mode-acl.c: New file.
57998         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
57999         * tests/test-copy-acl.c: New file.
58000         * modules/acl-tests: New file, based on modules/copy-file-tests.
58001         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
58002         (Depends-on): Add acl-tests.
58003         (configure.ac): Remove checks.
58004         (Makefile.am): Don't create test-sameacls program here any more.
58005
58006 2008-06-01  Bruno Haible  <bruno@clisp.org>
58007
58008         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
58009         * tests/test-sameacls.c: Include progname.h.
58010         (main): Invoke set_program_name. Portability fixes for MacOS X,
58011         Solaris, HP-UX.
58012
58013 2008-06-01  Bruno Haible  <bruno@clisp.org>
58014
58015         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
58016         function.
58017         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
58018
58019 2008-06-01  Bruno Haible  <bruno@clisp.org>
58020
58021         * modules/rpmatch (Depends-on): Add strdup.
58022
58023 2008-06-01  Bruno Haible  <bruno@clisp.org>
58024
58025         * lib/pipe.c: Include unistd-safer.h.
58026         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
58027         * modules/pipe (Depends-on): Add unistd-safer.
58028
58029 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58030
58031         * modules/autobuild (configure.ac): Call AB_INIT.
58032
58033 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58034
58035         * tests/test-getaddrinfo.c: Don't print debug messages by default.
58036         Suggested by Bruno Haible <bruno@clisp.org>.
58037
58038 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58039
58040         * tests/test-base64.c: Cast size_t to unsigned long when invoking
58041         printf.  Use %lu instead of %d.  Reported by Bruno Haible
58042         <bruno@clisp.org>.
58043
58044 2008-05-29  Eric Blake  <ebb9@byu.net>
58045
58046         Prefer new POSIX 200x interfaces over futimesat.
58047         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
58048         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
58049         when available.
58050         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
58051
58052 2008-05-28  Bruno Haible  <bruno@clisp.org>
58053
58054         * modules/stpcpy (License): Change to LGPLv2+.
58055         Requested by David Lutterkort <dlutter@redhat.com>.
58056
58057 2008-05-27  Bruno Haible  <bruno@clisp.org>
58058
58059         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
58060         current mingw.
58061         Reported by Jose E. Marchesi <jemarch@gnu.org>.
58062
58063 2008-05-27  Bruno Haible  <bruno@clisp.org>
58064
58065         * modules/iconv_open (Link): New section, from module 'iconv'.
58066         * modules/striconv (Link): Likewise.
58067         * modules/striconveh (Link): Likewise.
58068         * modules/xstriconv (Link): Likewise.
58069         * modules/unicodeio (Link): Likewise.
58070         * modules/propername (Link): Likewise.
58071         Reported by Jim Meyering.
58072
58073 2008-05-26  Jim Meyering  <meyering@redhat.com>
58074
58075         sha256: do not artificially restrict buffer length to be < 2^32
58076         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
58077         uint32_t to size_t.
58078         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
58079         to match.
58080
58081         avoid unaligned access errors, e.g., on sparc
58082         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
58083         direct access through a possibly-unaligned uint64* pointer.
58084         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
58085         direct access through a possibly-unaligned uint32* pointer.
58086         Prompted by this patch from Tom "spot" Callaway:
58087         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
58088
58089         sha512.c: fix typo in comment
58090         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
58091
58092 2008-05-25  Bruno Haible  <bruno@clisp.org>
58093
58094         * lib/set-mode-acl.c: Renamed from lib/acl.c.
58095         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
58096         (Makefile.am): Update lib_SOURCES.
58097
58098 2008-05-25  Bruno Haible  <bruno@clisp.org>
58099
58100         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
58101
58102 2008-05-25  Jim Meyering  <meyering@redhat.com>
58103
58104         useless-if-before-free: freed expr may have white-space differences
58105         * build-aux/useless-if-before-free: Recognize cases in which the
58106         freed expression differs from the tested one in embedded white
58107         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
58108         $1 was used, so we can't make any regexp shy.  Improved tests now
58109         detect this.
58110
58111         useless-if-before-free: accept white space in the expression.
58112         * build-aux/useless-if-before-free: For now, any white space
58113         in the expression must be identical in the free argument.
58114
58115         useless-if-before-free: efficiency tweak
58116         * build-aux/useless-if-before-free: Make the expression-matching
58117         regexp "shy".
58118         Make the *outer* regexp shy, not the expr-matching one.
58119
58120         update code-in-comment to accept cast of free arg
58121         * build-aux/useless-if-before-free: Update regexp.
58122
58123 2008-05-25  Bruno Haible  <bruno@clisp.org>
58124
58125         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
58126         * modules/copy-file-tests (Files, Makefile.am): Update.
58127         * tests/test-copy-file.c (func_test_copy): Update.
58128
58129 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
58130
58131         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
58132
58133 2008-05-23  Bruno Haible  <bruno@clisp.org>
58134
58135         Improve support for ACLs on OSF/1.
58136         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
58137         Remove fallback for unknown flavors of ACLs.
58138
58139 2008-05-22  Bruno Haible  <bruno@clisp.org>
58140
58141         Add support for ACLs on OSF/1.
58142         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
58143         replacements.
58144         (acl_free_text): New macro fallback.
58145         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
58146         acl_free.
58147         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
58148         acl_free_text function. Require AC_C_INLINE.
58149
58150 2008-05-22  Bruno Haible  <bruno@clisp.org>
58151
58152         Make copy_acl work on MacOS X 10.5.
58153         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
58154         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
58155         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
58156         If MODE_INSIDE_ACL, don't assume that every system has the same text
58157         representation for ACLs as FreeBSD.
58158         * lib/copy-acl.c (copy_acl): Add support for platforms with
58159         !MODE_INSIDE_ACL.
58160         * lib/file-has-acl.c (file_has_acl): Likewise.
58161         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
58162         FreeBSD, MacOS X, or IRIX, respectively.
58163
58164 2008-05-22  Bruno Haible  <bruno@clisp.org>
58165
58166         * lib/acl.h: Don't include <sys/acl.h>.
58167         (GETACLCNT): Move fallback to lib/acl-internal.h.
58168         * lib/acl-internal.h: Include <sys/acl.h> here.
58169         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
58170
58171 2008-05-22  Bruno Haible  <bruno@clisp.org>
58172
58173         Split off copy_acl function to separate file.
58174         * lib/copy-acl.c: New file, extracted from lib/acl.c.
58175         * lib/acl.c (copy_acl): Moved function to separate file.
58176         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
58177         * modules/acl (Files): Add lib/copy-acl.c.
58178         (Makefiles.am): Augment lib_SOURCES.
58179
58180 2008-05-22  Bruno Haible  <bruno@clisp.org>
58181
58182         * modules/copy-file-tests: New file.
58183         * tests/test-copy-file.sh: New file.
58184         * tests/test-copy-file.c: New file.
58185         * tests/test-copy-file-sameacls.c: New file.
58186
58187 2008-05-22  Eric Blake  <ebb9@byu.net>
58188
58189         Avoid gcc warning.
58190         * tests/test-memcmp.c (main): Pass NULL indirectly.
58191
58192 2008-05-21  Bruno Haible  <bruno@clisp.org>
58193
58194         Add reference doc about ACLs.
58195         * doc/acl-resources.txt: New file.
58196         * doc/acl-cygwin.txt: New file.
58197
58198 2008-05-21  Bruno Haible  <bruno@clisp.org>
58199
58200         Avoid one more warning from gcc.
58201         * lib/vasnprintf.c (IF_LINT): Update comments.
58202         (VASNPRINTF): Use it also for the 'prefix' array initializer.
58203
58204 2008-05-21  Jim Meyering  <meyering@redhat.com>
58205
58206         avoid a warning from gcc
58207         * lib/vasnprintf.c (IF_LINT): Define.
58208         (scale10_round_decimal_long_double):
58209         Use it to avoid a "may be used uninitialized" warning.
58210         (scale10_round_decimal_double): Likewise.
58211
58212 2008-05-21  Simon Josefsson  <simon@josefsson.org>
58213
58214         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
58215         declared.
58216
58217 2008-05-20  Bruno Haible  <bruno@clisp.org>
58218
58219         * tests/test-memcmp.c (main): Test also the sign of the result. Test
58220         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
58221
58222 2008-05-20  Simon Josefsson  <simon@josefsson.org>
58223
58224         * modules/memcmp-tests: New file.
58225         * tests/test-memcmp.c: New file.
58226
58227 2008-05-19  Bruno Haible  <bruno@clisp.org>
58228
58229         * modules/propername (Notice, configure.ac): Put quoted "..." into
58230         --keyword option.
58231         * lib/propername.h: Update comments accordingly.
58232         Reported by Eric Blake.
58233
58234 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
58235
58236         * modules/getpass-gnu (Depends-on): Add fseeko.
58237
58238 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58239
58240         * modules/base64-tests: New file.
58241
58242 2008-05-19  Bo Borgerson <gigabo@gmail.com>
58243
58244         * lib/base64.c (base64_decode_ctx): If a decode context structure
58245         was passed in use it to ignore newlines.  If a context structure
58246         was _not_ passed in, continue to treat newlines as garbage (this
58247         is the historical behavior).  Formerly base64_decode.
58248         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58249         takes a decode context structure.
58250         * lib/base64.h (base64_decode): Macro for four-argument calls.
58251         (base64_decode_alloc): Likewise.
58252         * lib/base64.c (base64_decode_ctx): If a decode context structure
58253         was passed in use it to ignore newlines.  If a context structure
58254         was _not_ passed in, continue to treat newlines as garbage (this
58255         is the historical behavior).  Formerly base64_decode.
58256         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58257         takes a decode context structure.
58258         * lib/base64.h (base64_decode): Macro for four-argument calls.
58259         (base64_decode_alloc): Likewise.
58260
58261 2008-05-19  Jim Meyering  <meyering@redhat.com>
58262
58263         avoid a warning from gcc
58264         * lib/trim.c (IF_LINT): Define.
58265         (trim2): Use it to avoid a "may be used uninitialized" warning.
58266
58267         Fix doc typo.
58268         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
58269
58270 2008-05-19  Bruno Haible  <bruno@clisp.org>
58271
58272         * doc/glibc-functions/getpass.texi: Document limits of other
58273         implementations.
58274
58275 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58276             Bruno Haible <bruno@clisp.org>
58277
58278         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
58279
58280 2008-05-18  Bruno Haible  <bruno@clisp.org>
58281
58282         * modules/propername: New file, from GNU gettext.
58283         * lib/propername.h: New file, from GNU gettext.
58284         * lib/propername.c: New file, from GNU gettext.
58285         * MODULES.html.sh (Internationalization functions): Add propername.
58286
58287 2008-05-16  Jim Meyering  <meyering@redhat.com>
58288             Bruno Haible  <bruno@clisp.org>
58289
58290         Avoid some warnings from "gcc -Wshadow".
58291         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
58292
58293 2008-05-15  Eric Blake  <ebb9@byu.net>
58294
58295         Extend previous patch to cygwin 1.7.0.
58296         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
58297         fast implementation in cygwin >= 1.7.0.
58298         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58299         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58300
58301 2008-05-15  Bruno Haible  <bruno@clisp.org>
58302
58303         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
58304         implementation in glibc >= 2.9.
58305         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58306         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58307
58308 2008-05-15  Bruno Haible  <bruno@clisp.org>
58309
58310         * MODULES.html.sh (Internationalization functions): Remove linebreak.
58311         (Unicode string functions): Add unilbrk/*.
58312         Reported by Karl Berry.
58313
58314 2008-05-15  Eric Blake  <ebb9@byu.net>
58315
58316         Fix violation of <stdbool.h> replacement in regex.
58317         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
58318         * lib/regexec.c (re_search_internal): Likewise.
58319         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
58320
58321 2008-05-15  Jim Meyering  <meyering@redhat.com>
58322
58323         avoid distracting test output when git or cvs is not found
58324         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
58325         * tests/test-vc-list-files-git.sh: Likewise.
58326
58327 2008-05-15  Eric Blake  <ebb9@byu.net>
58328
58329         Glibc finally accepted the memmem speedup code, bugzilla #5514.
58330         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
58331         glibc version.
58332         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
58333         * doc/posix-functions/strstr.texi (strstr): Likewise.
58334         * lib/str-two-way.h (MAX): Sychronize with glibc.
58335
58336 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
58337
58338         * lib/regcomp.c (optimize_utf8): Add a note on why we test
58339         opr.ctx_type.
58340         (calc_first): Initialize constraint field.
58341         (duplicate_node_closure): Use it instead of special casing ANCHORS.
58342         Fix grammar.
58343         (duplicate_node): Merge constraint field for all node types.
58344         (calc_eclosure_iter): Look at constraint field for all node types.
58345         * lib/regex_internal.c (create_cd_newstate): Don't look at
58346         opr.ctx_type.
58347
58348 2008-05-14  Bruno Haible  <bruno@clisp.org>
58349
58350         Help GCC to do better code generation.
58351         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
58352         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
58353         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
58354         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
58355         Declare with attribute 'malloc' if supported.
58356
58357 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
58358
58359         use "echo STR|wc -c" rather than unportable "expr length STR"
58360         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
58361         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
58362
58363 2008-05-14  Jim Meyering  <meyering@redhat.com>
58364
58365         use dd ibs=$n count=1 ... rather than less-portable head -c$n
58366         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
58367         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
58368         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
58369         via Collin Lasse.
58370
58371 2008-05-14  Eric Blake  <ebb9@byu.net>
58372
58373         Avoid quadratic growth in gl_LIBSOURCES.
58374         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
58375         Suggested by Bruno Haible.
58376
58377         Test xmemdup0.
58378         * modules/xmemdup0-tests: New file.
58379         * tests/test-xmemdup0.c: Likewise.
58380
58381 2008-05-13  Eric Blake  <ebb9@byu.net>
58382
58383         Split xmemdup0 into its own module.
58384         * modules/xmemdup0: New file.
58385         * lib/xmemdup0.h: Likewise.
58386         * lib/xmemdup0.c: Likewise.
58387         * MODULES.html.sh (Memory management functions): Add xmemdup0.
58388         * lib/xalloc.h (xmemdup0): Remove.
58389         * lib/xmalloc.c (xmemdup0): Likewise.
58390
58391 2008-05-13  Eric Blake  <ebb9@byu.net>
58392             Bruno Haible  <bruno@clisp.org>
58393
58394         Reduce number of forks required during autoconf.
58395         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
58396         and gl_LIBSOURCES_DIR.
58397         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
58398         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
58399         m4_syscmd per file.
58400         <m4_foreach_w>: Move...
58401         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
58402
58403 2008-05-13  Eric Blake  <ebb9@byu.net>
58404
58405         * gnulib-tool: Fix various comment typos.
58406
58407 2008-05-12  Bruno Haible  <bruno@clisp.org>
58408
58409         Tailor the linebreaking algorithm.
58410         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
58411
58412 2008-05-12  Bruno Haible  <bruno@clisp.org>
58413
58414         Update to Unicode 5.0.0.
58415         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58416         LBP_JV, LBP_JT. Redistribute values.
58417         (unilbrk_table): Change size.
58418         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
58419         Unicode TR#14 rev. 22.
58420         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58421         LBP_JV, LBP_JT. Redistribute values.
58422         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
58423         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
58424         Update.
58425         * lib/unilbrk/lbrkprop1.h: Regenerated.
58426         * lib/unilbrk/lbrkprop2.h: Regenerated.
58427         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
58428         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
58429         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
58430         Likewise.
58431         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
58432         Likewise.
58433         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
58434         result.
58435         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
58436         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
58437         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
58438         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
58439         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
58440         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
58441
58442 2008-05-11  Bruno Haible  <bruno@clisp.org>
58443
58444         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
58445
58446 2008-05-11  Bruno Haible  <bruno@clisp.org>
58447
58448         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
58449         * modules/unilbrk/gen-lbrk: New file.
58450
58451 2008-05-11  Bruno Haible  <bruno@clisp.org>
58452
58453         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
58454         * m4/sha512.m4 (gl_SHA512): Likewise.
58455
58456 2008-05-11  Jim Meyering  <meyering@redhat.com>
58457
58458         New modules: crypto/sha256, crypto/sha512 (from coreutils)
58459         * modules/crypto/sha256: New file.
58460         * modules/crypto/sha512: Likewise.
58461         * lib/sha256.c: Likewise.
58462         * lib/sha256.h: Likewise.
58463         * lib/sha512.c: Likewise.
58464         * lib/sha512.h: Likewise.
58465         * lib/u64.h: Likewise.
58466         * m4/sha256.m4: Likewise.
58467         * m4/sha512.m4: Likewise.
58468         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
58469
58470 2008-05-10  Bruno Haible  <bruno@clisp.org>
58471
58472         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
58473         (Input/Output <stdio.h>): Add xprintf.
58474         (Signal handling <signal.h>): Add strsignal.
58475         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
58476         (Core language properties): Add func.
58477         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
58478         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
58479         strings.
58480         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
58481         (Input/output): New section.
58482         (File system functions): Add openat-die, stat-macros.
58483         (Networking functions): Add sockets.
58484         (Unicode string functions): Add unictype/*.
58485         (Support for building libraries and executables): Add gperf.
58486         (Support for building documentation): Add agpl-3.0.
58487         (Misc): Add nocrash.
58488
58489 2008-05-10  Bruno Haible  <bruno@clisp.org>
58490
58491         * modules/unictype/gen-ctype: New file.
58492
58493 2008-05-10  Jim Meyering  <meyering@redhat.com>
58494
58495         Make chdir-safer.c more efficient on a system with no symlinks.
58496         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
58497         also if ELOOP is zero.  Suggested by Bruno Haible.
58498
58499         Make chdir-safer.c slightly safer.
58500         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
58501         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
58502
58503         Avoid compile failure on systems without ELOOP (like mingw).
58504         * lib/chdir-safer.c (ELOOP): Define if not already defined.
58505         Reported by Bruno Haible.
58506
58507 2008-05-10  Bruno Haible  <bruno@clisp.org>
58508
58509         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
58510         (is_utf8_encoding): Use a case-insensitive comparison.
58511         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
58512         streq.
58513
58514 2008-05-10  Bruno Haible  <bruno@clisp.org>
58515
58516         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
58517         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
58518         * lib/unilbrk/ulc-common.h (iconv_string_length,
58519         iconv_string_keeping_offsets): Remove declarations.
58520         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
58521         Don't include <iconv.h>, streq.h, xsize.h.
58522         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
58523         conversion.
58524         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
58525         <iconv.h>, streq.h, xsize.h.
58526         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
58527         conversion.
58528         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
58529         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
58530         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
58531         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
58532
58533 2008-05-10  Bruno Haible  <bruno@clisp.org>
58534
58535         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
58536         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
58537
58538         * modules/unilbrk/u32-width-linebreaks-tests: New file.
58539         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
58540
58541         * modules/unilbrk/u16-width-linebreaks-tests: New file.
58542         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
58543
58544         * modules/unilbrk/u8-width-linebreaks-tests: New file.
58545         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
58546
58547         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
58548         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
58549
58550         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
58551         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
58552
58553         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
58554         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
58555
58556         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
58557         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
58558
58559 2008-05-10  Bruno Haible  <bruno@clisp.org>
58560
58561         Split up 'linebreak' module.
58562         * lib/unilbrk.h: New file, based on lib/linebreak.h.
58563         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
58564         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
58565         modifications.
58566         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
58567         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
58568         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
58569         lib/linebreak.c.
58570         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
58571         lib/linebreak.c.
58572         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
58573         lib/linebreak.c.
58574         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
58575         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
58576         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
58577         lib/linebreak.c.
58578         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
58579         lib/linebreak.c.
58580         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
58581         lib/linebreak.c.
58582         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
58583         lib/linebreak.c.
58584         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
58585         lib/linebreak.c.
58586         * modules/unilbrk/base: New file.
58587         * modules/unilbrk/tables: New file.
58588         * modules/unilbrk/u8-possible-linebreaks: New file.
58589         * modules/unilbrk/u16-possible-linebreaks: New file.
58590         * modules/unilbrk/u32-possible-linebreaks: New file.
58591         * modules/unilbrk/ulc-common: New file.
58592         * modules/unilbrk/ulc-possible-linebreaks: New file.
58593         * modules/unilbrk/u8-width-linebreaks: New file.
58594         * modules/unilbrk/u16-width-linebreaks: New file.
58595         * modules/unilbrk/u32-width-linebreaks: New file.
58596         * modules/unilbrk/ulc-width-linebreaks: New file.
58597         * lib/linebreak.h: Remove file.
58598         * lib/linebreak.c: Remove file.
58599         * m4/linebreak.m4: Remove file.
58600         * modules/linebreak: Remove file.
58601         * NEWS: Mention the changes.
58602
58603 2008-05-09  Eric Blake  <ebb9@byu.net>
58604
58605         Add xmemdup0.
58606         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
58607         implementation.
58608         * lib/xmalloc.c (xmemdup0): New C implementation.
58609
58610 2008-05-08  Bruno Haible  <bruno@clisp.org>
58611
58612         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
58613
58614 2008-05-07  Eric Blake  <ebb9@byu.net>
58615
58616         Support cross-compilation of <wctype.h>.
58617         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
58618         AC_CACHE_CHECK.
58619
58620 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
58621
58622         * build-aux/vc-list-files: Add support for bzr.
58623
58624 2008-05-03  Jim Meyering  <meyering@redhat.com>
58625
58626         avoid failed assertion with tight malloc
58627         * tests/test-getndelim2.c: Correct an off-by-one assertion.
58628
58629 2008-05-03  Simon Josefsson  <simon@josefsson.org>
58630
58631         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
58632         are needed from arpa/inet.h.
58633         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
58634         Reported by Bruno Haible.
58635
58636 2008-05-02  Jim Meyering  <meyering@redhat.com>
58637
58638         avoid compilation error on FreeBSD 6
58639         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
58640
58641 2008-05-01  Jim Meyering  <meyering@redhat.com>
58642
58643         useless-if-before-free: correct --help's exit status description
58644         * build-aux/useless-if-before-free (usage): Like grep, exit 0
58645         for one or more matches, etc.  Reported by Bruno Haible.
58646
58647         vc-list-files: make the stand-alone gnulib test work
58648         * modules/vc-list-files-tests (configure.ac):
58649         Define and AC_SUBST abs_aux_dir.
58650         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
58651         $(abs_top_srcdir) to each script and having each of them
58652         duplicate the work of setting PATH, set PATH here, using
58653         the new variable, abs_aux_dir instead.
58654         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
58655         * tests/test-vc-list-files-git.sh: Likewise.
58656         Reported by Bruno Haible.
58657
58658 2008-05-01  Bruno Haible  <bruno@clisp.org>
58659
58660         * lib/getndelim2.c (getndelim2): Fix newsize computation during
58661         reallocation. Rename 'done' to 'found_delimiter'.
58662
58663 2008-05-01  Jim Meyering  <meyering@redhat.com>
58664
58665         vc-list-files: accommodate /bin/sh like the one from Solaris 10
58666         * build-aux/vc-list-files: Use `...`, not $(...).
58667
58668 2008-04-30  Jim Meyering  <meyering@redhat.com>
58669
58670         add tests for vc-list-files
58671         * modules/vc-list-files-tests: New module.
58672         * tests/test-vc-list-files-cvs.sh: New file.
58673         * tests/test-vc-list-files-git.sh: New file.
58674
58675         avoid a warning from gcc
58676         * lib/getndelim2.c (IF_LINT): Define.
58677         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
58678
58679         vc-list-files: work properly with build-aux/cvsu, too
58680         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
58681         to all cvs-based clauses.
58682
58683         vc-list-files: work properly in the CVS+awk case, too
58684         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
58685
58686         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
58687         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
58688         take more than one file argument, so .  Add quotes, just in case $dir
58689         ever contains a shell meta-character.  Prompted by Soren Hansen in
58690         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
58691
58692 2008-04-29  Eric Blake  <ebb9@byu.net>
58693
58694         Optimize getndelim2 to use block operations when possible.
58695         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
58696         freadseek, and memchr2.
58697         * lib/getndelim2.c (getndelim2): Use them for block reads.
58698
58699 2008-04-29  Bruno Haible  <bruno@clisp.org>
58700
58701         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
58702         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58703         * modules/inet_ntop (Depends-on): Add extensions.
58704         * modules/inet_pton (Depends-on): Likewise.
58705         Reported by Simon Josefsson.
58706
58707 2008-04-29  Jim Meyering  <meyering@redhat.com>
58708
58709         When the is more than one match in a block, match all of them.
58710         * build-aux/useless-if-before-free: Iterate through each block
58711         until there are no more matches.
58712
58713         Fix broken useless-if-before-free script.
58714         * build-aux/useless-if-before-free: Fix typo: missing "?" after
58715         the expression to match cast of argument to free-like function.
58716
58717 2008-04-29  Eric Blake  <ebb9@byu.net>
58718
58719         Use new header.
58720         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
58721
58722 2008-04-29  Jim Meyering  <meyering@redhat.com>
58723
58724         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
58725         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
58726         by gnulib to exist and to declare e.g., inet_ntop.
58727         Don't include "inet_ntop.h", now removed.
58728
58729         * m4/arpa_inet_h.m4: Remove trailing blanks.
58730
58731 2008-04-29  Eric Blake  <ebb9@byu.net>
58732
58733         Silence valgrind on safe reads beyond potential array bounds.
58734         * lib/rawmemchr.valgrind: New file.
58735         * lib/strchrnul.valgrind: Likewise.
58736         * modules/rawmemchr (Files): Distribute new file.
58737         * modules/strchrnul (Files): Likewise.
58738         Suggested by Bruno Haible.
58739
58740 2008-04-29  Bruno Haible  <bruno@clisp.org>
58741
58742         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
58743         (inet_ntop, inet_pton): Change portability warning's wording.
58744         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
58745         Invoke gl_CHECK_NEXT_HEADERS.
58746         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
58747         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
58748         set ARPA_INET_H.
58749         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58750         * modules/arpa_inet (Description): No longer only for systems that
58751         lack it.
58752         (Depends-on): Add include_next.
58753         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
58754         HAVE_ARPA_INET_H.
58755
58756 2008-04-29  Jim Meyering  <meyering@redhat.com>
58757
58758         * modules/mkdir (License): Re-license as LGPLv2+.
58759
58760 2008-04-29  Bruno Haible  <bruno@clisp.org>
58761
58762         * modules/rawmemchr (Maintainer): Set to Eric.
58763         * modules/strchrnul (Maintainer): Likewise.
58764
58765 2008-04-29  Simon Josefsson  <simon@josefsson.org>
58766
58767         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
58768         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
58769
58770         * modules/arpa_inet (arpa/inet.h): Use them.
58771
58772 2008-04-28  Eric Blake  <ebb9@byu.net>
58773
58774         Test getndelim2.
58775         * modules/getndelim2-tests: New file.
58776         * tests/test-getndelim2.c: Likewise.
58777         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
58778         stream.
58779         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
58780
58781         * MODULES.html.sh: Document new module.
58782
58783 2008-04-20  Bruno Haible  <bruno@clisp.org>
58784
58785         * lib/c-stack.c (die): Use raise.
58786         * modules/c-stack (Depends-on): Add raise.
58787
58788 2008-04-28  Bruno Haible  <bruno@clisp.org>
58789
58790         Expect rpmatch to be declared.
58791         * lib/yesno.c (rpmatch): Remove declaration.
58792
58793         Declare rpmatch.
58794         * lib/stdlib.in.h (rpmatch): New declaration.
58795         * lib/rpmatch.c: Include <stdlib.h> first.
58796         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
58797         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
58798         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
58799         HAVE_RPMATCH.
58800         * modules/rpmatch (Depends-on): Add stdlib, extensions.
58801         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58802         (Include): Set to <stdlib.h>.
58803         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
58804         HAVE_RPMATCH.
58805         * NEWS: Document the change.
58806
58807 2008-04-28  Bruno Haible  <bruno@clisp.org>
58808
58809         Change rpmatch to use nl_langinfo when appropriate.
58810         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
58811         (N_): New macro.
58812         (localized_pattern): New function/macro.
58813         (try): Remove match, nomatch arguments. Copy the pattern into safe
58814         memory before caching it.
58815         (rpmatch): Use localized_pattern. Add translator comments.
58816         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
58817         Suggested by Eric Blake.
58818         * modules/rpmatch (Depends-on): Add stdbool.
58819
58820 2008-04-28  Eric Blake  <ebb9@byu.net>
58821
58822         Add rawmemchr module, matching glibc.
58823         * modules/string (Makefile.am): New indicator.
58824         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
58825         * lib/string.in.h (rawmemchr): Declare when appropriate.
58826         * modules/rawmemchr: New file.
58827         * m4/rawmemchr.m4: Likewise.
58828         * lib/rawmemchr.c: Likewise.
58829         * modules/rawmemchr-tests: Likewise.
58830         * tests/test-rawmemchr.c: Likewise.
58831         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
58832         module.
58833         * modules/strchrnul (Depends-on): Add rawmemchr.
58834         * lib/strchrnul.c (strchrnul): Optimize a corner case.
58835
58836         Whitespace cleanup.
58837         * tests/test-strchrnul.c: Reindent.
58838         * lib/strchrnul.c: Likewise.
58839
58840         Optimize and test strchrnul.
58841         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
58842         * modules/strchrnul-tests: New file.
58843         * tests/test-strchrnul.c: Likewise.
58844
58845         Remove intprops dependency.
58846         * modules/memchr (Depends-on): Remove intprops.
58847         * modules/memrchr (Depends-on): Likewise.
58848         * modules/memchr2 (Depends-on): Likewise.
58849         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
58850         * lib/memrchr.c (__memrchr): Likewise.
58851         * lib/memrchr2.c (memchr2): Likewise.
58852         Reported by Simon Josefsson.
58853
58854 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58855
58856         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
58857         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58858
58859 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58860
58861         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
58862
58863         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
58864
58865         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
58866
58867         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
58868         declarations.
58869         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
58870
58871         * m4/inet_pton.m4: Don't check for header files.
58872
58873         * m4/inet_ntop.m4: Don't check for header files.
58874
58875 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58876
58877         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
58878         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
58879         trigger for cygwin).
58880         Reported by Bruno Haible  <bruno@clisp.org>.
58881
58882 2008-04-28  Bruno Haible  <bruno@clisp.org>
58883
58884         * doc/posix-functions/strdup.texi: Mention mingw problem.
58885
58886 2008-04-27  Bruno Haible  <bruno@clisp.org>
58887
58888         * modules/stat-time-tests (Depends-on): Add sleep.
58889         * tests/test-stat-time.c (force_unlink): New function.
58890         (cleanup): Use it.
58891         (test_mtime): Remove the ctime related tests.
58892         (test_ctime): New function, containing the ctime related tests.
58893         (main): Call test_ctime, except on native Windows platforms.
58894
58895 2008-04-27  Bruno Haible  <bruno@clisp.org>
58896
58897         * lib/rpmatch.c (rpmatch): Add some comments.
58898         Reported by James Youngman <jay@gnu.org>.
58899
58900 2008-04-27  Bruno Haible  <bruno@clisp.org>
58901
58902         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
58903         quiet NaNs.
58904
58905 2008-04-27  Bruno Haible  <bruno@clisp.org>
58906
58907         Make test-yesno.sh work on mingw.
58908         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
58909         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
58910         (main): Set stdin to binary mode.
58911         * modules/yesno-tests (Depends-on): Add binary-io.
58912
58913 2008-04-27  Bruno Haible  <bruno@clisp.org>
58914
58915         Fix 'isfinite' on x86, x86_64, ia64 platforms.
58916         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
58917         argument that lie outside the IEEE 854 domain.
58918         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
58919         (gl_ISFINITE): Use it.
58920         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
58921
58922 2008-04-27  Bruno Haible  <bruno@clisp.org>
58923
58924         Allow local renaming in config.h.
58925         * lib/memrchr.c (memrchr): Don't undefine outside libc.
58926
58927 2008-04-27  Bruno Haible  <bruno@clisp.org>
58928
58929         * lib/memchr.c (__memchr): Change type of 'i'.
58930         * lib/memchr2.c (memchr2): Likewise.
58931
58932 2008-04-26  Eric Blake  <ebb9@byu.net>
58933         and Bruno Haible  <bruno@clisp.org>
58934
58935         Optimize and test memrchr.
58936         * modules/memrchr (Depends-on): Add intprops.
58937         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
58938         * modules/memrchr-tests: New file.
58939         * tests/test-memrchr.c: New file.
58940
58941 2008-04-26  Bruno Haible  <bruno@clisp.org>
58942
58943         Add tentative support for DragonFly BSD.
58944         * lib/stdio-impl.h: Add macros for DragonFly BSD.
58945         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
58946         fp.
58947         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58948         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
58949         * lib/fpurge.c (fpurge): Likewise.
58950         * lib/freadable.c (freaadable): Likewise.
58951         * lib/freadahead.c (freadahead): Likewise.
58952         * lib/freading.c (freading): Likewise.
58953         * lib/freadptr.c (freadptr): Likewise.
58954         * lib/freadseek.c (freadptrinc): Likewise.
58955         * lib/fseeko.c (fseeko): Likewise.
58956         * lib/fseterr.c (fseterr): Likewise.
58957         * lib/fwritable.c (fwritable): Likewise.
58958         * lib/fwriting.c (fwriting): Likewise.
58959
58960 2008-04-26  Bruno Haible  <bruno@clisp.org>
58961
58962         * lib/stdio-impl.h: New file.
58963         * lib/fbufmode.c: Include stdio-impl.h.
58964         (fbufmode): Use fp_, remove redundant #defines.
58965         * lib/fflush.c: Include stdio-impl.h.
58966         (clear_ungetc_buffer): Remove redundant #defines.
58967         * lib/fpurge.c: Include stdio-impl.h.
58968         (fpurge): Remove redundant #defines.
58969         * lib/freadable.c: Include stdio-impl.h.
58970         (freadable): Remove redundant #defines.
58971         * lib/freadahead.c: Include stdio-impl.h.
58972         (freadahead): Remove redundant #defines.
58973         * lib/freading.c: Include stdio-impl.h.
58974         (freading): Remove redundant #defines.
58975         * lib/freadptr.c: Include stdio-impl.h.
58976         (freadptr): Remove redundant #defines.
58977         * lib/freadseek.c: Include stdio-impl.h.
58978         (freadptrinc): Remove redundant #defines.
58979         * lib/fseeko.c: Include stdio-impl.h.
58980         (rpl_fseeko): Remove redundant #defines.
58981         * lib/fseterr.c: Include stdio-impl.h.
58982         (fseterr): Remove redundant #defines.
58983         * lib/fwritable.c: Include stdio-impl.h.
58984         (fwritable: Remove redundant #defines.
58985         * lib/fwriting.c: Include stdio-impl.h.
58986         (fwriting): Remove redundant #defines.
58987         * modules/fbufmode (Files): Add lib/stdio-impl.h.
58988         * modules/fflush (Files): Likewise.
58989         * modules/fpurge (Files): Likewise.
58990         * modules/freadable (Files): Likewise.
58991         * modules/freadahead (Files): Likewise.
58992         * modules/freading (Files): Likewise.
58993         * modules/freadptr (Files): Likewise.
58994         * modules/freadseek (Files): Likewise.
58995         * modules/fseeko (Files): Likewise.
58996         * modules/fseterr (Files): Likewise.
58997         * modules/fwritable (Files): Likewise.
58998         * modules/fwriting (Files): Likewise.
58999
59000 2008-04-26  Bruno Haible  <bruno@clisp.org>
59001
59002         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59003         restore_seek_optimization, update_fpos_cache): New functions, extracted
59004         from rpl_fflush.
59005         (rpl_fflush): Use them.
59006         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
59007         (gl_REPLACE_FFLUSH): Use it.
59008
59009 2008-04-26  Bruno Haible  <bruno@clisp.org>
59010
59011         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
59012         on Solaris.
59013         * tests/test-xstrtoimax.sh: Likewise.
59014         * tests/test-xstrtoumax.sh: Likewise.
59015         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59016
59017 2008-04-26  Bruno Haible  <bruno@clisp.org>
59018
59019         * modules/memchr-tests: New file.
59020         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
59021
59022 2008-04-26  Eric Blake  <ebb9@byu.net>
59023             Bruno Haible  <bruno@clisp.org>
59024
59025         * lib/memchr.c: Include intprops.h.
59026         (__memchr): Optimize parallel detection of matching bytes. Rename local
59027         variables. Add explanatory comments.
59028
59029 2008-04-26  Bruno Haible  <bruno@clisp.org>
59030
59031         Fix module 'memchr', broken since 2000-10-28.
59032         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
59033
59034 2008-04-26  Bruno Haible  <bruno@clisp.org>
59035
59036         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
59037         comments.
59038
59039 2008-04-25  Eric Blake  <ebb9@byu.net>
59040
59041         Use native fstatat on cygwin 1.7.0.
59042         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
59043         first.
59044
59045 2008-04-23  Eric Blake  <ebb9@byu.net>
59046
59047         Improve memchr2 performance.
59048         * lib/memchr2.c (memchr2): Further optimize parallel detection of
59049         NUL bytes.
59050         * modules/memchr2 (Depends-on): Use intprops.h.
59051
59052 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59053
59054         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
59055         an inline function instead of a CPP macro.  Patch by Ben Pfaff
59056         <blp@cs.stanford.edu>.
59057
59058 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59059
59060         * lib/arpa_inet.in.h: New file.
59061
59062         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
59063         (Makefile.am): Sed in substitute header file.
59064
59065         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
59066         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
59067
59068         * modules/inet_ntop (configure.ac): Use
59069         gl_ARPA_INET_MODULE_INDICATOR.
59070
59071         * modules/inet_pton (configure.ac): Use
59072         gl_ARPA_INET_MODULE_INDICATOR.
59073
59074 2008-04-22  Jim Meyering  <meyering@redhat.com>
59075
59076         * modules/verify (License): Re-license as LGPLv2+.
59077
59078 2008-04-22  Simon Josefsson  <simon@josefsson.org>
59079
59080         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
59081         parameter to void* as per POSIX standard (MinGW uses char*).
59082
59083 2008-04-21  Bruno Haible  <bruno@clisp.org>
59084
59085         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59086         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59087         Define to replacements if REPLACE_ISWCNTRL is 1.
59088         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
59089         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
59090         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
59091         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
59092         what it fixes.
59093         * doc/posix-functions/iswalpha.texi: Likewise.
59094         * doc/posix-functions/iswblank.texi: Likewise.
59095         * doc/posix-functions/iswcntrl.texi: Likewise.
59096         * doc/posix-functions/iswdigit.texi: Likewise.
59097         * doc/posix-functions/iswgraph.texi: Likewise.
59098         * doc/posix-functions/iswlower.texi: Likewise.
59099         * doc/posix-functions/iswprint.texi: Likewise.
59100         * doc/posix-functions/iswpunct.texi: Likewise.
59101         * doc/posix-functions/iswspace.texi: Likewise.
59102         * doc/posix-functions/iswupper.texi: Likewise.
59103         * doc/posix-functions/iswxdigit.texi: Likewise.
59104         Reported by Alain Guibert.
59105
59106 2008-04-21  Bruno Haible  <bruno@clisp.org>
59107
59108         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
59109         Patch by Alain Guibert.
59110
59111 2008-04-21  Bruno Haible  <bruno@clisp.org>
59112
59113         Fix test failures on mingw.
59114         * tests/test-xstrtol.c (print_no_progname): New function.
59115         (main): Install it in error_print_progname hook.
59116         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
59117         * tests/test-xstrtoimax.sh: Likewise.
59118         * tests/test-xstrtoumax.sh: Likewise.
59119
59120 2008-04-21  Bruno Haible  <bruno@clisp.org>
59121
59122         Fix test failure on mingw.
59123         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
59124
59125 2008-04-21  Bruno Haible  <bruno@clisp.org>
59126
59127         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
59128         Actually assign a value.
59129
59130 2008-04-20  Bruno Haible  <bruno@clisp.org>
59131
59132         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
59133         take 2.
59134         * lib/canonicalize.c (canonicalize_file_name): Elide if the
59135         'canonicalize-lgpl' module is also used.
59136         * lib/canonicalize-lgpl.c: Undo last change.
59137         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
59138
59139 2008-04-20  Bruno Haible  <bruno@clisp.org>
59140
59141         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
59142         config.h. Provide _mkdir based fallback for mingw.
59143         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
59144         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
59145         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
59146         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
59147         rather than defining mkdir in config.h.
59148         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
59149         (gl_SYS_STAT_H_DEFAULTS): New macro.
59150         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
59151         HAVE_IO_H any more.
59152         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
59153         HAVE_DECL_MKDIR and HAVE_IO_H.
59154
59155 2008-04-20  Bruno Haible  <bruno@clisp.org>
59156
59157         * lib/isapipe.c: Port to native Windows platforms.
59158
59159 2008-04-20  Bruno Haible  <bruno@clisp.org>
59160
59161         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
59162
59163 2008-04-21  Eric Blake  <ebb9@byu.net>
59164
59165         Work around preprocessors that don't handle UINTMAX_MAX.
59166         * lib/memchr2.c (memchr2): Avoid embedded #if.
59167         Reported by Alain Guibert, fix suggested by Bruno Haible.
59168
59169 2008-04-21  Simon Josefsson  <simon@josefsson.org>
59170
59171         * doc/posix-functions/strftime.texi (strftime): Explain better
59172         Windows incompatibility.  Suggested by Micah Cowan
59173         <micah@cowan.name>.
59174
59175 2008-04-20  Bruno Haible  <bruno@clisp.org>
59176
59177         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
59178         unistr/u8-mblen.
59179
59180 2008-04-20  Bruno Haible  <bruno@clisp.org>
59181
59182         Fix test failure on platforms with non-GNU iconv.
59183         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
59184         (U_TO_U8): Use it, rather than u16_to_u8.
59185         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
59186         units at the end of the input string.
59187         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
59188
59189 2008-04-20  Bruno Haible  <bruno@clisp.org>
59190
59191         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
59192         when the resulting length is 0.
59193         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
59194
59195 2008-04-20  Bruno Haible  <bruno@clisp.org>
59196
59197         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
59198         works.
59199         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
59200
59201 2008-04-20  Bruno Haible  <bruno@clisp.org>
59202
59203         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
59204         * modules/tsearch-tests (configure.ac): Test for initstate function.
59205
59206 2008-04-20  Bruno Haible  <bruno@clisp.org>
59207
59208         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
59209         for nlink_t if missing.
59210         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
59211
59212 2008-04-19  Bruno Haible  <bruno@clisp.org>
59213
59214         Work around snprintf bug on Linux libc5.
59215         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
59216         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59217         gl_SNPRINTF_SIZE1.
59218         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59219         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
59220         that test failed.
59221         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
59222         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
59223         * modules/snprintf (Files): Add m4/printf.m4.
59224         * modules/vsnprintf (Files): Likewise.
59225         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
59226         * doc/posix-functions/vsnprintf.texi: Likewise.
59227
59228 2008-04-19  Bruno Haible  <bruno@clisp.org>
59229
59230         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
59231         from 0.0058 to less than 10^-7.
59232
59233 2008-04-19  Bruno Haible  <bruno@clisp.org>
59234
59235         Fix rounding when a precision is given.
59236         * lib/vasnprintf.c (is_borderline): New function.
59237         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
59238         9...9x.
59239         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
59240         %e, %g.
59241         * tests/test-vasprintf-posix.c (test_function): Likewise.
59242         * tests/test-snprintf-posix.h (test_function): Likewise.
59243         * tests/test-sprintf-posix.h (test_function): Likewise.
59244         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
59245         * tests/test-printf-posix.h (test_function): Likewise.
59246         * tests/test-printf-posix.output: Update.
59247         Reported by John Darrington <john@darrington.wattle.id.au> via
59248         Ben Pfaff <blp@cs.stanford.edu>.
59249
59250 2008-04-18  Simon Josefsson  <simon@josefsson.org>
59251
59252         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
59253         Suggested by Bruno Haible <bruno@clisp.org>.
59254
59255 2008-04-17  Bruno Haible  <bruno@clisp.org>
59256
59257         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
59258         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
59259         implementation.
59260         Patch by Bruce Merry <bmerry@gmail.com>.
59261
59262 2008-04-17  Simon Josefsson  <simon@josefsson.org>
59263
59264         * doc/posix-functions/strftime.texi (strftime): Mention that %e
59265         doesn't work under Windows.
59266
59267 2008-04-16  Bruno Haible  <bruno@clisp.org>
59268
59269         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
59270         New macros.
59271         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
59272         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
59273         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
59274         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
59275         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
59276         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
59277         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
59278         macros.
59279         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
59280         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
59281         Northern Sotho, Uighur.
59282
59283 2008-04-16  Bruno Haible  <bruno@clisp.org>
59284
59285         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
59286         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
59287         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
59288         Reported by Daniel Bergström <daniel@octocode.com>.
59289
59290 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
59291             Bruno Haible  <bruno@clisp.org>
59292
59293         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
59294         function.
59295         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
59296         New functions, mostly extracted from gl_locale_name_default.
59297         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
59298
59299 2008-04-16  Eric Blake  <ebb9@byu.net>
59300
59301         Adjust strtod detection to catch glibc 2.7 bug.
59302         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
59303         Reported by John Gatewood Ham.
59304
59305 2008-04-16  Bruno Haible  <bruno@clisp.org>
59306
59307         Add tentative support for Linux libc5.
59308         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
59309         * lib/fpurge.c (fpurge): Likewise.
59310         * lib/freadable.c (freadable): Likewise.
59311         * lib/freadahead.c (freadahead): Likewise.
59312         * lib/freading.c (freading): Likewise.
59313         * lib/freadptr.c (freadptr): Likewise.
59314         * lib/freadseek.c (freadptrinc): Likewise.
59315         * lib/fseeko.c (rpl_fseeko): Likewise.
59316         * lib/fseterr.c (fseterr): Likewise.
59317         * lib/fwritable.c (fwritable): Likewise.
59318         * lib/fwriting.c (fwriting): Likewise.
59319         Reported by Alain Guibert <alguibert+bts@free.fr>.
59320
59321 2008-04-15  Bruno Haible  <bruno@clisp.org>
59322
59323         * modules/mathl (configure.ac): Define module indicator.
59324
59325 2008-04-15  Bruno Haible  <bruno@clisp.org>
59326
59327         * lib/logl.c (logl): Remove unused variables.
59328
59329 2008-04-15  Bruno Haible  <bruno@clisp.org>
59330
59331         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
59332         fails.
59333
59334 2008-04-15  Bruno Haible  <bruno@clisp.org>
59335
59336         * lib/trim.c (trim2): Fix argument of isspace() macro.
59337
59338 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
59339
59340         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
59341         to 0.
59342         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
59343
59344 2008-04-14  Bruno Haible  <bruno@clisp.org>
59345
59346         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
59347         AC_LANG_PROGRAM argument.
59348         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
59349         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
59350         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59351         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59352         * m4/math_h.m4 (gl_MATH_H): Likewise.
59353         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
59354         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59355         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59356         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
59357         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59358         * m4/regex.m4 (gl_REGEX): Likewise.
59359         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
59360         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
59361         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59362         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
59363         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59364         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59365         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59366         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59367
59368 2008-04-14  Jim Meyering  <meyering@redhat.com>
59369
59370         test-strtod: fix typos: s/abs/fabs/
59371         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
59372
59373 2008-04-13  Bruno Haible  <bruno@clisp.org>
59374
59375         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
59376         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
59377         module is also used and while not building the reloc-wrapper.
59378
59379 2008-04-13  Bruno Haible  <bruno@clisp.org>
59380
59381         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
59382
59383 2008-04-13  Bruno Haible  <bruno@clisp.org>
59384
59385         Fix AIX compilation failure introduced on 2008-04-02.
59386         * tests/test-frexp.c (exp): Undefine before redefining.
59387         * tests/test-frexpl.c (exp): Likewise.
59388
59389 2008-04-13  Bruno Haible  <bruno@clisp.org>
59390
59391         Work around a HP-UX stdio bug.
59392         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
59393         * tests/test-ftello.c (main): Likewise.
59394         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
59395         * doc/posix-functions/ftello.texi: Likewise.
59396
59397 2008-04-13  Bruno Haible  <bruno@clisp.org>
59398
59399         Make test-signbit pass on HP-UX/hppa.
59400         * tests/test-signbit.c (minus_zerol): New variable.
59401         (test_signbitl): Use it.
59402
59403 2008-04-13  Bruno Haible  <bruno@clisp.org>
59404
59405         Make truncl work on OSF/1 4.0.
59406         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
59407         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59408         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
59410         HAVE_DECL_TRUNCL.
59411         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
59412         HAVE_DECL_TRUNCL.
59413         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
59414
59415 2008-04-13  Bruno Haible  <bruno@clisp.org>
59416
59417         * lib/unictype.h: Remove trailing comma from enumeration definitions.
59418
59419 2008-04-13  Bruno Haible  <bruno@clisp.org>
59420
59421         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
59422         expression, so as to avoid HP-UX 11 cc compiler bug.
59423
59424 2008-04-13  Bruno Haible  <bruno@clisp.org>
59425
59426         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
59427
59428 2008-04-13  Bruno Haible  <bruno@clisp.org>
59429
59430         * lib/git-merge-changelog.c: Remove empty declaration outside of
59431         functions.
59432
59433 2008-04-13  Bruno Haible  <bruno@clisp.org>
59434
59435         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
59436
59437 2008-04-13  Bruno Haible  <bruno@clisp.org>
59438
59439         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
59440         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
59441         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
59442         also if it exists but lacks definitions of the SHUT_* macros.
59443         * modules/sys_socket (Description): Update.
59444         Reported by Elbert Pol <e.pol@chello.nl>.
59445
59446 2008-04-13  Bruno Haible  <bruno@clisp.org>
59447
59448         * lib/localcharset.c (OS2): Don't redefine if already defined.
59449         Reported by Elbert Pol <e.pol@chello.nl>.
59450
59451 2008-04-13  Bruno Haible  <bruno@clisp.org>
59452
59453         * lib/binary-io.h [__EMX__]: Include <io.h>.
59454         Reported by Elbert Pol <e.pol@chello.nl>.
59455
59456 2008-04-12  Bruno Haible  <bruno@clisp.org>
59457
59458         * lib/fpucw.h: Enable the definitions also for x86_64.
59459         Needed for NetBSD/x86_64.
59460         Reported by Thomas Klausner <tk@giga.or.at>.
59461
59462 2008-04-12  Bruno Haible  <bruno@clisp.org>
59463
59464         * tests/test-strtod.c: Include isnand.h.
59465         (main): Use isnand instead of isnan.
59466         Reported by Jim Meyering.
59467
59468 2008-04-12  Bruno Haible  <bruno@clisp.org>
59469
59470         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
59471         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59472
59473 2008-04-12  Jim Meyering  <meyering@redhat.com>
59474
59475         * m4/math_h.m4 (gl_MATH_H): Fix typos.
59476
59477 2008-04-12  Bruno Haible  <bruno@clisp.org>
59478
59479         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
59480         Reported by Elbert Pol <e.pol@chello.nl>.
59481
59482 2008-04-12  Eric Blake  <ebb9@byu.net>
59483
59484         Work around Solaris 10 math.h bug.
59485         * m4/math_h.m4 (gl_MATH_H): Check for bug.
59486         (gl_MATH_H_DEFAULTS): Set up default.
59487         * modules/math (Makefile.am): Replace new indicators.
59488         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
59489         * tests/test-math.c (main): Test this.
59490         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
59491         * doc/posix-headers/math.texi (math.h): Mention bug.
59492         Reported by Nelson H. F. Beebe and Jim Meyering.
59493
59494 2008-04-11  Bruno Haible  <bruno@clisp.org>
59495
59496         Adapt to future versions of Apple GCC.
59497         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
59498         Reported by Peter O'Gorman <peter@pogma.com>.
59499
59500 2008-04-11  Bruno Haible  <bruno@clisp.org>
59501
59502         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
59503
59504 2008-04-11  Bruno Haible  <bruno@clisp.org>
59505
59506         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
59507
59508         * modules/getaddrinfo-tests (Makefile.am): Define
59509         test_getaddrinfo_LDADD.
59510
59511 2008-04-11  Bruno Haible  <bruno@clisp.org>
59512
59513         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
59514         (init): Fix syntax error.
59515         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
59516         is declared.
59517
59518 2008-04-11  Bruno Haible  <bruno@clisp.org>
59519
59520         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
59521         * modules/glob (Depends-on): Add stdbool.
59522
59523 2008-04-11  Bruno Haible  <bruno@clisp.org>
59524
59525         * lib/trim.c: Include <string.h>.
59526
59527 2008-04-11  Eric Blake  <ebb9@byu.net>
59528
59529         Avoid compile failure on OS/2.
59530         * lib/regex_internal.h (internal_function): Disable optimization
59531         on OS/2 (__EMX__), where it caused compiler error.
59532         Reported by Elbert Pol.
59533
59534 2008-04-11  Bruno Haible  <bruno@clisp.org>
59535
59536         Flush the standard error stream before aborting. Needed on mingw.
59537         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
59538         * tests/test-array_list.c (ASSERT): Likewise.
59539         * tests/test-array_oset.c (ASSERT): Likewise.
59540         * tests/test-avltree_list.c (ASSERT): Likewise.
59541         * tests/test-avltree_oset.c (ASSERT): Likewise.
59542         * tests/test-avltreehash_list.c (ASSERT): Likewise.
59543         * tests/test-binary-io.c (ASSERT): Likewise.
59544         * tests/test-byteswap.c (ASSERT): Likewise.
59545         * tests/test-c-ctype.c (ASSERT): Likewise.
59546         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
59547         * tests/test-c-strcasestr.c (ASSERT): Likewise.
59548         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
59549         * tests/test-c-strstr.c (ASSERT): Likewise.
59550         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
59551         * tests/test-canonicalize.c (ASSERT): Likewise.
59552         * tests/test-carray_list.c (ASSERT): Likewise.
59553         * tests/test-ceilf1.c (ASSERT): Likewise.
59554         * tests/test-ceilf2.c (ASSERT): Likewise.
59555         * tests/test-ceill.c (ASSERT): Likewise.
59556         * tests/test-count-one-bits.c (ASSERT): Likewise.
59557         * tests/test-fbufmode.c (ASSERT): Likewise.
59558         * tests/test-fflush2.c (ASSERT): Likewise.
59559         * tests/test-floorf1.c (ASSERT): Likewise.
59560         * tests/test-floorf2.c (ASSERT): Likewise.
59561         * tests/test-floorl.c (ASSERT): Likewise.
59562         * tests/test-fopen.c (ASSERT): Likewise.
59563         * tests/test-fpending.c (ASSERT): Likewise.
59564         * tests/test-fprintf-posix.c (ASSERT): Likewise.
59565         * tests/test-fpurge.c (ASSERT): Likewise.
59566         * tests/test-freadable.c (ASSERT): Likewise.
59567         * tests/test-freadahead.c (ASSERT): Likewise.
59568         * tests/test-freading.c (ASSERT): Likewise.
59569         * tests/test-freadptr.c (ASSERT): Likewise.
59570         * tests/test-freadptr2.c (ASSERT): Likewise.
59571         * tests/test-freadseek.c (ASSERT): Likewise.
59572         * tests/test-freopen.c (ASSERT): Likewise.
59573         * tests/test-frexp.c (ASSERT): Likewise.
59574         * tests/test-frexpl.c (ASSERT): Likewise.
59575         * tests/test-fseek.c (ASSERT): Likewise.
59576         * tests/test-fseeko.c (ASSERT): Likewise.
59577         * tests/test-fstrcmp.c (ASSERT): Likewise.
59578         * tests/test-ftell.c (ASSERT): Likewise.
59579         * tests/test-ftello.c (ASSERT): Likewise.
59580         * tests/test-func.c (ASSERT): Likewise.
59581         * tests/test-fwritable.c (ASSERT): Likewise.
59582         * tests/test-fwriting.c (ASSERT): Likewise.
59583         * tests/test-getdelim.c (ASSERT): Likewise.
59584         * tests/test-getline.c (ASSERT): Likewise.
59585         * tests/test-i-ring.c (ASSERT): Likewise.
59586         * tests/test-iconv-utf.c (ASSERT): Likewise.
59587         * tests/test-iconv.c (ASSERT): Likewise.
59588         * tests/test-isfinite.c (ASSERT): Likewise.
59589         * tests/test-isnand.c (ASSERT): Likewise.
59590         * tests/test-isnanf.c (ASSERT): Likewise.
59591         * tests/test-isnanl.h (ASSERT): Likewise.
59592         * tests/test-ldexpl.c (ASSERT): Likewise.
59593         * tests/test-linked_list.c (ASSERT): Likewise.
59594         * tests/test-linkedhash_list.c (ASSERT): Likewise.
59595         * tests/test-localename.c (ASSERT): Likewise.
59596         * tests/test-lseek.c (ASSERT): Likewise.
59597         * tests/test-mbscasecmp.c (ASSERT): Likewise.
59598         * tests/test-mbscasestr1.c (ASSERT): Likewise.
59599         * tests/test-mbscasestr2.c (ASSERT): Likewise.
59600         * tests/test-mbscasestr3.c (ASSERT): Likewise.
59601         * tests/test-mbscasestr4.c (ASSERT): Likewise.
59602         * tests/test-mbschr.c (ASSERT): Likewise.
59603         * tests/test-mbscspn.c (ASSERT): Likewise.
59604         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
59605         * tests/test-mbspbrk.c (ASSERT): Likewise.
59606         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
59607         * tests/test-mbsrchr.c (ASSERT): Likewise.
59608         * tests/test-mbsspn.c (ASSERT): Likewise.
59609         * tests/test-mbsstr1.c (ASSERT): Likewise.
59610         * tests/test-mbsstr2.c (ASSERT): Likewise.
59611         * tests/test-mbsstr3.c (ASSERT): Likewise.
59612         * tests/test-memchr2.c (ASSERT): Likewise.
59613         * tests/test-memmem.c (ASSERT): Likewise.
59614         * tests/test-open.c (ASSERT): Likewise.
59615         * tests/test-printf-frexp.c (ASSERT): Likewise.
59616         * tests/test-printf-frexpl.c (ASSERT): Likewise.
59617         * tests/test-printf-posix.c (ASSERT): Likewise.
59618         * tests/test-quotearg.c (ASSERT): Likewise.
59619         * tests/test-rbtree_list.c (ASSERT): Likewise.
59620         * tests/test-rbtree_oset.c (ASSERT): Likewise.
59621         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
59622         * tests/test-round1.c (ASSERT): Likewise.
59623         * tests/test-roundf1.c (ASSERT): Likewise.
59624         * tests/test-roundl.c (ASSERT): Likewise.
59625         * tests/test-signbit.c (ASSERT): Likewise.
59626         * tests/test-sleep.c (ASSERT): Likewise.
59627         * tests/test-snprintf-posix.c (ASSERT): Likewise.
59628         * tests/test-snprintf.c (ASSERT): Likewise.
59629         * tests/test-sprintf-posix.c (ASSERT): Likewise.
59630         * tests/test-stat-time.c (ASSERT): Likewise.
59631         * tests/test-strcasestr.c (ASSERT): Likewise.
59632         * tests/test-strerror.c (ASSERT): Likewise.
59633         * tests/test-striconv.c (ASSERT): Likewise.
59634         * tests/test-striconveh.c (ASSERT): Likewise.
59635         * tests/test-striconveha.c (ASSERT): Likewise.
59636         * tests/test-strsignal.c (ASSERT): Likewise.
59637         * tests/test-strstr.c (ASSERT): Likewise.
59638         * tests/test-strtod.c (ASSERT): Likewise.
59639         * tests/test-trunc1.c (ASSERT): Likewise.
59640         * tests/test-trunc2.c (ASSERT): Likewise.
59641         * tests/test-truncf1.c (ASSERT): Likewise.
59642         * tests/test-truncf2.c (ASSERT): Likewise.
59643         * tests/test-truncl.c (ASSERT): Likewise.
59644         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
59645         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
59646         * tests/test-vasnprintf.c (ASSERT): Likewise.
59647         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
59648         * tests/test-vasprintf.c (ASSERT): Likewise.
59649         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
59650         * tests/test-vprintf-posix.c (ASSERT): Likewise.
59651         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
59652         * tests/test-vsnprintf.c (ASSERT): Likewise.
59653         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
59654         * tests/test-wcwidth.c (ASSERT): Likewise.
59655         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
59656         * tests/test-xprintf-posix.c (ASSERT): Likewise.
59657         * tests/test-xvasprintf.c (ASSERT): Likewise.
59658         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
59659         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
59660         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
59661         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
59662         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
59663         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
59664         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
59665         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
59666         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
59667         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
59668         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
59669         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
59670         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
59671         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
59672         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
59673         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
59674         * tests/unictype/test-block_list.c (ASSERT): Likewise.
59675         * tests/unictype/test-block_of.c (ASSERT): Likewise.
59676         * tests/unictype/test-block_test.c (ASSERT): Likewise.
59677         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
59678         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
59679         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
59680         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
59681         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
59682         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
59683         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
59684         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
59685         * tests/unictype/test-combining.c (ASSERT): Likewise.
59686         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
59687         * tests/unictype/test-digit.c (ASSERT): Likewise.
59688         * tests/unictype/test-mirror.c (ASSERT): Likewise.
59689         * tests/unictype/test-numeric.c (ASSERT): Likewise.
59690         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
59691         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
59692         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
59693         * tests/unictype/test-scripts.c (ASSERT): Likewise.
59694         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
59695         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
59696         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
59697         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
59698         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
59699         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
59700         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
59701         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
59702         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
59703         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
59704         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
59705         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
59706         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
59707         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
59708         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
59709         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
59710         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
59711         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
59712         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
59713         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
59714         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
59715         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
59716         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
59717         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
59718         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
59719         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
59720         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
59721         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
59722         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
59723         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
59724         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
59725         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
59726         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
59727         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
59728         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
59729         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
59730         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
59731         Reported by Eric Blake.
59732
59733 2008-04-11  Bruno Haible  <bruno@clisp.org>
59734
59735         * lib/wchar.in.h: Tweak comment.
59736
59737 2008-04-11  Bruno Haible  <bruno@clisp.org>
59738
59739         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
59740         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
59741         gl_COMMON.
59742         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
59743
59744 2008-04-11  Bruno Haible  <bruno@clisp.org>
59745
59746         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
59747
59748 2008-04-11  Simon Josefsson  <simon@josefsson.org>
59749
59750         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
59751         of attempting to use non-existing /dev/*random.  Based on patch
59752         from Adam Strzelecki <ono@java.pl> in
59753         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
59754
59755 2008-04-08  Bruno Haible  <bruno@clisp.org>
59756
59757         Add tentative support for emx+gcc.
59758         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
59759         * lib/fpurge.c (fpurge): Likewise.
59760         * lib/freadable.c (freadable): Likewise.
59761         * lib/freadahead.c (freadahead): Likewise.
59762         * lib/freading.c (freading): Likewise.
59763         * lib/freadptr.c (freadptr): Likewise.
59764         * lib/freadseek.c (freadptrinc): Likewise.
59765         * lib/fseeko.c (rpl_fseeko): Likewise.
59766         * lib/fseterr.c (fseterr): Likewise.
59767         * lib/fwritable.c (fwritable): Likewise.
59768         * lib/fwriting.c (fwriting): Likewise.
59769         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
59770
59771 2008-04-09  Eric Blake  <ebb9@byu.net>
59772
59773         Avoid some autoconf warnings.
59774         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
59775         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
59776         * m4/afs.m4 (gl_AFS): Likewise.
59777         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
59778         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
59779         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59780         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
59781         (gl_INTEGER_TYPE_SUFFIX): Likewise.
59782         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
59783         (AC_CHECK_DECLS_ONCE): Likewise.
59784         Rename file...
59785         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
59786         gnulib-tool requires autoconf 2.59 or better.
59787         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
59788
59789 2008-04-08  Eric Blake  <ebb9@byu.net>
59790
59791         Use 'git describe --match' if present (added in git 1.5.5).
59792         * build-aux/git-version-gen: Limit result to tags that match 'v*'
59793         if possible.
59794
59795 2008-04-08  Bruno Haible  <bruno@clisp.org>
59796
59797         Add tentative support for OpenServer.
59798         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
59799         _ptr, _cnt.
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         Reported by Roger Cornelius <rac@tenzing.org> and
59811         Brian K. White <brian@aljex.com>.
59812
59813 2008-04-06  Jim Meyering  <meyering@redhat.com>
59814
59815         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
59816
59817 2008-04-06  Bruno Haible  <bruno@clisp.org>
59818
59819         Avoid possible error with non-ASCII bytes in UTF-8 locales.
59820         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
59821         * tests/test-printf-posix.sh: Likewise.
59822         * tests/test-vfprintf-posix.sh: Likewise.
59823         * tests/test-vprintf-posix.sh: Likewise.
59824         * tests/test-xprintf-posix.sh: Likewise.
59825
59826 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59827
59828         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
59829         hide error from 'ls', needed on OS/2.
59830         Report by Elbert Pol <elbert.pol@gmail.com>.
59831
59832 2008-04-04  Eric Blake  <ebb9@byu.net>
59833
59834         Make test-fseeko.c failures meaningful.
59835         * tests/test-fseeko.c: Print line number on failure.
59836         * tests/test-fseek.c: Likewise.
59837         Reported by Nelson H. F. Beebe.
59838
59839         Improve strtod bug detection check.
59840         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
59841         required for Solaris 10.
59842         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
59843
59844 2008-04-04  Bruno Haible  <bruno@clisp.org>
59845
59846         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
59847         by m4/setenv.m4.
59848
59849 2008-04-03  Eric Blake  <ebb9@byu.net>
59850
59851         Ensure sane .version contents.
59852         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
59853         version string.
59854         * build-aux/git-version-gen: Improve documentation.
59855
59856         Make GNU make output nicer.
59857         * top/GNUmakefile [!_have-Makefile]: Add dependency on
59858         MAKECMDGOALS to enforce message for all command line targets.  Set
59859         srcdir for use in maint.mk.
59860
59861         Another maintainer tweak.
59862         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
59863         a target that regenerates version.
59864
59865 2008-04-03  Jim Meyering  <meyering@redhat.com>
59866
59867         vc-list-files: don't cause coreutils "make po-check" failure
59868         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
59869
59870 2008-04-03  Eric Blake  <ebb9@byu.net>
59871
59872         Allow VPATH usage of vc-list-files.
59873         * build-aux/vc-list-files (scriptversion): Add timestamp.
59874         (options): Add --help, --version, -C.
59875         (CVS): Support installed cvsu.
59876
59877 2008-04-02  Bruno Haible  <bruno@clisp.org>
59878
59879         Avoid some "statement with no effect" warnings from gcc.
59880         * tests/test-wctype.c (main): Explicitly ignore unused values.
59881         Reported by Jim Meyering.
59882
59883 2008-04-02  Jim Meyering  <meyering@redhat.com>
59884
59885         Avoid some warnings from "gcc -Wshadow".
59886         * tests/test-frexp.c (exp): Define to a different identifier.
59887         * tests/test-frexpl.c (exp): Likewise.
59888
59889 2008-04-03  Jim Meyering  <meyering@redhat.com>
59890
59891         bootstrap: remove dangling *.[ch] symlinks from lib
59892         * build-aux/bootstrap [dangling symlink removal]: Move find's
59893         -depth option to precede all others, to avoid a warning.
59894         Remove *.[ch] files too, and from "$source_base" (usually lib/).
59895
59896 2008-04-02  Bruno Haible  <bruno@clisp.org>
59897
59898         Avoid some warnings from "gcc -Wshadow".
59899         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
59900         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
59901         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
59902         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
59903         Reported by Jim Meyering.
59904
59905 2008-04-01  Bruno Haible  <bruno@clisp.org>
59906
59907         Fix test to work on IRIX 6.5 with cc.
59908         * tests/test-math.c (numeric_equal): New function.
59909         (main): Use it.
59910
59911 2008-04-01  Bruno Haible  <bruno@clisp.org>
59912
59913         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
59914
59915 2008-04-01  Bruno Haible  <bruno@clisp.org>
59916
59917         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
59918         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59919         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
59920         (Depends-on): Remove math.
59921
59922         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
59923         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59924         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
59925         (Depends-on): Remove math.
59926
59927         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
59928         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59929         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
59930         (Depends-on): Remove math.
59931         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
59932         (Depends-on): Remove math.
59933
59934         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
59935         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59936         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
59937         (Depends-on): Remove math.
59938         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
59939         (Depends-on): Remove math.
59940
59941         * tests/test-round1.c: Include nan.h.
59942         (main): Use NaNd instead of NAN.
59943         * modules/round-tests (Files): Add tests/nan.h.
59944
59945         * tests/test-trunc1.c: Include nan.h.
59946         (main): Use NaNd instead of NAN.
59947         * modules/trunc-tests (Files): Add tests/nan.h.
59948
59949         * tests/test-roundf1.c: Include nan.h.
59950         (main): Use NaNf instead of NAN.
59951         * modules/roundf-tests (Files): Add tests/nan.h.
59952
59953         * tests/test-truncf1.c: Include nan.h.
59954         (main): Use NaNf instead of NAN.
59955         * modules/truncf-tests (Files): Add tests/nan.h.
59956
59957         * tests/test-ceilf1.c: Include nan.h.
59958         (main): Use NaNf instead of NAN.
59959         * modules/ceilf-tests (Files): Add tests/nan.h.
59960
59961         * tests/test-floorf1.c: Include nan.h.
59962         (main): Use NaNf instead of NAN.
59963         * modules/floorf-tests (Files): Add tests/nan.h.
59964
59965         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
59966         (main): Use NaNf instead of NAN.
59967         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
59968
59969         * tests/test-isnand.c: Include nan.h instead of <math.h>.
59970         (main): Use NaNd instead of NAN.
59971         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
59972
59973         * tests/test-frexp.c: Include nan.h.
59974         (main): Use NaNd instead of NAN.
59975         * modules/frexp-tests (Files): Add tests/nan.h.
59976
59977         * lib/isnan.c: Don't include <math.h>.
59978         (FUNC): Don't use NAN macro.
59979         * modules/isnand-nolibm (Depends-on): Remove math.
59980         * modules/isnanf-nolibm (Depends-on): Remove math.
59981         * modules/isnanl (Depends-on): Remove math.
59982         * modules/isnanl-nolibm (Depends-on): Remove math.
59983
59984         * tests/nan.h: New file.
59985
59986 2008-04-01  Eric Blake  <ebb9@byu.net>
59987
59988         Fix typos.
59989         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
59990         values to be the right type.
59991
59992         For now, cater to gnulib strtod inaccuracies.
59993         * tests/test-strtod.c (main): Allow 1-ulp error on expected
59994         fractional results.  While not as nice from a QoI perspective, it
59995         is a quicker patch than correctly implementing decimal to binary
59996         rounding.
59997
59998 2008-03-31  Eric Blake  <ebb9@byu.net>
59999
60000         Guarantee a definition of NAN.
60001         * lib/math.in.h (NAN): Define if missing.
60002         * tests/test-math.c (main): Test it.
60003         * doc/posix-headers/math.texi (math.h): Document this.
60004         * lib/isnan.c (rpl_isnand): Use it.
60005         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
60006         * tests/test-floorf1.c (NaN): Likewise.
60007         * tests/test-frexp.c (NaN): Likewise.
60008         * tests/test-isnand.c (NaN): Likewise.
60009         * tests/test-isnanf.c (NaN): Likewise.
60010         * tests/test-round1.c (NaN): Likewise.
60011         * tests/test-roundf1.c (NaN): Likewise.
60012         * tests/test-snprintf-posix.h (NaN): Likewise.
60013         * tests/test-sprintf-posix.h (NaN): Likewise.
60014         * tests/test-trunc1.c (NaN): Likewise.
60015         * tests/test-truncf1.c (NaN): Likewise.
60016         * tests/test-vasnprintf-posix.c (NaN): Likewise.
60017         * tests/test-vasprintf-posix.c (NaN): Likewise.
60018         * modules/isnand-nolibm (Depends-on): Add math.
60019         * modules/isnanf-nolibm (Depends-on): Likewise.
60020         * modules/isnanl (Depends-on): Likewise.
60021         * modules/isnanl-nolibm (Depends-on): Likewise.
60022         * modules/snprintf-posix-tests (Depends-on): Likewise.
60023         * modules/sprintf-posix-tests (Depends-on): Likewise.
60024         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
60025         * modules/vsprintf-posix-tests (Depends-on): Likewise.
60026         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
60027         * modules/vasprintf-posix-tests (Depends-on): Likewise.
60028
60029 2008-03-31  Bruno Haible  <bruno@clisp.org>
60030
60031         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
60032         * doc/posix-functions/strtod.texi: Likewise.
60033
60034 2008-03-31  Bruno Haible  <bruno@clisp.org>
60035
60036         * tests/test-strtod.c (main): Don't use C99 syntax.
60037
60038 2008-03-31  Bruno Haible  <bruno@clisp.org>
60039
60040         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
60041         Reported by Eric Blake.
60042
60043 2008-03-31  Jim Meyering  <meyering@redhat.com>
60044
60045         Don't compare actual signbit return values.
60046         * tests/test-strtod.c (main): Rather, compare only their
60047         zero/non-zero nature.
60048
60049 2008-03-31  Eric Blake  <ebb9@byu.net>
60050
60051         More strtod documentation.
60052         * doc/posix-functions/strtod.texi (strtod): Interpret more test
60053         failures as distinct bugs.
60054
60055 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60056
60057         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
60058         Problem reported by Erik Benada in
60059         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
60060
60061 2008-03-30  Bruno Haible  <bruno@clisp.org>
60062
60063         * tests/test-strtod.c: Add comments about which assertion fails on which
60064         platform.
60065         * doc/posix-functions/strtod.texi: Add info about many more platforms.
60066
60067 2008-03-30  Eric Blake  <ebb9@byu.net>
60068
60069         Test signbit behavior on zeros.
60070         * tests/test-signbit.c (test_signbitf): Add tests for zero.
60071         (test_signbitd, test_signbitl): Likewise.
60072
60073         More strtod touchups.
60074         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
60075         sign of negative underflow, for now.  Use .5, not .1.
60076         * doc/posix-functions/strtod.texi (strtod): Mention these
60077         limitations.
60078         Reported by Jim Meyering.
60079
60080 2008-03-30  Bruno Haible  <bruno@clisp.org>
60081
60082         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
60083         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
60084
60085 2008-03-30  Bruno Haible  <bruno@clisp.org>
60086
60087         Avoid failure when attempting to return empty iconv results on some
60088         platforms.
60089         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
60090         allocation, don't report ENOMEM when the resulting string is empty.
60091
60092 2008-03-30  Bruno Haible  <bruno@clisp.org>
60093
60094         Fix buffer overrun.
60095         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
60096         Don't consider the width for tmp_length. Check count against tmp_length
60097         before doing the padding. Ensure enough allocation during padding.
60098
60099 2008-03-30  Eric Blake  <ebb9@byu.net>
60100
60101         strtod touchups.
60102         * lib/strtod.c (strtod): Avoid compiler warnings.
60103         Reported by Jim Meyering.
60104
60105 2008-03-30  Bruno Haible  <bruno@clisp.org>
60106
60107         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
60108         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
60109         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
60110         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
60111         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
60112         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
60113         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
60114         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
60115
60116         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
60117         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
60118         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
60119         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
60120         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
60121         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
60122         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
60123         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
60124
60125         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
60126         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
60127         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
60128         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
60129         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
60130         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
60131         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
60132         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
60133
60134         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
60135         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
60136
60137         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
60138         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
60139
60140         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
60141         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
60142
60143         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
60144         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
60145         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
60146
60147         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
60148         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
60149         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
60150
60151         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
60152         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
60153         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
60154
60155         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
60156         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
60157         * modules/vasprintf (Depends-on): Add EOVERFLOW.
60158
60159         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
60160         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
60161         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
60162         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
60163         (Depends-on): Add EOVERFLOW.
60164         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
60165         (Depends-on): Add EOVERFLOW.
60166         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60167         (Depends-on): Add EOVERFLOW.
60168         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60169         (Depends-on): Add EOVERFLOW.
60170         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60171         (Depends-on): Add EOVERFLOW.
60172         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60173         (Depends-on): Add EOVERFLOW.
60174         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60175         (Depends-on): Add EOVERFLOW.
60176         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60177         (Depends-on): Add EOVERFLOW.
60178
60179         * lib/sprintf.c (EOVERFLOW): Remove fallback.
60180         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
60181         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
60182
60183         * lib/snprintf.c (EOVERFLOW): Remove fallback.
60184         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
60185         * modules/snprintf (Depends-on): Add EOVERFLOW.
60186
60187         * lib/poll.c (EOVERFLOW): Remove fallback.
60188         * modules/poll (Depends-on): Add EOVERFLOW.
60189
60190         * lib/getugroups.c (EOVERFLOW): Remove fallback.
60191         * modules/getugroups (Depends-on): Add EOVERFLOW.
60192
60193         * lib/getdelim.c (EOVERFLOW): Remove fallback.
60194         * modules/getdelim (Depends-on): Add EOVERFLOW.
60195
60196         * lib/ftell.c (EOVERFLOW): Remove fallback.
60197         * modules/ftell (Depends-on): Add EOVERFLOW.
60198
60199         * lib/fprintf.c (EOVERFLOW): Remove fallback.
60200         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
60201         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
60202
60203         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
60204
60205         * modules/EOVERFLOW-tests: New file.
60206         * tests/test-EOVERFLOW.c: New file.
60207
60208         * modules/EOVERFLOW: New file.
60209         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
60210
60211 2008-03-30  Bruno Haible  <bruno@clisp.org>
60212
60213         Fix bug introduced on 2007-06-10.
60214         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
60215         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
60216
60217 2008-03-30  Bruno Haible  <bruno@clisp.org>
60218
60219         Improve freadseek's efficiency after ungetc.
60220         * lib/freadseek.c: Include freadahead.h.
60221         (freadptrinc): New function, extracted from freadseek.
60222         (freadseek): Use it in a loop. Use freadahead to determine the number
60223         of loop iterations.
60224         * modules/freadseek (Depends-on): Add freadahead.
60225         (configure.ac): Require AC_C_INLINE.
60226
60227 2008-03-30  Bruno Haible  <bruno@clisp.org>
60228
60229         * lib/freadseek.c (freadseek): Don't ignore the return value of
60230         freadptr.
60231
60232 2008-03-29  Eric Blake  <ebb9@byu.net>
60233
60234         Add hex float support.
60235         * modules/strtod (Depends-on): Add c-ctype.
60236         (Link): Mention POW_LIB.
60237         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
60238         whitespace between 'e' and exponent.
60239         * tests/test-strtod.c (main): Enable hex float tests.
60240         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
60241         now provides.
60242
60243         Document various strtod bugs, with some fixes.
60244         * doc/posix-functions/strtod.texi (strtod): Document bugs with
60245         "-0x", "inf", "nan", and hex constants.
60246         * doc/posix-functions/atof.texi (atof): Likewise.
60247         * modules/stdlib (Makefile.am): Support strtod.
60248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
60249         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
60250         detect additional strtod bugs.
60251         * lib/stdlib.in.h (rpl_strtod): Add declarations.
60252         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
60253         bool where appropriate.  Parse 'inf' and 'nan'.
60254         * tests/test-strtod.c: New file.
60255         * modules/strtod (Depends-on): Add stdbool, stdlib.
60256         (configure.ac): Turn on module indicator.
60257         * modules/strtod-tests: New module.
60258
60259 2008-03-29  Eric Blake  <ebb9@byu.net>
60260
60261         Fix ftell on mingw.
60262         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
60263         * modules/ftell-tests (Depends-on): Add binary-io.
60264         * modules/ftello-tests (Depends-on): Likewise.
60265         * tests/test-ftell.c (main): Enhance test to cover behavior after
60266         ungetc.  Enforce binary mode.
60267         * tests/test-ftello.c (main): Likewise.
60268
60269         Pass test-freadseek on cygwin.
60270         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
60271         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
60272         ungetc buffer.
60273
60274         * tests/test-fflush2.c (main): Fix typo.
60275
60276 2008-03-29  Bruno Haible  <bruno@clisp.org>
60277
60278         * tests/test-fflush2.c (main): Temporarily disable the contents of
60279         this test.
60280         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
60281         Reported by Eric Blake.
60282
60283 2008-03-28  Simon Josefsson  <simon@josefsson.org>
60284
60285         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
60286         (GC_SHA224_DIGEST_SIZE): Add.
60287
60288         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
60289         (gc_hash_digest_length): Likewise.
60290         (gc_hash_buffer): Likewise.
60291
60292 2008-03-25  Bruno Haible  <bruno@clisp.org>
60293
60294         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
60295         detail which gettext release to use.
60296         Reported by Simon Josefsson.
60297
60298 2008-03-26  Jim Meyering  <meyering@redhat.com>
60299
60300         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
60301         * modules/gnumakefile (clean-GNUmakefile): Also, use
60302         test ... && ... || : syntax rather than if-then ... fi.
60303
60304         gnumakefile: Don't double-quote-expand $(VPATH) value.
60305         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
60306
60307 2008-03-24  Eric Blake  <ebb9@byu.net>
60308
60309         Alter GNUmakefile to install into top directory.
60310         * modules/maintainer-makefile: Split, and add dependency...
60311         * modules/gnumakefile: to this new module.
60312         * build-aux/GNUmakefile: Move...
60313         * top/GNUmakefile: ...here.
60314         * build-aux/maint.mk: Move...
60315         * top/maint.mk: ...here.
60316         * MODULES.html.sh (Support for maintaining...): Document new
60317         module.
60318
60319 2008-03-23  Bruno Haible  <bruno@clisp.org>
60320
60321         * gnulib-tool: New options --vc-files, --no-vc-files.
60322         (func_usage): Document them.
60323         (vc_files): New variable.
60324         (func_import): Consider vc_files.
60325         (func_create_testdir): Set vc_files to empty.
60326         Suggested by Jim Meyering and Karl Berry.
60327
60328 2008-03-23  Bruno Haible  <bruno@clisp.org>
60329
60330         Fix regex compilation error on HP-UX 11.
60331         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
60332         * modules/regex (Files): Add m4/mbstate_t.m4.
60333         Reported by Ton Voon <ton.voon@altinity.com>.
60334
60335 2008-03-23  Bruno Haible  <bruno@clisp.org>
60336
60337         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
60338
60339 2008-03-23  Eric Blake  <ebb9@byu.net>
60340             Bruno Haible  <bruno@clisp.org>
60341
60342         Install files from top/ in the destination directory.
60343         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
60344         augmentation also for the files from top/.
60345         (func_import, func_create_testdir): Rewrite file names:
60346         top/filename -> filename.
60347
60348 2008-03-23  Bruno Haible  <bruno@clisp.org>
60349
60350         Tweak "gnulib --version" output.
60351         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
60352
60353 2008-03-23  Bruno Haible  <bruno@clisp.org>
60354
60355         Tweak "gnulib --version" output.
60356         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
60357         rather than contents of ChangeLog, when possible.
60358
60359 2008-03-21  Eric Blake  <ebb9@byu.net>
60360
60361         More --version tweaks.
60362         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
60363         date of last ChangeLog entry.
60364
60365 2008-03-21  Jim Meyering  <meyering@redhat.com>
60366
60367         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
60368
60369 2008-03-20  Eric Blake  <ebb9@byu.net>
60370
60371         VPATH fix.
60372         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
60373
60374 2008-03-20  Simon Josefsson  <simon@josefsson.org>
60375
60376         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
60377         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
60378
60379 2008-03-20  Eric Blake  <ebb9@byu.net>
60380
60381         Sync GNUmakefile with coreutils.
60382         * build-aux/GNUmakefile (have-Makefile): Rename...
60383         (_have-Makefile): ...to this, for namespace consideration.
60384         (GNUmakefile.cfg): Include, if present.
60385         (_autoreconf): Define a default.
60386         (_is-dist-target): New rule for rebuilds to pick up intra-release
60387         version.
60388         (maint-cfg.mk): Rename...
60389         (cfg.mk): ...to this.
60390
60391 2008-03-18  Jim Meyering  <meyering@redhat.com>
60392
60393         New script and module: mktempd
60394         * MODULES.html.sh (maint+release support): Add mktempd.
60395         * build-aux/mktempd: New file.
60396         * modules/mktempd: New file.
60397
60398 2008-03-15  Jim Meyering  <meyering@redhat.com>
60399
60400         Undo last change.
60401         * lib/sha1.c, lib/md5.c: 63 != ~63.
60402         Reported by Andreas Schwab.
60403
60404         sha1.c, md5.c: Hoist a redundant expression.
60405         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
60406         "ctx->buflen" only once, before calling *_process_block.
60407         * lib/md5.c (md5_process_bytes): Likewise.
60408
60409 2008-03-14  Eric Blake  <ebb9@byu.net>
60410
60411         Bump copyright year in files generated by gnulib-tool.
60412         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
60413         gnulib-tool, rather than hard-coding it.
60414
60415         Fix 'gnulib-tool --version' output to work with git.
60416         * gnulib-tool (func_gnulib_dir): New function, extracted from...
60417         (startup): ...here.
60418         (func_version): Use it to invoke git-version-gen, rather than
60419         relying on CVS keyword expansion.  Modernize wording.
60420         (cvsdatestamp, last_checkin_date, version): Kill unused
60421         variables.
60422
60423 2008-03-12  Jim Meyering  <meyering@redhat.com>
60424
60425         Recognize optional cast of the argument to free.
60426         * build-aux/useless-if-before-free: Update regexps.
60427
60428         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
60429
60430 2008-03-11  Bruno Haible  <bruno@clisp.org>
60431
60432         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
60433         by a single package.
60434         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
60435         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
60436         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
60437         Reported by Sam Steingold <sds@gnu.org>.
60438
60439 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60440
60441         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
60442         repositories.
60443
60444 2008-03-11  Bruno Haible  <bruno@clisp.org>
60445
60446         Avoid conflicts between local macro definitions.
60447         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60448         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
60449
60450 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
60451             Bruno Haible  <bruno@clisp.org>
60452
60453         Make va_copy work with some version of xlc on AIX 5.1.
60454         * lib/stdarg.in.h: New file.
60455         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
60456         On AIX, use a <stdarg.h> file substitute.
60457         * modules/stdarg (Files): Add lib/stdarg.in.h.
60458         (Depends-on): Add include_next.
60459         (Makefile.am): Build a stdarg.h substitute if requested.
60460         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
60461
60462 2008-03-10  Bruno Haible  <bruno@clisp.org>
60463
60464         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
60465         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60466         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60467
60468 2008-03-10  Bruno Haible  <bruno@clisp.org>
60469
60470         * modules/stdlib (Depends-on): Add include_next, remove
60471         absolute-header.
60472
60473 2008-03-09  Bruno Haible  <bruno@clisp.org>
60474
60475         * lib/freadahead.h (freadahead): Document more precisely.
60476         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
60477         the sum of both buffer sizes.
60478         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
60479         * NEWS: Document the change.
60480
60481 2008-03-09  Bruno Haible  <bruno@clisp.org>
60482
60483         Extend freadptr to return also the buffer size.
60484         * lib/freadptr.h (freadptr): Add sizep argument.
60485         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
60486         (freadptr): Add sizep argument. Determine buffer size like freadahead
60487         does.
60488         * tests/test-freadptr.c: Don't include freadahead.h.
60489         (main): Adapt for new calling convention of freadptr.
60490         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
60491         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
60492         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
60493         tests/test-freadptr2.sh.
60494         (Depends): Remove freadahead.
60495         (TESTS): Add test-freadptr2.sh.
60496         (check_PROGRAMS): Add test-freadptr2.
60497
60498 2008-03-09  Bruno Haible  <bruno@clisp.org>
60499
60500         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
60501         Report and solution by Simon Josefsson.
60502
60503 2008-03-06  Bruno Haible  <bruno@clisp.org>
60504
60505         Make fflush after ungetc work on BSD platforms.
60506         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
60507         * tests/test-fflush2.c: New file.
60508         * tests/test-fflush2.sh: New file.
60509         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
60510         tests/test-fflush2.c.
60511         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
60512         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
60513
60514 2008-03-06  Eric Blake  <ebb9@byu.net>
60515
60516         Likewise for ftello.
60517         * modules/ftello (Dependencies): Add extensions.
60518         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
60519
60520 2008-03-06  Bruno Haible  <bruno@clisp.org>
60521
60522         * modules/fseeko (Dependencies): Add extensions.
60523         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
60524         Needed on glibc systems.
60525
60526 2008-03-06  Bruno Haible  <bruno@clisp.org>
60527
60528         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
60529         email address.
60530         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60531
60532 2008-03-06  Bruno Haible  <bruno@clisp.org>
60533
60534         * users.txt: Add libgnupdf.
60535
60536 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60537
60538         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
60539         (Header File Substitutes, Function Substitutes,
60540         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
60541         (Build robot for gnulib): Fix typo.
60542
60543 2008-03-06  Bruno Haible  <bruno@clisp.org>
60544
60545         * doc/gnulib-tool.texi (VCS Issues): Small updates.
60546         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60547
60548 2008-03-06  Bruno Haible  <bruno@clisp.org>
60549
60550         * doc/func.texi: New file, extracted from doc/gnulib.texi.
60551         * doc/gnulib.texi: Include it.
60552
60553 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60554
60555         * modules/func (License): Change license to unlimited; there was
60556         no LGPL parts in the module anyway.
60557
60558 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60559
60560         * modules/__func__: Renamed to modules/func.
60561         * modules/__func__-tests: Renamed to modules/func-tests.
60562         * tests/test-__func__.c: Renamed to tests/test-func.c.
60563         * m4/__func__.m4: Renamed to m4/func.m4.
60564         * doc/gnulib.texi (__func__): Section renamed to func.
60565         Suggested by Eric Blake <ebb9@byu.net>.
60566
60567 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60568
60569         * doc/gnulib.texi (__func__): Use C99 terminology when talking
60570         about __func__.  Make example self-contained.  Suggested by Eric
60571         Blake <ebb9@byu.net>.
60572
60573         * tests/test-__func__.c (main): Avoid extraneous () around __func.
60574         Suggested by Eric Blake <ebb9@byu.net>.
60575
60576 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60577
60578         * modules/__func__: New file.
60579         * modules/__func__-tests: New file.
60580         * tests/test-__func__.c: New file.
60581         * m4/__func__.m4: New file.
60582         * doc/gnulib.texi (__func__): Document __func__ module.
60583
60584 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60585
60586         * modules/byteswap (License): Re-license as LGPLv2+.
60587
60588 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60589
60590         * doc/Makefile: Add pdf target.
60591
60592 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60593
60594         * modules/inline (License): Use 'unlimited', since there are only
60595         *.m4 files in this module.
60596
60597 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60598             Bruno Haible  <bruno@clisp.org>
60599
60600         Add support for HP C 7.1 on OpenVMS 8.3.
60601         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
60602
60603 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60604
60605         Update VMS specifics.
60606         * lib/getopt.c [VMS]: Remove include of unixlib.h.
60607
60608 2008-03-02  Jim Meyering  <meyering@redhat.com>
60609
60610         Remove the last dependency on the "free" module.
60611         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
60612         Reported by Bob Proulx.
60613
60614         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
60615
60616         Remove useless "if" tests before free.  Deprecate "free" module.
60617         * doc/posix-functions/free.texi: Mention that this
60618         module is no longer useful.
60619         * modules/free (Notice): Say this module is obsolete.
60620         * modules/readutmp (Depends-on): Remove free.
60621         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
60622         * lib/putenv.c (putenv): Likewise.
60623         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
60624         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
60625         * tests/test-c-strcasestr.c (main): Likewise.
60626         * tests/test-c-strstr.c (main): Likewise.
60627         * tests/test-mbscasestr1.c (main): Likewise.
60628         * tests/test-mbscasestr2.c (main): Likewise.
60629         * tests/test-mbsstr1.c (main): Likewise.
60630         * tests/test-mbsstr2.c (main): Likewise.
60631         * tests/test-memmem.c (main): Likewise.
60632         * tests/test-strcasestr.c (main): Likewise.
60633         * tests/test-striconv.c (main): Likewise.
60634         * tests/test-striconveh.c (main): Likewise.
60635         * tests/test-striconveha.c (main): Likewise.
60636         * tests/test-strstr.c (main): Likewise.
60637
60638         * build-aux/git-version-gen: Adjust a comment and the Usage string.
60639
60640         bootstrap: sync from coreutils again
60641         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
60642
60643 2008-03-01  Jim Meyering  <meyering@redhat.com>
60644
60645         bootstrap: sync from coreutils
60646         * build-aux/bootstrap (update_po_files): Copy a .po file into place
60647         also when the target doesn't exist.
60648
60649 2008-03-01  Eric Blake  <ebb9@byu.net>
60650
60651         Fix bugs in last patch.
60652         * lib/memchr2.c (memchr2): Fix typo.
60653         * tests/test-memchr2.c: Test previous bug, and don't use GNU
60654         extension.
60655         Reported by Bruce Korb.
60656
60657         New module 'memchr2'.
60658         * modules/memchr2: New file.
60659         * modules/memchr2-tests: Likewise.
60660         * lib/memchr2.h: Likewise.
60661         * lib/memchr2.c: Likewise, based on memchr.c.
60662         * tests/test-memchr2.c: New test.
60663         * MODULES.html.sh (String handling): Add memchr2.
60664
60665 2008-02-29  Bruno Haible  <bruno@clisp.org>
60666
60667         * modules/freadseek-tests: New file.
60668         * tests/test-freadseek.sh: New file.
60669         * tests/test-freadseek.c: New file.
60670
60671         New module 'freadseek'.
60672         * modules/freadseek: New file.
60673         * lib/freadseek.h: New file.
60674         * lib/freadseek.c: New file.
60675         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
60676
60677 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60678
60679         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
60680         wydawca.
60681
60682         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
60683         program_invocation_name and program_invocation_short_name are
60684         present.
60685
60686 2008-02-28  Bruno Haible  <bruno@clisp.org>
60687
60688         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
60689         * tests/test-freadptr.sh: Also test non-seekable stdin.
60690
60691 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
60692
60693         * build-aux/bootstrap (source_base, m4_base)
60694         (doc_base, tests_base): New variables.
60695         (gnulib_tool_options): Do not hardcode base directories, use
60696         the above variables instead.
60697
60698 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
60699
60700         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
60701
60702 2008-02-28  Bruno Haible  <bruno@clisp.org>
60703
60704         * modules/freadptr-tests: New file.
60705         * tests/test-freadptr.sh: New file.
60706         * tests/test-freadptr.c: New file.
60707
60708         New module 'freadptr'.
60709         * modules/freadptr: New file.
60710         * lib/freadptr.h: New file.
60711         * lib/freadptr.c: New file.
60712         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
60713
60714 2008-02-26  Karl Berry  <karl@freefriends.org>
60715
60716         Sync from Libtool:
60717         * libltdl/argz.c (argz_add, argz_count): New functions.
60718         * libltdl/argz.in.h: Declare them.
60719         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
60720
60721 2008-02-22  Bruno Haible  <bruno@clisp.org>
60722
60723         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
60724         is a pointer type.  Needed for HP-UX 10.
60725         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
60726         * doc/posix-functions/gmtime_r.texi: Likewise.
60727         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60728
60729 2008-02-24  Bruno Haible  <bruno@clisp.org>
60730
60731         * modules/environ-tests: New file.
60732         * tests/test-environ.c: New file.
60733
60734         New module 'environ'.
60735         * modules/environ: New file.
60736         * lib/unistd.in.h (environ): New declaration.
60737         * m4/environ.m4: New file.
60738         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
60739         after use.
60740         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
60741         HAVE_DECL_ENVIRON.
60742         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
60743         HAVE_DECL_ENVIRON.
60744         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
60745         wrong claim that 'environ' is missing on some systems.
60746         * modules/execute (Depends-on): Add environ.
60747         * lib/execute.c (environ): Remove fallback declaration.
60748         * modules/pipe (Depends-on): Add environ.
60749         * lib/pipe.c (environ): Remove fallback declaration.
60750         * modules/setenv (Depends-on): Add environ.
60751         * lib/setenv.c (environ): Remove fallback declaration.
60752         * modules/unsetenv (Depends-on): Add environ.
60753         * lib/unsetenv.c (environ): Remove fallback declaration.
60754         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
60755         m4/environ.m4.
60756         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
60757         (gl_PREREQ_UNSETENV): Likewise.
60758
60759 2008-02-24  Bruno Haible  <bruno@clisp.org>
60760
60761         * doc/posix-functions/environ.texi: Document the MacOS X problem.
60762
60763 2008-02-20  Bob Proulx  <bob@proulx.com>
60764
60765         Enable use of older two part flavor 'git describe'.
60766         * build-aux/git-version-gen: If using the older two part flavor of
60767         git version then recreate the third part now present in the
60768         newer three part flavor of git describe.
60769
60770 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
60771
60772         * lib/fts.c (fts_build): Typo correction to comment.
60773
60774 2008-02-17  Bruno Haible  <bruno@clisp.org>
60775
60776         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
60777         generating no-op conflicts.
60778
60779 2008-02-17  Bruno Haible  <bruno@clisp.org>
60780
60781         Speed up by 10%.
60782         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
60783         result_entries, rather than an index-based loop.
60784
60785 2008-02-17  Bruno Haible  <bruno@clisp.org>
60786
60787         Speed up by 25%.
60788         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
60789         'hashcode_cached'.
60790         (entry_create): New function.
60791         (entry_hashcode): Use the cached hashcode if possible.
60792         (read_changelog_file, try_split_merged_entry): Use entry_create.
60793
60794 2008-02-17  Bruno Haible  <bruno@clisp.org>
60795
60796         Speed up from O(n^2) to O(n) for long ChangeLog files.
60797         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
60798         (read_changelog_file): Change implementation of entries_reversed list
60799         to rbtreehash.
60800         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
60801
60802 2008-02-17  Bruno Haible  <bruno@clisp.org>
60803
60804         New option --split-merged-entry.
60805         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
60806         (find_paragraph_end, try_split_merged_entry): New functions.
60807         (long_options): Add option --split-merged-entry.
60808         (usage): Document option --split-merged-entry.
60809         (main): Implement option --split-merged-entry.
60810         Reported by Eric Blake.
60811
60812 2008-02-17  Bruno Haible  <bruno@clisp.org>
60813
60814         * lib/git-merge-changelog.c: Include c-strstr.h.
60815         (main): Support the "git pull --rebase" situation.
60816         * modules/git-merge-changelog (Depends-on): Add c-strstr.
60817         Reported by Eric Blake.
60818
60819 2008-02-16  Eric Blake  <ebb9@byu.net>
60820
60821         Avoid doubling \ in common case of "c-maybe" quoting style.
60822         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
60823         eliding outer quotes.
60824         * lib/quotearg.h: Document this.
60825         * tests/test-quotearg.c (result_strings, inputs, results_g)
60826         (flag_results, locale_results): Test it by adding a new string to
60827         each test group.
60828         (compare_strings): Test new string.
60829
60830 2008-02-13  Eric Blake  <ebb9@byu.net>
60831
60832         Avoid trigraph quoting in default output.
60833         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
60834         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
60835         unless explicitly requested.
60836         * tests/test-quotearg.c (flag_results, main): Add additional tests.
60837
60838 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
60839
60840         Don't rely on signed integer overflowing to negative value.
60841         * lib/getugroups.c (getugroups): Include <limits.h>.
60842         Instead, compare against INT_MAX, and increment only if the test passes.
60843
60844 2008-02-13  Jim Meyering  <meyering@redhat.com>
60845         and Eric Blake  <ebb9@byu.net>
60846
60847         Avoid shadowing warning and compile errors on Linux.
60848         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
60849         forwarding macros on Linux.
60850         (dcgettext): Define a stub, for Linux.
60851         (results_g, main): Avoid warnings.
60852
60853 2008-02-12  Eric Blake  <ebb9@byu.net>
60854
60855         Silence warning in last patch.
60856         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
60857
60858         Quotearg part 4: add tests, fix c-maybe colon quoting.
60859         * lib/quotearg.h: Improve documentation.
60860         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
60861         escapes when adding outer quotes.  When quoting trigraphs, use
60862         valid C notation.  When quoting NUL, omit extra characters if next
60863         character is not digit.  Alter prototype.
60864         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
60865         callers.
60866         * modules/quotearg-tests: New module.
60867         * tests/test-quotearg.c: New test.
60868
60869 2008-02-07  Eric Blake  <ebb9@byu.net>
60870
60871         Quotearg part 3: add flag to control outer quote elision.
60872         * lib/quotearg.h (c_maybe_quoting_style): New style.
60873         (enum quoting_flags): Better documentation of flags.
60874         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
60875         c-maybe style.
60876         (quotearg_buffer_restyled): Handle new flag to elide outer
60877         quotes.
60878
60879         Quotearg part 2: add flag that can control NUL elision.
60880         * lib/quotearg.h (set_quoting_flags): New prototype.
60881         * lib/quotearg.c (struct quoting_options): Add flag field.
60882         (set_quoting_flags): New function.
60883         (quotearg_buffer_restyled): Add flags parameter.
60884         (quotearg_alloc_mem): Set the flag if length cannot be returned.
60885         (quotearg_n_options): Set the flag, since length cannot be
60886         returned.
60887         (quoting_options_from_style): Default flags correctly.
60888
60889         Quotearg part 1: more wrappers, restore quotearg_char state.
60890         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
60891         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
60892         (quotearg_colon_mem): New wrappers.
60893         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
60894         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
60895         functions.
60896         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
60897         (quotearg_colon_mem): New functions.
60898
60899 2008-02-11  Bruno Haible  <bruno@clisp.org>
60900
60901         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
60902         library in the current directory: it does not work with parallel make.
60903         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60904
60905 2008-02-11  Bruno Haible  <bruno@clisp.org>
60906
60907         * .gitattributes: New file.
60908
60909 2008-02-11  Jim Meyering  <meyering@redhat.com>
60910
60911         useless-if-before-free: Fix reversed exit values.
60912         * build-aux/useless-if-before-free: Use correct values
60913         for EXIT_MATCH and EXIT_NO_MATCH.
60914
60915         * build-aux/useless-if-before-free: Close stdout carefully.
60916
60917 2008-02-10  Bruno Haible  <bruno@clisp.org>
60918
60919         New module 'git-merge-changelog'.
60920         * modules/git-merge-changelog: New file.
60921         * lib/git-merge-changelog.c: New file.
60922
60923 2008-02-10  Jim Meyering  <meyering@redhat.com>
60924
60925         useless-if-before-free: New option: --list (-l).
60926
60927         useless-if-before-free: Don't exit immediately upon open failure.
60928         * build-aux/useless-if-before-free: Exit 2 for errors.
60929         Upon failure to open a file, don't exit immediately.
60930         Rather, just warn and continue with any remaining files.
60931
60932 2008-02-10  Bruno Haible  <bruno@clisp.org>
60933
60934         New abstract list operation 'node_set_value'.
60935         * lib/gl_list.h (gl_list_node_set_value): New function.
60936         (struct gl_list_implementation): New field node_set_value.
60937         * lib/gl_list.c (gl_list_node_set_value): New function.
60938         * lib/gl_array_list.c (gl_array_node_set_value): New function.
60939         (gl_array_list_implementation): Update.
60940         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
60941         (gl_carray_list_implementation): Update.
60942         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
60943         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60944         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60945         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
60946         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60947         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60948         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60949         Update.
60950         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60951         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
60952         (gl_sublist_list_implementation): Update.
60953
60954 2008-02-10  Bruno Haible  <bruno@clisp.org>
60955
60956         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
60957         Needed when ELEMENT is #defined to 'some_type *'.
60958
60959 2008-02-10  Jim Meyering  <meyering@redhat.com>
60960
60961         New script and module: useless-if-before-free
60962         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
60963         * build-aux/useless-if-before-free: New file.
60964         * modules/useless-if-before-free: New file.
60965
60966         * build-aux/gitlog-to-changelog: Use committer date, not author date.
60967
60968         xstrtol_error: Fix typo.
60969         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
60970         s/exit_failure/exit_status/.
60971
60972 2008-02-09  Jim Meyering  <meyering@redhat.com>
60973
60974         New script and module: gitlog-to-changelog
60975         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
60976         * modules/gitlog-to-changelog: New file.
60977         * build-aux/gitlog-to-changelog: New file.
60978
60979 2008-02-08  Jim Meyering  <meyering@redhat.com>
60980
60981         Avoid two "parameter unused" warnings.
60982         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
60983         Mark "st" as used.
60984
60985         Use "git COMMAND", not "git-COMMAND".
60986         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
60987         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
60988         * build-aux/git-version-gen: Use "git status", not "git-status".
60989
60990 2008-02-07  Bruno Haible  <bruno@clisp.org>
60991
60992         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
60993         Avoids a crash on Windows Vista.
60994         Reported by Adam Strzelecki <ono@java.pl> via
60995         Simon Josefsson <simon@josefsson.org>.
60996
60997 2008-02-06  Bruno Haible  <bruno@clisp.org>
60998
60999         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
61000         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
61001         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
61002         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
61003         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61004         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61005         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
61006         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
61007         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61008         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61009         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61010         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61011         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61012         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61013         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61014         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
61015         left-adjust flag.
61016         * tests/test-snprintf-posix.h (test_function): Likewise.
61017         * tests/test-sprintf-posix.h (test_function): Likewise.
61018         * tests/test-vasprintf-posix.c (test_function): Likewise.
61019         * doc/posix-functions/fprintf.texi: Update.
61020         * doc/posix-functions/printf.texi: Update.
61021         * doc/posix-functions/snprintf.texi: Update.
61022         * doc/posix-functions/sprintf.texi: Update.
61023         * doc/posix-functions/vfprintf.texi: Update.
61024         * doc/posix-functions/vprintf.texi: Update.
61025         * doc/posix-functions/vsnprintf.texi: Update.
61026         * doc/posix-functions/vsprintf.texi: Update.
61027         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61028
61029 2008-02-06  Bruno Haible  <bruno@clisp.org>
61030
61031         Fix bug introduced on 2008-01-26.
61032         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
61033
61034 2008-02-06  Bruno Haible  <bruno@clisp.org>
61035
61036         Fix bug introduced on 2007-06-10.
61037         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
61038         !NEED_PRINTF_FLAG_ZERO.
61039
61040 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
61041
61042         getloadavg: use libperfstat on AIX5
61043         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
61044
61045 2008-02-03  Bruno Haible  <bruno@clisp.org>
61046
61047         * lib/diffseq.h: Add comments about required #includes.
61048         Reported by Michael Biggs <gnulib@doubleplum.net>.
61049
61050 2008-02-01  Bruno Haible  <bruno@clisp.org>
61051
61052         * users.txt: Add gnuit.
61053
61054 2008-01-31  Bruno Haible  <bruno@clisp.org>
61055
61056         * lib/md4.c (set_uint32): Mark as inline.
61057         * lib/md5.c (set_uint32): Likewise.
61058         * lib/sha1.c (set_uint32): Likewise.
61059         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
61060         * m4/md5.m4 (gl_MD5): Likewise.
61061         * m4/sha1.m4 (gl_SHA1): Likewise.
61062
61063 2008-01-31  Jim Meyering  <meyering@redhat.com>
61064
61065         Use "sizeof VAR", rather than a literal "4".
61066         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
61067         * lib/md4.c (md4_read_ctx): Likewise.
61068         * lib/sha1.c (sha1_read_ctx): Likewise.
61069
61070 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61071
61072         * tests/test-sha1.c: New file, based on test-md5.c.
61073
61074         * modules/crypto/sha1-tests: New file.
61075
61076 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61077
61078         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
61079
61080 2008-01-31  Jim Meyering  <meyering@redhat.com>
61081
61082         Prefer "sizeof v" over the equivalent "4".
61083         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
61084         * lib/md5.c (set_uint32): Likewise.
61085         * lib/sha1.c (set_uint32): Likewise.
61086
61087 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61088
61089         * lib/sha1.c (set_uint32): Mark function as static.
61090
61091 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61092
61093         md2: clarify comments to say that alignment is not required.
61094         * lib/md2.h: Remove warning about alignment in comment.
61095         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
61096         never been required.
61097
61098 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61099
61100         md4: adapt alignment constraint fix from sha1.
61101         * lib/md4.c (set_uint32): New function, from sha1.c
61102         (md4_read_ctx): Use it.
61103         (md4_finish_ctx): Doc fix.
61104         * lib/md4.h: Doc fix.
61105
61106 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61107
61108         md5: adapt alignment constraint fix from sha1.
61109         * lib/md5.c (set_uint32): New function, from sha1.c
61110         (md5_read_ctx): Use it.
61111         (md5_finish_ctx): Doc fix.
61112         * lib/md5.h: Doc fix.
61113
61114 2008-01-30  Peter Palfrader  <weasel@debian.org>
61115
61116         sha1: remove the result buffer alignment constraint
61117         * lib/sha1.c (set_uint32): New function.
61118         (sha1_read_ctx): Rewrite to remove the result buffer alignment
61119         constraint.
61120         (sha1_finish_ctx): Remove comment warning about alignment constraint.
61121         * lib/sha1.h: Likewise.
61122
61123 2008-01-30  Andreas Schwab  <schwab@suse.de>
61124             Bruno Haible  <bruno@clisp.org>
61125
61126         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
61127         correct definition of LDBL_MIN_EXP.
61128
61129 2008-01-30  Karl Berry  <karl@gnu.org>
61130
61131         * config/srclist-update: try to preserve x bit on updates.
61132         * config/srclistvars.sh: update for karl.
61133
61134 2008-01-29  Jim Meyering  <meyering@redhat.com>
61135
61136         vasnprintf.c: Avoid warning about unused label
61137         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
61138         "overflow" label definition and associated code with the
61139         same cpp condition that guards the sole use of that label.
61140
61141 2008-01-26  Bruno Haible  <bruno@clisp.org>
61142
61143         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
61144         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
61145         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
61146         * lib/isnanl-nolibm.h (isnanl): Likewise.
61147         Reported by Paul Eggert <eggert@cs.ucla.edu>.
61148
61149 2008-01-26  Bruno Haible  <bruno@clisp.org>
61150
61151         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
61152         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
61153
61154 2008-01-26  Bruno Haible  <bruno@clisp.org>
61155
61156         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
61157         GCC >= 4.0 built-in.
61158         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
61159
61160 2008-01-26  Bruno Haible  <bruno@clisp.org>
61161
61162         Rename isnan, applicable to 'double' only, to isnand.
61163         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
61164         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
61165         (configure.ac): Update.
61166         (Include): Replace "isnan.h" with "isnand.h".
61167         * m4/isnand.m4: Renamed from m4/isnan.m4.
61168         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
61169         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
61170         instead of isnan.c.
61171         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
61172         instead of HAVE_ISNAN_IN_LIBC.
61173         (isnand): Renamed from isnan.
61174         * lib/isnand.c: New file.
61175         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
61176         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
61177         (Makefile.am): Update.
61178         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
61179         Include isnand.h instead of isnan.h.
61180         (main): Test isnand instead of isnan.
61181         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
61182         isnan-nolibm.
61183         * modules/frexp (Depends-on): Likewise.
61184         * modules/frexp-tests (Depends-on): Likewise.
61185         * modules/frexp-nolibm (Depends-on): Likewise.
61186         * modules/frexp-nolibm-tests (Depends-on): Likewise.
61187         * modules/isfinite (Depends-on): Likewise.
61188         * modules/round-tests (Depends-on): Likewise.
61189         * modules/signbit (Depends-on): Likewise.
61190         * modules/signbit-tests (Depends-on): Likewise.
61191         * modules/snprintf-posix (Depends-on): Likewise.
61192         * modules/sprintf-posix (Depends-on): Likewise.
61193         * modules/trunc-tests (Depends-on): Likewise.
61194         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61195         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61196         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61197         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61198         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61199         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61200         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61201         * modules/vasnprintf-posix (Depends-on): Likewise.
61202         * modules/vasprintf-posix (Depends-on): Likewise.
61203         * modules/vfprintf-posix (Depends-on): Likewise.
61204         * modules/vsnprintf-posix (Depends-on): Likewise.
61205         * modules/vsprintf-posix (Depends-on): Likewise.
61206         * lib/frexp.c: Include isnand.h instead of isnan.h.
61207         (ISNAN): Set to isnand instead of isnan.
61208         * lib/isfinite.c: Include isnand.h instead of isnan.h.
61209         (gl_isfinited): Use isnand instead of isnan.
61210         * lib/signbitd.c: Include isnand.h instead of isnan.h.
61211         (gl_signbitd): Use isnand instead of isnan.
61212         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
61213         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
61214         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
61215         (main): Use isnand instead of isnan.
61216         * tests/test-round1.c: Include isnand.h.
61217         (main): Use isnand instead of isnan.
61218         * tests/test-round2.c: Include isnand.h instead of isnan.h.
61219         (ISNAN): Set to isnand instead of isnan.
61220         * tests/test-trunc1.c: Include isnand.h.
61221         (main): Use isnand instead of isnan.
61222         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
61223         (equal): Use isnand instead of isnan.
61224         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
61225         isnand-nolibm.
61226         * NEWS: Mention the change.
61227
61228 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61229             Bruno Haible  <bruno@clisp.org>
61230
61231         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
61232         the GCC builtins for signbits are present and set
61233         REPLACE_SIGNBIT_USING_GCC if so.
61234         * lib/math.in.h (signbit): Define using GCC builtins if
61235         REPLACE_SIGNBIT_USING_GCC is set.
61236         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
61237         REPLACE_SIGNBIT_USING_GCC.
61238         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
61239
61240 2008-01-25  Jim Meyering  <meyering@redhat.com>
61241
61242         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
61243         * lib/poll.c: Include <config.h>, not "config.h".
61244         * tests/test-getaddrinfo.c: Likewise.
61245
61246 2008-01-25  Simon Josefsson  <simon@josefsson.org>
61247
61248         * modules/sockets-tests: New file.
61249
61250 2008-01-24  Simon Josefsson  <simon@josefsson.org>
61251
61252         * modules/sockets: New module, can be used to call WSA_Startup and
61253         WSA_Cleanup when needed.
61254
61255         * lib/sockets.h, lib/sockets.c: New files.
61256
61257         * m4/sockets.m4: New file.
61258
61259         * tests/test-sockets.c: New file.
61260
61261 2008-01-19  Bruno Haible  <bruno@clisp.org>
61262
61263         * doc/posix-headers: Renamed from doc/headers.
61264         * doc/posix-functions: Renamed from doc/functions.
61265         * doc/gnulib.texi: Update.
61266
61267 2008-01-19  Bruno Haible  <bruno@clisp.org>
61268
61269         * doc/glibc-functions/strcasestr.texi: Include contents of
61270         doc/functions/strcasestr.texi, fixing the list of platforms.
61271         * doc/functions/strcasestr.texi: Remove file.
61272
61273 2008-01-19  Bruno Haible  <bruno@clisp.org>
61274
61275         * doc/glibc-functions/memmem.texi: Include contents of
61276         doc/functions/memmem.texi.
61277         * doc/functions/memmem.texi: Remove file.
61278
61279 2008-01-18  Bruno Haible  <bruno@clisp.org>
61280
61281         * doc/glibc-functions/*.texi: New files.
61282         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
61283         to use the new files.
61284
61285 2008-01-17  Bruno Haible  <bruno@clisp.org>
61286
61287         * tests/test-gethostname.c (main): Fix printf statement.
61288
61289 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61290
61291         * modules/gethostname-tests: New file.
61292
61293         * tests/test-gethostname.c: New file.
61294
61295 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61296
61297         * lib/gethostname.c: Include string.h unconditionally, strncpy is
61298         used by the UNAME case.  Reported by Bruno Haible
61299         <bruno@clisp.org>.
61300
61301 2008-01-17  Eric Blake  <ebb9@byu.net>
61302
61303         Convert c-strcasestr to be more efficient.
61304         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
61305         (Depends-on): Add c-strcase, remove malloca, strnlen.
61306         * tests/test-c-strcasestr.c (main): Enhance test.
61307         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
61308
61309 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61310
61311         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
61312         Use it in creating po/Makevars.
61313
61314 2008-01-15  Simon Josefsson  <simon@josefsson.org>
61315
61316         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
61317         Applications that requires it should initialize libgcrypt
61318         manually.
61319
61320 2008-01-16  Simon Josefsson  <simon@josefsson.org>
61321
61322         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
61323
61324 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
61325
61326         Fix problem with getdate on mingw32 reported by Simon Josefsson
61327         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
61328         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
61329         tzname", when deciding whether to declare tzname.
61330         * lib/strftime.c (tzname): Likewise.
61331
61332 2008-01-15  Bruno Haible  <bruno@clisp.org>
61333
61334         Work around a MacOS X 10.5 bug in frexpl().
61335         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
61336         * doc/functions/frexpl.texi: Document the bug.
61337         Reported by Elias Pipping <pipping@gentoo.org>.
61338
61339 2008-01-14  Eric Blake  <ebb9@byu.net>
61340
61341         Touch up previous patch.
61342         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
61343         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
61344
61345         Convert strcasestr module to use Two-Way algorithm.
61346         * modules/strcasestr-simple: New module, based on the old
61347         strcasestr, but with Two-Way rather than KMP.
61348         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
61349         * lib/string.in.h (rpl_strcasestr): Declare.
61350         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
61351         performance.
61352         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
61353         * modules/string (Makefile.am): Support strcasestr.
61354         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
61355         * modules/strcasestr-tests (Depends-on): Check for alarm.
61356         * tests/test-strcasestr.c: Augment test.
61357         * lib/str-two-way.h: Clean up stray macro.
61358         * NEWS: Document new module.
61359         * MODULES.html.sh (string handling): Likewise.
61360         * doc/functions/strcasestr.texi: New file.
61361         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
61362         here, since it is not a POSIX function.
61363
61364 2008-01-14  Colin Watson  <cjwatson@debian.org>
61365             Bruno Haible  <bruno@clisp.org>
61366
61367         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
61368         works fine; if not, set REPLACE_STRSIGNAL.
61369         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
61370         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61371         REPLACE_STRSIGNAL.
61372         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
61373         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
61374         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
61375
61376 2008-01-14  Bruno Haible  <bruno@clisp.org>
61377
61378         * modules/strsignal (Include): Change to <string.h>.
61379
61380 2008-01-14  Colin Watson  <cjwatson@debian.org>
61381
61382         * modules/argp (Notice): Add a notice recommending to change
61383         XGETTEXT_OPTIONS.
61384         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
61385
61386 2008-01-13  Colin Watson  <cjwatson@debian.org>
61387
61388         * modules/strsignal-tests: New file.
61389         * tests/test-strsignal.c: New file.
61390
61391         * lib/strsignal.c: New file, from glibc with modifications.
61392         * lib/siglist.h: New file, from glibc with modifications.
61393         * lib/string.in.h (strsignal): New declaration.
61394         * m4/strsignal.m4: New file.
61395         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61396         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
61397         * modules/strsignal: New file.
61398         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
61399         HAVE_DECL_STRSIGNAL.
61400
61401 2008-01-13  Bruno Haible  <bruno@clisp.org>
61402
61403         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
61404         locale encoding is not ASCII. Needed for OpenBSD 4.0.
61405         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61406         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61407
61408 2008-01-13  Bruno Haible  <bruno@clisp.org>
61409
61410         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
61411         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
61412         * lib/argp.h (__attribute__): Likewise.
61413         * lib/c-stack.c (__attribute__): Likewise.
61414         * lib/error.h (__attribute__): Likewise.
61415         * lib/fts.c (__attribute__): Likewise.
61416         * lib/openat.h (__attribute__): Likewise.
61417         * lib/stdio.in.h (__attribute__): Likewise.
61418         * lib/string.in.h (__attribute__): Likewise.
61419         * lib/utimens.c (__attribute__): Likewise.
61420         * lib/vasnprintf.h (__attribute__): Likewise.
61421         * lib/xalloc.h (__attribute__): Likewise.
61422         * lib/xprintf.h (__attribute__): Likewise.
61423         * lib/xstrtol.h (__attribute__): Likewise.
61424         * lib/xvasprintf.h (__attribute__): Likewise.
61425
61426 2008-01-12  Bruno Haible  <bruno@clisp.org>
61427
61428         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
61429         * doc/glibc-headers/a.out.texi: New file.
61430         * doc/glibc-headers/aliases.texi: New file.
61431         * doc/glibc-headers/alloca.texi: New file.
61432         * doc/glibc-headers/ar.texi: New file.
61433         * doc/glibc-headers/argp.texi: New file.
61434         * doc/glibc-headers/argz.texi: New file.
61435         * doc/glibc-headers/byteswap.texi: New file.
61436         * doc/glibc-headers/crypt.texi: New file.
61437         * doc/glibc-headers/endian.texi: New file.
61438         * doc/glibc-headers/envz.texi: New file.
61439         * doc/glibc-headers/err.texi: New file.
61440         * doc/glibc-headers/error.texi: New file.
61441         * doc/glibc-headers/execinfo.texi: New file.
61442         * doc/glibc-headers/fpu_control.texi: New file.
61443         * doc/glibc-headers/fstab.texi: New file.
61444         * doc/glibc-headers/fts.texi: New file.
61445         * doc/glibc-headers/getopt.texi: New file.
61446         * doc/glibc-headers/ieee754.texi: New file.
61447         * doc/glibc-headers/ifaddrs.texi: New file.
61448         * doc/glibc-headers/libintl.texi: New file.
61449         * doc/glibc-headers/mcheck.texi: New file.
61450         * doc/glibc-headers/mntent.texi: New file.
61451         * doc/glibc-headers/obstack.texi: New file.
61452         * doc/glibc-headers/paths.texi: New file.
61453         * doc/glibc-headers/printf.texi: New file.
61454         * doc/glibc-headers/pty.texi: New file.
61455         * doc/glibc-headers/resolv.texi: New file.
61456         * doc/glibc-headers/shadow.texi: New file.
61457         * doc/glibc-headers/sysexits.texi: New file.
61458         * doc/glibc-headers/ttyent.texi: New file.
61459
61460 2008-01-12  Jim Meyering  <meyering@redhat.com>
61461
61462         announce-gen: emit Gnulib's git-based version string.
61463         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
61464         New option --gnulib-version=V, where V is expected to be
61465         the output of running git describe in the gnulib directory.
61466         (get_tool_versions): Request feedback on xdelta.  I suspect it's
61467         not useful, and plan to stop publishing an xdelta file with each
61468         coreutils release.
61469
61470         * build-aux/announce-gen: Also check for lzma-compressed files.
61471
61472 2008-01-11  Bruno Haible  <bruno@clisp.org>
61473
61474         * tests/test-memmem.c (main): Increase maximum allowed time.
61475         * tests/test-strstr.c (main): Likewise.
61476
61477 2008-01-11  Bruno Haible  <bruno@clisp.org>
61478
61479         * doc/functions/memmem.texi: Add more precisions about platforms.
61480         * doc/functions/strstr.texi: Likewise.
61481
61482 2008-01-10  Eric Blake  <ebb9@byu.net>
61483
61484         * m4/strstr.m4: Delete cruft from copy-n-paste.
61485         Reported by Bruno Haible.
61486
61487 2008-01-10  Bruno Haible  <bruno@clisp.org>
61488
61489         Make c-strstr rely on strstr.
61490         * lib/c-strstr.c: Don't include str-kmp.h.
61491         (c_strstr): Define in terms of strstr.
61492         * modules/c-strstr (Files): Remove lib/str-kmp.h.
61493         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
61494
61495 2008-01-10  Bruno Haible  <bruno@clisp.org>
61496
61497         * doc/gnulib.texi (String Functions in C Locale): New section.
61498         * doc/c-ctype.texi: New file.
61499         * doc/c-strcase.texi: New file.
61500         * doc/c-strcaseeq.texi: New file.
61501         * doc/c-strcasestr.texi: New file.
61502         * doc/c-strstr.texi: New file.
61503         * doc/c-strtod.texi: New file.
61504         * doc/c-strtold.texi: New file.
61505
61506 2008-01-10  Eric Blake  <ebb9@byu.net>
61507
61508         * lib/relocatable.h: Fix a comment.
61509
61510 2008-01-10  Eric Blake  <ebb9@byu.net>
61511
61512         Share two-way algorithm.
61513         * lib/str-two-way.h: New file, merged from...
61514         * lib/memmem.c: ...here...
61515         * lib/strstr.c: ...and here.
61516         * modules/memmem (Files): Use it.
61517         * modules/strstr (Files): Likewise.
61518
61519         Avoid quadratic strstr implementations.
61520         * lib/strstr.c: New file.
61521         * m4/strstr.m4: Likewise.
61522         * modules/strstr: Likewise.
61523         * modules/strstr-tests: Likewise.
61524         * tests/test-strstr.c: Likewise.
61525         * lib/string.in.h (rpl_strstr): Declare.
61526         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
61527         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
61528         * modules/string (Makefile.am): Likewise.
61529         * MODULES.html.sh (string handling): Mention new module.
61530         * doc/functions/strstr.texi (strstr): Document the bug.
61531
61532 2008-01-10  Bruno Haible  <bruno@clisp.org>
61533
61534         * lib/relocatable.h (relocate): State whether result is freshly
61535         allocated or not.
61536         * lib/relocatable.c (relocate): Return a freshly allocated string
61537         instead of a pointer to a privately held string.
61538         Reported by Sylvain Beucler <beuc@gnu.org>.
61539
61540 2008-01-10  Colin Watson  <cjwatson@debian.org>
61541
61542         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
61543         s/S_ISNLK/S_ISLNK/.
61544
61545 2008-01-09  Bruno Haible  <bruno@clisp.org>
61546
61547         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
61548         and other files.
61549         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
61550         if it's only a guess.
61551         * modules/memmem: Simplify by depending on memmem-simple.
61552
61553 2008-01-09  Bruno Haible  <bruno@clisp.org>
61554
61555         Work around OpenBSD 4.0 tdelete() bug.
61556         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
61557         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
61558         macros and don't redefine the enum values.
61559         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
61560         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
61561         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
61562
61563 2008-01-09  Bruno Haible  <bruno@clisp.org>
61564
61565         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
61566         (main): Don't perform the tests if setlocale did not install a UTF-8
61567         locale. Needed on OpenBSD 4.0.
61568         * modules/wcwidth-tests (Depends-on): Add localcharset.
61569
61570 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61571
61572         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
61573         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
61574         * NEWS: announce this.
61575         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
61576
61577 2008-01-09  Simon Josefsson  <simon@josefsson.org>
61578         and Eric Blake  <ebb9@byu.net>
61579
61580         Add memmem-simple module.
61581         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
61582         (gl_FUNC_MEMMEM): Separate performance from presence checks.
61583         * modules/memmem-simple: New file.
61584         * modules/memmem (Description): Tweak.
61585         * MODULES.html.sh (string handling): Mention new module.
61586         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
61587         addressed by memmem-simple.
61588         * NEWS: Document the difference.
61589
61590 2008-01-09  Eric Blake  <ebb9@byu.net>
61591
61592         Give gcc some memmem optimization hints.
61593         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
61594         (strcasestr): Declare as pure.
61595         * modules/memmem (Maintainer): Claim my implementation.
61596
61597 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61598
61599         Support AIX 6.1 and higher.
61600         * build-aux/config.libpath: Likewise.
61601         * build-aux/config.rpath: Likewise.
61602
61603 2008-01-08  Jim Meyering  <meyering@redhat.com>
61604             Bruno Haible  <bruno@clisp.org>
61605
61606         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
61607         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
61608         Reported by Peter Fales in
61609         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
61610
61611 2008-01-08  Bruno Haible  <bruno@clisp.org>
61612
61613         * modules/unictype/category-of (Depends-on): Add
61614         unictype/category-none.
61615         * modules/unictype/category-and-tests (Depends-on): Add
61616         unictype/category-{L,N,Lu,Nd}.
61617         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
61618         * modules/unictype/category-or-tests (Depends-on): Add
61619         unictype/category-{L,N}.
61620         * modules/unictype/category-name-tests (Depends-on): Add
61621         unictype/category-{Z,Nl}.
61622         Reported by Simon Josefsson.
61623
61624 2008-01-08  Bruno Haible  <bruno@clisp.org>
61625
61626         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
61627         convention better.
61628         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
61629         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
61630         Reported by Peter Miller <millerp@canb.auug.org.au>.
61631
61632 2008-01-08  Eric Blake  <ebb9@byu.net>
61633
61634         Rewrite memmem to guarantee linear complexity without malloc.
61635         * lib/memmem.c (memmem): Use Two-Way rather than
61636         Knuth-Morris-Pratt, to allow O(1) space usage.
61637         (critical_factorization, two_way_short_needle)
61638         (two_way_long_needle): New functions.
61639         (knuth_morris_pratt): Delete.
61640         * modules/memmem (Depends-on): No longer need malloca or stdbool.
61641         Add stdint.
61642         * tests/test-memmem.c (main): Add tests for periodic needle and
61643         sublinear performance.
61644         * doc/functions/memmem.texi (memmem): Document other deficiencies
61645         in cygwin and older glibc.
61646
61647 2008-01-08  Bruno Haible  <bruno@clisp.org>
61648
61649         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
61650         augmentation.
61651
61652 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
61653
61654         Add a configure time option: --disable-acl.
61655         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
61656         AC_ARG_ENABLE(acl).
61657
61658 2008-01-06  Simon Josefsson  <simon@josefsson.org>
61659
61660         * tests/test-localename.c: Don't include obsolete "setenv.h".
61661
61662         * modules/localename-tests (Depends-on): Need unsetenv.
61663
61664 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61665
61666         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
61667
61668 2008-01-06  Colin Watson  <cjwatson@debian.org>
61669
61670         * users.txt: Add man-db.
61671
61672 2008-01-07  Bruno Haible  <bruno@clisp.org>
61673
61674         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
61675         previous section name.
61676
61677 2008-01-07  Bruno Haible  <bruno@clisp.org>
61678
61679         * lib/progname.c (set_program_name): Don't strip off a leading
61680         "lt-" prefix outside a .libs directory.
61681         Suggested by Paul Eggert.
61682
61683 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
61684             Bruno Haible  <bruno@clisp.org>
61685
61686         Improve memory cleanup in 'relocatable' module.
61687         * lib/relocatable.h (compute_curr_prefix): Change return type to
61688         'char *'.
61689         * lib/relocatable.c (compute_curr_prefix): Change return type to
61690         'char *'. Free curr_installdir after use.
61691         (relocate): Free curr_prefix_better after use.
61692         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
61693
61694 2008-01-01  Bruno Haible  <bruno@clisp.org>
61695
61696         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
61697         failure on older glibc systems.
61698         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61699
61700 2008-01-05  Eric Blake  <ebb9@byu.net>
61701
61702         Avoid quadratic system memmem.
61703         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
61704         Reported by Ralf Wildenhues.
61705
61706         Fix memmem test for mingw.
61707         * modules/memmem-tests (configure.ac): Check for alarm.
61708         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
61709         it.
61710         * doc/functions/memmem.texi: New file.
61711         * doc/gnulib.texi (Function Substitutes): Add memmem.
61712         Reported by Bruno Haible.
61713
61714 2008-01-04  Bruno Haible  <bruno@clisp.org>
61715
61716         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
61717         Require gl_HEADER_STRINGS_H_DEFAULTS, not
61718         gl_HEADER_STRING_H_DEFAULTS.
61719
61720 2008-01-04  Eric Blake  <ebb9@byu.net>
61721
61722         Shorten duration of memmem test.
61723         * tests/test-memmem.c (main): Use alarm to declare failure if test
61724         is taking too long.
61725         Reported by Ralf Wildenhues.
61726
61727 2007-12-21  Simon Josefsson  <simon@josefsson.org>
61728
61729         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
61730         string, needed by strerror.
61731
61732 2008-01-03  Colin Watson  <cjwatson@debian.org>
61733             Bruno Haible  <bruno@clisp.org>
61734
61735         * doc/gnulib-tool.texi (Localization): New section.
61736
61737 2008-01-02  Bruno Haible  <bruno@clisp.org>
61738
61739         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
61740         variables to 'unsigned char *' type.
61741         Reported by Paul Eggert.
61742
61743 2008-01-02  Jim Meyering  <jim@meyering.net>
61744
61745         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
61746
61747 2007-12-31  Jim Meyering  <jim@meyering.net>
61748
61749         Avoid use of private FTS type name.
61750         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
61751
61752 2007-12-30  Karl Berry  <karl@gnu.org>
61753
61754         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
61755         work around defect in Texinfo and/or the standalone Info browser.
61756
61757 2007-12-30  Bruno Haible  <bruno@clisp.org>
61758
61759         Unify 5 copies of the KMP code.
61760         * lib/str-kmp.h: New file.
61761         * lib/c-strcasestr.c: Include str-kmp.h.
61762         (knuth_morris_pratt): Remove function.
61763         (c_strcasestr): Update.
61764         * lib/c-strstr.c: Include str-kmp.h.
61765         (knuth_morris_pratt): Remove function.
61766         (c_strcasestr): Update.
61767         * lib/mbscasestr.c: Include str-kmp.h.
61768         (knuth_morris_pratt_unibyte): Remove function.
61769         * lib/mbsstr.c: Include str-kmp.h.
61770         (knuth_morris_pratt_unibyte): Remove function.
61771         * lib/strcasestr.c: Include str-kmp.h.
61772         (knuth_morris_pratt): Remove function.
61773         (strcasestr): Update.
61774         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
61775         * modules/c-strstr (Files): Likewise.
61776         * modules/mbscasestr (Files): Likewise.
61777         * modules/mbsstr (Files): Likewise.
61778         * modules/strcasestr (Files): Likewise.
61779         Suggested by Paul Eggert.
61780
61781 2007-12-30  Bruno Haible  <bruno@clisp.org>
61782
61783         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
61784         defined.
61785
61786 2007-12-30  Bruno Haible  <bruno@clisp.org>
61787
61788         * lib/xmalloca.h: Include xalloc.h.
61789         (xnmalloca): New macro.
61790
61791 2007-12-30  Bruno Haible  <bruno@clisp.org>
61792
61793         * lib/malloca.h (nmalloca): New macro.
61794         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
61795         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
61796         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
61797         knuth_morris_pratt_multibyte): Likewise.
61798         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
61799         knuth_morris_pratt_multibyte): Likewise.
61800         * lib/memmem.c (knuth_morris_pratt): Likewise.
61801         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
61802
61803 2007-12-25  Bruno Haible  <bruno@clisp.org>
61804
61805         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
61806         * lib/glob.c: Don't include openat.h.
61807         (link_exists2_p): Add back the code that deals with the
61808         !GLOB_ALTDIRFUNC case.
61809         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
61810         let it do the filename concatenation.
61811         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
61812         * modules/glob (Depends-on): Remove openat.
61813
61814 2007-12-31  Bruno Haible  <bruno@clisp.org>
61815
61816         * modules/dirfd (License): Change to LGPLv2+.
61817         Approved by Jim Meyering.
61818
61819 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61820
61821         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
61822         when multiplying M by sizeof (size_t).
61823
61824 2007-12-10  Martin Lambers  <marlam@marlam.de>
61825
61826         Override getpagesize on mingw.
61827         * lib/getpagesize.c: New file.
61828         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
61829         * modules/getpagesize (Files): Add lib/getpagesize.c.
61830         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
61831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61832         REPLACE_GETPAGESIZE.
61833         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
61834
61835 2007-12-25  Bruno Haible  <bruno@clisp.org>
61836
61837         * modules/localcharset (Notice): New field.
61838         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
61839         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
61840
61841 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61842             Bruno Haible  <bruno@clisp.org>
61843
61844         Avoid using the syntax symbol() in formatted documentation.
61845         * MODULES.html.sh (func_module): When replacing symbol() with a
61846         hyperlink, remove the parentheses. Show an error if some remain.
61847         Recognize and render the '...' syntax.
61848         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
61849         Rework. Add paragraph about GCC's inlining.
61850         * doc/alloca.texi: Likewise.
61851         * doc/error.texi: Remove parentheses from symbol reference.
61852         * doc/gnulib-intro.texi: Likewise.
61853         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
61854         * modules/fnmatch (Description): Reword to say "the ... function".
61855         * modules/full-read (Description): Likewise.
61856         * modules/full-write (Description): Likewise.
61857         * modules/safe-read (Description): Likewise.
61858         * modules/safe-write (Description): Likewise.
61859         * modules/strchrnul (Description): Likewise.
61860         * modules/trim (Description): Likewise.
61861         * modules/error (Description): Remove parentheses from symbol
61862         references.
61863         * modules/verror (Description): Likewise.
61864         Reported by Karl Berry.
61865
61866 2007-12-25  Bruno Haible  <bruno@clisp.org>
61867
61868         Fixup after 2007-10-16 commit.
61869         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
61870
61871 2007-12-24  Bruno Haible  <bruno@clisp.org>
61872
61873         Make --enable-relocatable work with DESTDIR.
61874         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
61875         to compute installdir from destprog.
61876         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
61877         also set the RELOC_DESTDIR variable.
61878         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61879
61880 2007-12-24  Bruno Haible  <bruno@clisp.org>
61881
61882         Fix link error due to xalloc_die().
61883         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
61884         of xreadlink.
61885         * lib/relocwrapper.c: Update comments.
61886         * build-aux/install-reloc: Remove xreadlink.c from file list.
61887         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
61888         xreadlink.c.
61889         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61890
61891 2007-12-24  Bruno Haible  <bruno@clisp.org>
61892
61893         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
61894         * lib/setenv.h: Remove file.
61895         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
61896         lib/setenv.h.
61897         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
61898         (Depends-on): Add stdlib.
61899         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
61900         gl_FUNC_UNSETENV.
61901         (Include): Replace setenv.h with <stdlib.h>.
61902         * modules/unsetenv: New file.
61903         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
61904         * lib/unsetenv.c: Include <stdlib.h> first.
61905         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
61906         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
61907         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
61908         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
61909         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
61910         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61911         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
61912         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61913         * doc/functions/unsetenv.texi: Update.
61914         * modules/xsetenv (Depends-on): Add unsetenv.
61915         * modules/getdate (Depends-on): Likewise.
61916         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
61917         * lib/xsetenv.c: Don't include setenv.h.
61918         * lib/getdate.y: Likewise.
61919         * lib/relocwrapper.c: Likewise.
61920         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
61921         (Depends-on): Add stdlib.
61922         * NEWS: Mention the changes.
61923         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61924
61925 2007-12-23  Bruno Haible  <bruno@clisp.org>
61926
61927         * lib/memmem.c (memmem): Use lowercase variable names. Tab
61928         indentation.
61929
61930 2007-12-23  Bruno Haible  <bruno@clisp.org>
61931
61932         * lib/c-strcasestr.c: Add more comments.
61933         * lib/c-strstr.c: Likewise.
61934         * lib/mbscasestr.c: Likewise.
61935         * lib/mbsstr.c: Likewise.
61936         * lib/strcasestr.c: Likewise.
61937         * lib/memmem.c: Likewise.
61938
61939 2007-12-23  Bruno Haible  <bruno@clisp.org>
61940
61941         * tests/test-memmem.c: Include <string.h> first.
61942
61943 2007-12-22  Bruno Haible  <bruno@clisp.org>
61944
61945         * gnulib-tool (func_create_testdir): Change $auxdir while generating
61946         the contents of $testsbase.
61947         Reported by Ralf Wildenhues.
61948
61949 2007-12-22  Bruno Haible  <bruno@clisp.org>
61950
61951         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
61952         two variables local_ldadd_before, local_ldadd_last.
61953
61954 2007-12-20  Eric Blake  <ebb9@byu.net>
61955
61956         Work around circular library issue when cross-compiling.
61957         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
61958         that progname.o does not need to pull in rpl_memcmp.
61959
61960 2007-12-19  Eric Blake  <ebb9@byu.net>
61961
61962         Fix memmem to avoid O(n^2) worst-case complexity.
61963         * lib/memmem.c (knuth_morris_pratt): New function.
61964         (memmem): Use it if first few naive iterations fail.
61965         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
61966         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
61967         * modules/memchr (License): Likewise.
61968         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
61969         malloca.
61970         * tests/test-memmem.c: Rewrite, borrowing ideas from
61971         test-mbsstr1.c; the old version wouldn't even compile!
61972         * modules/memmem-tests: New file.
61973         * lib/string.in.h (rpl_memmem): Add declaration.
61974         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
61975         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
61976         REPLACE_MEMMEM.
61977
61978 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61979
61980         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
61981         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
61982         before any system include files, and undef after them all.  This
61983         should fix a problem on VMS reported by John E. Malmberg in
61984         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
61985
61986 2007-12-17  Eric Blake  <ebb9@byu.net>
61987
61988         Revert addition of verify, for BSD/OS.
61989         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
61990         can't handle large files, for the sake of obsolete platforms.
61991         * modules/fseeko (Depends-on): Remove verify.
61992         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
61993         * doc/functions/ftello.texi (ftello): Likewise.
61994         * doc/functions/fgetpos.texi (fgetpos): Likewise.
61995         Reported by Larry Jones.
61996
61997 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
61998
61999         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
62000         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
62001
62002 2007-12-17  Jim Meyering  <meyering@redhat.com>
62003
62004         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
62005         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
62006         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
62007         * modules/getcwd (Depends-on): Add openat.
62008         Reported by Petr Salinger.
62009
62010 2007-12-17  Bruno Haible  <bruno@clisp.org>
62011
62012         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
62013         avoid a segmentation fault of the configure test on x86_64 systems.
62014
62015 2007-12-15  Jim Meyering  <meyering@redhat.com>
62016
62017         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
62018
62019 2007-12-13  Eric Blake  <ebb9@byu.net>
62020
62021         Another fseek test.
62022         * tests/test-fseek.c (main): Also test ungetc handling.
62023         * tests/test-fseeko.c (main): Likewise.
62024         * modules/fseeko (Depends-on): Add verify.
62025         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
62026         large.
62027         Reported by Larry Jones.
62028
62029         Fix fseeko on mingw.
62030         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
62031         seek.
62032
62033         Beef up fseek tests.
62034         * tests/test-fseek.c (main): Also test eof handling.
62035         * tests/test-fseeko.c (main): Likewise.
62036         Reported by Larry Jones.
62037
62038 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
62039
62040         Fix fseeko on BSD-based platforms.
62041         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
62042         successful seek.
62043
62044 2007-12-12  Eric Blake  <ebb9@byu.net>
62045
62046         Allow circular dependency of separate libtests.a
62047         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
62048         when use_libtests.
62049
62050 2007-12-11  Eric Blake  <ebb9@byu.net>
62051
62052         Fix bug with -0.0L in previous patch.
62053         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
62054         * tests/test-isnan.c (main): Also test on zeroes.
62055         * tests/test-isnanf.c (main): Likewise.
62056         * tests/test-isnanl.h (main): Likewise.
62057
62058         Detect pseudo-denormals on x86 even when cross-compiling.
62059         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
62060         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
62061         invalid bit patterns that happen to satisfy ==.
62062
62063         Avoid link failures with separate libtests.a.
62064         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
62065         last, to satisfy circular dependencies.
62066
62067 2007-12-11  Eric Blake  <ebb9@byu.net>
62068         and Bruno Haible  <bruno@clisp.org>
62069
62070         Fix OpenBSD 4.0 <float.h> handling of long double.
62071         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
62072         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
62073         * doc/headers/float.texi (float.h): Document OpenBSD bug.
62074
62075 2007-12-11  Jim Meyering  <meyering@redhat.com>
62076
62077         * users.txt: Add libvirt.
62078
62079         Support versions of autoconf prior to 2.59c.
62080         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
62081         if it is not already defined.
62082
62083 2007-12-09  Bruno Haible  <bruno@clisp.org>
62084
62085         Let 'gnulib-tool --import' collect sources needed for the tests in
62086         tests/ rather than in lib/.
62087         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
62088         argument. If true, add rules to generate libtests.a, and put libtests.a
62089         into $(LDADD). Consider source files in subdirectories and set
62090         uses_subdirs.
62091         (func_emit_initmacro_start, func_emit_initmacro_end,
62092         func_emit_initmacro_done): Pass all arguments explicitly.
62093         (func_import): Determine two module lists main_modules,
62094         testsrelated_modules. Determine use_libtests. Determine two variables
62095         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
62096         instead of just sed_transform_lib_file. Determine two variables
62097         main_files and testsrelated_files. Compute 'files' as the union of
62098         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
62099         func_add_or_update. In the generated gnulib-comp.m4, collect the
62100         object files for tests/ in different variables than those for lib/.
62101         Substitute LIBTESTS_LIBDEPS.
62102         (func_create_testdir): Combine the uses_subdirs results from
62103         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
62104
62105 2007-12-09  Bruno Haible  <bruno@clisp.org>
62106
62107         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
62108         the build-aux directory.
62109
62110 2007-12-09  Bruno Haible  <bruno@clisp.org>
62111
62112         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
62113         introduced on 2006-09-09.
62114
62115 2007-12-07  Jim Meyering  <meyering@redhat.com>
62116
62117         Let these macros work also with autoconf-2.59.
62118         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
62119         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
62120         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62121
62122 2007-12-06  Jim Meyering  <meyering@redhat.com>
62123
62124         Avoid a configure-time syntax error in gl_FUNC_ACL.
62125         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
62126         function in each branch, before testing the cache variable.
62127
62128 2007-12-04  Eric Blake  <ebb9@byu.net>
62129
62130         Make scripts executable.
62131         * build-aux/config.guess: Add execute permissions.
62132         * build-aux/config.sub: Likewise.
62133         * build-aux/gendocs.sh: Likewise.
62134
62135         Fix frexp on mingw.
62136         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
62137         cross-compiling.
62138         * doc/functions/frexp.texi (frexp): Document the bug.
62139
62140         Make cygwin fseeko check more reliable.
62141         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
62142         version numbers, rather than unrelated feature check.
62143         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
62144         * doc/functions/ftello.texi (ftello): Likewise.
62145         Reported by Bruno Haible.
62146
62147         * m4/strerror.m4: Bump version number.
62148
62149 2007-12-03  Bruno Haible  <bruno@clisp.org>
62150
62151         * doc/functions/mprotect.texi: Mention the mingw problem.
62152
62153 2007-12-03  Eric Blake  <ebb9@byu.net>
62154
62155         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
62156         REPLACE_STRERROR is initialized before this macro.
62157
62158 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62159
62160         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
62161         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
62162         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
62163         put -lsec in even for programs other than 'ls'.  This fixes a problem
62164         for gettext reported by Bruno Haible in
62165         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
62166         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
62167         Add support for Solaris 10.  This isn't efficient, but should get the
62168         job done for now.
62169
62170 2007-12-03  James Youngman  <jay@gnu.org>
62171
62172         * doc/regexprops-generic.texi: change "an close-group" to "a
62173         close-group" and "illegal" to "not allowed".
62174
62175 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62176
62177         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
62178         pr_byname.h. Needed for the rare case when the maintainer has done
62179         "make maintainer-clean" in the source directory and then attempts a
62180         build outside the source directory.
62181         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
62182         scripts_byname.h.
62183
62184 2007-12-02  Martin Lambers <marlam@marlam.de>
62185             Bruno Haible  <bruno@clisp.org>
62186
62187         * lib/getpagesize.h: Remove file.
62188         * lib/unistd.in.h: Include declaration of getpagesize here.
62189         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
62190         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
62191         HAVE_SYS_PARAM_H.
62192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
62193         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62194         * modules/getpagesize (Files): Remove lib/getpagesize.h.
62195         (Depends-on): Add unistd.
62196         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62197         (Include): Use <unistd.h> instead of getpagesize.h.
62198         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
62199         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62200         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
62201         gl_GETPAGESIZE invocation, already handled by module dependency.
62202         * lib/pagealign_alloc.c: Don't include getpagesize.h.
62203
62204 2007-12-02  Bruno Haible  <bruno@clisp.org>
62205
62206         * modules/strings-tests: New file.
62207         * tests/test-strings.c: New file.
62208
62209         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
62210         * lib/strings.in.h: New file.
62211         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
62212         * m4/strings_h.m4: New file.
62213         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
62214         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
62215         * modules/strings: New file.
62216         * modules/string (Makefile.am): Update.
62217         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
62218         Reported by Karl Berry.
62219
62220 2007-12-01  Eric Blake  <ebb9@byu.net>
62221
62222         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
62223         accommodate fix in cygwin 1.5.25.
62224
62225 2007-12-01  Jim Meyering  <meyering@redhat.com>
62226
62227         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
62228         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
62229         that would inhibit utf8-optimization of a regexp containing line-
62230         or buffer-anchors, e.g., `^', `$'.
62231
62232 2007-11-30  Bruno Haible  <bruno@clisp.org>
62233
62234         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
62235         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
62236         glthread_recursive_lock_init.
62237         * lib/lock.c (glthread_recursive_lock_init)
62238         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
62239         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62240
62241 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
62242
62243         New function qset_acl, like set_acl but with syscall semantics.
62244         * lib/acl.h (qset_acl): New decl.
62245         * lib/acl.c (qset_acl): New function.
62246         (set_acl): Use new function.  Use more-consistent diagnostics.
62247
62248 2007-11-28  Jim Meyering  <meyering@redhat.com>
62249
62250         * modules/physmem (License): Change from GPL to LGPLv2+.
62251
62252 2007-11-26  Bruno Haible  <bruno@clisp.org>
62253
62254         * lib/vasnprintf.c (decode_long_double): Don't abort if the
62255         'long double' type has excess precision.
62256         Reported by Jim Meyering in
62257         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
62258
62259 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62260
62261         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
62262         Sync from <http://gnu.org/licenses>.
62263         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
62264         with license text from same location.
62265         * doc/maintain.texi, doc/standards.texi:  Sync from
62266         <http://savannah.gnu.org/projects/gnustandards>.
62267
62268 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
62269         and Jim Meyering  <meyering@redhat.com>
62270
62271         Adjust getdate' grammar to accept a slightly more regular language.
62272         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
62273         Before, the former was rejected.
62274         * lib/getdate.y (digits_to_date_time): New function, factored
62275         out of ...
62276         (number): ...here.  Just call digits_to_date_time.
62277         (hybrid): New non-terminal to handle an <unsigned number,
62278         signed relative offset> sequence consistently.
62279
62280 2007-11-18  Jim Meyering  <meyering@redhat.com>
62281
62282         Pull my changes from coreutils:
62283         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
62284         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
62285         use of $gnulib_tool_option_extras, so that it's separated from the
62286         preceding argument.
62287
62288         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
62289         * build-aux/bootstrap (cp_mark_as_generated): Create any required
62290         parent destination directories before copying a file into place.
62291
62292 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62293
62294         bootstrap: work also with 4-argument variant of AC_INIT
62295         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
62296
62297 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62298
62299         Port test-getaddrinfo to Solaris.
62300         Problem reported by Bruno Haible in
62301         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
62302         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
62303         explanation of setting 'hints'.
62304         Don't reject an implementation merely because it returns EAI_SERVICE.
62305         (EAI_SERVICE): Define to 0 if not defined.
62306
62307 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62308
62309         The license of gnu-make and posix-shell is now "GPLed build tool".
62310         * modules/gnu-make (License): Likewise.
62311         * modules/posix-shell (License): Likewise.
62312
62313         New module posix-shell, for determining a POSIX shell
62314         or perhaps something that is close enough to a POSIX shell.
62315         * m4/posix-shell.m4: New file.
62316         * modules/posix-shell: New file.
62317
62318         * MODULES.html.sh: Mention new module.
62319
62320         New module gnu-make, for determining whether we're using GNU Make.
62321         * m4/gnu-make.m4: New file.
62322         * modules/gnu-make: New file.
62323         * MODULES.html.sh: Mention new module.
62324
62325 2007-11-14  Jim Meyering  <meyering@redhat.com>
62326
62327         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
62328         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
62329         use this macro to create a function _definition_.
62330         Remove useless "#undef ARGMATCH_DIE".
62331
62332 2007-11-14  Bruno Haible  <bruno@clisp.org>
62333
62334         * lib/config.charset: Update for OpenBSD 4.1.
62335         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
62336
62337 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
62338
62339         Document 64-bit #if problems in stdint.texi.
62340         * doc/headers/stdint.texi (stdint.h): Mention problems with
62341         64-bit-#if, and how to work around them.
62342
62343         Don't insist on 'long long int' support in the preprocessor.  It
62344         breaks too many things.  For example, PRIdMAX still uses a 'long
62345         long int' format with the latest Sun compiler, even though
62346         HAVE_LONG_LONG_INT isn't defined due to that compiler's
62347         preprocessor problem.  This causes the latest coreutils to dump
62348         core on Solaris 10 sparc with the Sun C compiler.
62349         Instead, fix the 2007-10-16 problem in a different way, by evaluating
62350         the troublesome expressions at configure-time, not at #if-time.
62351         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
62352         preprocessor.
62353         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
62354         compile-time C checks, done at 'configure'-time.
62355         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
62356         * modules/inttypes (Makefile): Substitute the new symbols that
62357         gl_INTTYPES_H now generates.
62358         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
62359
62360 2007-11-12  Bruno Haible  <bruno@clisp.org>
62361
62362         Tests for Unicode character classification functions.
62363
62364         * modules/unictype/bidicategory-byname-tests: New file.
62365         * modules/unictype/bidicategory-name-tests: New file.
62366         * modules/unictype/bidicategory-of-tests: New file.
62367         * modules/unictype/bidicategory-test-tests: New file.
62368         * modules/unictype/block-list-tests: New file.
62369         * modules/unictype/block-of-tests: New file.
62370         * modules/unictype/block-test-tests: New file.
62371         * modules/unictype/category-C-tests: New file.
62372         * modules/unictype/category-Cc-tests: New file.
62373         * modules/unictype/category-Cf-tests: New file.
62374         * modules/unictype/category-Cn-tests: New file.
62375         * modules/unictype/category-Co-tests: New file.
62376         * modules/unictype/category-Cs-tests: New file.
62377         * modules/unictype/category-L-tests: New file.
62378         * modules/unictype/category-Ll-tests: New file.
62379         * modules/unictype/category-Lm-tests: New file.
62380         * modules/unictype/category-Lo-tests: New file.
62381         * modules/unictype/category-Lt-tests: New file.
62382         * modules/unictype/category-Lu-tests: New file.
62383         * modules/unictype/category-M-tests: New file.
62384         * modules/unictype/category-Mc-tests: New file.
62385         * modules/unictype/category-Me-tests: New file.
62386         * modules/unictype/category-Mn-tests: New file.
62387         * modules/unictype/category-N-tests: New file.
62388         * modules/unictype/category-Nd-tests: New file.
62389         * modules/unictype/category-Nl-tests: New file.
62390         * modules/unictype/category-No-tests: New file.
62391         * modules/unictype/category-P-tests: New file.
62392         * modules/unictype/category-Pc-tests: New file.
62393         * modules/unictype/category-Pd-tests: New file.
62394         * modules/unictype/category-Pe-tests: New file.
62395         * modules/unictype/category-Pf-tests: New file.
62396         * modules/unictype/category-Pi-tests: New file.
62397         * modules/unictype/category-Po-tests: New file.
62398         * modules/unictype/category-Ps-tests: New file.
62399         * modules/unictype/category-S-tests: New file.
62400         * modules/unictype/category-Sc-tests: New file.
62401         * modules/unictype/category-Sk-tests: New file.
62402         * modules/unictype/category-Sm-tests: New file.
62403         * modules/unictype/category-So-tests: New file.
62404         * modules/unictype/category-Z-tests: New file.
62405         * modules/unictype/category-Zl-tests: New file.
62406         * modules/unictype/category-Zp-tests: New file.
62407         * modules/unictype/category-Zs-tests: New file.
62408         * modules/unictype/category-and-not-tests: New file.
62409         * modules/unictype/category-and-tests: New file.
62410         * modules/unictype/category-byname-tests: New file.
62411         * modules/unictype/category-name-tests: New file.
62412         * modules/unictype/category-none-tests: New file.
62413         * modules/unictype/category-of-tests: New file.
62414         * modules/unictype/category-or-tests: New file.
62415         * modules/unictype/category-test-withtable-tests: New file.
62416         * modules/unictype/combining-class-tests: New file.
62417         * modules/unictype/ctype-alnum-tests: New file.
62418         * modules/unictype/ctype-alpha-tests: New file.
62419         * modules/unictype/ctype-blank-tests: New file.
62420         * modules/unictype/ctype-cntrl-tests: New file.
62421         * modules/unictype/ctype-digit-tests: New file.
62422         * modules/unictype/ctype-graph-tests: New file.
62423         * modules/unictype/ctype-lower-tests: New file.
62424         * modules/unictype/ctype-print-tests: New file.
62425         * modules/unictype/ctype-punct-tests: New file.
62426         * modules/unictype/ctype-space-tests: New file.
62427         * modules/unictype/ctype-upper-tests: New file.
62428         * modules/unictype/ctype-xdigit-tests: New file.
62429         * modules/unictype/decimal-digit-tests: New file.
62430         * modules/unictype/digit-tests: New file.
62431         * modules/unictype/mirror-tests: New file.
62432         * modules/unictype/numeric-tests: New file.
62433         * modules/unictype/property-alphabetic-tests: New file.
62434         * modules/unictype/property-ascii-hex-digit-tests: New file.
62435         * modules/unictype/property-bidi-arabic-digit-tests: New file.
62436         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
62437         * modules/unictype/property-bidi-block-separator-tests: New file.
62438         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
62439         * modules/unictype/property-bidi-common-separator-tests: New file.
62440         * modules/unictype/property-bidi-control-tests: New file.
62441         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
62442         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
62443         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
62444         * modules/unictype/property-bidi-european-digit-tests: New file.
62445         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
62446         * modules/unictype/property-bidi-left-to-right-tests: New file.
62447         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
62448         * modules/unictype/property-bidi-other-neutral-tests: New file.
62449         * modules/unictype/property-bidi-pdf-tests: New file.
62450         * modules/unictype/property-bidi-segment-separator-tests: New file.
62451         * modules/unictype/property-bidi-whitespace-tests: New file.
62452         * modules/unictype/property-byname-tests: New file.
62453         * modules/unictype/property-combining-tests: New file.
62454         * modules/unictype/property-composite-tests: New file.
62455         * modules/unictype/property-currency-symbol-tests: New file.
62456         * modules/unictype/property-dash-tests: New file.
62457         * modules/unictype/property-decimal-digit-tests: New file.
62458         * modules/unictype/property-default-ignorable-code-point-tests: New file.
62459         * modules/unictype/property-deprecated-tests: New file.
62460         * modules/unictype/property-diacritic-tests: New file.
62461         * modules/unictype/property-extender-tests: New file.
62462         * modules/unictype/property-format-control-tests: New file.
62463         * modules/unictype/property-grapheme-base-tests: New file.
62464         * modules/unictype/property-grapheme-extend-tests: New file.
62465         * modules/unictype/property-grapheme-link-tests: New file.
62466         * modules/unictype/property-hex-digit-tests: New file.
62467         * modules/unictype/property-hyphen-tests: New file.
62468         * modules/unictype/property-id-continue-tests: New file.
62469         * modules/unictype/property-id-start-tests: New file.
62470         * modules/unictype/property-ideographic-tests: New file.
62471         * modules/unictype/property-ids-binary-operator-tests: New file.
62472         * modules/unictype/property-ids-trinary-operator-tests: New file.
62473         * modules/unictype/property-ignorable-control-tests: New file.
62474         * modules/unictype/property-iso-control-tests: New file.
62475         * modules/unictype/property-join-control-tests: New file.
62476         * modules/unictype/property-left-of-pair-tests: New file.
62477         * modules/unictype/property-line-separator-tests: New file.
62478         * modules/unictype/property-logical-order-exception-tests: New file.
62479         * modules/unictype/property-lowercase-tests: New file.
62480         * modules/unictype/property-math-tests: New file.
62481         * modules/unictype/property-non-break-tests: New file.
62482         * modules/unictype/property-not-a-character-tests: New file.
62483         * modules/unictype/property-numeric-tests: New file.
62484         * modules/unictype/property-other-alphabetic-tests: New file.
62485         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
62486         * modules/unictype/property-other-grapheme-extend-tests: New file.
62487         * modules/unictype/property-other-id-continue-tests: New file.
62488         * modules/unictype/property-other-id-start-tests: New file.
62489         * modules/unictype/property-other-lowercase-tests: New file.
62490         * modules/unictype/property-other-math-tests: New file.
62491         * modules/unictype/property-other-uppercase-tests: New file.
62492         * modules/unictype/property-paired-punctuation-tests: New file.
62493         * modules/unictype/property-paragraph-separator-tests: New file.
62494         * modules/unictype/property-pattern-syntax-tests: New file.
62495         * modules/unictype/property-pattern-white-space-tests: New file.
62496         * modules/unictype/property-private-use-tests: New file.
62497         * modules/unictype/property-punctuation-tests: New file.
62498         * modules/unictype/property-quotation-mark-tests: New file.
62499         * modules/unictype/property-radical-tests: New file.
62500         * modules/unictype/property-sentence-terminal-tests: New file.
62501         * modules/unictype/property-soft-dotted-tests: New file.
62502         * modules/unictype/property-space-tests: New file.
62503         * modules/unictype/property-terminal-punctuation-tests: New file.
62504         * modules/unictype/property-test-tests: New file.
62505         * modules/unictype/property-titlecase-tests: New file.
62506         * modules/unictype/property-unassigned-code-value-tests: New file.
62507         * modules/unictype/property-unified-ideograph-tests: New file.
62508         * modules/unictype/property-uppercase-tests: New file.
62509         * modules/unictype/property-variation-selector-tests: New file.
62510         * modules/unictype/property-white-space-tests: New file.
62511         * modules/unictype/property-xid-continue-tests: New file.
62512         * modules/unictype/property-xid-start-tests: New file.
62513         * modules/unictype/property-zero-width-tests: New file.
62514         * modules/unictype/scripts-tests: New file.
62515         * modules/unictype/syntax-c-ident-tests: New file.
62516         * modules/unictype/syntax-c-whitespace-tests: New file.
62517         * modules/unictype/syntax-java-ident-tests: New file.
62518         * modules/unictype/syntax-java-whitespace-tests: New file.
62519         * tests/unictype/test-bidi_byname.c: New file.
62520         * tests/unictype/test-bidi_name.c: New file.
62521         * tests/unictype/test-bidi_of.c: New file.
62522         * tests/unictype/test-bidi_test.c: New file.
62523         * tests/unictype/test-block_list.c: New file.
62524         * tests/unictype/test-block_of.c: New file.
62525         * tests/unictype/test-block_test.c: New file.
62526         * tests/unictype/test-categ_and.c: New file.
62527         * tests/unictype/test-categ_and_not.c: New file.
62528         * tests/unictype/test-categ_byname.c: New file.
62529         * tests/unictype/test-categ_name.c: New file.
62530         * tests/unictype/test-categ_none.c: New file.
62531         * tests/unictype/test-categ_of.c: New file.
62532         * tests/unictype/test-categ_or.c: New file.
62533         * tests/unictype/test-categ_test_withtable.c: New file.
62534         * tests/unictype/test-combining.c: New file.
62535         * tests/unictype/test-decdigit.c: New file.
62536         * tests/unictype/test-digit.c: New file.
62537         * tests/unictype/test-mirror.c: New file.
62538         * tests/unictype/test-numeric.c: New file.
62539         * tests/unictype/test-pr_byname.c: New file.
62540         * tests/unictype/test-pr_test.c: New file.
62541         * tests/unictype/test-predicate-part1.h: New file.
62542         * tests/unictype/test-predicate-part2.h: New file.
62543         * tests/unictype/test-scripts.c: New file.
62544         * tests/unictype/test-sy_c_ident.c: New file.
62545         * tests/unictype/test-sy_java_ident.c: New file.
62546
62547         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
62548         for Unicode 5.0.0.
62549         * tests/unictype/test-categ_Cc.c: Likewise.
62550         * tests/unictype/test-categ_Cf.c: Likewise.
62551         * tests/unictype/test-categ_Cn.c: Likewise.
62552         * tests/unictype/test-categ_Co.c: Likewise.
62553         * tests/unictype/test-categ_Cs.c: Likewise.
62554         * tests/unictype/test-categ_L.c: Likewise.
62555         * tests/unictype/test-categ_Ll.c: Likewise.
62556         * tests/unictype/test-categ_Lm.c: Likewise.
62557         * tests/unictype/test-categ_Lo.c: Likewise.
62558         * tests/unictype/test-categ_Lt.c: Likewise.
62559         * tests/unictype/test-categ_Lu.c: Likewise.
62560         * tests/unictype/test-categ_M.c: Likewise.
62561         * tests/unictype/test-categ_Mc.c: Likewise.
62562         * tests/unictype/test-categ_Me.c: Likewise.
62563         * tests/unictype/test-categ_Mn.c: Likewise.
62564         * tests/unictype/test-categ_N.c: Likewise.
62565         * tests/unictype/test-categ_Nd.c: Likewise.
62566         * tests/unictype/test-categ_Nl.c: Likewise.
62567         * tests/unictype/test-categ_No.c: Likewise.
62568         * tests/unictype/test-categ_P.c: Likewise.
62569         * tests/unictype/test-categ_Pc.c: Likewise.
62570         * tests/unictype/test-categ_Pd.c: Likewise.
62571         * tests/unictype/test-categ_Pe.c: Likewise.
62572         * tests/unictype/test-categ_Pf.c: Likewise.
62573         * tests/unictype/test-categ_Pi.c: Likewise.
62574         * tests/unictype/test-categ_Po.c: Likewise.
62575         * tests/unictype/test-categ_Ps.c: Likewise.
62576         * tests/unictype/test-categ_S.c: Likewise.
62577         * tests/unictype/test-categ_Sc.c: Likewise.
62578         * tests/unictype/test-categ_Sk.c: Likewise.
62579         * tests/unictype/test-categ_Sm.c: Likewise.
62580         * tests/unictype/test-categ_So.c: Likewise.
62581         * tests/unictype/test-categ_Z.c: Likewise.
62582         * tests/unictype/test-categ_Zl.c: Likewise.
62583         * tests/unictype/test-categ_Zp.c: Likewise.
62584         * tests/unictype/test-categ_Zs.c: Likewise.
62585         * tests/unictype/test-ctype_alnum.c: Likewise.
62586         * tests/unictype/test-ctype_alpha.c: Likewise.
62587         * tests/unictype/test-ctype_blank.c: Likewise.
62588         * tests/unictype/test-ctype_cntrl.c: Likewise.
62589         * tests/unictype/test-ctype_digit.c: Likewise.
62590         * tests/unictype/test-ctype_graph.c: Likewise.
62591         * tests/unictype/test-ctype_lower.c: Likewise.
62592         * tests/unictype/test-ctype_print.c: Likewise.
62593         * tests/unictype/test-ctype_punct.c: Likewise.
62594         * tests/unictype/test-ctype_space.c: Likewise.
62595         * tests/unictype/test-ctype_upper.c: Likewise.
62596         * tests/unictype/test-ctype_xdigit.c: Likewise.
62597         * tests/unictype/test-decdigit.h: Likewise.
62598         * tests/unictype/test-digit.h: Likewise.
62599         * tests/unictype/test-numeric.h: Likewise.
62600         * tests/unictype/test-pr_alphabetic.c: Likewise.
62601         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
62602         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
62603         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
62604         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
62605         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
62606         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
62607         * tests/unictype/test-pr_bidi_control.c: Likewise.
62608         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
62609         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
62610         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
62611         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
62612         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
62613         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
62614         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
62615         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
62616         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
62617         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
62618         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
62619         * tests/unictype/test-pr_combining.c: Likewise.
62620         * tests/unictype/test-pr_composite.c: Likewise.
62621         * tests/unictype/test-pr_currency_symbol.c: Likewise.
62622         * tests/unictype/test-pr_dash.c: Likewise.
62623         * tests/unictype/test-pr_decimal_digit.c: Likewise.
62624         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
62625         * tests/unictype/test-pr_deprecated.c: Likewise.
62626         * tests/unictype/test-pr_diacritic.c: Likewise.
62627         * tests/unictype/test-pr_extender.c: Likewise.
62628         * tests/unictype/test-pr_format_control.c: Likewise.
62629         * tests/unictype/test-pr_grapheme_base.c: Likewise.
62630         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
62631         * tests/unictype/test-pr_grapheme_link.c: Likewise.
62632         * tests/unictype/test-pr_hex_digit.c: Likewise.
62633         * tests/unictype/test-pr_hyphen.c: Likewise.
62634         * tests/unictype/test-pr_id_continue.c: Likewise.
62635         * tests/unictype/test-pr_id_start.c: Likewise.
62636         * tests/unictype/test-pr_ideographic.c: Likewise.
62637         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
62638         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
62639         * tests/unictype/test-pr_ignorable_control.c: Likewise.
62640         * tests/unictype/test-pr_iso_control.c: Likewise.
62641         * tests/unictype/test-pr_join_control.c: Likewise.
62642         * tests/unictype/test-pr_left_of_pair.c: Likewise.
62643         * tests/unictype/test-pr_line_separator.c: Likewise.
62644         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
62645         * tests/unictype/test-pr_lowercase.c: Likewise.
62646         * tests/unictype/test-pr_math.c: Likewise.
62647         * tests/unictype/test-pr_non_break.c: Likewise.
62648         * tests/unictype/test-pr_not_a_character.c: Likewise.
62649         * tests/unictype/test-pr_numeric.c: Likewise.
62650         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
62651         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
62652         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
62653         * tests/unictype/test-pr_other_id_continue.c: Likewise.
62654         * tests/unictype/test-pr_other_id_start.c: Likewise.
62655         * tests/unictype/test-pr_other_lowercase.c: Likewise.
62656         * tests/unictype/test-pr_other_math.c: Likewise.
62657         * tests/unictype/test-pr_other_uppercase.c: Likewise.
62658         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
62659         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
62660         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
62661         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
62662         * tests/unictype/test-pr_private_use.c: Likewise.
62663         * tests/unictype/test-pr_punctuation.c: Likewise.
62664         * tests/unictype/test-pr_quotation_mark.c: Likewise.
62665         * tests/unictype/test-pr_radical.c: Likewise.
62666         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
62667         * tests/unictype/test-pr_soft_dotted.c: Likewise.
62668         * tests/unictype/test-pr_space.c: Likewise.
62669         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
62670         * tests/unictype/test-pr_titlecase.c: Likewise.
62671         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
62672         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
62673         * tests/unictype/test-pr_uppercase.c: Likewise.
62674         * tests/unictype/test-pr_variation_selector.c: Likewise.
62675         * tests/unictype/test-pr_white_space.c: Likewise.
62676         * tests/unictype/test-pr_xid_continue.c: Likewise.
62677         * tests/unictype/test-pr_xid_start.c: Likewise.
62678         * tests/unictype/test-pr_zero_width.c: Likewise.
62679         * tests/unictype/test-sy_c_whitespace.c: Likewise.
62680         * tests/unictype/test-sy_java_whitespace.c: Likewise.
62681
62682 2007-11-12  Bruno Haible  <bruno@clisp.org>
62683
62684         Unicode character classification functions.
62685         * lib/unictype.h: New file.
62686         * modules/unictype/base: New file.
62687         * modules/unictype/category-L: New file.
62688         * modules/unictype/category-Lu: New file.
62689         * modules/unictype/category-Ll: New file.
62690         * modules/unictype/category-Lt: New file.
62691         * modules/unictype/category-Lm: New file.
62692         * modules/unictype/category-Lo: New file.
62693         * modules/unictype/category-M: New file.
62694         * modules/unictype/category-Mn: New file.
62695         * modules/unictype/category-Mc: New file.
62696         * modules/unictype/category-Me: New file.
62697         * modules/unictype/category-N: New file.
62698         * modules/unictype/category-Nd: New file.
62699         * modules/unictype/category-Nl: New file.
62700         * modules/unictype/category-No: New file.
62701         * modules/unictype/category-P: New file.
62702         * modules/unictype/category-Pc: New file.
62703         * modules/unictype/category-Pd: New file.
62704         * modules/unictype/category-Ps: New file.
62705         * modules/unictype/category-Pe: New file.
62706         * modules/unictype/category-Pi: New file.
62707         * modules/unictype/category-Pf: New file.
62708         * modules/unictype/category-Po: New file.
62709         * modules/unictype/category-S: New file.
62710         * modules/unictype/category-Sm: New file.
62711         * modules/unictype/category-Sc: New file.
62712         * modules/unictype/category-Sk: New file.
62713         * modules/unictype/category-So: New file.
62714         * modules/unictype/category-Z: New file.
62715         * modules/unictype/category-Zs: New file.
62716         * modules/unictype/category-Zl: New file.
62717         * modules/unictype/category-Zp: New file.
62718         * modules/unictype/category-C: New file.
62719         * modules/unictype/category-Cc: New file.
62720         * modules/unictype/category-Cf: New file.
62721         * modules/unictype/category-Cs: New file.
62722         * modules/unictype/category-Co: New file.
62723         * modules/unictype/category-Cn: New file.
62724         * modules/unictype/category-or: New file.
62725         * modules/unictype/category-of: New file.
62726         * modules/unictype/category-test: New file.
62727         * modules/unictype/category-test-withtable: New file.
62728         * modules/unictype/category-byname: New file.
62729         * modules/unictype/category-none: New file.
62730         * modules/unictype/category-and: New file.
62731         * modules/unictype/category-and-not: New file.
62732         * modules/unictype/category-name: New file.
62733         * modules/unictype/combining-class: New file.
62734         * modules/unictype/category-all: New file.
62735         * modules/unictype/bidicategory-all: New file.
62736         * modules/unictype/bidicategory-byname: New file.
62737         * modules/unictype/bidicategory-name: New file.
62738         * modules/unictype/bidicategory-of: New file.
62739         * modules/unictype/bidicategory-test: New file.
62740         * modules/unictype/decimal-digit: New file.
62741         * modules/unictype/digit: New file.
62742         * modules/unictype/numeric: New file.
62743         * modules/unictype/mirror: New file.
62744         * modules/unictype/property-white-space: New file.
62745         * modules/unictype/property-alphabetic: New file.
62746         * modules/unictype/property-other-alphabetic: New file.
62747         * modules/unictype/property-not-a-character: New file.
62748         * modules/unictype/property-default-ignorable-code-point: New file.
62749         * modules/unictype/property-other-default-ignorable-code-point: New
62750         file.
62751         * modules/unictype/property-deprecated: New file.
62752         * modules/unictype/property-logical-order-exception: New file.
62753         * modules/unictype/property-variation-selector: New file.
62754         * modules/unictype/property-private-use: New file.
62755         * modules/unictype/property-unassigned-code-value: New file.
62756         * modules/unictype/property-uppercase: New file.
62757         * modules/unictype/property-other-uppercase: New file.
62758         * modules/unictype/property-lowercase: New file.
62759         * modules/unictype/property-other-lowercase: New file.
62760         * modules/unictype/property-titlecase: New file.
62761         * modules/unictype/property-soft-dotted: New file.
62762         * modules/unictype/property-id-start: New file.
62763         * modules/unictype/property-other-id-start: New file.
62764         * modules/unictype/property-id-continue: New file.
62765         * modules/unictype/property-other-id-continue: New file.
62766         * modules/unictype/property-xid-start: New file.
62767         * modules/unictype/property-xid-continue: New file.
62768         * modules/unictype/property-pattern-white-space: New file.
62769         * modules/unictype/property-pattern-syntax: New file.
62770         * modules/unictype/property-join-control: New file.
62771         * modules/unictype/property-grapheme-base: New file.
62772         * modules/unictype/property-grapheme-extend: New file.
62773         * modules/unictype/property-other-grapheme-extend: New file.
62774         * modules/unictype/property-grapheme-link: New file.
62775         * modules/unictype/property-bidi-control: New file.
62776         * modules/unictype/property-bidi-left-to-right: New file.
62777         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
62778         * modules/unictype/property-bidi-arabic-right-to-left: New file.
62779         * modules/unictype/property-bidi-european-digit: New file.
62780         * modules/unictype/property-bidi-eur-num-separator: New file.
62781         * modules/unictype/property-bidi-eur-num-terminator: New file.
62782         * modules/unictype/property-bidi-arabic-digit: New file.
62783         * modules/unictype/property-bidi-common-separator: New file.
62784         * modules/unictype/property-bidi-block-separator: New file.
62785         * modules/unictype/property-bidi-segment-separator: New file.
62786         * modules/unictype/property-bidi-whitespace: New file.
62787         * modules/unictype/property-bidi-non-spacing-mark: New file.
62788         * modules/unictype/property-bidi-boundary-neutral: New file.
62789         * modules/unictype/property-bidi-pdf: New file.
62790         * modules/unictype/property-bidi-embedding-or-override: New file.
62791         * modules/unictype/property-bidi-other-neutral: New file.
62792         * modules/unictype/property-hex-digit: New file.
62793         * modules/unictype/property-ascii-hex-digit: New file.
62794         * modules/unictype/property-ideographic: New file.
62795         * modules/unictype/property-unified-ideograph: New file.
62796         * modules/unictype/property-radical: New file.
62797         * modules/unictype/property-ids-binary-operator: New file.
62798         * modules/unictype/property-ids-trinary-operator: New file.
62799         * modules/unictype/property-zero-width: New file.
62800         * modules/unictype/property-space: New file.
62801         * modules/unictype/property-non-break: New file.
62802         * modules/unictype/property-iso-control: New file.
62803         * modules/unictype/property-format-control: New file.
62804         * modules/unictype/property-dash: New file.
62805         * modules/unictype/property-hyphen: New file.
62806         * modules/unictype/property-punctuation: New file.
62807         * modules/unictype/property-line-separator: New file.
62808         * modules/unictype/property-paragraph-separator: New file.
62809         * modules/unictype/property-quotation-mark: New file.
62810         * modules/unictype/property-sentence-terminal: New file.
62811         * modules/unictype/property-terminal-punctuation: New file.
62812         * modules/unictype/property-currency-symbol: New file.
62813         * modules/unictype/property-math: New file.
62814         * modules/unictype/property-other-math: New file.
62815         * modules/unictype/property-paired-punctuation: New file.
62816         * modules/unictype/property-left-of-pair: New file.
62817         * modules/unictype/property-combining: New file.
62818         * modules/unictype/property-composite: New file.
62819         * modules/unictype/property-decimal-digit: New file.
62820         * modules/unictype/property-numeric: New file.
62821         * modules/unictype/property-diacritic: New file.
62822         * modules/unictype/property-extender: New file.
62823         * modules/unictype/property-ignorable-control: New file.
62824         * modules/unictype/property-test: New file.
62825         * modules/unictype/property-byname: New file.
62826         * modules/unictype/property-all: New file.
62827         * modules/unictype/scripts: New file.
62828         * modules/unictype/scripts-all: New file.
62829         * modules/unictype/block-of: New file.
62830         * modules/unictype/block-test: New file.
62831         * modules/unictype/block-list: New file.
62832         * modules/unictype/block-all: New file.
62833         * modules/unictype/syntax-c-whitespace: New file.
62834         * modules/unictype/syntax-java-whitespace: New file.
62835         * modules/unictype/syntax-c-ident: New file.
62836         * modules/unictype/syntax-java-ident: New file.
62837         * modules/unictype/ctype-alnum: New file.
62838         * modules/unictype/ctype-alpha: New file.
62839         * modules/unictype/ctype-cntrl: New file.
62840         * modules/unictype/ctype-digit: New file.
62841         * modules/unictype/ctype-graph: New file.
62842         * modules/unictype/ctype-lower: New file.
62843         * modules/unictype/ctype-print: New file.
62844         * modules/unictype/ctype-punct: New file.
62845         * modules/unictype/ctype-space: New file.
62846         * modules/unictype/ctype-upper: New file.
62847         * modules/unictype/ctype-xdigit: New file.
62848         * modules/unictype/ctype-blank: New file.
62849         * lib/unictype/bidi_byname.c: New file.
62850         * lib/unictype/bidi_name.c: New file.
62851         * lib/unictype/bidi_of.c: New file.
62852         * lib/unictype/bidi_test.c: New file.
62853         * lib/unictype/bitmap.h: New file.
62854         * lib/unictype/block_test.c: New file.
62855         * lib/unictype/blocks.c: New file.
62856         * lib/unictype/categ_C.c: New file.
62857         * lib/unictype/categ_Cc.c: New file.
62858         * lib/unictype/categ_Cf.c: New file.
62859         * lib/unictype/categ_Cn.c: New file.
62860         * lib/unictype/categ_Co.c: New file.
62861         * lib/unictype/categ_Cs.c: New file.
62862         * lib/unictype/categ_L.c: New file.
62863         * lib/unictype/categ_Ll.c: New file.
62864         * lib/unictype/categ_Lm.c: New file.
62865         * lib/unictype/categ_Lo.c: New file.
62866         * lib/unictype/categ_Lt.c: New file.
62867         * lib/unictype/categ_Lu.c: New file.
62868         * lib/unictype/categ_M.c: New file.
62869         * lib/unictype/categ_Mc.c: New file.
62870         * lib/unictype/categ_Me.c: New file.
62871         * lib/unictype/categ_Mn.c: New file.
62872         * lib/unictype/categ_N.c: New file.
62873         * lib/unictype/categ_Nd.c: New file.
62874         * lib/unictype/categ_Nl.c: New file.
62875         * lib/unictype/categ_No.c: New file.
62876         * lib/unictype/categ_P.c: New file.
62877         * lib/unictype/categ_Pc.c: New file.
62878         * lib/unictype/categ_Pd.c: New file.
62879         * lib/unictype/categ_Pe.c: New file.
62880         * lib/unictype/categ_Pf.c: New file.
62881         * lib/unictype/categ_Pi.c: New file.
62882         * lib/unictype/categ_Po.c: New file.
62883         * lib/unictype/categ_Ps.c: New file.
62884         * lib/unictype/categ_S.c: New file.
62885         * lib/unictype/categ_Sc.c: New file.
62886         * lib/unictype/categ_Sk.c: New file.
62887         * lib/unictype/categ_Sm.c: New file.
62888         * lib/unictype/categ_So.c: New file.
62889         * lib/unictype/categ_Z.c: New file.
62890         * lib/unictype/categ_Zl.c: New file.
62891         * lib/unictype/categ_Zp.c: New file.
62892         * lib/unictype/categ_Zs.c: New file.
62893         * lib/unictype/categ_and.c: New file.
62894         * lib/unictype/categ_and_not.c: New file.
62895         * lib/unictype/categ_byname.c: New file.
62896         * lib/unictype/categ_name.c: New file.
62897         * lib/unictype/categ_none.c: New file.
62898         * lib/unictype/categ_of.c: New file.
62899         * lib/unictype/categ_or.c: New file.
62900         * lib/unictype/categ_test.c: New file.
62901         * lib/unictype/combining.c: New file.
62902         * lib/unictype/ctype_alnum.c: New file.
62903         * lib/unictype/ctype_alpha.c: New file.
62904         * lib/unictype/ctype_blank.c: New file.
62905         * lib/unictype/ctype_cntrl.c: New file.
62906         * lib/unictype/ctype_digit.c: New file.
62907         * lib/unictype/ctype_graph.c: New file.
62908         * lib/unictype/ctype_lower.c: New file.
62909         * lib/unictype/ctype_print.c: New file.
62910         * lib/unictype/ctype_punct.c: New file.
62911         * lib/unictype/ctype_space.c: New file.
62912         * lib/unictype/ctype_upper.c: New file.
62913         * lib/unictype/ctype_xdigit.c: New file.
62914         * lib/unictype/decdigit.c: New file.
62915         * lib/unictype/digit.c: New file.
62916         * lib/unictype/identsyntaxmap.h: New file.
62917         * lib/unictype/mirror.c: New file.
62918         * lib/unictype/numeric.c: New file.
62919         * lib/unictype/pr_alphabetic.c: New file.
62920         * lib/unictype/pr_ascii_hex_digit.c: New file.
62921         * lib/unictype/pr_bidi_arabic_digit.c: New file.
62922         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
62923         * lib/unictype/pr_bidi_block_separator.c: New file.
62924         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
62925         * lib/unictype/pr_bidi_common_separator.c: New file.
62926         * lib/unictype/pr_bidi_control.c: New file.
62927         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
62928         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
62929         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
62930         * lib/unictype/pr_bidi_european_digit.c: New file.
62931         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
62932         * lib/unictype/pr_bidi_left_to_right.c: New file.
62933         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
62934         * lib/unictype/pr_bidi_other_neutral.c: New file.
62935         * lib/unictype/pr_bidi_pdf.c: New file.
62936         * lib/unictype/pr_bidi_segment_separator.c: New file.
62937         * lib/unictype/pr_bidi_whitespace.c: New file.
62938         * lib/unictype/pr_byname.c: New file.
62939         * lib/unictype/pr_byname.gperf: New file.
62940         * lib/unictype/pr_combining.c: New file.
62941         * lib/unictype/pr_composite.c: New file.
62942         * lib/unictype/pr_currency_symbol.c: New file.
62943         * lib/unictype/pr_dash.c: New file.
62944         * lib/unictype/pr_decimal_digit.c: New file.
62945         * lib/unictype/pr_default_ignorable_code_point.c: New file.
62946         * lib/unictype/pr_deprecated.c: New file.
62947         * lib/unictype/pr_diacritic.c: New file.
62948         * lib/unictype/pr_extender.c: New file.
62949         * lib/unictype/pr_format_control.c: New file.
62950         * lib/unictype/pr_grapheme_base.c: New file.
62951         * lib/unictype/pr_grapheme_extend.c: New file.
62952         * lib/unictype/pr_grapheme_link.c: New file.
62953         * lib/unictype/pr_hex_digit.c: New file.
62954         * lib/unictype/pr_hyphen.c: New file.
62955         * lib/unictype/pr_id_continue.c: New file.
62956         * lib/unictype/pr_id_start.c: New file.
62957         * lib/unictype/pr_ideographic.c: New file.
62958         * lib/unictype/pr_ids_binary_operator.c: New file.
62959         * lib/unictype/pr_ids_trinary_operator.c: New file.
62960         * lib/unictype/pr_ignorable_control.c: New file.
62961         * lib/unictype/pr_iso_control.c: New file.
62962         * lib/unictype/pr_join_control.c: New file.
62963         * lib/unictype/pr_left_of_pair.c: New file.
62964         * lib/unictype/pr_line_separator.c: New file.
62965         * lib/unictype/pr_logical_order_exception.c: New file.
62966         * lib/unictype/pr_lowercase.c: New file.
62967         * lib/unictype/pr_math.c: New file.
62968         * lib/unictype/pr_non_break.c: New file.
62969         * lib/unictype/pr_not_a_character.c: New file.
62970         * lib/unictype/pr_numeric.c: New file.
62971         * lib/unictype/pr_other_alphabetic.c: New file.
62972         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
62973         * lib/unictype/pr_other_grapheme_extend.c: New file.
62974         * lib/unictype/pr_other_id_continue.c: New file.
62975         * lib/unictype/pr_other_id_start.c: New file.
62976         * lib/unictype/pr_other_lowercase.c: New file.
62977         * lib/unictype/pr_other_math.c: New file.
62978         * lib/unictype/pr_other_uppercase.c: New file.
62979         * lib/unictype/pr_paired_punctuation.c: New file.
62980         * lib/unictype/pr_paragraph_separator.c: New file.
62981         * lib/unictype/pr_pattern_syntax.c: New file.
62982         * lib/unictype/pr_pattern_white_space.c: New file.
62983         * lib/unictype/pr_private_use.c: New file.
62984         * lib/unictype/pr_punctuation.c: New file.
62985         * lib/unictype/pr_quotation_mark.c: New file.
62986         * lib/unictype/pr_radical.c: New file.
62987         * lib/unictype/pr_sentence_terminal.c: New file.
62988         * lib/unictype/pr_soft_dotted.c: New file.
62989         * lib/unictype/pr_space.c: New file.
62990         * lib/unictype/pr_terminal_punctuation.c: New file.
62991         * lib/unictype/pr_test.c: New file.
62992         * lib/unictype/pr_titlecase.c: New file.
62993         * lib/unictype/pr_unassigned_code_value.c: New file.
62994         * lib/unictype/pr_unified_ideograph.c: New file.
62995         * lib/unictype/pr_uppercase.c: New file.
62996         * lib/unictype/pr_variation_selector.c: New file.
62997         * lib/unictype/pr_white_space.c: New file.
62998         * lib/unictype/pr_xid_continue.c: New file.
62999         * lib/unictype/pr_xid_start.c: New file.
63000         * lib/unictype/pr_zero_width.c: New file.
63001         * lib/unictype/scripts.c: New file.
63002         * lib/unictype/sy_c_ident.c: New file.
63003         * lib/unictype/sy_c_whitespace.c: New file.
63004         * lib/unictype/sy_java_ident.c: New file.
63005         * lib/unictype/sy_java_whitespace.c: New file.
63006
63007         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
63008         Unicode 5.0.0.
63009         * lib/unictype/blocks.h: Likewise.
63010         * lib/unictype/categ_C.h: Likewise.
63011         * lib/unictype/categ_Cc.h: Likewise.
63012         * lib/unictype/categ_Cf.h: Likewise.
63013         * lib/unictype/categ_Cn.h: Likewise.
63014         * lib/unictype/categ_Co.h: Likewise.
63015         * lib/unictype/categ_Cs.h: Likewise.
63016         * lib/unictype/categ_L.h: Likewise.
63017         * lib/unictype/categ_Ll.h: Likewise.
63018         * lib/unictype/categ_Lm.h: Likewise.
63019         * lib/unictype/categ_Lo.h: Likewise.
63020         * lib/unictype/categ_Lt.h: Likewise.
63021         * lib/unictype/categ_Lu.h: Likewise.
63022         * lib/unictype/categ_M.h: Likewise.
63023         * lib/unictype/categ_Mc.h: Likewise.
63024         * lib/unictype/categ_Me.h: Likewise.
63025         * lib/unictype/categ_Mn.h: Likewise.
63026         * lib/unictype/categ_N.h: Likewise.
63027         * lib/unictype/categ_Nd.h: Likewise.
63028         * lib/unictype/categ_Nl.h: Likewise.
63029         * lib/unictype/categ_No.h: Likewise.
63030         * lib/unictype/categ_P.h: Likewise.
63031         * lib/unictype/categ_Pc.h: Likewise.
63032         * lib/unictype/categ_Pd.h: Likewise.
63033         * lib/unictype/categ_Pe.h: Likewise.
63034         * lib/unictype/categ_Pf.h: Likewise.
63035         * lib/unictype/categ_Pi.h: Likewise.
63036         * lib/unictype/categ_Po.h: Likewise.
63037         * lib/unictype/categ_Ps.h: Likewise.
63038         * lib/unictype/categ_S.h: Likewise.
63039         * lib/unictype/categ_Sc.h: Likewise.
63040         * lib/unictype/categ_Sk.h: Likewise.
63041         * lib/unictype/categ_Sm.h: Likewise.
63042         * lib/unictype/categ_So.h: Likewise.
63043         * lib/unictype/categ_Z.h: Likewise.
63044         * lib/unictype/categ_Zl.h: Likewise.
63045         * lib/unictype/categ_Zp.h: Likewise.
63046         * lib/unictype/categ_Zs.h: Likewise.
63047         * lib/unictype/categ_of.h: Likewise.
63048         * lib/unictype/combining.h: Likewise.
63049         * lib/unictype/ctype_alnum.h: Likewise.
63050         * lib/unictype/ctype_alpha.h: Likewise.
63051         * lib/unictype/ctype_blank.h: Likewise.
63052         * lib/unictype/ctype_cntrl.h: Likewise.
63053         * lib/unictype/ctype_digit.h: Likewise.
63054         * lib/unictype/ctype_graph.h: Likewise.
63055         * lib/unictype/ctype_lower.h: Likewise.
63056         * lib/unictype/ctype_print.h: Likewise.
63057         * lib/unictype/ctype_punct.h: Likewise.
63058         * lib/unictype/ctype_space.h: Likewise.
63059         * lib/unictype/ctype_upper.h: Likewise.
63060         * lib/unictype/ctype_xdigit.h: Likewise.
63061         * lib/unictype/decdigit.h: Likewise.
63062         * lib/unictype/digit.h: Likewise.
63063         * lib/unictype/mirror.h: Likewise.
63064         * lib/unictype/numeric.h: Likewise.
63065         * lib/unictype/pr_alphabetic.h: Likewise.
63066         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
63067         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
63068         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
63069         * lib/unictype/pr_bidi_block_separator.h: Likewise.
63070         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
63071         * lib/unictype/pr_bidi_common_separator.h: Likewise.
63072         * lib/unictype/pr_bidi_control.h: Likewise.
63073         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
63074         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
63075         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
63076         * lib/unictype/pr_bidi_european_digit.h: Likewise.
63077         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
63078         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
63079         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
63080         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
63081         * lib/unictype/pr_bidi_pdf.h: Likewise.
63082         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
63083         * lib/unictype/pr_bidi_whitespace.h: Likewise.
63084         * lib/unictype/pr_combining.h: Likewise.
63085         * lib/unictype/pr_composite.h: Likewise.
63086         * lib/unictype/pr_currency_symbol.h: Likewise.
63087         * lib/unictype/pr_dash.h: Likewise.
63088         * lib/unictype/pr_decimal_digit.h: Likewise.
63089         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
63090         * lib/unictype/pr_deprecated.h: Likewise.
63091         * lib/unictype/pr_diacritic.h: Likewise.
63092         * lib/unictype/pr_extender.h: Likewise.
63093         * lib/unictype/pr_format_control.h: Likewise.
63094         * lib/unictype/pr_grapheme_base.h: Likewise.
63095         * lib/unictype/pr_grapheme_extend.h: Likewise.
63096         * lib/unictype/pr_grapheme_link.h: Likewise.
63097         * lib/unictype/pr_hex_digit.h: Likewise.
63098         * lib/unictype/pr_hyphen.h: Likewise.
63099         * lib/unictype/pr_id_continue.h: Likewise.
63100         * lib/unictype/pr_id_start.h: Likewise.
63101         * lib/unictype/pr_ideographic.h: Likewise.
63102         * lib/unictype/pr_ids_binary_operator.h: Likewise.
63103         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
63104         * lib/unictype/pr_ignorable_control.h: Likewise.
63105         * lib/unictype/pr_iso_control.h: Likewise.
63106         * lib/unictype/pr_join_control.h: Likewise.
63107         * lib/unictype/pr_left_of_pair.h: Likewise.
63108         * lib/unictype/pr_line_separator.h: Likewise.
63109         * lib/unictype/pr_logical_order_exception.h: Likewise.
63110         * lib/unictype/pr_lowercase.h: Likewise.
63111         * lib/unictype/pr_math.h: Likewise.
63112         * lib/unictype/pr_non_break.h: Likewise.
63113         * lib/unictype/pr_not_a_character.h: Likewise.
63114         * lib/unictype/pr_numeric.h: Likewise.
63115         * lib/unictype/pr_other_alphabetic.h: Likewise.
63116         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
63117         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
63118         * lib/unictype/pr_other_id_continue.h: Likewise.
63119         * lib/unictype/pr_other_id_start.h: Likewise.
63120         * lib/unictype/pr_other_lowercase.h: Likewise.
63121         * lib/unictype/pr_other_math.h: Likewise.
63122         * lib/unictype/pr_other_uppercase.h: Likewise.
63123         * lib/unictype/pr_paired_punctuation.h: Likewise.
63124         * lib/unictype/pr_paragraph_separator.h: Likewise.
63125         * lib/unictype/pr_pattern_syntax.h: Likewise.
63126         * lib/unictype/pr_pattern_white_space.h: Likewise.
63127         * lib/unictype/pr_private_use.h: Likewise.
63128         * lib/unictype/pr_punctuation.h: Likewise.
63129         * lib/unictype/pr_quotation_mark.h: Likewise.
63130         * lib/unictype/pr_radical.h: Likewise.
63131         * lib/unictype/pr_sentence_terminal.h: Likewise.
63132         * lib/unictype/pr_soft_dotted.h: Likewise.
63133         * lib/unictype/pr_space.h: Likewise.
63134         * lib/unictype/pr_terminal_punctuation.h: Likewise.
63135         * lib/unictype/pr_titlecase.h: Likewise.
63136         * lib/unictype/pr_unassigned_code_value.h: Likewise.
63137         * lib/unictype/pr_unified_ideograph.h: Likewise.
63138         * lib/unictype/pr_uppercase.h: Likewise.
63139         * lib/unictype/pr_variation_selector.h: Likewise.
63140         * lib/unictype/pr_white_space.h: Likewise.
63141         * lib/unictype/pr_xid_continue.h: Likewise.
63142         * lib/unictype/pr_xid_start.h: Likewise.
63143         * lib/unictype/pr_zero_width.h: Likewise.
63144         * lib/unictype/scripts.h: Likewise.
63145         * lib/unictype/scripts_byname.gperf: Likewise.
63146         * lib/unictype/sy_c_ident.h: Likewise.
63147         * lib/unictype/sy_c_whitespace.h: Likewise.
63148         * lib/unictype/sy_java_ident.h: Likewise.
63149         * lib/unictype/sy_java_whitespace.h: Likewise.
63150
63151         * lib/unictype/Makefile: New file.
63152         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
63153         glibc.
63154         * lib/unictype/3level.h: New file, copied from glibc.
63155         * lib/unictype/3levelbit.h: New file.
63156
63157 2007-11-11  Bruno Haible  <bruno@clisp.org>
63158
63159         * modules/gperf: New file.
63160         * modules/iconv_open (Depends-on): Add it.
63161         (Makefile.am): Remove the GPERF definition.
63162
63163 2007-11-11  Bruno Haible  <bruno@clisp.org>
63164
63165         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
63166         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
63167
63168 2007-11-11  Bruno Haible  <bruno@clisp.org>
63169
63170         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
63171         (usage): Remove function.
63172
63173 2007-11-11  Bruno Haible  <bruno@clisp.org>
63174
63175         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
63176         gl_FUNC_CEILF_LIBS.
63177         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
63178         gl_FUNC_CEIL_LIBS.
63179         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
63180         gl_FUNC_CEILL_LIBS.
63181         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
63182         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
63183         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
63184
63185 2007-11-11  Bruno Haible  <bruno@clisp.org>
63186
63187         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
63188         roundf were declared but do not exist on functions.
63189         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
63190         roundl were declared but do not exist on functions.
63191         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
63192         HAVE_FLOORL_AND_CEILL, respectively.
63193         Needed for Sun C on Solaris 10.
63194
63195 2007-11-11  Bruno Haible  <bruno@clisp.org>
63196
63197         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
63198         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
63199         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
63200         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
63201         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
63202         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
63203         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
63204         HAVE_DECL_ROUNDF.
63205         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
63206         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
63207         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
63208         of HAVE_DECL_ROUND*.
63209         * modules/math (Makefile.am): Update.
63210
63211 2007-11-10  Bruno Haible  <bruno@clisp.org>
63212
63213         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
63214         ptrdiff_t as m4/intl.m4.
63215
63216 2007-11-10  Jim Meyering  <meyering@redhat.com>
63217
63218         Avoid link failure for the argmatch test.
63219         * tests/test-argmatch.c (usage): Define function to avoid a link
63220         failure: argmatch_die requires a usage function.
63221
63222 2007-11-09  Bruno Haible  <bruno@clisp.org>
63223
63224         * doc/functions/snprintf.texi: Mention BeOS deficiency.
63225         * doc/functions/vsnprintf.texi: Likewise.
63226         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
63227         with a size argument < 2.
63228
63229 2007-11-09  Bruno Haible  <bruno@clisp.org>
63230
63231         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
63232         buffer. Fixes an inefficiency introduced on 2007-11-03.
63233
63234 2007-11-09  Bruno Haible  <bruno@clisp.org>
63235
63236         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
63237         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
63238
63239 2007-11-08  Jim Meyering  <meyering@redhat.com>
63240
63241         Change cache variable name prefix "jm_" to "gl_" everywhere.
63242         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
63243         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
63244         * m4/uptime.m4: s/gl_/jm_/
63245
63246 2007-11-07  Bruno Haible  <bruno@clisp.org>
63247
63248         Update to GNU gettext 0.17.
63249         * m4/intl.m4: Update to GNU gettext 0.17.
63250         * m4/po.m4: Likewise.
63251         * modules/gettext (Files): Remove m4/ulonglong.m4.
63252         (configure.ac): Require gettext infrastructure from version 0.17.
63253
63254 2007-11-06  Bruno Haible  <bruno@clisp.org>
63255
63256         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
63257         symbolic values are not defined in a public header.
63258         * lib/freadable.c (freadable) [QNX]: Likewise.
63259         * lib/freadahead.c (freadahead) [QNX]: Likewise.
63260         * lib/freading.c (freading) [QNX]: Likewise.
63261         * lib/fseterr.c (fseterr) [QNX]: Likewise.
63262         * lib/fwritable.c (fwritable) [QNX]: Likewise.
63263         * lib/fwriting.c (fwriting) [QNX]: Likewise.
63264         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
63265         Reported by Alain Magloire.
63266
63267         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
63268
63269 2007-11-05  Bruno Haible  <bruno@clisp.org>
63270
63271         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
63272         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
63273         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
63274         Reported by Eric Blake.
63275
63276 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63277             Bruno Haible  <bruno@clisp.org>
63278
63279         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
63280         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
63281         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
63282         (malloc): Undefine also before including <stdlib.h>.
63283         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
63284         Needed on OSF/1 4.0.
63285
63286 2007-11-05  Jim Meyering  <meyering@redhat.com>
63287
63288         git-version-gen: sync from coreutils.
63289         * build-aux/git-version-gen: Add comments.
63290         Change the first '-' to '.' in the snapshot version string,
63291         e.g., 6.9-377-08144 -> 6.9.377-08144
63292         Remove first parameter.
63293         Don't declare a version "-dirty" merely because a time
63294         stamp has changed.
63295
63296 2007-11-04  Bruno Haible  <bruno@clisp.org>
63297
63298         * lib/lock.h: Protect all macro definitions containing an 'if'
63299         statement through a "do { ... } while (0)".
63300         * lib/tls.h: Likewise.
63301
63302 2007-11-04  Bruno Haible  <bruno@clisp.org>
63303
63304         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
63305
63306 2007-11-04  Bruno Haible  <bruno@clisp.org>
63307
63308         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
63309         * modules/fprintf-posix (Depends-on): Add nocrash.
63310         * modules/snprintf-posix (Depends-on): Likewise.
63311         * modules/sprintf-posix (Depends-on): Likewise.
63312         * modules/vasnprintf-posix (Depends-on): Likewise.
63313         * modules/vasprintf-posix (Depends-on): Likewise.
63314         * modules/vfprintf-posix (Depends-on): Likewise.
63315         * modules/vsnprintf-posix (Depends-on): Likewise.
63316         * modules/vsprintf-posix (Depends-on): Likewise.
63317         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63318         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63319         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63320         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63321         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63322         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63323         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63324
63325 2007-11-04  Bruno Haible  <bruno@clisp.org>
63326
63327         * modules/nocrash: New file.
63328         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
63329         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
63330
63331 2007-11-04  Bruno Haible  <bruno@clisp.org>
63332
63333         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
63334         precision handling.
63335         * tests/test-vasprintf-posix.c (test_function): Likewise.
63336         * tests/test-snprintf-posix.h (test_function): Likewise.
63337         * tests/test-sprintf-posix.h (test_function): Likewise.
63338
63339         Fix *printf behaviour for large precisions on mingw and BeOS.
63340         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
63341         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
63342         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
63343         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63344         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63345         gl_PRINTF_PRECISION and test its result. Invoke
63346         gl_PREREQ_VASNPRINTF_PRECISION.
63347         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63348         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63349         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63350         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63351         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63352         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63353         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63354         * doc/functions/fprintf.texi: Update.
63355         * doc/functions/printf.texi: Update.
63356         * doc/functions/snprintf.texi: Update.
63357         * doc/functions/sprintf.texi: Update.
63358         * doc/functions/vfprintf.texi: Update.
63359         * doc/functions/vprintf.texi: Update.
63360         * doc/functions/vsnprintf.texi: Update.
63361         * doc/functions/vsprintf.texi: Update.
63362
63363 2007-11-04  Bruno Haible  <bruno@clisp.org>
63364
63365         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
63366
63367 2007-11-04  Bruno Haible  <bruno@clisp.org>
63368
63369         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
63370         Reported by Sylvain Beucler <beuc@gnu.org>.
63371
63372 2007-11-03  Bruno Haible  <bruno@clisp.org>
63373
63374         * tests/test-fprintf-posix2.sh: New file.
63375         * tests/test-fprintf-posix2.c: New file.
63376         * modules/fprintf-posix-tests (Files): Add them.
63377         (TESTS): Add test-fprintf-posix2.sh.
63378         (configure.ac): Check for getrlimit and setrlimit.
63379         (check_PROGRAMS): Add test-fprintf-posix2.
63380
63381         * tests/test-printf-posix2.sh: New file.
63382         * tests/test-printf-posix2.c: New file.
63383         * modules/printf-posix-tests (Files): Add them.
63384         (TESTS): Add test-printf-posix2.sh.
63385         (configure.ac): Check for getrlimit and setrlimit.
63386         (check_PROGRAMS): Add test-printf-posix2.
63387
63388         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
63389         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
63390         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
63391         (decode_double): New function, copied from decode_long_double.
63392         (scale10_round_decimal_decoded): New function, extracted from
63393         scale10_round_decimal_long_double.
63394         (scale10_round_decimal_long_double): Use it.
63395         (scale10_round_decimal_double): New function.
63396         (floorlog10): New function.
63397         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
63398         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
63399         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63400         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63401         gl_PRINTF_ENOMEM and test its result. Invoke
63402         gl_PREREQ_VASNPRINTF_ENOMEM.
63403         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63404         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63405         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63406         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63407         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63408         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63409         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63410         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
63411         * modules/snprintf-posix (Depends-on): Likewise.
63412         * modules/sprintf-posix (Depends-on): Likewise.
63413         * modules/vasnprintf-posix (Depends-on): Likewise.
63414         * modules/vasprintf-posix (Depends-on): Likewise.
63415         * modules/vfprintf-posix (Depends-on): Likewise.
63416         * modules/vsnprintf-posix (Depends-on): Likewise.
63417         * modules/vsprintf-posix (Depends-on): Likewise.
63418         * doc/functions/fprintf.texi: Update.
63419         * doc/functions/printf.texi: Update.
63420         * doc/functions/snprintf.texi: Update.
63421         * doc/functions/sprintf.texi: Update.
63422         * doc/functions/vfprintf.texi: Update.
63423         * doc/functions/vprintf.texi: Update.
63424         * doc/functions/vsnprintf.texi: Update.
63425         * doc/functions/vsprintf.texi: Update.
63426
63427 2007-11-03  Bruno Haible  <bruno@clisp.org>
63428
63429         * modules/frexp-nolibm-tests: New file.
63430
63431         * modules/frexp-nolibm: New file.
63432         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
63433
63434 2007-11-03  Bruno Haible  <bruno@clisp.org>
63435
63436         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
63437         value is C99 compliant.
63438         Needed for OSF/1 5.1.
63439
63440 2007-11-03  Bruno Haible  <bruno@clisp.org>
63441
63442         Fix out-of-memory handling of vasnprintf.
63443         * lib/printf-parse.c: Include <errno.h>.
63444         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
63445         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
63446         is already set.
63447
63448 2007-11-02  Eric Blake  <ebb9@byu.net>
63449
63450         Fix tests on cygwin.
63451         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
63452
63453 2007-11-01  Bruno Haible  <bruno@clisp.org>
63454
63455         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
63456         warning.
63457         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
63458         needed for POSIX compatibility.
63459
63460 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63461
63462         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
63463         for compatibility with GNU.
63464
63465 2007-11-01  Bruno Haible  <bruno@clisp.org>
63466
63467         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
63468         (putenv): Renamed from rpl_putenv. Change argument type from
63469         'const char *' to 'char *'.
63470         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
63471         of defining putenv in config.h, just set REPLACE_PUTENV.
63472         * modules/putenv (Depends-on): Add stdlib.
63473         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63474         (Include): Use <stdlib.h>.
63475         * lib/stdlib.in.h (putenv): New declaration.
63476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
63477         REPLACE_PUTENV.
63478         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
63479         REPLACE_PUTENV.
63480         Needed for MacOS X 10.5.0.
63481         Reported by Peter O'Gorman <peter@pogma.com>.
63482
63483 2007-11-01  Jim Meyering  <meyering@redhat.com>
63484
63485         Treat an empty date string exactly like "0".
63486         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
63487         if the remaining date string (to be parsed) is empty, use "0".
63488         Reported by Mischa Molhoek and discussed in this thread:
63489         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
63490
63491 2007-10-31  Bruno Haible  <bruno@clisp.org>
63492
63493         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
63494         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
63495         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
63496         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
63497         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
63498         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
63499
63500 2007-10-31  Bruno Haible  <bruno@clisp.org>
63501
63502         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
63503         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
63504         (AC_TYPE_LONG_LONG_INT): Use it.
63505         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
63506         it as well.
63507         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
63508         to m4/longlong.m4.
63509         * modules/stdint (Files): Remove m4/ulonglong.m4.
63510         * modules/strtoull (Files): Use m4/longlong.m4 instead of
63511         m4/ulonglong.m4.
63512         * modules/strtoumax (Files): Likewise.
63513
63514 2007-10-30  Bruno Haible  <bruno@clisp.org>
63515
63516         * modules/xvasprintf-posix: New file.
63517         Suggested by Eric Blake.
63518
63519 2007-10-30  Bruno Haible  <bruno@clisp.org>
63520
63521         * modules/xprintf-posix-tests: New file.
63522         * tests/test-xprintf-posix.sh: New file.
63523         * tests/test-xprintf-posix.c: New file.
63524         * tests/test-xfprintf-posix.c: New file.
63525
63526         * modules/xprintf-posix: New file.
63527
63528 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63529
63530         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
63531         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
63532         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
63533
63534 2007-10-29  Bruno Haible  <bruno@clisp.org>
63535
63536         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
63537         contain the special marker '_cv_'.
63538         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
63539         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
63540         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
63541         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
63542         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
63543         Reported by Ralf Wildenhues.
63544
63545 2007-10-29  Bruno Haible  <bruno@clisp.org>
63546
63547         * gnulib-tool (func_import): When --lgpl is not specified, set
63548         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
63549         GPLv3.
63550         Reported by Simon Josefsson.
63551
63552 2007-10-28  Bruno Haible  <bruno@clisp.org>
63553
63554         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
63555         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
63556         HAVE_DECL_ISFINITE.
63557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63558         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
63559         HAVE_DECL_ISFINITE.
63560
63561 2007-10-28  Bruno Haible  <bruno@clisp.org>
63562
63563         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
63564         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
63565
63566 2007-10-28  Bruno Haible  <bruno@clisp.org>
63567
63568         Fix link errors with Sun C 5.0 on Solaris 10.
63569         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
63570         function is declared but not present in the compiler's libm.
63571         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
63572         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
63573         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
63574         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
63575         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
63576         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
63577         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
63578         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63579         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
63580         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
63581         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
63582         HAVE_DECL_FLOORL.
63583
63584 2007-10-28  Bruno Haible  <bruno@clisp.org>
63585
63586         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
63587         gl_FUNC_FLOORL. Cache the result.
63588         (gl_FUNC_FLOORL): Use it.
63589         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
63590         gl_FUNC_CEILL. Cache the result.
63591         (gl_FUNC_CEILL): Use it.
63592
63593         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
63594         gl_FUNC_FLOOR. Cache the result.
63595         (gl_FUNC_FLOOR): Use it.
63596         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
63597         gl_FUNC_CEIL. Cache the result.
63598         (gl_FUNC_CEIL): Use it.
63599
63600         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
63601         gl_FUNC_FLOORF. Cache the result.
63602         (gl_FUNC_FLOORF): Use it.
63603         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
63604         gl_FUNC_CEILF. Cache the result.
63605         (gl_FUNC_CEILF): Use it.
63606
63607 2007-10-28  Bruno Haible  <bruno@clisp.org>
63608
63609         * gnulib-tool: Allow specifying the LGPL version number through
63610         --lgpl=2 or --lgpl=3.
63611         (func_usage): Document --lgpl with argument.
63612         Handle --lgpl=... arguments.
63613         (func_import): Recognize also gl_LGPL calls with an argument. When
63614         --lgpl=2 is used and the module's license is just LGPL, report an
63615         error. Set sed_transform_lib_file according to the lgpl variable. In
63616         the generated files, use --lgpl or gl_LGPL invocations with argument,
63617         if necessary.
63618         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
63619         an LGPv2+ license.
63620         * doc/gnulib-tool.texi (Modified imports): Update explanation of
63621         gl_LGPL macro.
63622
63623 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63624             Bruno Haible  <bruno@clisp.org>
63625
63626         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
63627         (u16_uctomb_aux): Likewise.
63628         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
63629         !HAVE_INLINE.
63630         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
63631
63632 2007-10-28  Bruno Haible  <bruno@clisp.org>
63633
63634         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
63635         Invoke AM_GETTEXT_OPTION if it exists.
63636         * modules/vasprintf: Likewise.
63637         * modules/verror: Likewise.
63638         * modules/xprintf: Likewise.
63639         * modules/xvasprintf: Likewise.
63640
63641 2007-10-27  Ben Pfaff  <blp@gnu.org>
63642
63643         * lib/math.in.h: Define isfinite macro and prototypes for
63644         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
63645         implementations.
63646         * m4/math_h.m4: New substitutions for isfinite module.
63647         * lib/isfinite.c: New file.
63648         * m4/isfinite.m4: New file.
63649         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
63650         * modules/isfinite: New file.
63651         * modules/isfinite-tests: New file.
63652         * tests/tests-isfinite.c: New file.
63653         * doc/functions/isfinite.texi: Mention isfinite module.
63654         * MODULES.html.sh: Mention new module.
63655
63656 2007-10-27  Ben Pfaff  <blp@gnu.org>
63657
63658         Ralf Wildenhues reported that Tru64 4.0D declares the round
63659         functions but does not have definitions.
63660         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
63661         cannot be found in any library, set the output variable to
63662         "missing" instead of "".
63663         * m4/round.m4: Also use our substitute if we cannot find round in
63664         any library, even if it is declared.
63665         * m4/roundf.m4: Likewise for roundf.
63666         * m4/roundl.m4: Likewise for roundl.
63667         * lib/math.in.h: Undefine roundf, round, roundl before defining
63668         their replacements, to allow for hypothetical systems where these
63669         may be defined as macros but not available in libraries.
63670
63671 2007-10-27  Bruno Haible  <bruno@clisp.org>
63672
63673         * doc/gnulib.texi: Invoke @firstparagraphindent.
63674         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
63675         changes in gnulib.
63676         (Source changes): New section.
63677
63678 2007-10-26  Bruno Haible  <bruno@clisp.org>
63679
63680         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
63681         borrowed from autoconf.
63682
63683 2007-10-26  Bruno Haible  <bruno@clisp.org>
63684
63685         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
63686         strerror returned the empty string. Needed on HP-UX 11.00.
63687
63688 2007-10-24  Micah Cowan  <micah@cowan.name>
63689
63690         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
63691         * build-aux/bootstrap: Remove support for now-unnecessary option,
63692         --cvs-user, and envvars CVS_USER, CVS_RSH.
63693
63694 2007-10-24  Jim Meyering  <meyering@redhat.com>
63695
63696         Avoid diagnostics from sha1sum when there is no cached checksum.
63697         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
63698         if the po.s1 file hasn't been created yet.
63699
63700         * build-aux/bootstrap: Sync from coreutils:
63701         2007-10-24  Jim Meyering  <meyering@redhat.com>
63702         Get gnulib from the git repository, not from an obsolete cvs one.
63703         * build-aux/bootstrap: Suggestion from Micah Cowan.
63704         2007-10-04  Jim Meyering  <jim@meyering.net>
63705         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
63706         (update_po_files): Work also when there are no .po files in po/.
63707
63708 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63709
63710         * README: Append ".git" to git and cg examples.
63711         Problem reported by Benoit Sigoure.
63712
63713 2007-10-23  Micah Cowan  <micah@cowan.name>
63714
63715         * users.txt: Add wget.
63716
63717 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63718
63719         Fix linking of some unistdio tests on FreeBSD.
63720         * modules/unistdio/u16-vsnprintf-tests
63721         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
63722         * modules/unistdio/u16-vsprintf-tests
63723         (test_u16_vsnprintf1_LDADD): Likewise.
63724         * modules/unistdio/u32-vsnprintf-tests
63725         (test_u32_vsnprintf1_LDADD): Likewise.
63726         * modules/unistdio/u32-vsprintf-tests
63727         (test_u32_vsprintf1_LDADD): Likewise.
63728         * modules/unistdio/u8-vsnprintf-tests
63729         (test_u8_vsnprintf1_LDADD): Likewise.
63730         * modules/unistdio/u8-vsprintf-tests
63731         (test_u8_vsprintf1_LDADD): Likewise.
63732         * modules/unistdio/ulc-vsnprintf-tests
63733         (test_ulc_vsnprintf1_LDADD): Likewise.
63734         * modules/unistdio/ulc-vsprintf-tests
63735         (test_ulc_vsprintf1_LDADD): Likewise.
63736
63737         Fix linking of some uniconv tests on FreeBSD.
63738         * modules/uniconv/u16-conv-from-enc-tests
63739         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
63740         * modules/uniconv/u16-conv-to-enc-tests
63741         (test_u16_conv_to_enc_LDADD): Likewise.
63742         * modules/uniconv/u16-strconv-from-enc-tests
63743         (test_u16_strconv_from_enc_LDADD): Likewise.
63744         * modules/uniconv/u16-strconv-to-enc-tests
63745         (test_u16_strconv_to_enc_LDADD): Likewise.
63746         * modules/uniconv/u32-conv-from-enc-tests
63747         (test_u32_conv_from_enc_LDADD): Likewise.
63748         * modules/uniconv/u32-conv-to-enc-tests
63749         (test_u32_conv_to_enc_LDADD): Likewise.
63750         * modules/uniconv/u32-strconv-from-enc-tests
63751         (test_u32_strconv_from_enc_LDADD): Likewise.
63752         * modules/uniconv/u32-strconv-to-enc-tests
63753         (test_u32_strconv_to_enc_LDADD): Likewise.
63754         * modules/uniconv/u8-conv-from-enc-tests
63755         (test_u8_conv_from_enc_LDADD): Likewise.
63756         * modules/uniconv/u8-conv-to-enc-tests
63757         (test_u8_conv_to_enc_LDADD): Likewise.
63758         * modules/uniconv/u8-strconv-from-enc-tests
63759         (test_u8_strconv_from_enc_LDADD): Likewise.
63760         * modules/uniconv/u8-strconv-to-enc-tests
63761         (test_u8_strconv_to_enc_LDADD): Likewise.
63762
63763 2007-10-22  Bruno Haible  <bruno@clisp.org>
63764
63765         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
63766         size.
63767
63768 2007-10-22  Eric Blake  <ebb9@byu.net>
63769
63770         Tweak x*printf documentation.
63771         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
63772         variable name and comments.
63773         Suggested by Bruno Haible.
63774
63775 2007-10-22  Bruno Haible  <bruno@clisp.org>
63776
63777         * lib/acl.c (copy_acl): Fix file name in comment.
63778
63779 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63780
63781         Fix Tru64 problem with stdbool.h.
63782         * lib/stdbool.in.h (false, true):
63783         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
63784         Don't declare as an enum in this situation; it runs afoul of Tru64.
63785         Problem reported by Steven M. Schweda in
63786         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
63787
63788 2007-10-22  Eric Blake  <ebb9@byu.net>
63789
63790         Also wrap vf?printf.
63791         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
63792         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
63793         (xvprintf, xvfprintf): New functions.
63794
63795 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63796
63797         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
63798         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
63799
63800         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
63801         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
63802
63803 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63804
63805         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
63806         by Bruno Haible.
63807
63808 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63809
63810         * lib/getloadavg.c
63811         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
63812         Undef `sys' after including sys/table.h, for Tru64 4.0D.
63813
63814         * tests/test-i-ring.c: Work for C89.
63815
63816 2007-10-22  Bruno Haible  <bruno@clisp.org>
63817
63818         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
63819         -1u, in preprocessor expression, so that we don't test for the bug
63820         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
63821         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
63822
63823 2007-10-22  Eric Blake  <ebb9@byu.net>
63824
63825         * tests/test-yesno.sh: Silence stderr during test.
63826
63827 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63828
63829         * modules/crypto/gc-camellia: New file.
63830
63831         * m4/gc-camellia.m4: New file.
63832
63833         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
63834
63835         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
63836
63837 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63838
63839         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
63840         --help to stdout.  Reported by sms@antinode.org (Steven
63841         M. Schweda).
63842
63843 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63844
63845         * users.txt: Fix link to libksba.
63846
63847 2007-10-21  Ben Pfaff  <blp@gnu.org>
63848
63849         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
63850         round.c roundf implementation that depends on floorf and ceilf to
63851         be tested unconditionally.
63852
63853 2007-10-21  Ben Pfaff  <blp@gnu.org>
63854
63855         * m4/check-libm-func.m4: Removed.
63856         * m4/check-math-lib.m4: New file.
63857         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
63858         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
63859         definition and lack of AC_LIBOBJ([roundf]).
63860         * m4/roundl.m4: Ditto, and similarly for roundl.
63861         * modules/round: Reference new m4 file.
63862         * modules/roundf: Ditto.
63863         * modules/roundl: Ditto.
63864         * tests/test-round2.c (main): Use ROUND instead of round.
63865         Bug report from Bruno Haible.
63866
63867 2007-10-21  Bruno Haible  <bruno@clisp.org>
63868
63869         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
63870         context.
63871
63872 2007-10-21  Bruno Haible  <bruno@clisp.org>
63873
63874         * tests/test-wcwidth.c (main): Allow negative result for some control
63875         characters.
63876
63877         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
63878         Needed on OSF/1 5.1.
63879
63880 2007-10-21  Bruno Haible  <bruno@clisp.org>
63881
63882         * tests/test-floorf1.c: Include isnanf.h.
63883         (main): Use isnanf() instead of isnan().
63884         * tests/test-ceilf1.c: Include isnanf.h.
63885         (main): Use isnanf() instead of isnan().
63886         * tests/test-truncf1.c: Include isnanf.h.
63887         (main): Use isnanf() instead of isnan().
63888         * tests/test-roundf1.c: Include isnanf.h.
63889         (main): Use isnanf() instead of isnan().
63890
63891 2007-10-21  Eric Blake  <ebb9@byu.net>
63892
63893         * users.txt: Update URL for m4.
63894
63895 2007-10-21  Bruno Haible  <bruno@clisp.org>
63896
63897         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
63898
63899 2007-10-21  Bruno Haible  <bruno@clisp.org>
63900
63901         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
63902         Git's management files if the CVS files are not present.
63903
63904 2007-10-20  Bruno Haible  <bruno@clisp.org>
63905
63906         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
63907         gcc-3.4.x.
63908
63909 2007-10-20  Ben Pfaff  <blp@gnu.org>
63910
63911         * lib/math.in.h: Declare round, roundf, roundl if we are providing
63912         implementations.
63913         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
63914         * lib/round.c: New file.
63915         * lib/roundf.c: New file.
63916         * lib/roundl.c: New file.
63917         * m4/round.m4: New file.
63918         * m4/roundf.m4: New file.
63919         * m4/roundl.m4: New file.
63920         * m4/check-libm-func-m4: New file.
63921         * modules/math: Replace round, roundf, roundl related @VARS@ in
63922         math.in.h.
63923         * modules/round: New file.
63924         * modules/round-tests: New file.
63925         * modules/roundf: New file.
63926         * modules/roundf-tests: New file.
63927         * modules/roundl: New file.
63928         * modules/roundl-tests: New file.
63929         * tests/test-round1.c: New file.
63930         * tests/test-round2.c: New file.
63931         * tests/test-roundf1.c: New file.
63932         * tests/test-roundf2.c: New file.
63933         * tests/test-roundl.c: New file.
63934         * doc/functions/round.texi: Mention round module.
63935         * doc/functions/roundf.texi: Mention roundf module.
63936         * doc/functions/roundl.texi: Mention roundl module.
63937         * MODULES.html.sh: Mention new modules.
63938         Thanks to Bruno Haible for suggestions.
63939
63940 2007-10-20  Jim Meyering  <meyering@redhat.com>
63941
63942         * lib/xprintf.c: Include <config.h> unconditionally.
63943
63944         Change xprintf's license to GPL.
63945         * modules/xprintf (License): s/LGPL/GPL/, since this module
63946         depends on modules (exit and exitfail) which are GPL.
63947         Suggestion from Bruno Haible.
63948
63949         xprintf fixes.
63950         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
63951         Use a clearer diagnostic.
63952         Patch from Bruno Haible.
63953
63954 2007-10-20  Bruno Haible  <bruno@clisp.org>
63955
63956         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
63957         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
63958         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63959
63960 2007-10-20  Bruno Haible  <bruno@clisp.org>
63961
63962         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
63963         precision in the comparison result > x - 1 or similar.
63964         * tests/test-ceilf2.c (correct_result_p): Likewise.
63965         * tests/test-truncf2.c (correct_result_p): Likewise.
63966         * tests/test-trunc2.c (correct_result_p): Likewise.
63967         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63968
63969 2007-10-20  Bruno Haible  <bruno@clisp.org>
63970
63971         * modules/ceil: New file.
63972         * m4/ceil.m4: New file.
63973         * doc/functions/ceil.texi: Mention the 'ceil' module.
63974
63975 2007-10-20  Bruno Haible  <bruno@clisp.org>
63976
63977         * modules/floor: New file.
63978         * m4/floor.m4: New file.
63979         * doc/functions/floor.texi: Mention the 'floor' module.
63980
63981 2007-10-20  Bruno Haible  <bruno@clisp.org>
63982
63983         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
63984         of %a.
63985         * modules/floorf-tests (Depends-on): Likewise.
63986         * modules/truncf-tests (Depends-on): Likewise.
63987         * modules/trunc-tests (Depends-on): Likewise.
63988         Reported by Ben Pfaff.
63989
63990 2007-10-19  Jim Meyering  <meyering@redhat.com>
63991
63992         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
63993         Don't bother testing specific errno values.  Just test ferror.
63994
63995         New module: xprintf
63996         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
63997
63998 2007-10-19  Bruno Haible  <bruno@clisp.org>
63999
64000         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
64001         syntax.
64002         * modules/javaexec (Makefile.am): Likewise.
64003         * modules/relocatable-prog (Makefile.am): Likewise.
64004         Suggested by Jim Meyering.
64005
64006 2007-10-18  Bruno Haible  <bruno@clisp.org>
64007
64008         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
64009         Reported by Jim Meyering.
64010
64011 2007-10-18  Eric Blake  <ebb9@byu.net>
64012
64013         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
64014
64015 2007-10-18  Bruno Haible  <bruno@clisp.org>
64016
64017         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
64018         the format string into writable memory. Needed in Fortify conditions.
64019
64020 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
64021             Bruno Haible  <bruno@clisp.org>
64022
64023         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
64024         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
64025         * modules/trim (Depends-on): Add mbchar.
64026         (configure.ac): Add gl_FUNC_MBRTOWC.
64027         (Makefile.am): Augment lib_SOURCES.
64028
64029 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64030
64031         Modify glob.c to use fstatat and dirfd, to simplify it.
64032         Suggested by Eric Blake.
64033         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
64034         Don't include <stdbool.h>; not used.
64035         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
64036         (link_exists_p): Simplify implementation, since we can now assume
64037         dirfd and fstatat.
64038         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
64039
64040 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64041
64042         * gnulib-tool (func_get_dependencies): Fix sed script to
64043         match only tests.
64044
64045 2007-10-17  Bruno Haible  <bruno@clisp.org>
64046
64047         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
64048         allow locale names without encoding suffix.
64049         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
64050         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64051
64052 2007-10-16  Bruno Haible  <bruno@clisp.org>
64053
64054         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
64055         * lib/getgroups.c (getgroups): Likewise.
64056         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
64057
64058 2007-10-16  Bruno Haible  <bruno@clisp.org>
64059
64060         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
64061         * modules/malloc-posix (License): Likewise.
64062         * modules/realloc-posix (License): Likewise.
64063         * modules/calloc-posix (License): Likewise.
64064         * modules/intprops (License): Change from GPL to LGPL, with
64065         Paul Eggert's approval.
64066
64067 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64068
64069         Merge glibc changes into lib/glob.c.
64070
64071         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
64072         2007-10-15 04:59:03 UTC.  Here are the changes:
64073
64074         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
64075
64076         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
64077
64078         * lib/glob.c: Add some branch prediction throughout.
64079
64080         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
64081
64082         [BZ #5103]
64083         * lib/glob.c (glob): Recognize patterns starting \/.
64084
64085         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
64086
64087         [BZ #3996]
64088         * lib/glob.c (attribute_hidden): Define if not defined.
64089         (glob): Unescape dirname, filename or username when needed and not
64090         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
64091         is NULL.  Handle unescaped [ in pattern without closing ].
64092         Don't pass GLOB_CHECK down to recursive glob for directories.
64093         (__glob_pattern_type): New function.
64094         (__glob_pattern_p): Implement using __glob_pattern_type.
64095         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
64096         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
64097         Remove unreachable code.
64098
64099         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
64100
64101         * lib/glob.c (glob_in_dir): Add some comments and asserts to
64102         explain why there are no leaks.
64103
64104         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
64105
64106         [BZ #3253]
64107         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
64108         time, rather allocate increasingly bigger arrays of pointers, if
64109         possible with alloca, if too large with malloc.
64110
64111 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64112
64113         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
64114         Problem reported by H.Merijn Brand in
64115         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
64116         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
64117         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64118
64119 2007-10-15  Bruno Haible  <bruno@clisp.org>
64120
64121         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
64122         with explicit rpl_ prefix.
64123         * lib/fopen.c (fopen): Likewise.
64124         * lib/freopen.c (freopen): Likewise.
64125         * lib/iconv.c (iconv): Likewise.
64126         * lib/iconv_close.c (iconv_close): Likewise.
64127
64128 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64129
64130         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
64131
64132 2007-10-15  Bruno Haible  <bruno@clisp.org>
64133
64134         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
64135         <stddef.h> instead of <stdlib.h> since we only need NULL.
64136         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64137
64138 2007-10-15  Bruno Haible  <bruno@clisp.org>
64139
64140         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
64141         Replace paragraph talking about LIBOBJS.
64142         Reported by Colin Watson <cjwatson@debian.org>.
64143
64144 2007-10-15  Bruno Haible  <bruno@clisp.org>
64145
64146         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
64147         <stdlib.h> before using NULL.
64148
64149 2007-10-15  Simon Josefsson  <simon@josefsson.org>
64150
64151         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
64152         Reported by Albert Chin <china@thewrittenword.com>.
64153
64154 2007-10-14  Bruno Haible  <bruno@clisp.org>
64155
64156         * modules/iconv_open-utf-tests: New file.
64157         * tests/test-iconv-utf.c: New file.
64158
64159         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
64160         * modules/iconv_open-utf: New file.
64161         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
64162         (iconv, iconv_close): New declarations.
64163         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
64164         be defined.
64165         (iconv_open): Add special handling of conversion between UTF-8 and
64166         UTF-{16,32}{BE,LE}.
64167         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
64168         * lib/iconv_close.c: New file.
64169         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
64170         gl_FUNC_ICONV_OPEN.
64171         (gl_FUNC_ICONV_OPEN): Use it.
64172         (gl_FUNC_ICONV_OPEN_UTF): New macro.
64173         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
64174         and REPLACE_ICONV_UTF.
64175         * modules/iconv_open (Depends-on): Add c-strcase.
64176         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
64177         ICONV_CONST.
64178         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
64179
64180 2007-10-13  Albert Chin  <china@thewrittenword.com>
64181             Bruno Haible  <bruno@clisp.org>
64182
64183         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
64184         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
64185
64186 2007-10-13  Bruno Haible  <bruno@clisp.org>
64187
64188         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
64189         defined, use the ISO C99 inline semantics.
64190         * lib/argp.h (ARGP_EI): Likewise.
64191
64192 2007-10-13  Bruno Haible  <bruno@clisp.org>
64193
64194         Handle 'inline' change in gcc 4.3.0.
64195         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
64196         argp_fmtstream_write, argp_fmtstream_set_lmargin,
64197         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
64198         argp_fmtstream_point): Disable 'extern' declaration if the function
64199         definition is going to be provided inline.
64200         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
64201         semantics, not the ISO C99 inline semantics.
64202         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
64203         'extern' declaration if the function definition is going to be provided
64204         inline.
64205         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
64206         the GNU C inline semantics, not the ISO C99 inline semantics. With
64207         GCC 4.2, avoid a warning.
64208
64209 2007-10-13  Bruno Haible  <bruno@clisp.org>
64210
64211         * lib/freading.h (freading): Enable the use of __freading for
64212         glibc >= 2.7.
64213         * lib/freading.c (freading): Likewise.
64214
64215 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64216
64217         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
64218         "warning: C99 inline functions are not supported; using GNU89".
64219
64220 2007-10-12  Bruno Haible  <bruno@clisp.org>
64221
64222         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
64223         of 2.
64224         * tests/test-ceilf2.c: New file.
64225         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
64226
64227         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
64228         * modules/ceilf-tests: Update.
64229
64230 2007-10-12  Bruno Haible  <bruno@clisp.org>
64231
64232         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
64233         of 2.
64234         * tests/test-floorf2.c: New file.
64235         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
64236
64237         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
64238         * modules/floorf-tests: Update.
64239
64240 2007-10-12  Bruno Haible  <bruno@clisp.org>
64241
64242         * tests/test-trunc2.c: New file.
64243         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
64244
64245         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
64246         * modules/trunc-tests: Update.
64247
64248 2007-10-12  Bruno Haible  <bruno@clisp.org>
64249
64250         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
64251         of 2.
64252         * tests/test-truncf2.c: New file.
64253         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
64254
64255         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
64256         * modules/truncf-tests: Update.
64257
64258 2007-10-11  Eric Blake  <ebb9@byu.net>
64259
64260         Don't claim strerror is broken on Interix.
64261         * doc/functions/strerror.texi (strerror): Known broken systems are
64262         now Solaris 8, and not Interix.
64263         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
64264         Interix on cross-compile.
64265         Reported by Martin Koeppe in
64266         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
64267
64268 2007-10-11  Bruno Haible  <bruno@clisp.org>
64269
64270         * modules/i-ring-tests: New file.
64271         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
64272         instead of assert.
64273
64274 2007-10-11  Bruno Haible  <bruno@clisp.org>
64275
64276         * modules/filenamecat-tests: New file.
64277         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
64278         * lib/filenamecat.c: Remove test code.
64279
64280 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64281
64282         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
64283
64284         * lib/strerror.c: Include <string.h> always, to test interface,
64285         and to remove the need for the dummy.
64286         Include intprops.h to compute width instead of doing it ourselves
64287         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
64288         (strerror): Define it to return NULL if there's no system strerror.
64289         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
64290         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
64291         ancient pre-strerror Unix systems well any more.  Saying "unknown
64292         system error" is enough.
64293         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
64294         simpler strerror.c implementation.
64295         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
64296         Simplify the tests to reflect the simpler strerror implementation.
64297         * modules/strerror (Depends-on): Add intprops.
64298
64299 2007-10-09  Eric Blake  <ebb9@byu.net>
64300
64301         Silence test-fpending.
64302         * modules/fpending-tests (Files): Add wrapper script.
64303         * tests/test-fpending.sh: New file.
64304
64305 2007-10-09  Bruno Haible  <bruno@clisp.org>
64306
64307         * MODULES.html.sh (func_module): Don't create a hyperlink for
64308         function names like 'printf_frexp'.
64309         (Misc): Add crc, memxor.
64310         (Characteristics of floating types): New section.
64311         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
64312         isnanf-nolibm, signbit, trunc, truncf, truncl.
64313         (Enhancements for ISO C 99 functions): New subsection Input/output.
64314         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
64315         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
64316         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
64317         (Compatibility checks for POSIX:2001 functions): Add clock-time.
64318         (Enhancements for POSIX:2001 functions): Add chdir-long.
64319         (File system functions): Add areadlink, chdir-safer, read-file.
64320         Remove cycle-check.
64321         (File system as inode set): New section.
64322         (Date and time): Add gethrxtime.
64323         (Multithreading): Add openmp.
64324         (Internationalization functions): Add localename.
64325         (Unicode string functions): Add unistr/u*-mbsnlen.
64326         (Support for maintaining and releasing projects): Add git-version-gen.
64327         (Lone files): Remove directories.
64328
64329 2007-10-08  Ben Pfaff  <blp@gnu.org>
64330
64331         * lib/xmalloca.h: Fix typo in comment.
64332
64333 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64334
64335         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
64336         when avoiding problems with integer overflow.  Use a portable test
64337         instead.
64338
64339 2007-10-08  Simon Josefsson  <simon@josefsson.org>
64340
64341         * modules/dummy (License): Change to LGPLv2+.
64342         * modules/float (License): Likewise
64343         * modules/realloc (License): Likewise
64344         * modules/stdlib (License): Likewise
64345
64346 2007-10-07  Bruno Haible  <bruno@clisp.org>
64347
64348         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
64349         * floor.c (TWO_MANT_DIG): Likewise.
64350         * ceil.c (TWO_MANT_DIG): Likewise.
64351         Reported by Ben Pfaff.
64352
64353 2007-10-07  Bruno Haible  <bruno@clisp.org>
64354
64355         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
64356         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
64357         * lib/frexp.c (FUNC): Likewise.
64358         * lib/printf-frexp.h (printf_frexp): Likewise.
64359         * lib/printf-frexpl.h (printf_frexpl): Likewise.
64360         * lib/printf-frexp.c (FUNC): Likewise.
64361         Suggested by Jim Meyering.
64362
64363 2007-10-07  Jim Meyering  <meyering@redhat.com>
64364
64365         Make xnanosleep's integer overflow test more robust.
64366         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
64367         so that gcc-4.3.0 doesn't optimize away this test for overflow.
64368
64369 2007-10-07  Bruno Haible  <bruno@clisp.org>
64370
64371         * NEWS: Mention the license change.
64372
64373         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
64374         abbreviations in the modules files.
64375
64376         Change copyright notice from GPLv2+ to GPLv3+.
64377         * README: Change copyright notice.
64378         * MODULES.html.sh: Likewise.
64379         * build-aux/bootstrap.conf: Likewise.
64380         * build-aux/config.libpath: Likewise.
64381         * build-aux/csharpcomp.sh.in: Likewise.
64382         * build-aux/csharpexec.sh.in: Likewise.
64383         * build-aux/install-reloc: Likewise.
64384         * build-aux/javacomp.sh.in: Likewise.
64385         * build-aux/javaexec.sh.in: Likewise.
64386         * build-aux/ldd.sh.in: Likewise.
64387         * build-aux/reloc-ldflags: Likewise.
64388         * build-aux/relocatable.sh.in: Likewise.
64389         * build-aux/x-to-1.in: Likewise.
64390         * check-module: Likewise.
64391         * config/srclistvars.sh: Likewise.
64392         * gnulib-tool: Likewise.
64393         * lib/acl-internal.h: Likewise.
64394         * lib/acl.c: Likewise.
64395         * lib/acl.h: Likewise.
64396         * lib/acl_entries.c: Likewise.
64397         * lib/areadlink-with-size.c: Likewise.
64398         * lib/areadlink.c: Likewise.
64399         * lib/areadlink.h: Likewise.
64400         * lib/argmatch.c: Likewise.
64401         * lib/argmatch.h: Likewise.
64402         * lib/argp-ba.c: Likewise.
64403         * lib/argp-eexst.c: Likewise.
64404         * lib/argp-fmtstream.c: Likewise.
64405         * lib/argp-fmtstream.h: Likewise.
64406         * lib/argp-fs-xinl.c: Likewise.
64407         * lib/argp-help.c: Likewise.
64408         * lib/argp-namefrob.h: Likewise.
64409         * lib/argp-parse.c: Likewise.
64410         * lib/argp-pin.c: Likewise.
64411         * lib/argp-pv.c: Likewise.
64412         * lib/argp-pvh.c: Likewise.
64413         * lib/argp-xinl.c: Likewise.
64414         * lib/argp.h: Likewise.
64415         * lib/at-func.c: Likewise.
64416         * lib/atanl.c: Likewise.
64417         * lib/backupfile.c: Likewise.
64418         * lib/backupfile.h: Likewise.
64419         * lib/basename.c: Likewise.
64420         * lib/binary-io.h: Likewise.
64421         * lib/byteswap.in.h: Likewise.
64422         * lib/c-stack.c: Likewise.
64423         * lib/c-stack.h: Likewise.
64424         * lib/c-strcasestr.c: Likewise.
64425         * lib/c-strcasestr.h: Likewise.
64426         * lib/c-strstr.c: Likewise.
64427         * lib/c-strstr.h: Likewise.
64428         * lib/c-strtod.c: Likewise.
64429         * lib/calloc.c: Likewise.
64430         * lib/canon-host.c: Likewise.
64431         * lib/canon-host.h: Likewise.
64432         * lib/canonicalize-lgpl.c: Likewise.
64433         * lib/canonicalize.c: Likewise.
64434         * lib/canonicalize.h: Likewise.
64435         * lib/ceil.c: Likewise.
64436         * lib/ceilf.c: Likewise.
64437         * lib/ceill.c: Likewise.
64438         * lib/chdir-long.c: Likewise.
64439         * lib/chdir-long.h: Likewise.
64440         * lib/chdir-safer.c: Likewise.
64441         * lib/chdir-safer.h: Likewise.
64442         * lib/chown.c: Likewise.
64443         * lib/classpath.c: Likewise.
64444         * lib/classpath.h: Likewise.
64445         * lib/clean-temp.c: Likewise.
64446         * lib/clean-temp.h: Likewise.
64447         * lib/cloexec.c: Likewise.
64448         * lib/close-stream.c: Likewise.
64449         * lib/closein.c: Likewise.
64450         * lib/closein.h: Likewise.
64451         * lib/closeout.c: Likewise.
64452         * lib/closeout.h: Likewise.
64453         * lib/concat-filename.c: Likewise.
64454         * lib/copy-file.c: Likewise.
64455         * lib/copy-file.h: Likewise.
64456         * lib/count-one-bits.h: Likewise.
64457         * lib/crc.c: Likewise.
64458         * lib/crc.h: Likewise.
64459         * lib/creat-safer.c: Likewise.
64460         * lib/csharpcomp.c: Likewise.
64461         * lib/csharpcomp.h: Likewise.
64462         * lib/csharpexec.c: Likewise.
64463         * lib/csharpexec.h: Likewise.
64464         * lib/cycle-check.c: Likewise.
64465         * lib/cycle-check.h: Likewise.
64466         * lib/diacrit.c: Likewise.
64467         * lib/diacrit.h: Likewise.
64468         * lib/diffseq.h: Likewise.
64469         * lib/dirchownmod.c: Likewise.
64470         * lib/dirent.in.h: Likewise.
64471         * lib/dirfd.c: Likewise.
64472         * lib/dirfd.h: Likewise.
64473         * lib/dirname.c: Likewise.
64474         * lib/dirname.h: Likewise.
64475         * lib/dummy.c: Likewise.
64476         * lib/dup-safer.c: Likewise.
64477         * lib/dup2.c: Likewise.
64478         * lib/eealloc.h: Likewise.
64479         * lib/error.c: Likewise.
64480         * lib/error.h: Likewise.
64481         * lib/euidaccess.c: Likewise.
64482         * lib/exclude.c: Likewise.
64483         * lib/exclude.h: Likewise.
64484         * lib/execute.c: Likewise.
64485         * lib/execute.h: Likewise.
64486         * lib/exitfail.c: Likewise.
64487         * lib/exitfail.h: Likewise.
64488         * lib/expl.c: Likewise.
64489         * lib/fatal-signal.c: Likewise.
64490         * lib/fatal-signal.h: Likewise.
64491         * lib/fbufmode.c: Likewise.
64492         * lib/fbufmode.h: Likewise.
64493         * lib/fchdir.c: Likewise.
64494         * lib/fchmodat.c: Likewise.
64495         * lib/fchownat.c: Likewise.
64496         * lib/fcntl--.h: Likewise.
64497         * lib/fcntl-safer.h: Likewise.
64498         * lib/fcntl.in.h: Likewise.
64499         * lib/fd-safer.c: Likewise.
64500         * lib/fflush.c: Likewise.
64501         * lib/file-has-acl.c: Likewise.
64502         * lib/file-set.c: Likewise.
64503         * lib/file-type.c: Likewise.
64504         * lib/file-type.h: Likewise.
64505         * lib/fileblocks.c: Likewise.
64506         * lib/filemode.c: Likewise.
64507         * lib/filemode.h: Likewise.
64508         * lib/filename.h: Likewise.
64509         * lib/filenamecat.c: Likewise.
64510         * lib/filenamecat.h: Likewise.
64511         * lib/findprog.c: Likewise.
64512         * lib/findprog.h: Likewise.
64513         * lib/float.in.h: Likewise.
64514         * lib/floor.c: Likewise.
64515         * lib/floorf.c: Likewise.
64516         * lib/floorl.c: Likewise.
64517         * lib/fopen-safer.c: Likewise.
64518         * lib/fopen.c: Likewise.
64519         * lib/fpending.c: Likewise.
64520         * lib/fpending.h: Likewise.
64521         * lib/fprintf.c: Likewise.
64522         * lib/fprintftime.h: Likewise.
64523         * lib/fpucw.h: Likewise.
64524         * lib/fpurge.c: Likewise.
64525         * lib/fpurge.h: Likewise.
64526         * lib/freadable.c: Likewise.
64527         * lib/freadable.h: Likewise.
64528         * lib/freadahead.c: Likewise.
64529         * lib/freadahead.h: Likewise.
64530         * lib/freading.c: Likewise.
64531         * lib/freading.h: Likewise.
64532         * lib/free.c: Likewise.
64533         * lib/freopen.c: Likewise.
64534         * lib/frexp.c: Likewise.
64535         * lib/frexpl.c: Likewise.
64536         * lib/fseek.c: Likewise.
64537         * lib/fseterr.c: Likewise.
64538         * lib/fseterr.h: Likewise.
64539         * lib/fstatat.c: Likewise.
64540         * lib/fstrcmp.c: Likewise.
64541         * lib/fstrcmp.h: Likewise.
64542         * lib/fsusage.c: Likewise.
64543         * lib/fsusage.h: Likewise.
64544         * lib/ftell.c: Likewise.
64545         * lib/ftello.c: Likewise.
64546         * lib/fts-cycle.c: Likewise.
64547         * lib/fts.c: Likewise.
64548         * lib/fts_.h: Likewise.
64549         * lib/full-read.c: Likewise.
64550         * lib/full-read.h: Likewise.
64551         * lib/full-write.c: Likewise.
64552         * lib/full-write.h: Likewise.
64553         * lib/fwritable.c: Likewise.
64554         * lib/fwritable.h: Likewise.
64555         * lib/fwriteerror.c: Likewise.
64556         * lib/fwriteerror.h: Likewise.
64557         * lib/fwriting.c: Likewise.
64558         * lib/fwriting.h: Likewise.
64559         * lib/gcd.c: Likewise.
64560         * lib/gcd.h: Likewise.
64561         * lib/getcwd.c: Likewise.
64562         * lib/getdate.h: Likewise.
64563         * lib/getdate.y: Likewise.
64564         * lib/getdomainname.c: Likewise.
64565         * lib/getdomainname.h: Likewise.
64566         * lib/getgroups.c: Likewise.
64567         * lib/gethostname.c: Likewise.
64568         * lib/gethrxtime.c: Likewise.
64569         * lib/gethrxtime.h: Likewise.
64570         * lib/getloadavg.c: Likewise.
64571         * lib/getndelim2.c: Likewise.
64572         * lib/getndelim2.h: Likewise.
64573         * lib/getnline.c: Likewise.
64574         * lib/getnline.h: Likewise.
64575         * lib/getopt.c: Likewise.
64576         * lib/getopt.in.h: Likewise.
64577         * lib/getopt1.c: Likewise.
64578         * lib/getopt_int.h: Likewise.
64579         * lib/getpagesize.h: Likewise.
64580         * lib/getsubopt.c: Likewise.
64581         * lib/gettime.c: Likewise.
64582         * lib/getugroups.c: Likewise.
64583         * lib/getugroups.h: Likewise.
64584         * lib/getusershell.c: Likewise.
64585         * lib/gl_anyavltree_list1.h: Likewise.
64586         * lib/gl_anyavltree_list2.h: Likewise.
64587         * lib/gl_anyhash_list1.h: Likewise.
64588         * lib/gl_anyhash_list2.h: Likewise.
64589         * lib/gl_anylinked_list1.h: Likewise.
64590         * lib/gl_anylinked_list2.h: Likewise.
64591         * lib/gl_anyrbtree_list1.h: Likewise.
64592         * lib/gl_anyrbtree_list2.h: Likewise.
64593         * lib/gl_anytree_list1.h: Likewise.
64594         * lib/gl_anytree_list2.h: Likewise.
64595         * lib/gl_anytree_oset.h: Likewise.
64596         * lib/gl_anytreehash_list1.h: Likewise.
64597         * lib/gl_anytreehash_list2.h: Likewise.
64598         * lib/gl_array_list.c: Likewise.
64599         * lib/gl_array_list.h: Likewise.
64600         * lib/gl_array_oset.c: Likewise.
64601         * lib/gl_array_oset.h: Likewise.
64602         * lib/gl_avltree_list.c: Likewise.
64603         * lib/gl_avltree_list.h: Likewise.
64604         * lib/gl_avltree_oset.c: Likewise.
64605         * lib/gl_avltree_oset.h: Likewise.
64606         * lib/gl_avltreehash_list.c: Likewise.
64607         * lib/gl_avltreehash_list.h: Likewise.
64608         * lib/gl_carray_list.c: Likewise.
64609         * lib/gl_carray_list.h: Likewise.
64610         * lib/gl_linked_list.c: Likewise.
64611         * lib/gl_linked_list.h: Likewise.
64612         * lib/gl_linkedhash_list.c: Likewise.
64613         * lib/gl_linkedhash_list.h: Likewise.
64614         * lib/gl_list.c: Likewise.
64615         * lib/gl_list.h: Likewise.
64616         * lib/gl_oset.c: Likewise.
64617         * lib/gl_oset.h: Likewise.
64618         * lib/gl_rbtree_list.c: Likewise.
64619         * lib/gl_rbtree_list.h: Likewise.
64620         * lib/gl_rbtree_oset.c: Likewise.
64621         * lib/gl_rbtree_oset.h: Likewise.
64622         * lib/gl_rbtreehash_list.c: Likewise.
64623         * lib/gl_rbtreehash_list.h: Likewise.
64624         * lib/gl_sublist.c: Likewise.
64625         * lib/gl_sublist.h: Likewise.
64626         * lib/group-member.c: Likewise.
64627         * lib/group-member.h: Likewise.
64628         * lib/hard-locale.c: Likewise.
64629         * lib/hard-locale.h: Likewise.
64630         * lib/hash-pjw.c: Likewise.
64631         * lib/hash-pjw.h: Likewise.
64632         * lib/hash-triple.c: Likewise.
64633         * lib/hash.c: Likewise.
64634         * lib/hash.h: Likewise.
64635         * lib/human.c: Likewise.
64636         * lib/human.h: Likewise.
64637         * lib/i-ring.c: Likewise.
64638         * lib/i-ring.h: Likewise.
64639         * lib/idcache.c: Likewise.
64640         * lib/imaxabs.c: Likewise.
64641         * lib/imaxdiv.c: Likewise.
64642         * lib/inet_pton.c: Likewise.
64643         * lib/inet_pton.h: Likewise.
64644         * lib/intprops.h: Likewise.
64645         * lib/inttostr.c: Likewise.
64646         * lib/inttostr.h: Likewise.
64647         * lib/inttypes.in.h: Likewise.
64648         * lib/isapipe.c: Likewise.
64649         * lib/isdir.c: Likewise.
64650         * lib/isnan.c: Likewise.
64651         * lib/isnan.h: Likewise.
64652         * lib/isnanf.c: Likewise.
64653         * lib/isnanf.h: Likewise.
64654         * lib/isnanl-nolibm.h: Likewise.
64655         * lib/isnanl.c: Likewise.
64656         * lib/isnanl.h: Likewise.
64657         * lib/javacomp.c: Likewise.
64658         * lib/javacomp.h: Likewise.
64659         * lib/javaexec.c: Likewise.
64660         * lib/javaexec.h: Likewise.
64661         * lib/javaversion.c: Likewise.
64662         * lib/javaversion.h: Likewise.
64663         * lib/javaversion.java: Likewise.
64664         * lib/lbrkprop.h: Likewise.
64665         * lib/lchmod.h: Likewise.
64666         * lib/lchown.c: Likewise.
64667         * lib/ldexpl.c: Likewise.
64668         * lib/linebreak.c: Likewise.
64669         * lib/linebreak.h: Likewise.
64670         * lib/linebuffer.c: Likewise.
64671         * lib/linebuffer.h: Likewise.
64672         * lib/locale.in.h: Likewise.
64673         * lib/logl.c: Likewise.
64674         * lib/long-options.c: Likewise.
64675         * lib/long-options.h: Likewise.
64676         * lib/lstat.c: Likewise.
64677         * lib/lstat.h: Likewise.
64678         * lib/math.in.h: Likewise.
64679         * lib/mbchar.c: Likewise.
64680         * lib/mbchar.h: Likewise.
64681         * lib/mbfile.h: Likewise.
64682         * lib/mbiter.h: Likewise.
64683         * lib/mbscasecmp.c: Likewise.
64684         * lib/mbscasestr.c: Likewise.
64685         * lib/mbschr.c: Likewise.
64686         * lib/mbscspn.c: Likewise.
64687         * lib/mbslen.c: Likewise.
64688         * lib/mbsncasecmp.c: Likewise.
64689         * lib/mbsnlen.c: Likewise.
64690         * lib/mbspbrk.c: Likewise.
64691         * lib/mbspcasecmp.c: Likewise.
64692         * lib/mbsrchr.c: Likewise.
64693         * lib/mbssep.c: Likewise.
64694         * lib/mbsspn.c: Likewise.
64695         * lib/mbsstr.c: Likewise.
64696         * lib/mbstok_r.c: Likewise.
64697         * lib/mbswidth.c: Likewise.
64698         * lib/mbswidth.h: Likewise.
64699         * lib/mbuiter.h: Likewise.
64700         * lib/memcasecmp.c: Likewise.
64701         * lib/memcasecmp.h: Likewise.
64702         * lib/memchr.c: Likewise.
64703         * lib/memcmp.c: Likewise.
64704         * lib/memcoll.c: Likewise.
64705         * lib/memcoll.h: Likewise.
64706         * lib/memcpy.c: Likewise.
64707         * lib/memrchr.c: Likewise.
64708         * lib/mkancesdirs.c: Likewise.
64709         * lib/mkdir-p.c: Likewise.
64710         * lib/mkdir-p.h: Likewise.
64711         * lib/mkdir.c: Likewise.
64712         * lib/mkdirat.c: Likewise.
64713         * lib/mkdtemp.c: Likewise.
64714         * lib/mkstemp-safer.c: Likewise.
64715         * lib/mkstemp.c: Likewise.
64716         * lib/modechange.c: Likewise.
64717         * lib/modechange.h: Likewise.
64718         * lib/mountlist.c: Likewise.
64719         * lib/mountlist.h: Likewise.
64720         * lib/mpsort.c: Likewise.
64721         * lib/nanosleep.c: Likewise.
64722         * lib/obstack.c: Likewise.
64723         * lib/obstack.h: Likewise.
64724         * lib/open-safer.c: Likewise.
64725         * lib/open.c: Likewise.
64726         * lib/openat-die.c: Likewise.
64727         * lib/openat-priv.h: Likewise.
64728         * lib/openat-proc.c: Likewise.
64729         * lib/openat.c: Likewise.
64730         * lib/openat.h: Likewise.
64731         * lib/pagealign_alloc.c: Likewise.
64732         * lib/pagealign_alloc.h: Likewise.
64733         * lib/physmem.c: Likewise.
64734         * lib/physmem.h: Likewise.
64735         * lib/pipe-safer.c: Likewise.
64736         * lib/pipe.c: Likewise.
64737         * lib/pipe.h: Likewise.
64738         * lib/posixtm.c: Likewise.
64739         * lib/posixtm.h: Likewise.
64740         * lib/posixver.c: Likewise.
64741         * lib/printf-frexp.c: Likewise.
64742         * lib/printf-frexp.h: Likewise.
64743         * lib/printf-frexpl.c: Likewise.
64744         * lib/printf-frexpl.h: Likewise.
64745         * lib/printf.c: Likewise.
64746         * lib/progname.c: Likewise.
64747         * lib/progname.h: Likewise.
64748         * lib/progreloc.c: Likewise.
64749         * lib/putenv.c: Likewise.
64750         * lib/quote.c: Likewise.
64751         * lib/quote.h: Likewise.
64752         * lib/quotearg.c: Likewise.
64753         * lib/quotearg.h: Likewise.
64754         * lib/raise.c: Likewise.
64755         * lib/readline.c: Likewise.
64756         * lib/readline.h: Likewise.
64757         * lib/readlink.c: Likewise.
64758         * lib/readtokens.c: Likewise.
64759         * lib/readtokens.h: Likewise.
64760         * lib/readtokens0.c: Likewise.
64761         * lib/readtokens0.h: Likewise.
64762         * lib/readutmp.c: Likewise.
64763         * lib/readutmp.h: Likewise.
64764         * lib/realloc.c: Likewise.
64765         * lib/relocwrapper.c: Likewise.
64766         * lib/rename-dest-slash.c: Likewise.
64767         * lib/rename.c: Likewise.
64768         * lib/rmdir.c: Likewise.
64769         * lib/rpmatch.c: Likewise.
64770         * lib/safe-read.c: Likewise.
64771         * lib/safe-read.h: Likewise.
64772         * lib/safe-write.c: Likewise.
64773         * lib/safe-write.h: Likewise.
64774         * lib/same-inode.h: Likewise.
64775         * lib/same.c: Likewise.
64776         * lib/same.h: Likewise.
64777         * lib/save-cwd.c: Likewise.
64778         * lib/save-cwd.h: Likewise.
64779         * lib/savedir.c: Likewise.
64780         * lib/savedir.h: Likewise.
64781         * lib/savewd.c: Likewise.
64782         * lib/savewd.h: Likewise.
64783         * lib/search.in.h: Likewise.
64784         * lib/setenv.c: Likewise.
64785         * lib/setenv.h: Likewise.
64786         * lib/settime.c: Likewise.
64787         * lib/sh-quote.c: Likewise.
64788         * lib/sh-quote.h: Likewise.
64789         * lib/sig2str.c: Likewise.
64790         * lib/sig2str.h: Likewise.
64791         * lib/signal.in.h: Likewise.
64792         * lib/signbitd.c: Likewise.
64793         * lib/signbitf.c: Likewise.
64794         * lib/signbitl.c: Likewise.
64795         * lib/sigprocmask.c: Likewise.
64796         * lib/sincosl.c: Likewise.
64797         * lib/sleep.c: Likewise.
64798         * lib/sprintf.c: Likewise.
64799         * lib/sqrtl.c: Likewise.
64800         * lib/stat-time.h: Likewise.
64801         * lib/stdio--.h: Likewise.
64802         * lib/stdio-safer.h: Likewise.
64803         * lib/stdlib--.h: Likewise.
64804         * lib/stdlib-safer.h: Likewise.
64805         * lib/stdlib.in.h: Likewise.
64806         * lib/stpcpy.c: Likewise.
64807         * lib/stpncpy.c: Likewise.
64808         * lib/strchrnul.c: Likewise.
64809         * lib/strcspn.c: Likewise.
64810         * lib/strerror.c: Likewise.
64811         * lib/strftime.c: Likewise.
64812         * lib/strftime.h: Likewise.
64813         * lib/striconveh.c: Likewise.
64814         * lib/striconveh.h: Likewise.
64815         * lib/striconveha.c: Likewise.
64816         * lib/striconveha.h: Likewise.
64817         * lib/stripslash.c: Likewise.
64818         * lib/strnlen1.c: Likewise.
64819         * lib/strnlen1.h: Likewise.
64820         * lib/strtod.c: Likewise.
64821         * lib/strtoimax.c: Likewise.
64822         * lib/strtok_r.c: Likewise.
64823         * lib/strtol.c: Likewise.
64824         * lib/strtoll.c: Likewise.
64825         * lib/strtoul.c: Likewise.
64826         * lib/strtoull.c: Likewise.
64827         * lib/sysexits.in.h: Likewise.
64828         * lib/tempname.c: Likewise.
64829         * lib/tempname.h: Likewise.
64830         * lib/timespec.h: Likewise.
64831         * lib/tls.c: Likewise.
64832         * lib/tls.h: Likewise.
64833         * lib/tmpdir.c: Likewise.
64834         * lib/tmpdir.h: Likewise.
64835         * lib/tmpfile-safer.c: Likewise.
64836         * lib/tmpfile.c: Likewise.
64837         * lib/trigl.c: Likewise.
64838         * lib/trigl.h: Likewise.
64839         * lib/trim.c: Likewise.
64840         * lib/trim.h: Likewise.
64841         * lib/trunc.c: Likewise.
64842         * lib/truncf.c: Likewise.
64843         * lib/truncl.c: Likewise.
64844         * lib/tsearch.c: Likewise.
64845         * lib/unicodeio.c: Likewise.
64846         * lib/unicodeio.h: Likewise.
64847         * lib/unistd--.h: Likewise.
64848         * lib/unistd-safer.h: Likewise.
64849         * lib/unistdio/ulc-fprintf.c: Likewise.
64850         * lib/unistdio/ulc-vfprintf.c: Likewise.
64851         * lib/unlinkdir.c: Likewise.
64852         * lib/unlinkdir.h: Likewise.
64853         * lib/unlocked-io.h: Likewise.
64854         * lib/unsetenv.c: Likewise.
64855         * lib/userspec.c: Likewise.
64856         * lib/utime.c: Likewise.
64857         * lib/utimecmp.c: Likewise.
64858         * lib/utimecmp.h: Likewise.
64859         * lib/utimens.c: Likewise.
64860         * lib/verify.h: Likewise.
64861         * lib/verror.c: Likewise.
64862         * lib/verror.h: Likewise.
64863         * lib/version-etc-fsf.c: Likewise.
64864         * lib/version-etc.c: Likewise.
64865         * lib/version-etc.h: Likewise.
64866         * lib/vfprintf.c: Likewise.
64867         * lib/vprintf.c: Likewise.
64868         * lib/vsprintf.c: Likewise.
64869         * lib/w32spawn.h: Likewise.
64870         * lib/wait-process.c: Likewise.
64871         * lib/wait-process.h: Likewise.
64872         * lib/wcwidth.c: Likewise.
64873         * lib/write-any-file.c: Likewise.
64874         * lib/xalloc-die.c: Likewise.
64875         * lib/xalloc.h: Likewise.
64876         * lib/xasprintf.c: Likewise.
64877         * lib/xgetcwd.c: Likewise.
64878         * lib/xgetcwd.h: Likewise.
64879         * lib/xgetdomainname.c: Likewise.
64880         * lib/xgetdomainname.h: Likewise.
64881         * lib/xgethostname.c: Likewise.
64882         * lib/xmalloc.c: Likewise.
64883         * lib/xmalloca.c: Likewise.
64884         * lib/xmalloca.h: Likewise.
64885         * lib/xmemcoll.c: Likewise.
64886         * lib/xnanosleep.c: Likewise.
64887         * lib/xreadlink.c: Likewise.
64888         * lib/xreadlink.h: Likewise.
64889         * lib/xsetenv.c: Likewise.
64890         * lib/xsetenv.h: Likewise.
64891         * lib/xstriconv.c: Likewise.
64892         * lib/xstriconv.h: Likewise.
64893         * lib/xstrndup.c: Likewise.
64894         * lib/xstrndup.h: Likewise.
64895         * lib/xstrtod.c: Likewise.
64896         * lib/xstrtod.h: Likewise.
64897         * lib/xstrtol-error.c: Likewise.
64898         * lib/xstrtol.c: Likewise.
64899         * lib/xstrtol.h: Likewise.
64900         * lib/xtime.h: Likewise.
64901         * lib/xvasprintf.c: Likewise.
64902         * lib/xvasprintf.h: Likewise.
64903         * lib/yesno.c: Likewise.
64904         * lib/yesno.h: Likewise.
64905         * posix-modules: Likewise.
64906         * tests/test-alloca-opt.c: Likewise.
64907         * tests/test-arcfour.c: Likewise.
64908         * tests/test-arctwo.c: Likewise.
64909         * tests/test-argmatch.c: Likewise.
64910         * tests/test-argp-2.sh: Likewise.
64911         * tests/test-argp.c: Likewise.
64912         * tests/test-arpa_inet.c: Likewise.
64913         * tests/test-array_list.c: Likewise.
64914         * tests/test-array_oset.c: Likewise.
64915         * tests/test-atexit.c: Likewise.
64916         * tests/test-avltree_list.c: Likewise.
64917         * tests/test-avltree_oset.c: Likewise.
64918         * tests/test-avltreehash_list.c: Likewise.
64919         * tests/test-base64.c: Likewise.
64920         * tests/test-binary-io.c: Likewise.
64921         * tests/test-byteswap.c: Likewise.
64922         * tests/test-c-ctype.c: Likewise.
64923         * tests/test-c-strcasecmp.c: Likewise.
64924         * tests/test-c-strcasestr.c: Likewise.
64925         * tests/test-c-strncasecmp.c: Likewise.
64926         * tests/test-c-strstr.c: Likewise.
64927         * tests/test-canonicalize-lgpl.c: Likewise.
64928         * tests/test-canonicalize.c: Likewise.
64929         * tests/test-carray_list.c: Likewise.
64930         * tests/test-ceilf.c: Likewise.
64931         * tests/test-ceill.c: Likewise.
64932         * tests/test-count-one-bits.c: Likewise.
64933         * tests/test-crc.c: Likewise.
64934         * tests/test-dirname.c: Likewise.
64935         * tests/test-fbufmode.c: Likewise.
64936         * tests/test-fcntl.c: Likewise.
64937         * tests/test-fflush.c: Likewise.
64938         * tests/test-floorf.c: Likewise.
64939         * tests/test-floorl.c: Likewise.
64940         * tests/test-fopen.c: Likewise.
64941         * tests/test-fprintf-posix.c: Likewise.
64942         * tests/test-fprintf-posix.h: Likewise.
64943         * tests/test-fpurge.c: Likewise.
64944         * tests/test-freadable.c: Likewise.
64945         * tests/test-freadahead.c: Likewise.
64946         * tests/test-freading.c: Likewise.
64947         * tests/test-freopen.c: Likewise.
64948         * tests/test-frexp.c: Likewise.
64949         * tests/test-frexpl.c: Likewise.
64950         * tests/test-fseek.c: Likewise.
64951         * tests/test-fseeko.c: Likewise.
64952         * tests/test-fseterr.c: Likewise.
64953         * tests/test-fstrcmp.c: Likewise.
64954         * tests/test-ftell.c: Likewise.
64955         * tests/test-ftello.c: Likewise.
64956         * tests/test-fwritable.c: Likewise.
64957         * tests/test-fwriting.c: Likewise.
64958         * tests/test-getaddrinfo.c: Likewise.
64959         * tests/test-getpass.c: Likewise.
64960         * tests/test-gettimeofday.c: Likewise.
64961         * tests/test-hmac-md5.c: Likewise.
64962         * tests/test-hmac-sha1.c: Likewise.
64963         * tests/test-iconv.c: Likewise.
64964         * tests/test-iconvme.c: Likewise.
64965         * tests/test-inttypes.c: Likewise.
64966         * tests/test-isnan.c: Likewise.
64967         * tests/test-isnanf.c: Likewise.
64968         * tests/test-isnanl-nolibm.c: Likewise.
64969         * tests/test-isnanl.c: Likewise.
64970         * tests/test-isnanl.h: Likewise.
64971         * tests/test-ldexpl.c: Likewise.
64972         * tests/test-linked_list.c: Likewise.
64973         * tests/test-linkedhash_list.c: Likewise.
64974         * tests/test-locale.c: Likewise.
64975         * tests/test-localename.c: Likewise.
64976         * tests/test-lock.c: Likewise.
64977         * tests/test-lseek.c: Likewise.
64978         * tests/test-malloca.c: Likewise.
64979         * tests/test-math.c: Likewise.
64980         * tests/test-mbscasecmp.c: Likewise.
64981         * tests/test-mbscasestr1.c: Likewise.
64982         * tests/test-mbscasestr2.c: Likewise.
64983         * tests/test-mbscasestr3.c: Likewise.
64984         * tests/test-mbscasestr4.c: Likewise.
64985         * tests/test-mbschr.c: Likewise.
64986         * tests/test-mbscspn.c: Likewise.
64987         * tests/test-mbsncasecmp.c: Likewise.
64988         * tests/test-mbspbrk.c: Likewise.
64989         * tests/test-mbspcasecmp.c: Likewise.
64990         * tests/test-mbsrchr.c: Likewise.
64991         * tests/test-mbsspn.c: Likewise.
64992         * tests/test-mbsstr1.c: Likewise.
64993         * tests/test-mbsstr2.c: Likewise.
64994         * tests/test-mbsstr3.c: Likewise.
64995         * tests/test-md5.c: Likewise.
64996         * tests/test-memmem.c: Likewise.
64997         * tests/test-netinet_in.c: Likewise.
64998         * tests/test-open.c: Likewise.
64999         * tests/test-printf-frexp.c: Likewise.
65000         * tests/test-printf-frexpl.c: Likewise.
65001         * tests/test-printf-posix.c: Likewise.
65002         * tests/test-printf-posix.h: Likewise.
65003         * tests/test-rbtree_list.c: Likewise.
65004         * tests/test-rbtree_oset.c: Likewise.
65005         * tests/test-rbtreehash_list.c: Likewise.
65006         * tests/test-read-file.c: Likewise.
65007         * tests/test-rijndael.c: Likewise.
65008         * tests/test-search.c: Likewise.
65009         * tests/test-signbit.c: Likewise.
65010         * tests/test-sleep.c: Likewise.
65011         * tests/test-snprintf-posix.c: Likewise.
65012         * tests/test-snprintf-posix.h: Likewise.
65013         * tests/test-snprintf.c: Likewise.
65014         * tests/test-sprintf-posix.c: Likewise.
65015         * tests/test-sprintf-posix.h: Likewise.
65016         * tests/test-stat-time.c: Likewise.
65017         * tests/test-stdbool.c: Likewise.
65018         * tests/test-stdint.c: Likewise.
65019         * tests/test-stdio.c: Likewise.
65020         * tests/test-stdlib.c: Likewise.
65021         * tests/test-stpncpy.c: Likewise.
65022         * tests/test-strcasestr.c: Likewise.
65023         * tests/test-striconv.c: Likewise.
65024         * tests/test-striconveh.c: Likewise.
65025         * tests/test-striconveha.c: Likewise.
65026         * tests/test-string.c: Likewise.
65027         * tests/test-sys_select.c: Likewise.
65028         * tests/test-sys_socket.c: Likewise.
65029         * tests/test-sys_stat.c: Likewise.
65030         * tests/test-sys_time.c: Likewise.
65031         * tests/test-sysexits.c: Likewise.
65032         * tests/test-time.c: Likewise.
65033         * tests/test-tls.c: Likewise.
65034         * tests/test-trunc.c: Likewise.
65035         * tests/test-truncf.c: Likewise.
65036         * tests/test-truncl.c: Likewise.
65037         * tests/test-unistd.c: Likewise.
65038         * tests/test-vasnprintf-posix.c: Likewise.
65039         * tests/test-vasnprintf-posix2.c: Likewise.
65040         * tests/test-vasnprintf.c: Likewise.
65041         * tests/test-vasprintf-posix.c: Likewise.
65042         * tests/test-vasprintf.c: Likewise.
65043         * tests/test-verify.c: Likewise.
65044         * tests/test-vfprintf-posix.c: Likewise.
65045         * tests/test-vprintf-posix.c: Likewise.
65046         * tests/test-vsnprintf-posix.c: Likewise.
65047         * tests/test-vsnprintf.c: Likewise.
65048         * tests/test-vsprintf-posix.c: Likewise.
65049         * tests/test-wchar.c: Likewise.
65050         * tests/test-wctype.c: Likewise.
65051         * tests/test-wcwidth.c: Likewise.
65052         * tests/test-xstrtol.c: Likewise.
65053         * tests/test-xvasprintf.c: Likewise.
65054         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
65055         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
65056         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65057         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65058         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65059         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
65060         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65061         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65062         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65063         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
65064         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65065         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65066         * tests/uniname/test-uninames.c: Likewise.
65067         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
65068         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
65069         * tests/unistdio/test-u16-printf1.h: Likewise.
65070         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
65071         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
65072         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
65073         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
65074         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
65075         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
65076         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
65077         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
65078         * tests/unistdio/test-u32-printf1.h: Likewise.
65079         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
65080         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
65081         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
65082         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
65083         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
65084         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
65085         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
65086         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
65087         * tests/unistdio/test-u8-printf1.h: Likewise.
65088         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
65089         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
65090         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
65091         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
65092         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
65093         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
65094         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
65095         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
65096         * tests/unistdio/test-ulc-printf1.h: Likewise.
65097         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
65098         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
65099         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
65100         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
65101         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
65102         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
65103         * tests/uniwidth/test-u16-strwidth.c: Likewise.
65104         * tests/uniwidth/test-u16-width.c: Likewise.
65105         * tests/uniwidth/test-u32-strwidth.c: Likewise.
65106         * tests/uniwidth/test-u32-width.c: Likewise.
65107         * tests/uniwidth/test-u8-strwidth.c: Likewise.
65108         * tests/uniwidth/test-u8-width.c: Likewise.
65109         * tests/uniwidth/test-uc_width.c: Likewise.
65110         * config/srclist-update: Likewise.
65111         (fixlicense): Update to GPLv3+.
65112
65113         Change copyright notice from LGPLv2.1+ to LGPLv3+.
65114         * tests/test-tsearch.c: Change copyright notice.
65115
65116         Change copyright notice from LGPLv2.0+ to LGPLv3+.
65117         * lib/c-strcaseeq.h: Change copyright notice.
65118         * lib/streq.h: Likewise.
65119         * lib/uniconv.h: Likewise.
65120         * lib/uniconv/u-conv-from-enc.h: Likewise.
65121         * lib/uniconv/u-conv-to-enc.h: Likewise.
65122         * lib/uniconv/u-strconv-from-enc.h: Likewise.
65123         * lib/uniconv/u-strconv-to-enc.h: Likewise.
65124         * lib/uniconv/u16-conv-from-enc.c: Likewise.
65125         * lib/uniconv/u16-conv-to-enc.c: Likewise.
65126         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
65127         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
65128         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
65129         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
65130         * lib/uniconv/u32-conv-from-enc.c: Likewise.
65131         * lib/uniconv/u32-conv-to-enc.c: Likewise.
65132         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
65133         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
65134         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
65135         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
65136         * lib/uniconv/u8-conv-from-enc.c: Likewise.
65137         * lib/uniconv/u8-conv-to-enc.c: Likewise.
65138         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
65139         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
65140         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
65141         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
65142         * lib/uniname.h: Likewise.
65143         * lib/uniname/uniname.c: Likewise.
65144         * lib/unistdio.h: Likewise.
65145         * lib/unistdio/u-asnprintf.h: Likewise.
65146         * lib/unistdio/u-asprintf.h: Likewise.
65147         * lib/unistdio/u-printf-args.c: Likewise.
65148         * lib/unistdio/u-printf-args.h: Likewise.
65149         * lib/unistdio/u-printf-parse.h: Likewise.
65150         * lib/unistdio/u-snprintf.h: Likewise.
65151         * lib/unistdio/u-sprintf.h: Likewise.
65152         * lib/unistdio/u-vasprintf.h: Likewise.
65153         * lib/unistdio/u-vsnprintf.h: Likewise.
65154         * lib/unistdio/u-vsprintf.h: Likewise.
65155         * lib/unistdio/u16-asnprintf.c: Likewise.
65156         * lib/unistdio/u16-asprintf.c: Likewise.
65157         * lib/unistdio/u16-printf-parse.c: Likewise.
65158         * lib/unistdio/u16-snprintf.c: Likewise.
65159         * lib/unistdio/u16-sprintf.c: Likewise.
65160         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
65161         * lib/unistdio/u16-u16-asprintf.c: Likewise.
65162         * lib/unistdio/u16-u16-snprintf.c: Likewise.
65163         * lib/unistdio/u16-u16-sprintf.c: Likewise.
65164         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
65165         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
65166         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
65167         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
65168         * lib/unistdio/u16-vasnprintf.c: Likewise.
65169         * lib/unistdio/u16-vasprintf.c: Likewise.
65170         * lib/unistdio/u16-vsnprintf.c: Likewise.
65171         * lib/unistdio/u16-vsprintf.c: Likewise.
65172         * lib/unistdio/u32-asnprintf.c: Likewise.
65173         * lib/unistdio/u32-asprintf.c: Likewise.
65174         * lib/unistdio/u32-printf-parse.c: Likewise.
65175         * lib/unistdio/u32-snprintf.c: Likewise.
65176         * lib/unistdio/u32-sprintf.c: Likewise.
65177         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
65178         * lib/unistdio/u32-u32-asprintf.c: Likewise.
65179         * lib/unistdio/u32-u32-snprintf.c: Likewise.
65180         * lib/unistdio/u32-u32-sprintf.c: Likewise.
65181         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
65182         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
65183         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
65184         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
65185         * lib/unistdio/u32-vasnprintf.c: Likewise.
65186         * lib/unistdio/u32-vasprintf.c: Likewise.
65187         * lib/unistdio/u32-vsnprintf.c: Likewise.
65188         * lib/unistdio/u32-vsprintf.c: Likewise.
65189         * lib/unistdio/u8-asnprintf.c: Likewise.
65190         * lib/unistdio/u8-asprintf.c: Likewise.
65191         * lib/unistdio/u8-printf-parse.c: Likewise.
65192         * lib/unistdio/u8-snprintf.c: Likewise.
65193         * lib/unistdio/u8-sprintf.c: Likewise.
65194         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
65195         * lib/unistdio/u8-u8-asprintf.c: Likewise.
65196         * lib/unistdio/u8-u8-snprintf.c: Likewise.
65197         * lib/unistdio/u8-u8-sprintf.c: Likewise.
65198         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
65199         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
65200         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
65201         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
65202         * lib/unistdio/u8-vasnprintf.c: Likewise.
65203         * lib/unistdio/u8-vasprintf.c: Likewise.
65204         * lib/unistdio/u8-vsnprintf.c: Likewise.
65205         * lib/unistdio/u8-vsprintf.c: Likewise.
65206         * lib/unistdio/ulc-asnprintf.c: Likewise.
65207         * lib/unistdio/ulc-asprintf.c: Likewise.
65208         * lib/unistdio/ulc-printf-parse.c: Likewise.
65209         * lib/unistdio/ulc-snprintf.c: Likewise.
65210         * lib/unistdio/ulc-sprintf.c: Likewise.
65211         * lib/unistdio/ulc-vasnprintf.c: Likewise.
65212         * lib/unistdio/ulc-vasprintf.c: Likewise.
65213         * lib/unistdio/ulc-vsnprintf.c: Likewise.
65214         * lib/unistdio/ulc-vsprintf.c: Likewise.
65215         * lib/unistr.h: Likewise.
65216         * lib/unistr/u-cpy-alloc.h: Likewise.
65217         * lib/unistr/u-cpy.h: Likewise.
65218         * lib/unistr/u-endswith.h: Likewise.
65219         * lib/unistr/u-move.h: Likewise.
65220         * lib/unistr/u-set.h: Likewise.
65221         * lib/unistr/u-startswith.h: Likewise.
65222         * lib/unistr/u-stpcpy.h: Likewise.
65223         * lib/unistr/u-stpncpy.h: Likewise.
65224         * lib/unistr/u-strcat.h: Likewise.
65225         * lib/unistr/u-strcpy.h: Likewise.
65226         * lib/unistr/u-strcspn.h: Likewise.
65227         * lib/unistr/u-strdup.h: Likewise.
65228         * lib/unistr/u-strlen.h: Likewise.
65229         * lib/unistr/u-strncat.h: Likewise.
65230         * lib/unistr/u-strncpy.h: Likewise.
65231         * lib/unistr/u-strnlen.h: Likewise.
65232         * lib/unistr/u-strpbrk.h: Likewise.
65233         * lib/unistr/u-strspn.h: Likewise.
65234         * lib/unistr/u-strstr.h: Likewise.
65235         * lib/unistr/u-strtok.h: Likewise.
65236         * lib/unistr/u16-check.c: Likewise.
65237         * lib/unistr/u16-chr.c: Likewise.
65238         * lib/unistr/u16-cmp.c: Likewise.
65239         * lib/unistr/u16-cpy-alloc.c: Likewise.
65240         * lib/unistr/u16-cpy.c: Likewise.
65241         * lib/unistr/u16-endswith.c: Likewise.
65242         * lib/unistr/u16-mblen.c: Likewise.
65243         * lib/unistr/u16-mbsnlen.c: Likewise.
65244         * lib/unistr/u16-mbtouc-aux.c: Likewise.
65245         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
65246         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
65247         * lib/unistr/u16-mbtouc.c: Likewise.
65248         * lib/unistr/u16-mbtoucr.c: Likewise.
65249         * lib/unistr/u16-move.c: Likewise.
65250         * lib/unistr/u16-next.c: Likewise.
65251         * lib/unistr/u16-prev.c: Likewise.
65252         * lib/unistr/u16-set.c: Likewise.
65253         * lib/unistr/u16-startswith.c: Likewise.
65254         * lib/unistr/u16-stpcpy.c: Likewise.
65255         * lib/unistr/u16-stpncpy.c: Likewise.
65256         * lib/unistr/u16-strcat.c: Likewise.
65257         * lib/unistr/u16-strchr.c: Likewise.
65258         * lib/unistr/u16-strcmp.c: Likewise.
65259         * lib/unistr/u16-strcpy.c: Likewise.
65260         * lib/unistr/u16-strcspn.c: Likewise.
65261         * lib/unistr/u16-strdup.c: Likewise.
65262         * lib/unistr/u16-strlen.c: Likewise.
65263         * lib/unistr/u16-strmblen.c: Likewise.
65264         * lib/unistr/u16-strmbtouc.c: Likewise.
65265         * lib/unistr/u16-strncat.c: Likewise.
65266         * lib/unistr/u16-strncmp.c: Likewise.
65267         * lib/unistr/u16-strncpy.c: Likewise.
65268         * lib/unistr/u16-strnlen.c: Likewise.
65269         * lib/unistr/u16-strpbrk.c: Likewise.
65270         * lib/unistr/u16-strrchr.c: Likewise.
65271         * lib/unistr/u16-strspn.c: Likewise.
65272         * lib/unistr/u16-strstr.c: Likewise.
65273         * lib/unistr/u16-strtok.c: Likewise.
65274         * lib/unistr/u16-to-u32.c: Likewise.
65275         * lib/unistr/u16-to-u8.c: Likewise.
65276         * lib/unistr/u16-uctomb-aux.c: Likewise.
65277         * lib/unistr/u16-uctomb.c: Likewise.
65278         * lib/unistr/u32-check.c: Likewise.
65279         * lib/unistr/u32-chr.c: Likewise.
65280         * lib/unistr/u32-cmp.c: Likewise.
65281         * lib/unistr/u32-cpy-alloc.c: Likewise.
65282         * lib/unistr/u32-cpy.c: Likewise.
65283         * lib/unistr/u32-endswith.c: Likewise.
65284         * lib/unistr/u32-mblen.c: Likewise.
65285         * lib/unistr/u32-mbsnlen.c: Likewise.
65286         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
65287         * lib/unistr/u32-mbtouc.c: Likewise.
65288         * lib/unistr/u32-mbtoucr.c: Likewise.
65289         * lib/unistr/u32-move.c: Likewise.
65290         * lib/unistr/u32-next.c: Likewise.
65291         * lib/unistr/u32-prev.c: Likewise.
65292         * lib/unistr/u32-set.c: Likewise.
65293         * lib/unistr/u32-startswith.c: Likewise.
65294         * lib/unistr/u32-stpcpy.c: Likewise.
65295         * lib/unistr/u32-stpncpy.c: Likewise.
65296         * lib/unistr/u32-strcat.c: Likewise.
65297         * lib/unistr/u32-strchr.c: Likewise.
65298         * lib/unistr/u32-strcmp.c: Likewise.
65299         * lib/unistr/u32-strcpy.c: Likewise.
65300         * lib/unistr/u32-strcspn.c: Likewise.
65301         * lib/unistr/u32-strdup.c: Likewise.
65302         * lib/unistr/u32-strlen.c: Likewise.
65303         * lib/unistr/u32-strmblen.c: Likewise.
65304         * lib/unistr/u32-strmbtouc.c: Likewise.
65305         * lib/unistr/u32-strncat.c: Likewise.
65306         * lib/unistr/u32-strncmp.c: Likewise.
65307         * lib/unistr/u32-strncpy.c: Likewise.
65308         * lib/unistr/u32-strnlen.c: Likewise.
65309         * lib/unistr/u32-strpbrk.c: Likewise.
65310         * lib/unistr/u32-strrchr.c: Likewise.
65311         * lib/unistr/u32-strspn.c: Likewise.
65312         * lib/unistr/u32-strstr.c: Likewise.
65313         * lib/unistr/u32-strtok.c: Likewise.
65314         * lib/unistr/u32-to-u16.c: Likewise.
65315         * lib/unistr/u32-to-u8.c: Likewise.
65316         * lib/unistr/u32-uctomb.c: Likewise.
65317         * lib/unistr/u8-check.c: Likewise.
65318         * lib/unistr/u8-chr.c: Likewise.
65319         * lib/unistr/u8-cmp.c: Likewise.
65320         * lib/unistr/u8-cpy-alloc.c: Likewise.
65321         * lib/unistr/u8-cpy.c: Likewise.
65322         * lib/unistr/u8-endswith.c: Likewise.
65323         * lib/unistr/u8-mblen.c: Likewise.
65324         * lib/unistr/u8-mbsnlen.c: Likewise.
65325         * lib/unistr/u8-mbtouc-aux.c: Likewise.
65326         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
65327         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
65328         * lib/unistr/u8-mbtouc.c: Likewise.
65329         * lib/unistr/u8-mbtoucr.c: Likewise.
65330         * lib/unistr/u8-move.c: Likewise.
65331         * lib/unistr/u8-next.c: Likewise.
65332         * lib/unistr/u8-prev.c: Likewise.
65333         * lib/unistr/u8-set.c: Likewise.
65334         * lib/unistr/u8-startswith.c: Likewise.
65335         * lib/unistr/u8-stpcpy.c: Likewise.
65336         * lib/unistr/u8-stpncpy.c: Likewise.
65337         * lib/unistr/u8-strcat.c: Likewise.
65338         * lib/unistr/u8-strchr.c: Likewise.
65339         * lib/unistr/u8-strcmp.c: Likewise.
65340         * lib/unistr/u8-strcpy.c: Likewise.
65341         * lib/unistr/u8-strcspn.c: Likewise.
65342         * lib/unistr/u8-strdup.c: Likewise.
65343         * lib/unistr/u8-strlen.c: Likewise.
65344         * lib/unistr/u8-strmblen.c: Likewise.
65345         * lib/unistr/u8-strmbtouc.c: Likewise.
65346         * lib/unistr/u8-strncat.c: Likewise.
65347         * lib/unistr/u8-strncmp.c: Likewise.
65348         * lib/unistr/u8-strncpy.c: Likewise.
65349         * lib/unistr/u8-strnlen.c: Likewise.
65350         * lib/unistr/u8-strpbrk.c: Likewise.
65351         * lib/unistr/u8-strrchr.c: Likewise.
65352         * lib/unistr/u8-strspn.c: Likewise.
65353         * lib/unistr/u8-strstr.c: Likewise.
65354         * lib/unistr/u8-strtok.c: Likewise.
65355         * lib/unistr/u8-to-u16.c: Likewise.
65356         * lib/unistr/u8-to-u32.c: Likewise.
65357         * lib/unistr/u8-uctomb-aux.c: Likewise.
65358         * lib/unistr/u8-uctomb.c: Likewise.
65359         * lib/unitypes.h: Likewise.
65360         * lib/uniwidth.h: Likewise.
65361         * lib/uniwidth/cjk.h: Likewise.
65362         * lib/uniwidth/u16-strwidth.c: Likewise.
65363         * lib/uniwidth/u16-width.c: Likewise.
65364         * lib/uniwidth/u32-strwidth.c: Likewise.
65365         * lib/uniwidth/u32-width.c: Likewise.
65366         * lib/uniwidth/u8-strwidth.c: Likewise.
65367         * lib/uniwidth/u8-width.c: Likewise.
65368         * lib/uniwidth/width.c: Likewise.
65369
65370 2007-10-07  Bruno Haible  <bruno@clisp.org>
65371
65372         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
65373         The file is still under LGPL (see modules/inttypes).
65374
65375 2007-10-06  Bruno Haible  <bruno@clisp.org>
65376
65377         * modules/trunc (Dependencies): Add 'extensions'.
65378         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
65379         Reported by Ben Pfaff <blp@gnu.org>.
65380
65381 2007-10-06  Bruno Haible  <bruno@clisp.org>
65382
65383         * modules/freopen-tests: New file.
65384         * tests/test-freopen.c: New file.
65385
65386         * modules/fopen-tests: New file.
65387         * tests/test-fopen.c: New file.
65388
65389         * modules/fopen: New file.
65390         * lib/fopen.c: New file.
65391         * m4/fopen.m4: New file.
65392         * modules/freopen: New file.
65393         * lib/freopen.c: New file.
65394         * m4/freopen.m4: New file.
65395         * lib/stdio.in.h (fopen, freopen): New declarations.
65396         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
65397         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65398         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
65399         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65400         * doc/functions/fopen.texi: Mention the 'fopen' module.
65401         * doc/functions/freopen.texi: Mention the 'freopen' module.
65402
65403 2007-10-06  Bruno Haible  <bruno@clisp.org>
65404
65405         * modules/open-tests: New file.
65406         * tests/test-open.c: New file.
65407
65408         * modules/open: New file.
65409         * lib/open.c: New file.
65410         * m4/open.m4: New file.
65411         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
65412         lib/open.c does.
65413         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
65414         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
65415         macros.
65416         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
65417         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
65418         REPLACE_OPEN.
65419         * doc/functions/open.texi: Mention the 'open' module.
65420
65421 2007-10-04  Bruno Haible  <bruno@clisp.org>
65422
65423         * modules/ceill-tests: New file.
65424         * tests/test-ceill.c: New file.
65425
65426         * modules/ceill: New file.
65427         * lib/ceill.c: Replace entire file.
65428         * m4/ceill.m4: New file.
65429         * lib/math.in.h (ceill): Replace declaration.
65430         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
65431         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
65432         * doc/functions/ceill.texi: Mention the 'ceill' module.
65433         * modules/mathl (Files): Remove lib/ceill.c.
65434         (Depends-on): Add ceill.
65435
65436 2007-10-04  Bruno Haible  <bruno@clisp.org>
65437
65438         * modules/ceilf-tests: New file.
65439         * tests/test-ceilf.c: New file.
65440
65441         * modules/ceilf: New file.
65442         * lib/ceil.c: New file.
65443         * lib/ceilf.c: New file.
65444         * m4/ceilf.m4: New file.
65445         * lib/math.in.h (ceilf): New declaration.
65446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
65447         HAVE_DECL_CEILF.
65448         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
65449         HAVE_DECL_CEILF.
65450         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
65451
65452 2007-10-04  Bruno Haible  <bruno@clisp.org>
65453
65454         * modules/floorl-tests: New file.
65455         * tests/test-floorl.c: New file.
65456
65457         * modules/floorl: New file.
65458         * lib/floorl.c: Replace entire file.
65459         * m4/floorl.m4: New file.
65460         * lib/math.in.h (floorl): Replace declaration.
65461         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
65462         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
65463         * doc/functions/floorl.texi: Mention the 'floorl' module.
65464         * modules/mathl (Files): Remove lib/floorl.c.
65465         (Depends-on): Add floorl.
65466
65467 2007-10-04  Bruno Haible  <bruno@clisp.org>
65468
65469         * modules/floorf-tests: New file.
65470         * tests/test-floorf.c: New file.
65471
65472         * modules/floorf: New file.
65473         * lib/floor.c: New file.
65474         * lib/floorf.c: New file.
65475         * m4/floorf.m4: New file.
65476         * lib/math.in.h (floorf): New declaration.
65477         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
65478         HAVE_DECL_FLOORF.
65479         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
65480         HAVE_DECL_FLOORF.
65481         * doc/functions/floorf.texi: Mention the 'floorf' module.
65482
65483 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
65484             Bruno Haible  <bruno@clisp.org>
65485
65486         Advertise for the Git server instead of the CVS server.
65487         * doc/gnulib-intro.texi (Steady Development): Mention the Git
65488         repository instead of the CVS one.
65489         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
65490         about all VCS systems generically.
65491         * doc/gnulib.texi (Introduction): Capitalize `Git'.
65492
65493 2007-10-04  Bruno Haible  <bruno@clisp.org>
65494
65495         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
65496         means.
65497         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
65498
65499 2007-10-04  Bruno Haible  <bruno@clisp.org>
65500
65501         * modules/truncl-tests: New file.
65502         * tests/test-truncl.c: New file.
65503
65504         * modules/truncl: New file.
65505         * lib/truncl.c: New file.
65506         * m4/truncl.m4: New file.
65507         * lib/math.in.h (truncl): New declaration.
65508         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
65509         HAVE_DECL_TRUNCL.
65510         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
65511         HAVE_DECL_TRUNCL.
65512         * doc/functions/truncl.texi: Mention the 'truncl' module.
65513
65514 2007-10-04  Bruno Haible  <bruno@clisp.org>
65515
65516         * modules/truncf-tests: New file.
65517         * tests/test-truncf.c: New file.
65518
65519         * modules/truncf: New file.
65520         * lib/trunc.c: Make paramerizable through USE_* macros.
65521         * lib/truncf.c: New file.
65522         * m4/truncf.m4: New file.
65523         * lib/math.in.h (truncf): New declaration.
65524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
65525         HAVE_DECL_TRUNCF.
65526         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
65527         HAVE_DECL_TRUNCF.
65528         * doc/functions/truncf.texi: Mention the 'truncf' module.
65529
65530 2007-10-03  Bruno Haible  <bruno@clisp.org>
65531
65532         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
65533         augmentation also for tests modules.
65534         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
65535         * modules/atexit-tests (Makefile.am): Likewise.
65536         * modules/binary-io-tests (Makefile.am): Likewise.
65537         * modules/c-strcase-tests (Makefile.am): Likewise.
65538         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
65539         * modules/canonicalize-tests (Makefile.am): Likewise.
65540         * modules/closein-tests (Makefile.am): Likewise.
65541         * modules/fprintf-posix-tests (Makefile.am): Likewise.
65542         * modules/freadahead-tests (Makefile.am): Likewise.
65543         * modules/fseek-tests (Makefile.am): Likewise.
65544         * modules/fseeko-tests (Makefile.am): Likewise.
65545         * modules/ftell-tests (Makefile.am): Likewise.
65546         * modules/ftello-tests (Makefile.am): Likewise.
65547         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
65548         * modules/isnanl-tests (Makefile.am): Likewise.
65549         * modules/lseek-tests (Makefile.am): Likewise.
65550         * modules/mbscasecmp-tests (Makefile.am): Likewise.
65551         * modules/mbscasestr-tests (Makefile.am): Likewise.
65552         * modules/mbschr-tests (Makefile.am): Likewise.
65553         * modules/mbscspn-tests (Makefile.am): Likewise.
65554         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
65555         * modules/mbspbrk-tests (Makefile.am): Likewise.
65556         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
65557         * modules/mbsrchr-tests (Makefile.am): Likewise.
65558         * modules/mbsspn-tests (Makefile.am): Likewise.
65559         * modules/mbsstr-tests (Makefile.am): Likewise.
65560         * modules/printf-posix-tests (Makefile.am): Likewise.
65561         * modules/snprintf-posix-tests (Makefile.am): Likewise.
65562         * modules/sprintf-posix-tests (Makefile.am): Likewise.
65563         * modules/tsearch-tests (Makefile.am): Likewise.
65564         * modules/uniname/uniname-tests (Makefile.am): Likewise.
65565         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
65566         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
65567         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
65568         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
65569         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
65570         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
65571         * modules/vprintf-posix-tests (Makefile.am): Likewise.
65572         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
65573         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
65574         * modules/xstrtoimax-tests (Makefile.am): Likewise.
65575         * modules/xstrtol-tests (Makefile.am): Likewise.
65576         * modules/xstrtoumax-tests (Makefile.am): Likewise.
65577         * modules/yesno-tests (Makefile.am): Likewise.
65578
65579 2007-10-03  Bruno Haible  <bruno@clisp.org>
65580
65581         * modules/trunc-tests: New file.
65582         * tests/test-trunc.c: New file.
65583
65584         * modules/trunc: New file.
65585         * lib/trunc.c: New file.
65586         * m4/trunc.m4: New file.
65587         * lib/math.in.h (trunc): New declaration.
65588         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
65589         HAVE_DECL_TRUNC.
65590         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
65591         HAVE_DECL_TRUNC.
65592         * doc/functions/trunc.texi: Mention the 'trunc' module.
65593
65594 2007-10-03  Bruno Haible  <bruno@clisp.org>
65595
65596         * tests/test-fpending.c: New file, mostly copied
65597         from coreutils/lib/t-fpending.c.
65598         * modules/fpending-tests: New file.
65599
65600 2007-10-03  Bruno Haible  <bruno@clisp.org>
65601
65602         Port the stdio extensions to QNX (untested).
65603         * lib/fseterr.c (fseterr): Add support for QNX.
65604         * lib/fbufmode.c (fbufmode): Likewise.
65605         * lib/freadable.c (freadable): Likewise.
65606         * lib/fwritable.c (fwritable): Likewise.
65607         * lib/freading.c (freading): Likewise.
65608         * lib/fwriting.c (fwriting): Likewise.
65609         * lib/freadahead.c (freadahed): Likewise.
65610         * lib/fpurge.c (fpurge): Likewise.
65611         * lib/fseeko.c (rpl_fseeko): Likewise.
65612
65613 2007-10-03  Bruno Haible  <bruno@clisp.org>
65614             Jim Meyering  <jim@meyering.net>
65615             Eric Blake  <ebb9@byu.net>
65616
65617         * doc/relocatable.texi: Use @command instead of @program.
65618
65619 2007-10-02  Jim Meyering  <jim@meyering.net>
65620
65621         Perform one more "_.h" -> ".in.h" substitution.
65622         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
65623         instead of unistd_.h here, too.
65624
65625 2007-10-01  Bruno Haible  <bruno@clisp.org>
65626
65627         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
65628         Needed for the alloca-opt module.
65629
65630 2007-09-30  Bruno Haible  <bruno@clisp.org>
65631
65632         * lib/alloca.in.h: Renamed from lib/alloca_.h.
65633         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
65634         alloca_.h.
65635         * lib/argz.in.h: Renamed from lib/argz_.h.
65636         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
65637         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
65638         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
65639         byteswap_.h.
65640         * lib/dirent.in.h: Renamed from lib/dirent_.h.
65641         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
65642         dirent_.h.
65643         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
65644         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
65645         fcntl_.h.
65646         * lib/float.in.h: Renamed from lib/float_.h.
65647         * modules/float (Files, Makefile.am): Use float.in.h instead of
65648         float_.h.
65649         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
65650         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
65651         fnmatch_.h.
65652         * lib/getopt.in.h: Renamed from lib/getopt_.h.
65653         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
65654         getopt_.h.
65655         * lib/glob.in.h: Renamed from lib/glob_.h.
65656         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
65657         * lib/iconv.in.h: Renamed from lib/iconv_.h.
65658         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
65659         iconv_.h.
65660         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
65661         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
65662         inttypes_.h.
65663         * lib/locale.in.h: Renamed from lib/locale_.h.
65664         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
65665         locale_.h.
65666         * lib/math.in.h: Renamed from lib/math_.h.
65667         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
65668         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
65669         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
65670         of netinet_in_.h. Add dependency.
65671         * lib/poll.in.h: Renamed from lib/poll_.h.
65672         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
65673         * lib/search.in.h: Renamed from lib/search_.h.
65674         * modules/search (Files, Makefile.am): Use search.in.h instead of
65675         search_.h.
65676         * lib/signal.in.h: Renamed from lib/signal_.h.
65677         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
65678         _signal.h.
65679         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
65680         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
65681         stdbool_.h.
65682         * lib/stdint.in.h: Renamed from lib/stdint_.h.
65683         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
65684         stdint_.h.
65685         * lib/stdio.in.h: Renamed from lib/stdio_.h.
65686         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
65687         stdio_.h.
65688         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
65689         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
65690         stdlib_.h.
65691         * lib/string.in.h: Renamed from lib/string_.h.
65692         * modules/string (Files, Makefile.am): Use string.in.h instead of
65693         string_.h.
65694         * doc/gnulib-tool.texi (Initial import): Update.
65695         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
65696         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
65697         of sys_select_.h. Add dependency.
65698         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
65699         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
65700         of sys_socket_.h.
65701         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
65702         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
65703         sys_stat_.h.
65704         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
65705         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
65706         sys_time_.h.
65707         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
65708         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
65709         sysexits_.h.
65710         * lib/time.in.h: Renamed from lib/time_.h.
65711         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
65712         * lib/unistd.in.h: Renamed from lib/unistd_.h.
65713         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
65714         unistd_.h.
65715         * lib/wchar.in.h: Renamed from lib/wchar_.h.
65716         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
65717         wchar_.h.
65718         * lib/wctype.in.h: Renamed from lib/wctype_.h.
65719         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
65720         wctype_.h.
65721         * build-aux/bootstrap (slurp): Update.
65722         * lib/.cppi-disable: Update.
65723
65724 2007-09-30  Bruno Haible  <bruno@clisp.org>
65725
65726         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
65727         Needed on BeOS.
65728
65729 2007-09-30  Bruno Haible  <bruno@clisp.org>
65730
65731         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
65732
65733 2007-09-29  Bruno Haible  <bruno@clisp.org>
65734
65735         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
65736
65737 2007-09-29  Bruno Haible  <bruno@clisp.org>
65738
65739         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
65740         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
65741         * build-aux/install-reloc: Compile also areadlink.c.
65742         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
65743
65744 2007-09-29  Bruno Haible  <bruno@clisp.org>
65745
65746         * gnulib-tool (func_emit_initmacro_done): Indentation.
65747
65748 2007-09-29  Bruno Haible  <bruno@clisp.org>
65749
65750         * README: Add CVS checkout update instructions.
65751         Info from Bob Proulx <bob@proulx.com>.
65752
65753 2007-09-28  Eric Blake  <ebb9@byu.net>
65754
65755         Provide move-if-change.
65756         * build-aux/move-if-change: New file, based on best practice
65757         rather than any canonical upstream location.
65758
65759 2007-09-28  Jim Meyering  <jim@meyering.net>
65760
65761         Fix canonicalize loop-detection corner case.
65762         Do not attempt to stat the symlink values stored via seen_triple.
65763         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
65764         on linux-2.6.18, (but not 2.6.22).
65765         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
65766         triple_compare.  The former compares dev,ino,filename, while the latter
65767         would actually stat dirname(filename) when dev and ino were equal.
65768         * lib/hash-triple.c: Install <string.h>.
65769         (STREQ): Define.
65770         (triple_compare_ino_str): New function.
65771         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
65772
65773 2007-09-28  Eric Blake  <ebb9@byu.net>
65774
65775         Enforce that AC_REPLACE_FUNCS files exist.
65776         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
65777         override check for typos.
65778
65779         Fix test-closein on Solaris 10.
65780         * tests/test-closein.c (main): Don't assume stdin can be inherited
65781         closed on all systems.
65782         * tests/test-closein.sh: Likewise.
65783         Reported by Piotr Tarnowski.
65784
65785 2007-09-28  Jim Meyering  <jim@meyering.net>
65786
65787         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
65788
65789 2007-09-27  Jim Meyering  <jim@meyering.net>
65790
65791         canonicalize: Avoid a false-positive cycle failure.
65792         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
65793         Sort.  Remove cycle-check.
65794         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
65795         not cycle-check.h.
65796         (seen_triple): New function.
65797         (canonicalize_filename_mode): Use it instead of cycle-check.
65798         * tests/test-canonicalize.c: Add a test for this bug.
65799         * tests/test-canonicalize.sh: Set up and run the test.
65800
65801         New module, file-set, from coreutils.
65802         * modules/file-set: Define it.
65803         * lib/file-set.c, lib/file-set.h: Implement.
65804
65805         New module, hash-triple, from coreutils.
65806         * modules/hash-triple: Define it.
65807         * lib/hash-triple.c, lib/hash-triple.h: Implement.
65808
65809 2007-09-25  Eric Blake  <ebb9@byu.net>
65810
65811         Fix strerror on Interix.
65812         * lib/string_.h (strerror): Declare replacement.
65813         * doc/functions/strerror.texi (strerror): Document the Interix
65814         shortcoming.
65815         * modules/string (Makefile.am): Support new hooks.
65816         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
65817         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
65818         gl_FUNC_STRERROR_SEPARATE.
65819         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
65820         * lib/strerror.c (rpl_strerror): Provide replacement.
65821         * modules/strerror (Depends-on): Add string.
65822         (configure.ac): Detect use of module.
65823         * tests/test-strerror.c: New file.
65824         * modules/strerror-tests: New test module.
65825         * modules/argp (Depends-on): Add strerror.
65826         * modules/error (Depends-on): Likewise.
65827         Reported by Martin Koeppe.
65828
65829 2007-09-24  Bruno Haible  <bruno@clisp.org>
65830
65831         * README: Update git instructions.
65832
65833 2007-09-24  Eric Blake  <ebb9@byu.net>
65834
65835         Revert fpending breakage from 2007-09-08.
65836         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
65837         __fpending.c.
65838
65839 2007-09-24  Jim Meyering  <jim@meyering.net>
65840
65841         filenamecat.c: Add a test.
65842         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
65843         showing how the function works when DIR is the empty string.
65844
65845 2007-09-21  Simon Josefsson  <simon@josefsson.org>
65846
65847         * tests/test-canonicalize.sh: Turn on executable bit.
65848
65849 2007-09-19  Eric Blake  <ebb9@byu.net>
65850
65851         * README: Update CVS instructions.
65852
65853 2007-09-18  Bruno Haible  <bruno@clisp.org>
65854
65855         * modules/areadlink: New file.
65856         * lib/areadlink.h (areadlink): New declaration.
65857         * lib/areadlink.c: New file, based on lib/xreadlink.c.
65858
65859 2007-09-17  Jim Meyering  <jim@meyering.net>
65860
65861         * lib/savewd.c (ESTALE) [!defined]: Define.
65862         Reported to be required on Interix by Martin Koeppe.
65863
65864 2007-09-17  Bruno Haible  <bruno@clisp.org>
65865
65866         * gnulib-tool (func_version): Use $version.
65867
65868 2007-09-16  Bruno Haible  <bruno@clisp.org>
65869
65870         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
65871         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
65872         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
65873         Reported by Greg Schafer <gschafer@zip.com.au>.
65874
65875 2007-09-15  Bruno Haible  <bruno@clisp.org>
65876
65877         * gnulib-tool (sed): Try a little harder to make bash understand the
65878         alias.
65879         Reported by Bruce Korb <bruce.korb@gmail.com>.
65880
65881 2007-09-13  Eric Blake  <ebb9@byu.net>
65882
65883         * ChangeLog: Remove conflict markers.
65884
65885 2007-09-13  Simon Josefsson  <simon@josefsson.org>
65886
65887         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
65888         Reported by Bruno Haible <bruno@clisp.org>.
65889
65890 2007-09-12  Bruno Haible  <bruno@clisp.org>
65891
65892         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
65893         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
65894         is not defined.
65895
65896 2007-09-12  Eric Blake  <ebb9@byu.net>
65897
65898         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
65899         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
65900         Autoconf definition.
65901         * modules/euidaccess (Depends-on): Add extensions, for
65902         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
65903         * modules/fnmatch (Depends-on): Likewise.
65904         * modules/getaddrinfo (Depends-on): Likewise.
65905         * modules/getdelim (Depends-on): Likewise.
65906         * modules/getline (Depends-on): Likewise.
65907         * modules/getsubopt (Depends-on): Likewise.
65908         * modules/gettext (Depends-on): Likewise.
65909         * modules/group-member (Depends-on): Likewise.
65910         * modules/mbchar (Depends-on): Likewise.
65911         * modules/memmem (Depends-on): Likewise.
65912         * modules/mempcpy (Depends-on): Likewise.
65913         * modules/memrchr (Depends-on): Likewise.
65914         * modules/pagealign_alloc (Depends-on): Likewise.
65915         * modules/readutmp (Depends-on): Likewise.
65916         * modules/stpcpy (Depends-on): Likewise.
65917         * modules/stpncpy (Depends-on): Likewise.
65918         * modules/strchrnul (Depends-on): Likewise.
65919         * modules/strndup (Depends-on): Likewise.
65920         * modules/strsep (Depends-on): Likewise.
65921         * modules/strverscmp (Depends-on): Likewise.
65922         * modules/vasprintf (Depends-on): Likewise.
65923         * modules/wcwidth (Depends-on): Likewise.
65924         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
65925         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
65926         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
65927         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
65928         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
65929         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65930         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
65931         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65932         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
65933         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
65934         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
65935         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65936         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65937         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
65938         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
65939         * m4/readutmp.m4 (gl_READUTMP): Likewise.
65940         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65941         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65942         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65943         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65944         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65945         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65946         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65947         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
65948         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
65949         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65950         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
65951         so that lock.m4 can be used in gettext without extensions module.
65952
65953 2007-09-11  Bruno Haible  <bruno@clisp.org>
65954
65955         * m4/isc-posix.m4: Remove file.
65956         Suggested by Eric Blake.
65957
65958 2007-09-11  Eric Blake  <ebb9@byu.net>
65959
65960         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
65961
65962 2007-09-10  Bruno Haible  <bruno@clisp.org>
65963
65964         * posix-modules: Fix typo in error message.
65965         Reported by Matt <mkraai@beckman.com>.
65966
65967 2007-09-09  Bruno Haible  <bruno@clisp.org>
65968
65969         * doc/functions/getdelim.texi: Update list of platforms lacking the
65970         function.
65971         * doc/functions/getline.texi: Likewise.
65972
65973 2007-09-09  Jim Meyering  <jim@meyering.net>
65974
65975         * lib/hash.c (hash_initialize): Detect calloc failure.
65976         Reported by Bruno Haible.
65977
65978 2007-09-09  Bruno Haible  <bruno@clisp.org>
65979
65980         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
65981         malloc or realloc fails.
65982
65983 2007-09-09  Bruno Haible  <bruno@clisp.org>
65984
65985         * modules/getcwd (Depends-on): Add malloc-posix.
65986         * modules/glob (Depends-on): Likewise.
65987         * modules/putenv (Depends-on): Likewise.
65988         * modules/strdup (Depends-on): Likewise.
65989         * modules/getdelim (Depends-on): Add realloc-posix.
65990         * modules/read-file (Depends-on): Likewise.
65991
65992 2007-09-09  Bruno Haible  <bruno@clisp.org>
65993
65994         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
65995         (gl_FUNC_MALLOC_POSIX): Require it.
65996         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
65997         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
65998         * modules/realloc (Files): Add m4/malloc.m4.
65999         * modules/calloc (Files): Likewise.
66000
66001 2007-09-09  Bruno Haible  <bruno@clisp.org>
66002
66003         * modules/malloc-posix: New file.
66004         * modules/malloc (Depends-on): Add malloc-posix.
66005         * lib/malloc.c: Include errno.h.
66006         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
66007         and a POSIX-compatible malloc into a single function. Set ENOMEM
66008         when returning NULL.
66009         * m4/malloc.m4: New file.
66010         * doc/functions/malloc.texi: Mention the malloc-posix module.
66011         * lib/stdlib_.h (malloc): New declaration.
66012         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66013         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
66014         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
66015         and HAVE_MALLOC_POSIX.
66016
66017 2007-09-09  Bruno Haible  <bruno@clisp.org>
66018
66019         * modules/realloc-posix: New file.
66020         * modules/realloc (Depends-on): Add realloc-posix.
66021         * lib/realloc.c: Include errno.h.
66022         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
66023         and a POSIX-compatible realloc into a single function. Set ENOMEM
66024         when returning NULL.
66025         * m4/realloc.m4: New file.
66026         * doc/functions/realloc.texi: Mention the realloc-posix module.
66027         * lib/stdlib_.h (realloc): New declaration.
66028         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66029         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
66030         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
66031         and HAVE_REALLOC_POSIX.
66032
66033 2007-09-09  Bruno Haible  <bruno@clisp.org>
66034
66035         * modules/calloc-posix: New file.
66036         * modules/calloc (Depends-on): Add calloc-posix.
66037         * lib/calloc.c: Include errno.h.
66038         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
66039         and a POSIX-compatible calloc into a single function. Set ENOMEM
66040         when returning NULL.
66041         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
66042         * doc/functions/calloc.texi: Mention the calloc-posix module.
66043         * lib/stdlib_.h (calloc): New declaration.
66044         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66045         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
66046         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
66047         and HAVE_CALLOC_POSIX.
66048
66049 2007-09-09  Bruno Haible  <bruno@clisp.org>
66050
66051         Allow for modules to show an arbitrary notice.
66052         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
66053         * gnulib-tool: New option --extract-notice.
66054         (func_usage): Document it.
66055         (sed_extract_prog): Update.
66056         (func_get_notice): New function.
66057         (func_modules_notice): New function.
66058         (func_import, func_create_testdir): Invoke it.
66059         Suggested by Jim Meyering.
66060
66061 2007-09-09  Bruno Haible  <bruno@clisp.org>
66062
66063         * gnulib-tool: New options --verbose, --quiet.
66064         (func_usage): Document them.
66065         (verbose): New variable.
66066         (func_execute_command): New function.
66067         (func_import): Don't show the module list and the file list if
66068         $verbose < 0.
66069         (func_create_testdir): Likewise. Use func_execute_command.
66070         (func_create_megatestdir): Use func_execute_command.
66071
66072 2007-09-08  Bruno Haible  <bruno@clisp.org>
66073
66074         * gnulib-tool (func_import): Prefer rsync over wget when available,
66075         for fetching the PO files.
66076
66077 2007-09-08  Bruno Haible  <bruno@clisp.org>
66078
66079         * posix-modules: New file. Portions copied from gnulib-tool.
66080         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
66081
66082 2007-09-08  Jim Meyering  <jim@meyering.net>
66083
66084         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
66085         * lib/fpending.h: Rename from __fpending.h.
66086         * lib/fpending.c: Rename from __fpending.c.
66087         Include "fpending.h", not "__fpending.h".
66088         * lib/__fpending.h, lib/__fpending.c: Remove files.
66089         * modules/fpending (Files): Reflect new file names.
66090         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
66091
66092 2007-09-08  Bruno Haible  <bruno@clisp.org>
66093
66094         * m4/inttypes-h.m4: Remove stub file.
66095
66096 2007-09-07  Simon Josefsson  <simon@josefsson.org>
66097
66098         * doc/headers/stdint.texi: Discuss #include_next issue.
66099
66100 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66101
66102         * build-aux/bootstrap: Remove obsolete comment about wget --help.
66103
66104 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66105
66106         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
66107         in variable name.
66108
66109 2007-09-03  Jim Meyering  <jim@meyering.net>
66110
66111         New module: git-version-gen.
66112         * modules/git-version-gen: New file.
66113
66114         Import changes from coreutils for bootstrap script.
66115
66116         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
66117
66118         bootstrap: uses rsync to download the .po files
66119         * build-aux/bootstrap (po_download_command_format): New global.
66120         (download_po_files): Use rsync.
66121         (update_po_files): Don't remove .po files after download,
66122         so future rsync runs can take advantage of the copies.
66123
66124         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
66125
66126         Solve the unnecessary-.po-file-regeneration problem once and for all.
66127         * build-aux/bootstrap (download_po_files): New function, renamed from
66128         get_translations.  Now, downloads, but doesn't update LINGUAS.
66129         (update_po_files): New function.
66130
66131         bootstrap: Ignore more.
66132         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
66133         uniwidth to e.g., lib/.gitignore.
66134         (slurp): Handle the sys_stat_.h -> sys mapping, too.
66135
66136         * build-aux/bootstrap: New setting: vc_ignore.
66137         (insert_sorted_if_absent): Create $file if absent.
66138         Adapt to new, possibly empty, list: $vc_ignore.
66139
66140         bootstrap: generate more ignorable names
66141         * build-aux/bootstrap (slurp): When generating ignorable names,
66142         also map .sin to .sed, .gperf to .c, and .y to .c.
66143
66144 2007-09-03  Jim Meyering  <jim@meyering.net>
66145
66146         * build-aux/git-version-gen: New file, from coreutils.  For details, see
66147         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
66148
66149 2007-09-02  Bruno Haible  <bruno@clisp.org>
66150
66151         Fix mis-recognition of 'mcs' on QNX 6.
66152         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
66153         output contains the string "Mono".
66154         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
66155         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
66156
66157 2007-09-01  Bruno Haible  <bruno@clisp.org>
66158
66159         Fix collision between uniwidth/* and linebreak modules.
66160         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
66161         u32_width): Remove declarations.
66162         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
66163         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
66164         streq3, streq2, streq1, streq0): Remove functions.
66165         (STREQ): Remove macro.
66166         (is_cjk_encoding): Remove function.
66167         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
66168         (uc_width, u8_width, u16_width, u32_width): Remove functions.
66169         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
66170         * NEWS: Document the change.
66171
66172 2007-09-01  Bruno Haible  <bruno@clisp.org>
66173
66174         * lib/streq.h: Add double-inclusion guard.
66175
66176 2007-09-01  Karl Berry  <karl@gnu.org>
66177
66178         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
66179
66180 2007-08-28  Jim Meyering  <jim@meyering.net>
66181
66182         Rename mreadlink_with_size to areadlink_with_size.
66183         * NEWS: Document the change.
66184         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
66185         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
66186         * lib/mreadlink.h: Rename this to...
66187         * lib/areadlink.h: ...this.
66188         * modules/mreadlink-with-size: Rename this to...
66189         * modules/areadlink-with-size: ...this.
66190         * lib/canonicalize.c: Reflect the renaming.
66191         * modules/canonicalize: Likewise.
66192
66193 2007-08-26  Bruno Haible  <bruno@clisp.org>
66194
66195         * gnulib-tool (func_import): When deciding which files to remove,
66196         consider also dangling symbolic links.
66197         Reported by Eric Blake.
66198
66199 2007-08-26  Bruno Haible  <bruno@clisp.org>
66200
66201         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
66202
66203 2007-08-23  Simon Josefsson  <simon@josefsson.org>
66204
66205         * lib/readline.c: Don't include getline.h, the prototype is now
66206         found in stdio.h.
66207
66208 2007-08-23  Jim Meyering  <jim@meyering.net>
66209
66210         Getdelim touchup.
66211         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
66212         around the funlockfile call, since funlockfile never sets errno.
66213         Don't set errno upon failed realloc.
66214
66215 2007-08-22  Eric Blake  <ebb9@byu.net>
66216
66217         Getline touchups.
66218         * lib/getdelim.c (getdelim): Revert regression that required *n to
66219         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
66220         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
66221         getdelim, rather than whether implementation is missing.
66222         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
66223         * lib/stdio_.h (getline): Also declare if replacement is
66224         required.
66225         * doc/functions/getdelim.texi: New file.
66226         * doc/functions/getline.texi: Likewise.
66227         * doc/gnulib.texi (Function Substitutes): Add new files.
66228         Reported by Bruno Haible.
66229
66230 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
66231
66232         * users.txt: Add Guile.
66233
66234 2007-08-22  Eric Blake  <ebb9@byu.net>
66235
66236         * tests/test-getdelim.c (main): Use remove, not unlink.
66237         * tests/test-getline.c (main): Likewise.
66238
66239         Move getline and getdelim into stdio.h, per POSIX 200x.
66240         * modules/getline (Files): Remove getline.h.
66241         (Depends-on): Add stdio.
66242         (configure.ac): Add module indicator.
66243         * modules/getdelim (Files): Remove getdelim.h.
66244         (Depends-on): Add stdio.
66245         (configure.ac): Add module indicator.
66246         * modules/stdio (Makefile.am): Work with new indicators.
66247         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
66248         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
66249         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66250         * lib/getdelim.h: Delete.
66251         * lib/getline.h: Delete.
66252         * lib/stdio_.h (getdelim, getline): Declare.
66253         * modules/getdelim-tests: New module.
66254         * modules/getline-tests: Likewise.
66255         * tests/test-getdelim.c: New file.
66256         * tests/test-getline.c: Likewise.
66257         * NEWS: Document the change.
66258         * lib/getline.c: Update choice of header.
66259         * lib/csharpcomp.c: Likewise.
66260         * lib/getpass.c: Likewise.
66261         * lib/javacomp.c: Likewise.
66262         * lib/javaversion.c: Likewise.
66263         * lib/yesno.c: Likewise.
66264         * lib/getdelim.c: Likewise.
66265         (getdelim): Set errno on failure, and avoid memory leak.
66266
66267 2007-08-19  Bruno Haible  <bruno@clisp.org>
66268
66269         * modules/closein (Depends-on): Add freadahead.
66270         * lib/closein.c: Include freadahead.h.
66271         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
66272         is zero.
66273
66274 2007-08-19  Bruno Haible  <bruno@clisp.org>
66275
66276         * modules/freadahead-tests: New file.
66277         * tests/test-freadahead.sh: New file.
66278         * tests/test-freadahead.c: New file.
66279
66280         * modules/freadahead: New file.
66281         * lib/freadahead.h: New file.
66282         * lib/freadahead.c: New file.
66283         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
66284         fbufmode, fpurge, freadable, fwritable.
66285
66286 2007-08-19  Eric Blake  <ebb9@byu.net>
66287
66288         Test yesno in combination with closein.
66289         * lib/yesno.c (yesno): Document use of stdin.
66290         * modules/yesno-tests (Files): New module.
66291         * tests/test-yesno.c (main): New file.
66292         * tests/test-yesno.sh: Likewise.
66293
66294 2007-08-19  Bruno Haible  <bruno@clisp.org>
66295
66296         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
66297         * lib/fseeko.c (rpl_fseeko): Likewise.
66298         * lib/fseterr.c (fseterr): Likewise.
66299
66300 2007-08-19  Bruno Haible  <bruno@clisp.org>
66301
66302         * tests/test-lseek.c (main): Disable a test for BeOS.
66303         * doc/functions/lseek.texi: Document the BeOS bug.
66304
66305 2007-08-19  Bruno Haible  <bruno@clisp.org>
66306             Eric Blake  <ebb9@byu.net>
66307
66308         * lib/lseek.c: Include <sys/stat.h>.
66309         (rpl_lseek): Add workaround code also for Unix platforms.
66310         Needed for BeOS.
66311         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
66312         * doc/functions/lseek.texi: Document BeOS definiency.
66313
66314 2007-08-18  Bruno Haible  <bruno@clisp.org>
66315
66316         * modules/fstrcmp-tests: New file.
66317         * tests/test-fstrcmp.c: New file.
66318
66319 2007-08-18  Bruno Haible  <bruno@clisp.org>
66320
66321         * modules/fstrcmp: New file, from GNU gettext with modifications.
66322         * lib/fstrcmp.h: New file, from GNU gettext.
66323         * lib/fstrcmp.c: New file, from GNU gettext.
66324         * MODULES.html.sh (String handling): Add fstrcmp.
66325
66326 2007-08-18  Bruno Haible  <bruno@clisp.org>
66327
66328         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
66329         'bool'.
66330         (diag, compareseq): Remove const from the ctxt argument.
66331         (USE_HEURISTIC): Undefine at the end.
66332
66333 2007-08-18  Jim Meyering  <jim@meyering.net>
66334
66335         New file: lib/idcache.h
66336         * NEWS: Mention the addition.
66337         * modules/idcache (Files): Add lib/idcache.h
66338         * lib/idcache.c: Include "idcache.h".
66339         Don't include <sys/types.h>.
66340         Add a FIXME comment.
66341         Move file-scoped "static" declarations to the top.
66342         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
66343
66344 2007-08-17  Bruno Haible  <bruno@clisp.org>
66345         and Paul Eggert  <eggert@cs.ucla.edu>
66346
66347         * MODULES.html.sh: Add diffseq.
66348         * modules/diffseq: New file.
66349         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
66350         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
66351
66352 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66353
66354         Import changes from coreutils for bootstrap script.
66355
66356         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
66357
66358         * build-aux/bootstrap (slurp): Work even in environments where
66359         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
66360         current code does not slurp files whose names start with ".", and
66361         this looks like it might be a troublesome area.
66362
66363         2007-07-11  Jim Meyering  <jim@meyering.net>
66364
66365         If there's a GPL vN copyright comment, require that N == 3.
66366
66367         2007-07-08  Jim Meyering  <jim@meyering.net>
66368
66369         Run the coreutils-specific code only if tests/Makefile.am.in exists.
66370         * build-aux/bootstrap (mam_template): Move definition out of loop.
66371
66372         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
66373
66374         * build-aux/bootstrap (symlink_to_dir): Rename function from
66375         symlink_to_gnulib.  Add a directory parameter.  Update all
66376         callers.
66377         (cp_mark_as_generated): Also check for -- and link to -- files in
66378         gl/.
66379
66380         2007-07-08  Jim Meyering  <jim@meyering.net>
66381
66382         Adapt to deeper hierarchy in gnulib.
66383         * build-aux/bootstrap (symlink_to_dir): If the destination
66384         directory doesn't exist, create it. This is required at least for
66385         "lib/uniwidth/cjk.h".
66386
66387         2007-05-15  Jim Meyering  <jim@meyering.net>
66388
66389         * build-aux/bootstrap: Now that generated Makefile.am files
66390         are no longer under version control, they must be created at
66391         bootstrap time.
66392
66393 2007-08-14  Ben Pfaff  <blp@gnu.org>
66394
66395         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
66396
66397 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66398
66399         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
66400         given the changes below.
66401         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
66402         even on hosts that have padding bits beyond the supported 64.
66403
66404 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66405
66406         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
66407         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
66408         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
66409         depends on it.
66410         (xstrtol_error): Remove.
66411         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
66412         but with a different signature.
66413         (ATTRIBUTE_NORETURN, __attribute__): New macros.
66414         * lib/xstrtol-error.c: Include exitfail.h.
66415         (xstrtol_fatal): New function, with a different signature from the
66416         old xstrtol_error, so that the caller need not worry about passing
66417         in an exit status, or about storage management of the option argument.
66418         (xstrtol_error): Now a static function.  Redo signature to
66419         implement xstrtol_fatal.  Output the correct number of hyphens in
66420         front of the option so that the caller need not worry about
66421         storage management.
66422         (N_): New macro.
66423         (_): Remove; not used now.
66424         * modules/xstrtol: Depend on getopt.
66425         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
66426         of old STRTOL_FATAL_ERROR macro.
66427         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
66428         of test program.
66429         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
66430         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
66431
66432 2007-08-08  Eric Blake  <ebb9@byu.net>
66433
66434         * lib/xstrtol-error.c: Add missing include.
66435
66436         Move xstrtol messages into gnulib domain, when --pobase is used.
66437         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
66438         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
66439         * modules/xstrtol (Files): Distribute new file.
66440         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
66441         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
66442         * tests/test-xstrtol.c: ...into new file.
66443         * tests/test-xstrtoul.c: Also test xstrtoul.
66444         * tests/test-xstrtoimax.c: Also test xstrtoimax.
66445         * tests/test-xstrtoumax.c: Also test xstrtoumax.
66446         * tests/test-xstrtol.sh: Drive the tests.
66447         * tests/test-xstrtoimax.sh: Likewise.
66448         * tests/test-xstrtoumax.sh: Likewise.
66449         * modules/xstrtol-tests: New module.
66450         * modules/xstrtoimax-tests: Likewise.
66451         * modules/xstrtoumax-tests: Likewise.
66452
66453 2007-08-08  Jim Meyering  <jim@meyering.net>
66454
66455         New function: mfile_name_concat.
66456         * lib/filenamecat.c (mfile_name_concat): New function, just like
66457         file_name_concat, but return NULL upon failure rather than exiting
66458         with a diagnostic.
66459         * lib/filenamecat.h: Declare it.
66460
66461 2007-08-07  Bruno Haible  <bruno@clisp.org>
66462
66463         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
66464         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
66465         warning from gcc.
66466         Reported by Eric Blake.
66467
66468 2007-08-07  Simon Josefsson  <simon@josefsson.org>
66469
66470         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
66471         * modules/crypto/arcfour (License): Likewise.
66472         * modules/crypto/des-tests (License): Likewise.
66473         * modules/crypto/gc-arctwo-tests (License): Likewise.
66474         * modules/crypto/gc-des-tests (License): Likewise.
66475         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
66476         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
66477         * modules/crypto/gc-md2-tests (License): Likewise.
66478         * modules/crypto/gc-md4-tests (License): Likewise.
66479         * modules/crypto/gc-md5-tests (License): Likewise.
66480         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
66481         * modules/crypto/gc-rijndael-tests (License): Likewise.
66482         * modules/crypto/gc-sha1-tests (License): Likewise.
66483         * modules/crypto/gc-tests (License): Likewise.
66484         * modules/crypto/hmac-md5 (License): Likewise.
66485         * modules/crypto/hmac-sha1 (License): Likewise.
66486         * modules/crypto/md2-tests (License): Likewise.
66487         * modules/crypto/md4-tests (License): Likewise.
66488         * modules/crypto/md5 (License): Likewise.
66489         * modules/crypto/rijndael (License): Likewise.
66490         * modules/crypto/sha1 (License): Likewise.
66491         * modules/memxor (License): Likewise.
66492
66493 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
66494         and Bruno Haible  <bruno@clisp.org>
66495
66496         * NEWS: Describe interface changes to human, xstrtol.
66497         * lib/human.h: Include <xstrtol.h>.
66498         (human_options): Return enum strtol_error, not int.  Remove
66499         bool arg; take int * instead.
66500         * lib/human.c: Don't include "gettext.h".
66501         (_): Remove; no longer used.
66502         Don't include <xstrtol.h>, since human.h does it.
66503         (human_options): Adjust to abovementioned interface changes.
66504         Do not report error to stderr; that's now the caller's
66505         responsibility.
66506         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
66507         interface change.
66508         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
66509         Str, Argument_type_string.  All uses changed.  Put " argument"
66510         in diagnostics to make them clearer.  Change wording of suffix
66511         message for clarity.
66512         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
66513         Argument_type_string.
66514         (STRTOL_FATAL_WARN): Remove; no longer used.
66515         * modules/human (Depends-on): Remove gettext-h.
66516
66517 2007-08-06  Simon Josefsson  <simon@josefsson.org>
66518
66519         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
66520
66521 2007-07-31  Bruno Haible  <bruno@clisp.org>
66522
66523         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
66524         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
66525         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
66526
66527 2007-07-31  Bruno Haible  <bruno@clisp.org>
66528
66529         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
66530         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
66531
66532 2007-07-30  Bruno Haible  <bruno@clisp.org>
66533
66534         * modules/base64 (License): Use the synonymous term "LGPLv2+".
66535         * modules/c-ctype (License): Likewise.
66536         * modules/c-strcase (License): Likewise.
66537         * modules/check-version (License): Likewise.
66538         * modules/iconv (License): Likewise.
66539         * modules/iconv_open (License): Likewise.
66540         * modules/read-file (License): Likewise.
66541         * modules/striconv (License): Likewise.
66542         * modules/strverscmp (License): Likewise.
66543         * modules/vasprintf (License): Likewise.
66544         * modules/crypto/des (License): Likewise.
66545         * modules/crypto/gc (License): Likewise.
66546         * modules/crypto/gc-arcfour (License): Likewise.
66547         * modules/crypto/gc-arctwo (License): Likewise.
66548         * modules/crypto/gc-des (License): Likewise.
66549         * modules/crypto/gc-hmac-md5 (License): Likewise.
66550         * modules/crypto/gc-hmac-sha1 (License): Likewise.
66551         * modules/crypto/gc-md2 (License): Likewise.
66552         * modules/crypto/gc-md4 (License): Likewise.
66553         * modules/crypto/gc-md5 (License): Likewise.
66554         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
66555         * modules/crypto/gc-random (License): Likewise.
66556         * modules/crypto/gc-rijndael (License): Likewise.
66557         * modules/crypto/gc-sha1 (License): Likewise.
66558         * modules/crypto/md2 (License): Likewise.
66559         * modules/crypto/md4 (License): Likewise.
66560
66561 2007-07-30  Jim Meyering  <jim@meyering.net>
66562
66563         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
66564         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
66565         it has valid stat data.  This bug would cause du not to count the
66566         sizes of inaccessible directories.
66567         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
66568         in <http://bugzilla.redhat.com/250077>.
66569
66570 2007-07-25  Peter O'Gorman  <peter@pogma.com>
66571             Bruno Haible  <bruno@clisp.org>
66572
66573         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
66574         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
66575         #include_next, gives a diagnostic about it, but reports no error in
66576         the exit code.
66577         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
66578
66579 2007-07-24  Ben Pfaff  <blp@gnu.org>
66580
66581         Improve name: "count-one-bits" is better than "popcount".
66582         * MODULES.html.sh: Update name.
66583         * lib/popcount.h: Renamed lib/count-one-bits.h.
66584         (popcount): Renamed count_one_bits.
66585         (popcountl): Renamed count_one_bits_l.
66586         (popcountll): Renamed count_one_bits_ll.
66587         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
66588         * modules/popcount: Renamed module/count-one-bits.
66589         * modules/popcount-tests: Renamed module/count-one-bits-tests.
66590         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
66591
66592 2007-07-23  Ben Pfaff  <blp@gnu.org>
66593
66594         * lib/popcount.h (popcount32): Reduce size of constants, to allow
66595         better code generation, and add U to large constants to avoid
66596         warnings, in non-GCC case.
66597         Suggested by Bruno Haible.
66598
66599 2007-07-23  Ben Pfaff  <blp@gnu.org>
66600
66601         * lib/popcount.h: Use verify_true instead of if...abort.
66602         * modules/popcount: Depend on verify module.
66603         Suggested by Jim Meyering.
66604
66605 2007-07-23  Bruno Haible  <bruno@clisp.org>
66606
66607         * gnulib-tool (func_import): Create a .cvsignore file also when the
66608         directory is not yet in CVS but the toplevel directory is. When
66609         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
66610         Reported by Karl Berry.
66611
66612 2007-07-22  Ben Pfaff  <blp@gnu.org>
66613
66614         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
66615         case.
66616         Suggested by Eric Blake.
66617
66618 2007-07-22  Ben Pfaff  <blp@gnu.org>
66619
66620         New module: popcount.
66621         * MODULES.html.sh: Add popcount.
66622         * modules/popcount: New file.
66623         * modules/popcount-tests: New file.
66624         * tests/test-popcount.c: New file.
66625         * lib/popcount.h: New file.
66626         * m4/popcount.m4: New file.
66627
66628 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66629
66630         * build-aux/announce-gen: Update to GPLv3.
66631
66632         * build-aux/config.guess: Update from config.
66633
66634 2007-07-21  Bruno Haible  <bruno@clisp.org>
66635
66636         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
66637         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
66638
66639 2007-07-20  Jim Meyering  <jim@meyering.net>
66640
66641         * check-module: Diagnose a self-dependency.
66642
66643 2007-07-19  Bruno Haible  <bruno@clisp.org>
66644
66645         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
66646         empty.
66647         Reported by Eric Blake.
66648
66649 2007-07-18  Bruno Haible  <bruno@clisp.org>
66650
66651         * gnulib-tool: New options --po-base, --po-domain.
66652         (func_usage): Document them.
66653         (pobase, po_domain): New variables.
66654         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
66655         DEFAULT_TEXT_DOMAIN.
66656         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
66657         (func_import): Consider pobase and po_domain. Create a po/ directory.
66658         (func_create_testdir): Set pobase and po_domain to empty.
66659         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
66660         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
66661
66662 2007-07-18  Bruno Haible  <bruno@clisp.org>
66663
66664         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66665         EXTRA_DIST augmentation for files in build-aux/.
66666
66667 2007-07-16  Bruno Haible  <bruno@clisp.org>
66668
66669         * modules/lseek (License): Use the synonymous term "LGPLv2+".
66670         * modules/getdelim (License): Likewise.
66671
66672 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66673
66674         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
66675         * modules/d-type (License): Likewise.
66676         * modules/extensions (License): Likewise.
66677         * modules/fnmatch (License): Likewise.
66678         * modules/fseeko (License): Likewise.
66679         * modules/getaddrinfo (License): Likewise.
66680         * modules/getline (License): Likewise.
66681         * modules/getlogin_r (License): Likewise.
66682         * modules/getpass (License): Likewise.
66683         * modules/gettimeofday (License): Likewise.
66684         * modules/glob (License): Likewise.
66685         * modules/inet_ntop (License): Likewise.
66686         * modules/malloc (License): Likewise.
66687         * modules/malloca (License): Likewise.
66688         * modules/memmem (License): Likewise.
66689         * modules/mempcpy (License): Likewise.
66690         * modules/memset (License): Likewise.
66691         * modules/minmax (License): Likewise.
66692         * modules/mktime (License): Likewise.
66693         * modules/netinet_in (License): Likewise.
66694         * modules/pathmax (License): Likewise.
66695         * modules/poll (License): Likewise.
66696         * modules/regex (License): Likewise.
66697         * modules/snprintf (License): Likewise.
66698         * modules/stdbool (License): Likewise.
66699         * modules/stdint (License): Likewise.
66700         * modules/stdio (License): Likewise.
66701         * modules/strcase (License): Likewise.
66702         * modules/strcasestr (License): Likewise.
66703         * modules/strdup (License): Likewise.
66704         * modules/string (License): Likewise.
66705         * modules/strndup (License): Likewise.
66706         * modules/strnlen (License): Likewise.
66707         * modules/strpbrk (License): Likewise.
66708         * modules/strptime (License): Likewise.
66709         * modules/strsep (License): Likewise.
66710         * modules/sys_select (License): Likewise.
66711         * modules/sys_socket (License): Likewise.
66712         * modules/sys_stat (License): Likewise.
66713         * modules/sys_time (License): Likewise.
66714         * modules/time (License): Likewise.
66715         * modules/time_r (License): Likewise.
66716         * modules/timegm (License): Likewise.
66717         * modules/unistd (License): Likewise.
66718         * modules/vsnprintf (License): Likewise.
66719         * modules/wctype (License): Likewise.
66720
66721 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66722
66723         * modules/argz (License): LGPLv2+.
66724
66725 2007-07-15  Karl Berry  <karl@gnu.org>
66726
66727         * doc/gnulib.texi: revise node structure per new fdl.texi.
66728
66729 2007-07-14  Bruno Haible  <bruno@clisp.org>
66730
66731         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
66732         the output file.
66733         * lib/uniname/uninames.h: Regenerated.
66734
66735 2007-07-14  Karl Berry  <karl@gnu.org>
66736
66737         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
66738         omitting sectioning and index commands.
66739
66740 2007-07-13  Bruno Haible  <bruno@clisp.org>
66741
66742         New gnulib-tool option --more-symlinks.
66743         * gnulib-tool (func_usage): Document --more-symlinks.
66744         (do_copyrights): New variable.
66745         Recognize option --more-symlinks.
66746         (func_import): Don't add a copyright notice transform to
66747         sed_transform_lib_file if do_copyrights is empty.
66748
66749 2007-07-13  Bruno Haible  <bruno@clisp.org>
66750
66751         * lib/vasnprintf.c (decimal_point_char): Define also if
66752         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
66753         && !NEED_PRINTF_DIRECTIVE_A.
66754         Reported by Clemens Koller <clemens.koller@anagramm.de> via
66755         Gary V. Vaughan <gary@gnu.org>.
66756
66757 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
66758
66759         * lib/inttypes_.h: Undo previous change, since it was fixed
66760         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
66761
66762 2007-07-13  Bruno Haible  <bruno@clisp.org>
66763
66764         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
66765         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
66766
66767 2007-07-13  Jim Meyering  <jim@meyering.net>
66768
66769         df: Don't fail for Tru64's "file-on-file mount".
66770         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
66771         so we fall through and use statfs instead.  Details here:
66772         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
66773         Reported by Albert Chin.
66774
66775 2007-07-13  Bruno Haible  <bruno@clisp.org>
66776
66777         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
66778         * modules/configmake (License): Likewise.
66779         * modules/gettext (License): Likewise.
66780         * modules/gettext-h (License): Likewise.
66781         * modules/include_next (License): Likewise.
66782         * modules/link-warning (License): Likewise.
66783         * modules/localcharset (License): Likewise.
66784         * modules/localename (License): Likewise.
66785         * modules/lock (License): Likewise.
66786         * modules/relocatable-lib-lgpl (License): Likewise.
66787         * modules/size_max (License): Likewise.
66788         * modules/vasnprintf (License): Likewise.
66789         * modules/wchar (License): Likewise.
66790         * modules/xsize (License): Likewise.
66791
66792 2007-07-13  Bruno Haible  <bruno@clisp.org>
66793
66794         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
66795         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
66796
66797 2007-07-12  Bruno Haible  <bruno@clisp.org>
66798
66799         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
66800         in the modules files.
66801
66802 2007-07-11  Karl Berry  <karl@gnu.org>
66803
66804         * MODULES.html.sh (func_module): use
66805          sed -e '\|^'"${includefile}"'$|d'
66806          instead of /.../d, to avoid errors on $includefile's containing /.
66807
66808 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66809
66810         * gnulib-tool (func_import): Avoid duplication of --avoid
66811         statements
66812         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
66813         names to `_' in variable names.
66814
66815 2007-07-10  Eric Blake  <ebb9@byu.net>
66816
66817         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
66818         * NEWS: Document this change.
66819
66820 2007-07-08  Bruno Haible  <bruno@clisp.org>
66821
66822         Update to Unicode 5.0.
66823         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
66824         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
66825         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
66826         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
66827         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
66828         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
66829         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
66830         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
66831         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
66832         U+10A3F, U+1D242..U+1D244.
66833         (nonspacing_table_ind): Update.
66834         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
66835         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
66836
66837 2007-07-08  Bruno Haible  <bruno@clisp.org>
66838
66839         Update to Unicode 5.0.
66840         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
66841         code transform. Extend the name index field of unicode_name_to_code and
66842         unicode_code_to_name from 16 to 24 bits.
66843         * lib/uniname/uniname.c (unicode_character_name,
66844         unicode_name_character): Add the range 0x12xxx to the code transform.
66845         * lib/uniname/uninames.h: Regenerated.
66846         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
66847
66848 2007-07-07  Bruno Haible  <bruno@clisp.org>
66849
66850         * modules/wcwidth-tests: New file.
66851         * tests/test-wcwidth.c: New file.
66852
66853         Work around MacOS X wcwidth() bug.
66854         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
66855         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
66856         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
66857         original wcwidth in non-UTF-8 locales.
66858         * modules/wcwidth (Depends-on): Add localcharset, streq,
66859         uniwidth/width.
66860         * doc/functions/wcwidth.texi: Update.
66861
66862 2007-07-07  Bruno Haible  <bruno@clisp.org>
66863
66864         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
66865         (wcwidth): New declaration.
66866         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
66867         macros.
66868         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
66869         here. Prepare for creating <wchar.h> unconditionally.
66870         * modules/wchar (Depends-on): Add link-warning.
66871         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
66872         REPLACE_WCWIDTH, and GL_LINK_WARNING.
66873         * lib/wcwidth.h: Remove file.
66874         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
66875         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
66876         * modules/wcwidth (Files): Remove lib/wcwidth.h.
66877         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
66878         (Include): Replace wcwidth.h with <wchar.h>.
66879         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
66880         * lib/mbchar.h: Don't include wcwidth.h.
66881         * lib/mbswidth.c: Likewise.
66882         * NEWS: Mention the change.
66883
66884 2007-07-07  Bruno Haible  <bruno@clisp.org>
66885
66886         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
66887         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
66888         definition with an external declaration.
66889         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
66890         defined as a function. Remove AC_C_INLINE requirement.
66891         * modules/wcwidth (Files): Add lib/wcwidth.c.
66892         (Makefile.am): Remove redundant statement.
66893
66894 2007-07-07  Bruno Haible  <bruno@clisp.org>
66895
66896         * MODULES.html.sh (Unicode string functions): Add the new modules.
66897
66898         * tests/uniwidth/test-u32-strwidth.c: New file.
66899         * modules/uniwidth/u32-strwidth-tests: New file.
66900
66901         * lib/uniwidth/u32-strwidth.c: New file.
66902         * modules/uniwidth/u32-strwidth: New file.
66903
66904         * tests/uniwidth/test-u16-strwidth.c: New file.
66905         * modules/uniwidth/u16-strwidth-tests: New file.
66906
66907         * lib/uniwidth/u16-strwidth.c: New file.
66908         * modules/uniwidth/u16-strwidth: New file.
66909
66910         * tests/uniwidth/test-u8-strwidth.c: New file.
66911         * modules/uniwidth/u8-strwidth-tests: New file.
66912
66913         * lib/uniwidth/u8-strwidth.c: New file.
66914         * modules/uniwidth/u8-strwidth: New file.
66915
66916         * tests/uniwidth/test-u32-width.c: New file.
66917         * modules/uniwidth/u32-width-tests: New file.
66918
66919         * lib/uniwidth/u32-width.c: New file.
66920         * modules/uniwidth/u32-width: New file.
66921
66922         * tests/uniwidth/test-u16-width.c: New file.
66923         * modules/uniwidth/u16-width-tests: New file.
66924
66925         * lib/uniwidth/u16-width.c: New file.
66926         * modules/uniwidth/u16-width: New file.
66927
66928         * tests/uniwidth/test-u8-width.c: New file.
66929         * modules/uniwidth/u8-width-tests: New file.
66930
66931         * lib/uniwidth/u8-width.c: New file.
66932         * modules/uniwidth/u8-width: New file.
66933
66934         * tests/uniwidth/test-uc_width.c: New file.
66935         * modules/uniwidth/width-tests: New file.
66936
66937         * lib/uniwidth/width.c: New file, from GNU libiconv.
66938         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
66939         * modules/uniwidth/width: New file.
66940
66941         * lib/uniwidth.h: New file, from GNU libiconv.
66942         * modules/uniwidth/base: New file.
66943
66944 2007-07-07  Bruno Haible  <bruno@clisp.org>
66945
66946         * lib/uniname.h: New file, from GNU gettext.
66947         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
66948         * lib/uniname/uninames.h: New file, from GNU gettext.
66949         * lib/uniname/uniname.c: New file, from GNU gettext.
66950         * tests/uniname/test-uninames.sh: New file.
66951         * tests/uniname/test-uninames.c: New file, from GNU gettext.
66952         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
66953         * modules/uniname/base: New file.
66954         * modules/uniname/uniname: New file.
66955         * modules/uniname/uniname-tests: New file.
66956         * MODULES.html.sh (Unicode string functions): Add the new modules.
66957
66958 2007-07-06  Bruno Haible  <bruno@clisp.org>
66959
66960         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
66961
66962 2007-07-06  Bruno Haible  <bruno@clisp.org>
66963
66964         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
66965         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
66966         includes <cygwin/sys_time.h> which includes <sys/select.h> which
66967         include <sys/time.h>.
66968         Reported by Eric Blake.
66969
66970 2007-07-06  Eric Blake  <ebb9@byu.net>
66971
66972         Fix testing canonicalize on cygwin.
66973         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66974         Revert patch from 2007-06-19.
66975         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
66976         canonicalize module is also in use.
66977         * tests/test-canonicalize.c: New file.
66978         * tests/test-canonicalize.sh: Likewise.
66979         * modules/canonicalize-tests: Likewise.
66980
66981 2007-07-06  Jim Meyering  <jim@meyering.net>
66982
66983         * lib/getugroups.c (getugroups): Detect getgrent failure.
66984         Adjust comment to reflect reality: this function may return -1.
66985
66986 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
66987
66988         * build-aux/bootstrap (TP_URL,get_translations): Update to use
66989         the new TP address.
66990         (usage): Fix typo
66991         (gnulib_mk): New variable.
66992
66993 2007-07-05  Jim Meyering  <jim@meyering.net>
66994
66995         Don't let endgrent clobber errno, no matter how improbable.
66996         * lib/getugroups.c (getugroups): Save and restore errno around
66997         endgrent call.
66998
66999         Close the group DB even when failing with 2^31 or more members.
67000         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
67001
67002 2007-07-04  Jim Meyering  <jim@meyering.net>
67003
67004         * lib/getugroups.h: New file.
67005         * lib/getugroups.c: Include "getugroups.h".
67006         Remove uses of "register" keyword.
67007         Move local variable, "cp", down into scope where used.
67008         Give "username" parameter the "const" attribute.
67009         * modules/getugroups (Files): Add lib/getugroups.h
67010
67011 2007-07-04  Karl Berry  <karl@gnu.org>
67012
67013         * MODULES.html.sh (func_all_modules): Complete rename of
67014         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
67015
67016 2007-07-02  Bruno Haible  <bruno@clisp.org>
67017
67018         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
67019         mode, when inttypes.h comes from gnulib.
67020         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
67021
67022 2007-07-02  Simon Josefsson  <simon@josefsson.org>
67023
67024         * NEWS: Mention lgpl module name change.
67025
67026         * modules/lgpl-2.1: Renamed from lgpl.
67027
67028         * NEWS: Mention gpl module name change.
67029
67030         * modules/gpl-3.0: New file, based on gpl-2.0.
67031
67032         * modules/gpl-2.0: Renamed from gpl.
67033
67034         * modules/gpl: Fix filename, doc/gpl.texi is now found at
67035         doc/gpl-2.0.texi.
67036
67037 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67038
67039         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
67040         #define __STDC_LIMIT_MACROS temporarily while including
67041         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
67042         Problem reported by Joel E. Denny in
67043         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
67044
67045 2007-07-01  Bruno Haible  <bruno@clisp.org>
67046
67047         * lib/unistdio.h: New file.
67048         * lib/unistdio/u-asnprintf.h: New file.
67049         * lib/unistdio/u-asprintf.h: New file.
67050         * lib/unistdio/u-printf-args.c: New file.
67051         * lib/unistdio/u-printf-args.h: New file.
67052         * lib/unistdio/u-printf-parse.h: New file.
67053         * lib/unistdio/u-snprintf.h: New file.
67054         * lib/unistdio/u-sprintf.h: New file.
67055         * lib/unistdio/u-vasprintf.h: New file.
67056         * lib/unistdio/u-vsnprintf.h: New file.
67057         * lib/unistdio/u-vsprintf.h: New file.
67058         * lib/unistdio/ulc-asnprintf.c: New file.
67059         * lib/unistdio/ulc-asprintf.c: New file.
67060         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
67061         * lib/unistdio/ulc-printf-parse.c: New file.
67062         * lib/unistdio/ulc-snprintf.c: New file.
67063         * lib/unistdio/ulc-sprintf.c: New file.
67064         * lib/unistdio/ulc-vasnprintf.c: New file.
67065         * lib/unistdio/ulc-vasprintf.c: New file.
67066         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
67067         * lib/unistdio/ulc-vsnprintf.c: New file.
67068         * lib/unistdio/ulc-vsprintf.c: New file.
67069         * lib/unistdio/u8-asnprintf.c: New file.
67070         * lib/unistdio/u8-asprintf.c: New file.
67071         * lib/unistdio/u8-printf-parse.c: New file.
67072         * lib/unistdio/u8-snprintf.c: New file.
67073         * lib/unistdio/u8-sprintf.c: New file.
67074         * lib/unistdio/u8-vasnprintf.c: New file.
67075         * lib/unistdio/u8-vasprintf.c: New file.
67076         * lib/unistdio/u8-vsnprintf.c: New file.
67077         * lib/unistdio/u8-vsprintf.c: New file.
67078         * lib/unistdio/u8-u8-asnprintf.c: New file.
67079         * lib/unistdio/u8-u8-asprintf.c: New file.
67080         * lib/unistdio/u8-u8-snprintf.c: New file.
67081         * lib/unistdio/u8-u8-sprintf.c: New file.
67082         * lib/unistdio/u8-u8-vasnprintf.c: New file.
67083         * lib/unistdio/u8-u8-vasprintf.c: New file.
67084         * lib/unistdio/u8-u8-vsnprintf.c: New file.
67085         * lib/unistdio/u8-u8-vsprintf.c: New file.
67086         * lib/unistdio/u16-asnprintf.c: New file.
67087         * lib/unistdio/u16-asprintf.c: New file.
67088         * lib/unistdio/u16-printf-parse.c: New file.
67089         * lib/unistdio/u16-snprintf.c: New file.
67090         * lib/unistdio/u16-sprintf.c: New file.
67091         * lib/unistdio/u16-vasnprintf.c: New file.
67092         * lib/unistdio/u16-vasprintf.c: New file.
67093         * lib/unistdio/u16-vsnprintf.c: New file.
67094         * lib/unistdio/u16-vsprintf.c: New file.
67095         * lib/unistdio/u16-u16-asnprintf.c: New file.
67096         * lib/unistdio/u16-u16-asprintf.c: New file.
67097         * lib/unistdio/u16-u16-snprintf.c: New file.
67098         * lib/unistdio/u16-u16-sprintf.c: New file.
67099         * lib/unistdio/u16-u16-vasnprintf.c: New file.
67100         * lib/unistdio/u16-u16-vasprintf.c: New file.
67101         * lib/unistdio/u16-u16-vsnprintf.c: New file.
67102         * lib/unistdio/u16-u16-vsprintf.c: New file.
67103         * lib/unistdio/u32-asnprintf.c: New file.
67104         * lib/unistdio/u32-asprintf.c: New file.
67105         * lib/unistdio/u32-printf-parse.c: New file.
67106         * lib/unistdio/u32-snprintf.c: New file.
67107         * lib/unistdio/u32-sprintf.c: New file.
67108         * lib/unistdio/u32-vasnprintf.c: New file.
67109         * lib/unistdio/u32-vasprintf.c: New file.
67110         * lib/unistdio/u32-vsnprintf.c: New file.
67111         * lib/unistdio/u32-vsprintf.c: New file.
67112         * lib/unistdio/u32-u32-asnprintf.c: New file.
67113         * lib/unistdio/u32-u32-asprintf.c: New file.
67114         * lib/unistdio/u32-u32-snprintf.c: New file.
67115         * lib/unistdio/u32-u32-sprintf.c: New file.
67116         * lib/unistdio/u32-u32-vasnprintf.c: New file.
67117         * lib/unistdio/u32-u32-vasprintf.c: New file.
67118         * lib/unistdio/u32-u32-vsnprintf.c: New file.
67119         * lib/unistdio/u32-u32-vsprintf.c: New file.
67120         * tests/unistdio/test-ulc-asnprintf1.c: New file.
67121         * tests/unistdio/test-ulc-asnprintf1.h: New file.
67122         * tests/unistdio/test-ulc-printf1.h: New file.
67123         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
67124         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
67125         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
67126         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
67127         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
67128         * tests/unistdio/test-ulc-vasprintf1.c: New file.
67129         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
67130         * tests/unistdio/test-ulc-vsprintf1.c: New file.
67131         * tests/unistdio/test-u8-asnprintf1.c: New file.
67132         * tests/unistdio/test-u8-asnprintf1.h: New file.
67133         * tests/unistdio/test-u8-printf1.h: New file.
67134         * tests/unistdio/test-u8-vasnprintf1.c: New file.
67135         * tests/unistdio/test-u8-vasnprintf2.c: New file.
67136         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
67137         * tests/unistdio/test-u8-vasnprintf3.c: New file.
67138         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
67139         * tests/unistdio/test-u8-vasprintf1.c: New file.
67140         * tests/unistdio/test-u8-vsnprintf1.c: New file.
67141         * tests/unistdio/test-u8-vsprintf1.c: New file.
67142         * tests/unistdio/test-u16-asnprintf1.c: New file.
67143         * tests/unistdio/test-u16-asnprintf1.h: New file.
67144         * tests/unistdio/test-u16-printf1.h: New file.
67145         * tests/unistdio/test-u16-vasnprintf1.c: New file.
67146         * tests/unistdio/test-u16-vasnprintf2.c: New file.
67147         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
67148         * tests/unistdio/test-u16-vasnprintf3.c: New file.
67149         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
67150         * tests/unistdio/test-u16-vasprintf1.c: New file.
67151         * tests/unistdio/test-u16-vsnprintf1.c: New file.
67152         * tests/unistdio/test-u16-vsprintf1.c: New file.
67153         * tests/unistdio/test-u32-asnprintf1.c: New file.
67154         * tests/unistdio/test-u32-asnprintf1.h: New file.
67155         * tests/unistdio/test-u32-printf1.h: New file.
67156         * tests/unistdio/test-u32-vasnprintf1.c: New file.
67157         * tests/unistdio/test-u32-vasnprintf2.c: New file.
67158         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
67159         * tests/unistdio/test-u32-vasnprintf3.c: New file.
67160         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
67161         * tests/unistdio/test-u32-vasprintf1.c: New file.
67162         * tests/unistdio/test-u32-vsnprintf1.c: New file.
67163         * tests/unistdio/test-u32-vsprintf1.c: New file.
67164         * modules/unistdio/base: New file.
67165         * modules/unistdio/u-printf-args: New file.
67166         * modules/unistdio/ulc-asnprintf: New file.
67167         * modules/unistdio/ulc-asprintf: New file.
67168         * modules/unistdio/ulc-fprintf: New file.
67169         * modules/unistdio/ulc-printf-parse: New file.
67170         * modules/unistdio/ulc-snprintf: New file.
67171         * modules/unistdio/ulc-sprintf: New file.
67172         * modules/unistdio/ulc-vasnprintf: New file.
67173         * modules/unistdio/ulc-vasprintf: New file.
67174         * modules/unistdio/ulc-vfprintf: New file.
67175         * modules/unistdio/ulc-vsnprintf: New file.
67176         * modules/unistdio/ulc-vsprintf: New file.
67177         * modules/unistdio/u8-asnprintf: New file.
67178         * modules/unistdio/u8-asprintf: New file.
67179         * modules/unistdio/u8-printf-parse: New file.
67180         * modules/unistdio/u8-snprintf: New file.
67181         * modules/unistdio/u8-sprintf: New file.
67182         * modules/unistdio/u8-vasnprintf: New file.
67183         * modules/unistdio/u8-vasprintf: New file.
67184         * modules/unistdio/u8-vsnprintf: New file.
67185         * modules/unistdio/u8-vsprintf: New file.
67186         * modules/unistdio/u8-u8-asnprintf: New file.
67187         * modules/unistdio/u8-u8-asprintf: New file.
67188         * modules/unistdio/u8-u8-snprintf: New file.
67189         * modules/unistdio/u8-u8-sprintf: New file.
67190         * modules/unistdio/u8-u8-vasnprintf: New file.
67191         * modules/unistdio/u8-u8-vasprintf: New file.
67192         * modules/unistdio/u8-u8-vsnprintf: New file.
67193         * modules/unistdio/u8-u8-vsprintf: New file.
67194         * modules/unistdio/u16-asnprintf: New file.
67195         * modules/unistdio/u16-asprintf: New file.
67196         * modules/unistdio/u16-printf-parse: New file.
67197         * modules/unistdio/u16-snprintf: New file.
67198         * modules/unistdio/u16-sprintf: New file.
67199         * modules/unistdio/u16-vasnprintf: New file.
67200         * modules/unistdio/u16-vasprintf: New file.
67201         * modules/unistdio/u16-vsnprintf: New file.
67202         * modules/unistdio/u16-vsprintf: New file.
67203         * modules/unistdio/u16-u16-asnprintf: New file.
67204         * modules/unistdio/u16-u16-asprintf: New file.
67205         * modules/unistdio/u16-u16-snprintf: New file.
67206         * modules/unistdio/u16-u16-sprintf: New file.
67207         * modules/unistdio/u16-u16-vasnprintf: New file.
67208         * modules/unistdio/u16-u16-vasprintf: New file.
67209         * modules/unistdio/u16-u16-vsnprintf: New file.
67210         * modules/unistdio/u16-u16-vsprintf: New file.
67211         * modules/unistdio/u32-asnprintf: New file.
67212         * modules/unistdio/u32-asprintf: New file.
67213         * modules/unistdio/u32-printf-parse: New file.
67214         * modules/unistdio/u32-snprintf: New file.
67215         * modules/unistdio/u32-sprintf: New file.
67216         * modules/unistdio/u32-vasnprintf: New file.
67217         * modules/unistdio/u32-vasprintf: New file.
67218         * modules/unistdio/u32-vsnprintf: New file.
67219         * modules/unistdio/u32-vsprintf: New file.
67220         * modules/unistdio/u32-u32-asnprintf: New file.
67221         * modules/unistdio/u32-u32-asprintf: New file.
67222         * modules/unistdio/u32-u32-snprintf: New file.
67223         * modules/unistdio/u32-u32-sprintf: New file.
67224         * modules/unistdio/u32-u32-vasnprintf: New file.
67225         * modules/unistdio/u32-u32-vasprintf: New file.
67226         * modules/unistdio/u32-u32-vsnprintf: New file.
67227         * modules/unistdio/u32-u32-vsprintf: New file.
67228         * modules/unistdio/ulc-asnprintf-tests: New file.
67229         * modules/unistdio/ulc-vasnprintf-tests: New file.
67230         * modules/unistdio/ulc-vasprintf-tests: New file.
67231         * modules/unistdio/ulc-vsnprintf-tests: New file.
67232         * modules/unistdio/ulc-vsprintf-tests: New file.
67233         * modules/unistdio/u8-asnprintf-tests: New file.
67234         * modules/unistdio/u8-vasnprintf-tests: New file.
67235         * modules/unistdio/u8-vasprintf-tests: New file.
67236         * modules/unistdio/u8-vsnprintf-tests: New file.
67237         * modules/unistdio/u8-vsprintf-tests: New file.
67238         * modules/unistdio/u16-asnprintf-tests: New file.
67239         * modules/unistdio/u16-vasnprintf-tests: New file.
67240         * modules/unistdio/u16-vasprintf-tests: New file.
67241         * modules/unistdio/u16-vsnprintf-tests: New file.
67242         * modules/unistdio/u16-vsprintf-tests: New file.
67243         * modules/unistdio/u32-asnprintf-tests: New file.
67244         * modules/unistdio/u32-vasnprintf-tests: New file.
67245         * modules/unistdio/u32-vasprintf-tests: New file.
67246         * modules/unistdio/u32-vsnprintf-tests: New file.
67247         * modules/unistdio/u32-vsprintf-tests: New file.
67248         * MODULES.html.sh (Unicode string functions): Add the new modules.
67249
67250 2007-07-01  Bruno Haible  <bruno@clisp.org>
67251
67252         * lib/sprintf.c (sprintf): Limit the available length estimation,
67253         to avoid address wraparound.
67254         * lib/vsprintf.c (vsprintf): Likewise.
67255         * modules/sprintf-posix (Dependencies): Add stdint.
67256         * modules/vsprintf-posix (Dependencies): Likewise.
67257
67258 2007-07-01  Bruno Haible  <bruno@clisp.org>
67259
67260         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
67261         Windows PATH as well. Conservative double-quoting. Comments.
67262
67263 2007-07-01  Bruno Haible  <bruno@clisp.org>
67264             Eric Blake  <ebb9@byu.net>
67265             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67266
67267         * gnulib-tool (self_abspathname): Fix algorithm to cope with
67268         empty components in $PATH, denoting '.'.
67269
67270 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67271
67272         * gnulib-tool: Fix indentation.
67273         (func_create_megatestdir): Likewise.
67274         Report by Bruno Haible.
67275
67276 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67277
67278         Sync from Automake.
67279         * build-aux/gnupload: Fix shell portability issues with for loops.
67280         Report by Karl Berry.
67281
67282 2007-06-29  Simon Josefsson  <simon@josefsson.org>
67283
67284         * build-aux/maint.mk (POURL): Use translationproject.org.
67285
67286 2007-06-27  Simon Josefsson  <simon@josefsson.org>
67287             Bruno Haible  <bruno@clisp.org>
67288
67289         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
67290         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
67291         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
67292         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
67293         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
67294
67295 2007-06-27  Bruno Haible  <bruno@clisp.org>
67296
67297         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
67298         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
67299
67300 2007-06-26  Karl Berry  <karl@gnu.org>
67301
67302         * MODULES.html.sh: remove xreadlink-with-size.
67303
67304 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67305
67306         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
67307         method that I hope also handles the double-include problem noted
67308         by Bruno Haible in
67309         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
67310
67311 2007-06-23  Bruno Haible  <bruno@clisp.org>
67312
67313         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67314         Don't let the 'mostlyclean' target fail if the last subdirectory could
67315         not be removed.
67316         Reported by Karl Berry.
67317
67318 2007-06-23  Bruno Haible  <bruno@clisp.org>
67319
67320         * gnulib-tool (echo): Add a speedier workaround for ksh.
67321         * tests/test-echo.sh: Likewise.
67322
67323 2007-06-23  Bruno Haible  <bruno@clisp.org>
67324
67325         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
67326         * tests/test-echo.sh: Likewise.
67327
67328 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67329
67330         * gnulib-tool (IFS): Initialize early, so we don't set it to
67331         empty later.
67332         (self_abspathname): Rewrite algorithm to set it, reindent.
67333         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
67334         (func_create_megatestdir): Merge some sed scripts.
67335
67336 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67337
67338         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
67339         exposed by Sun Studio 11 cc on Solaris 8.
67340
67341 2007-06-22  Bruno Haible  <bruno@clisp.org>
67342
67343         * gnulib-tool (echo): Ensure the echo primitive does not interpret
67344         backslashes.
67345         * tests/test-echo.sh: New file.
67346
67347 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67348
67349         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
67350         simplify `sed_replace_build_aux' scripts, they are portable but
67351         echoing them with `echo' is not.
67352         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
67353
67354 2007-06-21  Karl Berry  <karl@gnu.org>
67355
67356         * config/srclist.txt: guess we can't handle the licenses via
67357         srclist at the moment.
67358
67359 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67360
67361         * MODULES.html.sh: Add include_next.
67362         * modules/include_next: New file.
67363
67364 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67365
67366         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
67367         INCLUDE_NEXT.
67368         (gl_CHECK_NEXT_HEADERS): New macro.
67369         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
67370         the obsolescent gl_ABSOLUTE_HEADER.
67371         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
67372         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
67373         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
67374         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
67375         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
67376         * m4/math_h.m4 (gl_MATH_H): Likewise.
67377         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
67378         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
67379         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
67380         * m4/stdint.m4 (gl_STDINT_H): Likewise.
67381         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
67382         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
67383         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
67384         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
67385         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
67386         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
67387         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
67388         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
67389         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
67390         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
67391         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
67392         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67393         * m4/inttypes.m4 (gl_INTTYPES_H): Define
67394         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
67395         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
67396         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
67397         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
67398         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
67399         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
67400         * lib/float_.h: Likewise.
67401         * lib/inttypes_.h: Likewise.
67402         * lib/math_.h: Likewise.
67403         * lib/search_.h: Likewise.
67404         * lib/signal_.h: Likewise.
67405         * lib/stdint_.h: Likewise.
67406         * lib/stdio_.h: Likewise.
67407         * lib/stdlib_.h: Likewise.
67408         * lib/string_.h: Likewise.
67409         * lib/sys_stat_.h: Likewise.
67410         * lib/sys_time_.h: Likewise.
67411         * lib/time_.h: Likewise.
67412         * lib/unistd_.h: Likewise.
67413         * lib/wchar_.h: Likewise.
67414         * lib/wctype_.h: Likewise.
67415         * lib/dirent_.h: Likewise.
67416         * lib/iconv_.h: Likewise.
67417         * lib/locale_.h: Likewise.
67418         * lib/netinet_in_.h: Likewise.
67419         * lib/sys_select_.h: Likewise.
67420         * lib/sys_socket_.h: Likewise.
67421         * lib/sysexits_.h: Likewise.
67422         * modules/fcntl (Depends-on): Depend on include_next, not
67423         absolute_header.
67424         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
67425         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
67426         * modules/fchdir: Likewise.
67427         * modules/float: Likewise.
67428         * modules/iconv_open: Likewise.
67429         * modules/inttypes: Likewise.
67430         * modules/locale: Likewise.
67431         * modules/math: Likewise.
67432         * modules/netinet_in: Likewise.
67433         * modules/search: Likewise.
67434         * modules/signal: Likewise.
67435         * modules/stdint: Likewise.
67436         * modules/stdio: Likewise.
67437         * modules/stdlib: Likewise.
67438         * modules/string: Likewise.
67439         * modules/sys_select: Likewise.
67440         * modules/sys_socket: Likewise.
67441         * modules/sys_stat: Likewise.
67442         * modules/sys_time: Likewise.
67443         * modules/sysexits: Likewise.
67444         * modules/time: Likewise.
67445         * modules/unistd: Likewise.
67446         * modules/wchar: Likewise.
67447         * modules/wctype: Likewise.
67448         * modules/sys_stat: Change maintainer to "all".
67449         * modules/unistd: Likewise.
67450
67451 2007-06-20  Karl Berry  <karl@gnu.org>
67452
67453         * config/srclist.txt: track www changes in license files.
67454
67455 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
67456
67457         * build-aux/bootstrap: Remove stray dot.
67458         Make sure build_aux settings are honored when linking
67459         gnulib_extra_files.
67460
67461 2007-06-19  Eric Blake  <ebb9@byu.net>
67462
67463         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67464         Allow compilation on cygwin.
67465
67466 2007-06-19  Jim Meyering  <jim@meyering.net>
67467
67468         xreadlink-with-size: Remove module.  No longer used.
67469         Ex-callers now use xreadlink or mreadlink-with-size.
67470         * modules/xreadlink-with-size: Remove module.
67471         * lib/xreadlink-with-size.c: Remove file.
67472         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
67473         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
67474         just before the function definition *is* accurate.
67475
67476         Eliminate one way canonicalize_filename_mode could exit.
67477         * lib/canonicalize.c (canonicalize_filename_mode):
67478         Use mreadlink_with_size, not xreadlink_with_size.
67479
67480 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
67481
67482         Detect porting problems to FreeBSD/arm, which has time_t wider than
67483         long int.  Original problem reported for GNU diff by Xin Li in
67484         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
67485         * modules/getdate (Depends-on): Add intprops, verify.
67486         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
67487         is an integer type no wider than long int.
67488
67489 2007-06-18  Jim Meyering  <jim@meyering.net>
67490
67491         New module: mreadlink-with-size.
67492         * MODULES.html.sh: Add mreadlink-with-size.
67493         * modules/mreadlink-with-size: New module
67494         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
67495         not xreadlink-with-size.
67496         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
67497
67498 2007-06-16  Bruno Haible  <bruno@clisp.org>
67499
67500         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
67501         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
67502         Reported by Gary V. Vaughan <gary@gnu.org>.
67503
67504 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
67505
67506         Revamp lchown so that it lives in unistd.h where it belongs.
67507         * lib/lchown.h: Remove.
67508         * lib/dirchownmod.c: Don't include lib/lchown.h.
67509         * lib/fchownat.c: Likewise.
67510         * lib/openat.c: Likewise.
67511         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
67512         does not follow symlinks.
67513         (EOPNOTSUPP): Define if not defined.
67514         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
67515         is defined to 0.
67516         (lchown): New decl.
67517         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
67518         Do not check for lchown decl.
67519         Set REPLACE_LCHOWN.
67520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
67521         REPLACE_LCHOWN.
67522         * modules/chown: Make it clear it follows symlinks.
67523         * modules/lchown: Make it clear it doesn't follow symlinks.
67524         (Files): Remove lib/lchown.h
67525         (Depends-on): Add unistd.
67526         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
67527         (Include): Include <unistd.h>, not "lchown.h".
67528         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
67529         REPLACE_LCHOWN.
67530
67531 2007-06-15  Jim Meyering  <jim@meyering.net>
67532
67533         Change license (GPL to LGPL) of fsusage and dependents.
67534         * modules/fsusage (License): Change to LGPL.
67535         * modules/full-read (License): Likewise.
67536         * modules/full-write (License): Likewise.
67537         * modules/safe-read (License): Likewise.
67538         * modules/safe-write (License): Likewise.
67539
67540 2007-06-14  Ben Pfaff  <blp@gnu.org>
67541
67542         Missing part of allocsa -> malloca transition.
67543         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
67544         gl_MALLOCA.
67545
67546 2007-06-12  Bruno Haible  <bruno@clisp.org>
67547
67548         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
67549         to ia64, x86_64, i386.
67550         Reported by Eric Blake.
67551
67552 2007-06-12  Bruno Haible  <bruno@clisp.org>
67553
67554         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
67555         cross-compiling to x86_64.
67556
67557 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
67558
67559         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
67560         glitch reported by Ralf Wildenhues in
67561         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
67562
67563         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
67564         Vin Shelton.
67565
67566 2007-06-11  Bruno Haible  <bruno@clisp.org>
67567
67568         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
67569         replacement string.
67570         Reported by Eric Blake.
67571
67572 2007-06-10  Bruno Haible  <bruno@clisp.org>
67573
67574         Prepare vasnprintf code for use with Unicode strings.
67575         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
67576         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
67577         TYPE_U32_STRING.
67578         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
67579         a_u32_string variants.
67580         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67581         * lib/printf-args.c: Don't include config.h and the specification
67582         header if PRINTF_FETCHARGS is already defined.
67583         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67584         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
67585         TYPE_U16_STRING, TYPE_U32_STRING.
67586         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
67587         u16_directive, u16_directives, u32_directive, u32_directives): New
67588         types.
67589         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
67590         New declarations.
67591         * lib/printf-parse.c: Don't include config.h and the specification
67592         header if PRINTF_PARSE is already defined. Eliminate the set of
67593         parameters for WIDE_CHAR_VERSION; the user of this file must provide
67594         them now. Include c-ctype.h.
67595         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
67596         directive and CHAR_T_ONLY_ASCII.
67597         * lib/vasnprintf.c: Don't include config.h and the specification header
67598         if VASNPRINTF is already defined.
67599         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
67600         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
67601         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
67602         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
67603         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
67604         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
67605         code accordingly.
67606         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
67607         pad_ourselves also in this case, with the 'c' and 's' directives, and
67608         with a different notion of "width".
67609         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
67610
67611 2007-06-10  Bruno Haible  <bruno@clisp.org>
67612
67613         * modules/unistr/u32-mbsnlen: New file.
67614         * lib/unistr/u32-mbsnlen.c: New file.
67615
67616         * modules/unistr/u16-mbsnlen: New file.
67617         * lib/unistr/u16-mbsnlen.c: New file.
67618
67619         * modules/unistr/u8-mbsnlen: New file.
67620         * lib/unistr/u8-mbsnlen.c: New file.
67621
67622         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
67623         declarations.
67624
67625 2007-06-10  Bruno Haible  <bruno@clisp.org>
67626
67627         * lib/string_.h (mbsnlen): New declaration.
67628         * lib/mbsnlen.c: New file.
67629         * m4/mbsnlen.m4: New file.
67630         * modules/mbsnlen: New file.
67631         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
67632         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
67633         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
67634
67635 2007-06-10  Bruno Haible  <bruno@clisp.org>
67636
67637         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
67638
67639 2007-06-10  Bruno Haible  <bruno@clisp.org>
67640
67641         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
67642         * lib/mbuiter.h: Likewise.
67643
67644 2007-06-10  Bruno Haible  <bruno@clisp.org>
67645
67646         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
67647         declaration.
67648
67649 2007-06-10  Karl Berry  <karl@gnu.org>
67650
67651         * config/srclist.txt: remove gettext entries, Bruno prefers
67652         to update individually.
67653
67654 2007-06-10  Bruno Haible  <bruno@clisp.org>
67655
67656         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
67657         'maxlen'. Ensure only length + width bytes are allocated, not
67658         length + 1 + width.
67659
67660 2007-06-09  Bruno Haible  <bruno@clisp.org>
67661
67662         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
67663         (CHAR_T): Remove macro.
67664         (VASNPRINTF): Update.
67665
67666 2007-06-09  Bruno Haible  <bruno@clisp.org>
67667
67668         * MODULES.html.sh (Unicode string functions): Add the new modules.
67669
67670         * modules/uniconv/u32-conv-to-enc: New file.
67671         * lib/uniconv/u32-conv-to-enc.c: New file.
67672         * modules/uniconv/u32-conv-to-enc-tests: New file.
67673         * tests/uniconv/test-u32-conv-to-enc.c: New file.
67674
67675         * modules/uniconv/u16-conv-to-enc: New file.
67676         * lib/uniconv/u16-conv-to-enc.c: New file.
67677         * lib/uniconv/u-conv-to-enc.h: New file.
67678         * modules/uniconv/u16-conv-to-enc-tests: New file.
67679         * tests/uniconv/test-u16-conv-to-enc.c: New file.
67680
67681         * modules/uniconv/u8-conv-to-enc: New file.
67682         * lib/uniconv/u8-conv-to-enc.c: New file.
67683         * modules/uniconv/u8-conv-to-enc-tests: New file.
67684         * tests/uniconv/test-u8-conv-to-enc.c: New file.
67685
67686         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
67687         u32_conv_to_encoding): New declarations.
67688
67689 2007-06-09  Bruno Haible  <bruno@clisp.org>
67690
67691         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
67692
67693 2007-06-09  Bruno Haible  <bruno@clisp.org>
67694
67695         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
67696         * modules/malloca: Renamed from modules/allocsa, updated.
67697         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
67698         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
67699         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
67700         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
67701         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
67702         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
67703         * modules/xmalloca: Renamed from modules/xallocsa, updated.
67704         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
67705         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
67706         * modules/c-strcasestr (Depends-on): Update.
67707         * lib/c-strcasestr.c: Update.
67708         * modules/c-strstr (Depends-on): Update.
67709         * lib/c-strstr.c: Update.
67710         * modules/canonicalize-lgpl (Depends-on): Update.
67711         * lib/canonicalize-lgpl.c: Update.
67712         * modules/clean-temp (Depends-on): Update.
67713         * lib/clean-temp.c: Update.
67714         * modules/csharpcomp (Depends-on): Update.
67715         * lib/csharpcomp.c: Update.
67716         * modules/csharpexec (Depends-on): Update.
67717         * lib/csharpexec.c: Update.
67718         * modules/javacomp (Depends-on): Update.
67719         * lib/javacomp.c: Update.
67720         * modules/javaexec (Depends-on): Update.
67721         * lib/javaexec.c: Update.
67722         * modules/mbscasestr (Depends-on): Update.
67723         * lib/mbscasestr.c: Update.
67724         * modules/mbsstr (Depends-on): Update.
67725         * lib/mbsstr.c: Update.
67726         * modules/setenv (Depends-on): Update.
67727         * lib/setenv.c: Update.
67728         * modules/strcasestr (Depends-on): Update.
67729         * lib/strcasestr.c: Update.
67730         * modules/striconveha (Depends-on): Update.
67731         * lib/striconveha.c: Update.
67732         * modules/relocatable-prog-wrapper (Files): Update.
67733         * lib/relocwrapper.c: Update.
67734         * build-aux/install-reloc: Update.
67735         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
67736
67737 2007-06-08  Bruno Haible  <bruno@clisp.org>
67738
67739         Port to uClibc.
67740         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
67741         * lib/fpurge.c (fpurge): Likewise.
67742         * lib/freading.c (freading): Likewise.
67743         * lib/fseeko.c (rpl_fseeko): Likewise.
67744         * lib/fseterr.c (fseterr): Likewise.
67745         * lib/fwriting.c (fwriting): Likewise.
67746         * tests/test-fflush.c (main): Avoid a failure on uClibc.
67747
67748 2007-06-08  Bruno Haible  <bruno@clisp.org>
67749
67750         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
67751         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
67752         * modules/gettext (Files): Add m4/intlmacosx.m4.
67753
67754 2007-06-07  Bruno Haible  <bruno@clisp.org>
67755
67756         * modules/localename-tests: New file.
67757         * tests/test-localename.c: New file.
67758
67759         New module 'localename'.
67760         * lib/localename.h: New file.
67761         * lib/localename.c: New file, from GNU gettext.
67762         * m4/localename.m4: New file.
67763         * modules/localename: New file.
67764
67765 2007-06-07  Bruno Haible  <bruno@clisp.org>
67766
67767         Work around the lack of <wchar.h> on some builds of uClibc.
67768         * doc/headers/wchar.texi: Update.
67769         * lib/wchar_.h: Include <wchar.h> only if it exists.
67770         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
67771         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
67772         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
67773         doesn't exist.
67774         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
67775         * modules/mbfile (Depends-on): Add wchar.
67776         * modules/mbiter (Depends-on): Likewise.
67777         * modules/mbuiter (Depends-on): Likewise.
67778         Reported by Simon Josefsson.
67779
67780 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
67781
67782         Work around problem reported by Steven M. Schweda in
67783         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
67784         Tru64 5.1B with the Compaq compiler environment installed declares
67785         an 'isblank' function but does not define it in the C library.
67786         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
67787         * lib/regex_internal.h (isblank): Likewise.
67788         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
67789         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67790
67791 2007-06-05  Bruno Haible  <bruno@clisp.org>
67792
67793         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
67794         ia64.
67795         * modules/printf-safe: New file.
67796         * modules/fprintf-posix (Depends-on): Add printf-safe.
67797         * modules/printf-posix (Depends-on): Likewise.
67798         * modules/snprintf-posix (Depends-on): Likewise.
67799         * modules/sprintf-posix (Depends-on): Likewise.
67800         * modules/vasnprintf-posix (Depends-on): Likewise.
67801         * modules/vasprintf-posix (Depends-on): Likewise.
67802         * modules/vfprintf-posix (Depends-on): Likewise.
67803         * modules/vprintf-posix (Depends-on): Likewise.
67804         * modules/vsnprintf-posix (Depends-on): Likewise.
67805         * modules/vsprintf-posix (Depends-on): Likewise.
67806         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
67807         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
67808         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
67809         "no" on i386, x86_64, ia64.
67810         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
67811         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67812         on i386, x86_64, ia64.
67813         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
67814         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67815         on i386, x86_64, ia64.
67816         * tests/test-vasnprintf-posix.c: Include float.h.
67817         (LDBL80_WORDS): New macro.
67818         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67819         on i386, x86_64, ia64.
67820         * tests/test-vasprintf-posix.c: Include float.h.
67821         (LDBL80_WORDS): New macro.
67822         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67823         on i386, x86_64, ia64.
67824         * tests/test-snprintf-posix.c: Include float.h.
67825         * tests/test-sprintf-posix.c: Likewise.
67826         * tests/test-vsnprintf-posix.c: Likewise.
67827         * tests/test-vsprintf-posix.c: Likewise.
67828
67829 2007-06-05  Bruno Haible  <bruno@clisp.org>
67830
67831         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
67832         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
67833         non-IEEE numbers on i386, x86_64, ia64.
67834         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
67835         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
67836         * tests/test-isnanl.h: Include float.h.
67837         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
67838
67839 2007-06-05  Bruno Haible  <bruno@clisp.org>
67840
67841         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
67842         also the %a / %A. Handle the %a / %A code before this extra handling.
67843
67844 2007-06-05  Bruno Haible  <bruno@clisp.org>
67845
67846         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
67847         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
67848
67849 2007-06-05  Bruno Haible  <bruno@clisp.org>
67850
67851         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
67852         typo in variable name.
67853
67854 2007-06-05  Eric Blake  <ebb9@byu.net>
67855
67856         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
67857         Reported by Simon Josefsson.
67858
67859 2007-06-04  Bruno Haible  <bruno@clisp.org>
67860
67861         Avoid test failures on some PowerPC platforms.
67862         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
67863         Define differently for PowerPC.
67864         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
67865         Reported by Gary V. Vaughan <gary@gnu.org>.
67866
67867 2007-06-02  Bruno Haible  <bruno@clisp.org>
67868
67869         Fix test-stdint failure on FreeBSD/ia64.
67870         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
67871         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
67872         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
67873         * doc/headers/stdint.texi: Update.
67874
67875 2007-06-01  Bruno Haible  <bruno@clisp.org>
67876
67877         * tests/test-binary-io.c (main): Pass a third argument to open().
67878         Reported by Gary V. Vaughan <gary@gnu.org>.
67879
67880 2007-06-01  Bruno Haible  <bruno@clisp.org>
67881
67882         * doc/functions/frexpl.texi: Update for mingw.
67883
67884 2007-06-01  Bruno Haible  <bruno@clisp.org>
67885
67886         * tests/test-lseek.c (main): Disable test of errno for invalid third
67887         argument.
67888         * doc/functions/lseek.texi: Update.
67889         Reported by Gary V. Vaughan <gary@gnu.org>.
67890
67891 2007-05-28  Bruno Haible  <bruno@clisp.org>
67892
67893         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
67894
67895 2007-05-31  Eric Blake  <ebb9@byu.net>
67896
67897         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
67898         cross compiling.
67899
67900 2007-05-30  Eric Blake  <ebb9@byu.net>
67901         and Bruno Haible  <bruno@clisp.org>
67902
67903         Work around mingw test failures exposed by m4-1.4.9b.
67904         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
67905         * tests/test-unistd.c: Disable uid_t and git_t tests for the
67906         moment.
67907
67908 2007-05-30  Bruno Haible  <bruno@clisp.org>
67909
67910         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
67911         assuming that they are closed. Needed on HP-UX 11.
67912
67913 2007-05-29  Bruno Haible  <bruno@clisp.org>
67914
67915         Fix a problem with #include_next.
67916         * lib/dirent_.h: Split the double-inclusion guard.
67917         * lib/fcntl_.h: Likewise.
67918         * lib/float_.h: Likewise.
67919         * lib/iconv_.h: Likewise.
67920         * lib/inttypes_.h: Likewise.
67921         * lib/locale_.h: Likewise.
67922         * lib/math_.h: Likewise.
67923         * lib/netinet_in_.h: Likewise.
67924         * lib/search_.h: Likewise.
67925         * lib/signal_.h: Likewise.
67926         * lib/stdint_.h: Likewise.
67927         * lib/stdio_.h: Likewise.
67928         * lib/stdlib_.h: Likewise.
67929         * lib/string_.h: Likewise.
67930         * lib/sys_select_.h: Likewise.
67931         * lib/sys_socket_.h: Likewise.
67932         * lib/sys_stat_.h: Likewise.
67933         * lib/sys_time_.h: Likewise.
67934         * lib/sysexits_.h: Likewise.
67935         * lib/time_.h: Likewise.
67936         * lib/unistd_.h: Likewise.
67937         * lib/wchar_.h: Likewise.
67938         * lib/wctype_.h: Likewise.
67939
67940 2007-05-29  Bruno Haible  <bruno@clisp.org>
67941
67942         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
67943         for the moment.
67944
67945 2007-05-29  Bruno Haible  <bruno@clisp.org>
67946
67947         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
67948         invocation.
67949         Reported by Eric Blake.
67950
67951 2007-05-29  Bruno Haible  <bruno@clisp.org>
67952
67953         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
67954         compiling case.
67955
67956 2007-05-29  Eric Blake  <ebb9@byu.net>
67957             Bruno Haible  <bruno@clisp.org>
67958
67959         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
67960         cross compiles.
67961
67962 2007-05-28  Eric Blake  <ebb9@byu.net>
67963
67964         * modules/closein-tests (test_closein_LDADD): Support test on
67965         cygwin with libtool.
67966
67967 2007-05-28  Bruno Haible  <bruno@clisp.org>
67968
67969         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
67970         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67971         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67972         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67973         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67974         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67975         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67976         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67977         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67978
67979 2007-05-28  Eric Blake  <ebb9@byu.net>
67980
67981         Unconditionally include <config.h> in unit tests.
67982         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
67983         * tests/test-allocsa.c, tests/test-arcfour.c,
67984         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
67985         tests/test-array_list.c, tests/test-array_oset.c,
67986         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
67987         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
67988         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
67989         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
67990         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
67991         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
67992         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
67993         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
67994         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
67995         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
67996         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
67997         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
67998         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
67999         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
68000         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
68001         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
68002         test-md5.c, test-memmem.c, test-printf-posix.c,
68003         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
68004         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
68005         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
68006         test-strcasestr.c, test-striconv.c, test-striconveh.c,
68007         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
68008         test-vasnprintf-posix2.c, test-vasnprintf.c,
68009         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
68010         test-vfprintf-posix.c, test-vprintf-posix.c,
68011         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
68012         test-xvasprintf.c: Likewise.
68013
68014 2007-05-28  Bruno Haible  <bruno@clisp.org>
68015
68016         * gnulib-tool (func_import): Remember the --with-tests command-line
68017         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
68018         Reported by Eric Blake.
68019
68020 2007-05-28  Bruno Haible  <bruno@clisp.org>
68021
68022         * modules/ftell-tests: New file.
68023         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
68024         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
68025
68026         * lib/ftell.c: New file.
68027         * modules/ftell: New file.
68028         * m4/ftell.m4: New file.
68029         * doc/functions/ftell.texi: Update.
68030         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
68031         REPLACE_FTELL.
68032         * lib/stdio_.h (rpl_ftell): New declaration.
68033         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
68034         REPLACE_FTELL.
68035
68036 2007-05-28  Eric Blake  <ebb9@byu.net>
68037
68038         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
68039
68040 2007-05-28  Bruno Haible  <bruno@clisp.org>
68041
68042         * modules/fseek-tests: New file.
68043         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
68044         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
68045
68046         * lib/fseek.c: New file.
68047         * modules/fseek: New file.
68048         * m4/fseek.m4: New file.
68049         * doc/functions/fseek.texi: Update.
68050         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
68051         REPLACE_FSEEK.
68052         * lib/stdio_.h (rpl_fseek): New declaration.
68053         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
68054         REPLACE_FSEEK.
68055
68056 2007-05-28  Bruno Haible  <bruno@clisp.org>
68057
68058         * lib/stdio_.h (fflush): More comments.
68059
68060 2007-05-28  Bruno Haible  <bruno@clisp.org>
68061
68062         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
68063         runtime test.
68064
68065 2007-05-28  Eric Blake  <ebb9@byu.net>
68066
68067         Improve lseek module.
68068         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
68069         * lib/unistd_.h (lseek): Scale back link warning message.
68070         * tests/test-lseek.c: Beef up test.
68071         * tests/test-lseek.sh: Exercise more facets of lseek.
68072         Reported by Bruno Haible.
68073
68074 2007-05-28  Bruno Haible  <bruno@clisp.org>
68075
68076         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
68077         to define.
68078
68079 2007-05-27  Bruno Haible  <bruno@clisp.org>
68080
68081         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
68082
68083 2007-05-27  Bruno Haible  <bruno@clisp.org>
68084
68085         * modules/openmp: New file.
68086         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
68087         Noah Misch.
68088
68089 2007-05-26  Bruno Haible  <bruno@clisp.org>
68090
68091         * modules/chdir-long (Depends-on): Add fchdir.
68092         * modules/chdir-safer (Depends-on): Likewise.
68093         * modules/fts (Depends-on): Likewise.
68094         * modules/fts-lgpl (Depends-on): Likewise.
68095         * modules/openat (Depends-on): Likewise.
68096         * modules/savewd (Depends-on): Likewise.
68097
68098 2007-05-24  Eric Blake  <ebb9@byu.net>
68099
68100         Fix lseek on mingw.
68101         * modules/lseek: New module.
68102         * m4/lseek.m4: New file.
68103         * lib/lseek.c: New file.
68104         * modules/lseek-tests: New file.
68105         * tests/test-lseek.c: New file.
68106         * tests/test-lseek.sh: New file.
68107         * MODULES.html.sh: Document lseek module.
68108         * modules/fflush (Depends-on): Add lseek, fseeko.
68109         * modules/fseeko (Depends-on): Likewise.
68110         * modules/ftello (Depends-on): Likewise.
68111         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
68112         broken.
68113         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
68114         broken.
68115         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
68116         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
68117         * lib/ftello.c (rpl_ftello): Likewise.
68118         * tests/test-fseeko.c (main): Test this.
68119         * tests/test-fseeko.sh: Likewise.
68120         * tests/test-ftello.c (main): Likewise.
68121         * tests/test-ftello.sh: Likewise.
68122         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
68123         implies replacing fseek.
68124         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
68125         HAVE_FTELLO.
68126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
68127         * modules/unistd (Makefile.am): Likewise.
68128         * lib/unistd_.h (lseek): Declare a replacement.
68129         * doc/functions/lseek.texi (lseek): Document this fix.
68130         * doc/functions/fseek.texi (fseek): Likewise.
68131         * doc/functions/ftell.texi (ftell): Likewise.
68132
68133 2007-05-24  Bruno Haible  <bruno@clisp.org>
68134
68135         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
68136         in the printed representation of a NaN.
68137         * tests/test-vasprintf-posix.c (test_function): Likewise.
68138         * tests/test-snprintf-posix.h (test_function): Likewise.
68139         * tests/test-sprintf-posix.h (test_function): Likewise.
68140         Reported by Eric Blake.
68141
68142 2007-05-23  Eric Blake  <ebb9@byu.net>
68143
68144         Fix fseeko/ftello on cygwin 1.5.24.
68145         * doc/functions/fseeko.texi (fseeko): Document the fix.
68146         * doc/functions/ftello.texi (ftello): Document the fix.
68147         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
68148         * doc/functions/stdout.text (stdout): New file.
68149         * doc/functions/stderr.text (stderr): New file.
68150         * doc/gnulib.texi (Function Substitutes): Use new files.
68151         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
68152         prior to 1.7.0.
68153         * tests/test-ftello.c (main): Likewise for ftello.
68154         * tests/test-fseeko.sh: New file.
68155         * tests/test-ftello.sh: New file.
68156         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
68157         with seekable stdin.
68158         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
68159         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
68160         (gl_REPLACE_FSEEKO): New macro.
68161         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
68162         * modules/fseeko (Files): Distribute fseeko.c.
68163         * modules/ftello (Files): Distribute ftello.c.
68164         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
68165         mode.
68166         * lib/ftello.c (rpl_ftello): New file.
68167         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
68168         fseeko, ftello.
68169         (gl_STDIN_LARGE_OFFSET): New macro.
68170         * modules/stdio (Makefile.am): Perform the replacement.
68171         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
68172
68173 2007-05-23  Bruno Haible  <bruno@clisp.org>
68174
68175         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
68176         GNULIB_POSIXCHECK is defined.
68177
68178 2007-05-21  Bruno Haible  <bruno@clisp.org>
68179
68180         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
68181         Check also the output for NaN arguments. When cross-compiling, guess
68182         no on IRIX.
68183         * lib/vasnprintf.c: Update comments.
68184         * tests/test-vasnprintf-posix.c (strisnan): New function.
68185         (test_function): Use it.
68186         * tests/test-vasprintf-posix.c (strisnan): New function.
68187         (test_function): Use it.
68188         * tests/test-snprintf-posix.h (strisnan): New function.
68189         (test_function): Use it.
68190         * tests/test-sprintf-posix.h (strisnan): New function.
68191         (test_function): Use it.
68192         Reported by Eric Blake.
68193
68194 2007-05-20  Bruno Haible  <bruno@clisp.org>
68195
68196         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
68197         numbers that fails on BeOS.
68198         * doc/functions/frexpl.texi: Update.
68199
68200 2007-05-20  Jim Meyering  <jim@meyering.net>
68201
68202         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
68203         forced upon us by glibc-2.6.
68204
68205 2007-05-20  Bruno Haible  <bruno@clisp.org>
68206
68207         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
68208         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
68209         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
68210         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
68211         NEED_PRINTF_INFINITE.
68212         (is_infinitel): New function.
68213         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
68214         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
68215         gl_PREREQ_VASNPRINTF_INFINITE.
68216         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
68217         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68218         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
68219         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
68220         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
68221         gl_PREREQ_VASNPRINTF_INFINITE.
68222         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68223         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68224         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68225         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68226         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68227         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68228         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68229         * doc/functions/fprintf.texi: Update.
68230         * doc/functions/printf.texi: Update.
68231         * doc/functions/snprintf.texi: Update.
68232         * doc/functions/sprintf.texi: Update.
68233         * doc/functions/vfprintf.texi: Update.
68234         * doc/functions/vprintf.texi: Update.
68235         * doc/functions/vsnprintf.texi: Update.
68236         * doc/functions/vsprintf.texi: Update.
68237
68238 2007-05-20  Bruno Haible  <bruno@clisp.org>
68239
68240         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
68241         was not found in libc.
68242         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
68243
68244 2007-05-20  Bruno Haible  <bruno@clisp.org>
68245
68246         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68247         printed as "-nan" instead of "nan".
68248         * tests/test-vasprintf-posix.c (test_function): Likewise.
68249         * tests/test-snprintf-posix.h (test_function): Likewise.
68250         * tests/test-sprintf-posix.h (test_function): Likewise.
68251         Needed for HP-UX 11.
68252
68253 2007-05-20  Jim Meyering  <jim@meyering.net>
68254
68255         Fix buggy test for the fchownat-deref bug.
68256         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
68257         symlink required for the run-test.  Without it, this test would
68258         always declare that fchownat doesn't work, and client code would
68259         unnecessarily use the replacement function with fixed libc.
68260         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
68261         Reported by Greg Schafer.
68262
68263 2007-05-19  Bruno Haible  <bruno@clisp.org>
68264
68265         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
68266         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
68267         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
68268         Needed for IRIX 6.5 and Solaris 2.5.1.
68269
68270 2007-05-19  Bruno Haible  <bruno@clisp.org>
68271
68272         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
68273         (test_function): Skip tests involving -0.0 on platforms where
68274         -0.0 = 0.0.
68275         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
68276         (test_function): Skip tests involving -0.0 on platforms where
68277         -0.0 = 0.0.
68278         * tests/test-snprintf-posix.h (have_minus_zero): New function.
68279         (test_function): Skip tests involving -0.0 on platforms where
68280         -0.0 = 0.0.
68281         * tests/test-sprintf-posix.h (have_minus_zero): New function.
68282         (test_function): Skip tests involving -0.0 on platforms where
68283         -0.0 = 0.0.
68284         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
68285         tests.
68286         * tests/test-printf-posix.h (test_function): Likewise.
68287         * tests/test-printf-posix.output: Remove all -0.0 related results.
68288         Needed for IRIX 6.5.
68289
68290 2007-05-19  Bruno Haible  <bruno@clisp.org>
68291
68292         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68293         printed as "nan0x7fffffff" instead of "nan".
68294         * tests/test-vasprintf-posix.c (test_function): Likewise.
68295         * tests/test-snprintf-posix.h (test_function): Likewise.
68296         * tests/test-sprintf-posix.h (test_function): Likewise.
68297         * tests/test-fprintf-posix.h (NaN): Remove macro.
68298         (test_function): Remove all NaN related tests.
68299         * tests/test-printf-posix.h (NaN): Remove macro.
68300         (test_function): Remove all NaN related tests.
68301         * tests/test-printf-posix.output: Remove all NaN related results.
68302         Needed for IRIX 6.5.
68303
68304 2007-05-19  Bruno Haible  <bruno@clisp.org>
68305
68306         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
68307         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
68308
68309 2007-05-19  Bruno Haible  <bruno@clisp.org>
68310
68311         * lib/float_.h: New file.
68312         * m4/float_h.m4: New file.
68313         * modules/float: New file.
68314         * modules/isnanl (Dependencies): Add float.
68315         * modules/isnanl-nolibm (Dependencies): Likewise.
68316         * modules/mathl (Dependencies): Likewise.
68317         * modules/printf-frexpl (Dependencies): Likewise.
68318         * modules/signbit (Dependencies): Likewise.
68319         * modules/vasnprintf (Dependencies): Likewise.
68320         * doc/headers/float.texi: Update.
68321
68322 2007-05-19  Jim Meyering  <jim@meyering.net>
68323
68324         * lib/utimens.c (gl_futimens): Rename from futimens,
68325         now that glibc-2.6 declares futimens.
68326         * lib/utimens.h: Likewise.
68327
68328 2007-05-19  Bruno Haible  <bruno@clisp.org>
68329
68330         Avoid test failures on mingw.
68331         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
68332         * tests/test-printf-posix.sh: Likewise.
68333         * tests/test-vfprintf-posix.sh: Likewise.
68334         * tests/test-vprintf-posix.sh: Likewise.
68335
68336 2007-05-19  Bruno Haible  <bruno@clisp.org>
68337
68338         Fix *printf result for NaN, Inf, -0.0 on mingw.
68339         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
68340         * lib/vasnprintf.c: Include math.h and isnan.h.
68341         (is_infinite_or_zero): New function.
68342         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
68343         values in the %f, %F, %e, %E, %g, %G directives.
68344         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
68345         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68346         gl_PRINTF_INFINITE and test its result. Invoke
68347         gl_PREREQ_VASNPRINTF_INFINITE.
68348         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68349         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68350         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68351         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68352         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68353         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68354         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68355         * doc/functions/fprintf.texi: Update.
68356         * doc/functions/printf.texi: Update.
68357         * doc/functions/snprintf.texi: Update.
68358         * doc/functions/sprintf.texi: Update.
68359         * doc/functions/vfprintf.texi: Update.
68360         * doc/functions/vprintf.texi: Update.
68361         * doc/functions/vsnprintf.texi: Update.
68362         * doc/functions/vsprintf.texi: Update.
68363
68364 2007-05-19  Bruno Haible  <bruno@clisp.org>
68365
68366         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
68367         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
68368         Instead of multiplying with 10^k, set extra_zeroes to k.
68369         (scale10_round_long_double): Remove function.
68370
68371 2007-05-18  Bruno Haible  <bruno@clisp.org>
68372
68373         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
68374         introduced on 2007-05-06.
68375
68376 2007-05-18  Bruno Haible  <bruno@clisp.org>
68377
68378         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
68379         %g directives.
68380         * tests/test-vasprintf-posix.c (test_function): Likewise.
68381         * tests/test-snprintf-posix.h (test_function): Likewise.
68382         * tests/test-sprintf-posix.h (test_function): Likewise.
68383
68384 2007-05-18  Bruno Haible  <bruno@clisp.org>
68385
68386         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
68387         (strmatch): New function.
68388         (test_function): Test the %f directive on numbers of various exponents.
68389         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
68390         (strmatch): New function.
68391         (test_function): Test the %f directive on numbers of various exponents.
68392         * tests/test-snprintf-posix.h (strmatch): New function.
68393         (test_function): Test the %f directive on numbers of various exponents.
68394         * tests/test-sprintf-posix.h (strmatch): New function.
68395         (test_function): Test the %f directive on numbers of various exponents.
68396         * tests/test-snprintf-posix.c (SIZEOF): New macro.
68397         * tests/test-sprintf-posix.c (SIZEOF): New macro.
68398         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
68399         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
68400
68401 2007-05-18  Bruno Haible  <bruno@clisp.org>
68402
68403         Add support for 'long double' number output.
68404         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
68405         * lib/vasnprintf.c: Include math.h and float+.h.
68406         (mp_limb_t): New type.
68407         (GMP_LIMB_BITS): New macro.
68408         (mp_twolimb_t): New type.
68409         (GMP_TWOLIMB_BITS): New macro.
68410         (mpn_t): New type.
68411         (multiply, divide, convert_to_decimal, decode_long_double,
68412         scale10_round_long_double, scale10_round_decimal_long_double,
68413         floorlog10l): New functions.
68414         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
68415         for the %f, %F, %e, %E, %g, %G directives.
68416         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
68417         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68418         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
68419         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
68420         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68421         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68422         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68423         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68424         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68425         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68426         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68427         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
68428         * modules/snprintf-posix (Depends-on): Likewise.
68429         * modules/sprintf-posix (Depends-on): Likewise.
68430         * modules/vasnprintf-posix (Depends-on): Likewise.
68431         * modules/vasprintf-posix (Depends-on): Likewise.
68432         * modules/vfprintf-posix (Depends-on): Likewise.
68433         * modules/vsnprintf-posix (Depends-on): Likewise.
68434         * modules/vsprintf-posix (Depends-on): Likewise.
68435         * modules/vasnprintf (Files): Add lib/float+.h.
68436         * doc/functions/fprintf.texi: Update.
68437         * doc/functions/printf.texi: Update.
68438         * doc/functions/snprintf.texi: Update.
68439         * doc/functions/sprintf.texi: Update.
68440         * doc/functions/vfprintf.texi: Update.
68441         * doc/functions/vprintf.texi: Update.
68442         * doc/functions/vsnprintf.texi: Update.
68443         * doc/functions/vsprintf.texi: Update.
68444
68445 2007-05-18  Bruno Haible  <bruno@clisp.org>
68446
68447         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
68448
68449 2007-05-18  Bruno Haible  <bruno@clisp.org>
68450
68451         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
68452         for printing 64-bit integers. Needed for mingw.
68453
68454 2007-05-18  Bruno Haible  <bruno@clisp.org>
68455
68456         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68457         gl_FUNC_FREXPL_WORKS.
68458         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
68459
68460 2007-05-18  Bruno Haible  <bruno@clisp.org>
68461
68462         * modules/frexpl-nolibm-tests: New file.
68463
68464         * modules/frexpl-nolibm: New file.
68465         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
68466
68467 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68468
68469         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
68470         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68471         GCC 4.2, which otherwise issues a lot of warnings.
68472         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
68473         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
68474         Likewise.
68475         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
68476         * modules/iconv_open (iconv.h): Likewise.
68477         * modules/locale (locale.h): Likewise.
68478         * modules/netinet_in (netinet/in.h): Likewise.
68479         * modules/sys_select (sys_select.h): Likewise.
68480         * modules/sys_socket (sys/socket.h): Likewise.
68481         * modules/sys_stat (sys/stat.h): Likewise.
68482         * modules/sysexits (sysexits.h): Likewise.
68483         * modules/unistd (unistd.h): Likewise.
68484
68485 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68486
68487         * modules/closein-tests (Makefile.am): Distribute
68488         `test-closein.sh'.
68489
68490 2007-05-17  Bruno Haible  <bruno@clisp.org>
68491
68492         * tests/test-printf-posix.output: Renamed from
68493         tests/test-fprintf-posix.out.
68494         * modules/fprintf-posix-tests: Update.
68495         * modules/printf-posix-tests: Update.
68496         * modules/vfprintf-posix-tests: Update.
68497         * modules/vprintf-posix-tests: Update.
68498         * tests/test-fprintf-posix.sh: Update.
68499         * tests/test-printf-posix.sh: Update.
68500         * tests/test-vfprintf-posix.sh: Update.
68501         * tests/test-vprintf-posix.sh: Update.
68502         Reported by Ralf Wildenhues.
68503
68504 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68505
68506         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
68507         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68508         GCC 4.2, which otherwise issues a lot of warnings.
68509         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
68510         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
68511         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
68512         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
68513         it should no longer be needed.
68514         * lib/string_.h: Likewise.
68515         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
68516         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
68517         * modules/inttypes (inttypes.h): Likewise.
68518         * modules/math (math.h): Likewise.
68519         * modules/search (search.h): Likewise.
68520         * modules/signal (signal.h): Likewise.
68521         * modules/stdint (stdint.h): Likewise.
68522         * modules/stdio (stdio.h): Likewise.
68523         * modules/stdlib (stdlib.h): Likewise.
68524         * modules/string (string.h): Likewise.
68525         * modules/sys_time (sys/time.h): Likewise.
68526         * modules/time (time.h): Likewise.
68527         * modules/wchar (wchar.h): Likewise.
68528         * modules/wctype (wtype.h): Likewise.
68529
68530 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
68531
68532         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
68533
68534 2007-05-13  Bruno Haible  <bruno@clisp.org>
68535
68536         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
68537         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68538         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
68539         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68540         (gl_PREREQ_STRTOK_R): Don't require it here.
68541
68542 2007-05-13  Bruno Haible  <bruno@clisp.org>
68543
68544         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
68545         when used in C++ mode.
68546
68547 2007-05-12  Bruno Haible  <bruno@clisp.org>
68548
68549         * lib/linebuffer.h: Tweak doc.
68550         * lib/linebuffer.c: Likewise.
68551
68552 2007-05-12  James Youngman  <jay@gnu.org>
68553
68554         * lib/linebuffer.c (readlinebuffer_delim): New function,
68555         like readlinebuffer, but use a caller-specified delimiter.
68556         (readlinebuffer): Just call readlinebuffer_delim with '\n'
68557         as the delimiter.
68558         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
68559
68560 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68561
68562         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
68563         * modules/openat (Files): Remove openat-die.c.
68564         (Depends-on): Add openat-die.
68565         * modules/openat-die: New module.
68566
68567 2007-05-06  Bruno Haible  <bruno@clisp.org>
68568
68569         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
68570         Update with info about Cygwin.
68571         * doc/functions/fprintf.texi: Update.
68572         * doc/functions/printf.texi: Update.
68573         * doc/functions/snprintf.texi: Update.
68574         * doc/functions/sprintf.texi: Update.
68575         * doc/functions/vfprintf.texi: Update.
68576         * doc/functions/vprintf.texi: Update.
68577         * doc/functions/vsnprintf.texi: Update.
68578         * doc/functions/vsprintf.texi: Update.
68579         Reported by Eric Blake.
68580
68581 2007-05-06  Bruno Haible  <bruno@clisp.org>
68582
68583         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
68584         padding ourselves for the floating-point directives.
68585         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
68586         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
68587         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68588         gl_PRINTF_FLAG_ZERO and test its result. Invoke
68589         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
68590         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68591         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68592         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68593         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68594         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68595         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68596         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68597         * tests/test-snprintf-posix.h (test_function): Also check the width
68598         and some flags in the %f directive.
68599         * tests/test-sprintf-posix.h (test_function): Likewise.
68600         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68601         * tests/test-vasprintf-posix.c (test_function): Likewise.
68602         * doc/functions/fprintf.texi: Update.
68603         * doc/functions/printf.texi: Update.
68604         * doc/functions/snprintf.texi: Update.
68605         * doc/functions/sprintf.texi: Update.
68606         * doc/functions/vfprintf.texi: Update.
68607         * doc/functions/vprintf.texi: Update.
68608         * doc/functions/vsnprintf.texi: Update.
68609         * doc/functions/vsprintf.texi: Update.
68610
68611 2007-05-06  Bruno Haible  <bruno@clisp.org>
68612
68613         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
68614         pass the ' flag character to sprintf or snprintf.
68615         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
68616         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
68617         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68618         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
68619         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
68620         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68621         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68622         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68623         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68624         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68625         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68626         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68627         * tests/test-snprintf-posix.h (test_function): Also check the grouping
68628         flag.
68629         * tests/test-sprintf-posix.h (test_function): Likewise.
68630         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68631         * tests/test-vasprintf-posix.c (test_function): Likewise.
68632         * doc/functions/fprintf.texi: Update.
68633         * doc/functions/printf.texi: Update.
68634         * doc/functions/snprintf.texi: Update.
68635         * doc/functions/sprintf.texi: Update.
68636         * doc/functions/vfprintf.texi: Update.
68637         * doc/functions/vprintf.texi: Update.
68638         * doc/functions/vsnprintf.texi: Update.
68639         * doc/functions/vsprintf.texi: Update.
68640
68641 2007-05-01  Bruno Haible  <bruno@clisp.org>
68642
68643         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
68644
68645 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
68646
68647         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
68648         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
68649
68650 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68651
68652         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
68653         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
68654         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
68655
68656 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
68657
68658         * lib/argp-help.c (struct hol_entry): New member `ord'.
68659         (HOL_ENTRY_PTRCMP): Use ord for comparison
68660         (hol_sort): Initialize ord.
68661
68662 2007-05-01  Bruno Haible  <bruno@clisp.org>
68663
68664         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
68665         Reported by Eric Blake.
68666         * doc/gnulib.texi (Function Substitutes): Update.
68667
68668 2007-05-01  Bruno Haible  <bruno@clisp.org>
68669
68670         * doc/functions.texi: Remove file, now redundant through
68671         doc/functions/*.texi.
68672
68673 2007-05-01  Bruno Haible  <bruno@clisp.org>
68674
68675         * modules/argp (Depends-on): Add sleep.
68676
68677 2007-05-01  Bruno Haible  <bruno@clisp.org>
68678
68679         * modules/sleep-tests: New file.
68680         * tests/test-sleep.c: New file.
68681
68682         * modules/sleep: New file.
68683         * lib/sleep.c: New file.
68684         * m4/sleep.m4: New file.
68685         * lib/unistd_.h (sleep): New declaration.
68686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
68687         HAVE_SLEEP.
68688         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
68689         * doc/functions/sleep.texi: Document the sleep module.
68690
68691 2007-05-01  Bruno Haible  <bruno@clisp.org>
68692
68693         * lib/sigprocmask.h: Remove file.
68694         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
68695         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
68696         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
68697         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
68698         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
68699         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
68700         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
68701         HAVE_SIGSET_T as a shell variable.
68702         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
68703         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
68704         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
68705         (Depends-on): Add signal. Remove verify.
68706         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
68707         (Include): Mention <signal.h> instead of sigprocmask.h.
68708         * NEWS: Mention the change.
68709         * lib/fatal-signal.c: Don't include sigprocmask.h.
68710
68711 2007-05-01  Bruno Haible  <bruno@clisp.org>
68712
68713         * modules/signal: New file.
68714         * lib/signal_.h: New file.
68715         * m4/signal_h.m4: New file.
68716
68717 2007-05-01  Bruno Haible  <bruno@clisp.org>
68718
68719         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
68720         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
68721         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
68722         HAVE_WCTYPE_CTMP_BUG into wctype.h.
68723
68724 2007-05-01  Bruno Haible  <bruno@clisp.org>
68725
68726         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
68727         configure time.
68728         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
68729         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
68730         * modules/sys_stat (Makefile.am): Substitute their values into
68731         sys/stat.h.
68732
68733 2007-05-01  Bruno Haible  <bruno@clisp.org>
68734
68735         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
68736         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
68737         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
68738
68739 2007-05-01  Bruno Haible  <bruno@clisp.org>
68740
68741         * doc/header/assert.texi: Undo last change: don't mention the gnulib
68742         'assert' module here.
68743
68744 2007-05-01  Bruno Haible  <bruno@clisp.org>
68745
68746         * doc/functions/*.texi: New files.
68747         * doc/functions/google-ranking.txt: New file.
68748         * doc/gnulib.texi (Function Substitutes): New chapter.
68749         (ctime, inet_ntoa): Remove sections.
68750         * doc/ctime.texi: Remove file.
68751         * doc/inet_ntoa.texi: Remove file.
68752         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
68753         dependencies.
68754         (%.info): New rule, specifying a --reference-limit.
68755
68756 2007-05-01  Bruno Haible  <bruno@clisp.org>
68757
68758         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
68759
68760 2007-05-01  Bruno Haible  <bruno@clisp.org>
68761
68762         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
68763         the portability of 'mkdir' to mingw systems.
68764
68765 2007-05-01  Bruno Haible  <bruno@clisp.org>
68766
68767         * doc/headers/google-ranking.txt: New file.
68768
68769 2007-04-30  Eric Blake  <ebb9@byu.net>
68770
68771         Prefer fseeko to fseek.
68772         * modules/getpass (Depends-on): Add fseeko.
68773         * lib/getpass.c (getpass): Use fseeko, not fseek.
68774
68775 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
68776
68777         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
68778         assumes the sorting is stable, while most qsort implementations
68779         are not.  Use argument addresses to ensure they never compare as
68780         equal.
68781
68782         * tests/test-argp-2.sh (usage-indent test): Fix output
68783         (func_compare): Restore diff options
68784         * tests/test-argp.c: Restore #include "progname.h"
68785
68786 2007-04-29  Bruno Haible  <bruno@clisp.org>
68787
68788         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
68789         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68790         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
68791         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68792         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
68793         (configure.ac): Define CHECK_SNPRINTF_POSIX.
68794         (TESTS, check_PROGRAMS): Add test-snprintf.
68795         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
68796         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
68797         (TESTS, check_PROGRAMS): Add test-vsnprintf.
68798         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
68799         assertions that fail on HP-UX, OSF/1, or IRIX.
68800         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
68801
68802 2007-04-29  Bruno Haible  <bruno@clisp.org>
68803
68804         * MODULES.html.sh (posix_functions): Remove 'contents'.
68805
68806 2007-04-29  Karl Berry  <karl@gnu.org>
68807
68808         * config/srclist.txt (gendocs_template_min): new entry.
68809
68810 2007-04-29  Bruno Haible  <bruno@clisp.org>
68811
68812         Work around fpurge bug on BSD systems.
68813         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
68814         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
68815         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
68816         fpurge to rpl_fpurge if the system already has this function.
68817         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
68818         the case where the system already has this function. Correct invariants
68819         on BSD systems.
68820         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
68821         BSD systems.
68822
68823 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
68824
68825         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
68826         proposed by Sven Verdoolaege.
68827
68828         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
68829         options.
68830         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
68831         (usage and help tests): Update
68832
68833 2007-04-29  Bruno Haible  <bruno@clisp.org>
68834
68835         * tests/test-fflush.c (main): Use a file of size 17, not 10.
68836         Print more information in case of failure. Disable a test on BeOS.
68837
68838 2007-04-29  Bruno Haible  <bruno@clisp.org>
68839
68840         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
68841         This helps debugging on systems on which no gdb is available.
68842
68843 2007-04-29  Bruno Haible  <bruno@clisp.org>
68844
68845         * lib/freading.h: Improve comments.
68846         * lib/fwriting.h: Likewise.
68847         * tests/test-freading.c (main): Don't check freading immediately after
68848         repositioning. Needed for glibc.
68849
68850 2007-04-29  Bruno Haible  <bruno@clisp.org>
68851
68852         * lib/freading.c (freading): Trivial simplification.
68853
68854 2007-04-28  Bruno Haible  <bruno@clisp.org>
68855
68856         * tests/test-fwriting.c (main): Also test the interaction between
68857         fflush and fwriting.
68858         * modules/fwriting-tests (Depends-on): Add fflush.
68859
68860         * tests/test-freading.c (main): Also test the interaction between
68861         fflush and freading.
68862         * modules/freading-tests (Depends-on): Add fflush.
68863
68864 2007-04-28  Bruno Haible  <bruno@clisp.org>
68865
68866         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
68867         fseeko and ftello.
68868         Suggested by Eric Blake.
68869
68870 2007-04-28  Jim Meyering  <jim@meyering.net>
68871
68872         Avoid false-negative in gl_STDINT_H's C99 conformance test.
68873         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
68874         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
68875
68876 2007-04-27  Eric Blake  <ebb9@byu.net>
68877
68878         * doc/headers/assert.texi (assert.h): Document assert module use.
68879
68880 2007-04-27  Bruno Haible  <bruno@clisp.org>
68881
68882         * doc/headers/*.texi: New files.
68883         * doc/gnulib.texi (Header File Substitutes): New chapter.
68884         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
68885         dependencies.
68886         (standards.info ,standards.html, standards.dvi): Update dependencies.
68887         (mostlyclean, clean): New targets.
68888
68889 2007-04-27  Bruno Haible  <bruno@clisp.org>
68890
68891         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
68892         * modules/sysexits (Files, Makefile.am): Update.
68893
68894         * lib/sys_socket_.h: Renamed from lib/socket_.h.
68895         * modules/sys_socket (Files, Makefile.am): Update.
68896
68897         * lib/sys_stat_.h: Renamed from lib/stat_.h.
68898         * modules/sys_stat (Files, Makefile.am): Update.
68899
68900 2007-04-27  Eric Blake  <ebb9@byu.net>
68901
68902         * lib/freading.h: Improve comments.
68903         * lib/fwriting.h: Likewise.
68904         * lib/fflush.c: Likewise.
68905
68906         Fix closein for mingw.
68907         * modules/closein-tests: Add tests for closein.
68908         * tests/test-closein.c: New file.
68909         * tests/test-closein.sh: Likewise.
68910         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
68911         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
68912
68913 2007-04-27  Bruno Haible  <bruno@clisp.org>
68914
68915         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
68916         version is < 6.
68917         * lib/math_.h [__DECC]: Likewise.
68918         * lib/stdio_.h [__DECC]: Likewise.
68919         * lib/stdlib_.h [__DECC]: Likewise.
68920         * lib/string_.h [__DECC]: Likewise.
68921         * lib/time_.h [__DECC]: Likewise.
68922         * lib/wchar_.h [__DECC]: Likewise.
68923         * lib/wctype_.h [__DECC]: Likewise.
68924
68925 2007-04-27  Bruno Haible  <bruno@clisp.org>
68926
68927         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
68928
68929 2007-04-27  Bruno Haible  <bruno@clisp.org>
68930
68931         * lib/fflush.c: Add comments.
68932         * modules/fpurge-tests (Depends-on): Add fflush.
68933         * modules/freadable-tests (Depends-on): Likewise.
68934         * modules/fwritable-tests (Depends-on): Likewise.
68935
68936 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
68937
68938         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
68939         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
68940         Report by Bruno Haible <bruno@clisp.org>.
68941
68942 2007-04-26  Eric Blake  <ebb9@byu.net>
68943
68944         Fix fflush on mingw.
68945         * modules/fflush (Depends-on): Add freading.
68946         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
68947         but unread data.
68948
68949 2007-04-26  Eric Blake  <ebb9@byu.net>
68950         and Bruno Haible  <bruno@clisp.org>
68951
68952         Implement freading and fwriting.
68953         * lib/freading.c: New file.
68954         * lib/freading.h: Likewise.
68955         * m4/freading.m4: Likewise.
68956         * modules/freading: Likewise.
68957         * modules/freading-tests: Likewise.
68958         * tests/test-freading.c: Likewise.
68959         * lib/fwriting.c: New file.
68960         * lib/fwriting.h: Likewise.
68961         * m4/fwriting.m4: Likewise.
68962         * modules/fwriting: Likewise.
68963         * modules/fwriting-tests: Likewise.
68964         * tests/test-fwriting.c: Likewise.
68965         * MODULES.html.sh (File stream based Input/Output): Mention them.
68966
68967 2007-04-26  Bruno Haible  <bruno@clisp.org>
68968
68969         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
68970         'long' when we assume it.
68971         Suggested by Eric Blake.
68972
68973 2007-04-26  Bruno Haible  <bruno@clisp.org>
68974
68975         Ensure fseeko, ftello are declared on glibc systems.
68976         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
68977         * modules/fseeko (configure.ac-early): Likewise.
68978         * modules/ftello (configure.ac-early): Likewise.
68979         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
68980         AC_FUNC_FSEEKO for this.
68981         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
68982         (gl_CHECK_FSEEKO): Remove macro.
68983
68984 2007-04-26  Bruno Haible  <bruno@clisp.org>
68985
68986         * tests/test-fflush.c (main): Also check the ftell result after
68987         fflush and fseek/fseeko.
68988         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
68989         file descriptor position cache in the stream.
68990         * lib/fseeko.c (rpl_fseeko): Likewise.
68991
68992 2007-04-26  Bruno Haible  <bruno@clisp.org>
68993
68994         * modules/fflush-tests (Depends-on): Add fseeko.
68995
68996 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
68997             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68998
68999         * lib/argz_.h: ensure error_t definition is obtained in same
69000         mechanism system argz.h would have.
69001         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
69002         argz facilities are known bad.  Err on the side of caution if
69003         cross-compiling.
69004
69005 2007-04-25  Eric Blake  <ebb9@byu.net>
69006
69007         * lib/fpurge.c (includes): Use stdlib.h for free.
69008         * tests/test-fflush.c (main): Also test fflush-fseeko.
69009
69010 2007-04-25  Bruno Haible  <bruno@clisp.org>
69011
69012         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
69013         * lib/fseeko.c: New file.
69014         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
69015         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
69016         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
69017         gl_FUNC_FSEEKO.
69018         (gl_FUNC_FSEEKO): Invoke it.
69019         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
69020         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
69021         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
69022
69023 2007-04-25  Bruno Haible  <bruno@clisp.org>
69024
69025         * modules/fflush (Depends-on): Add ftello.
69026
69027 2007-04-25  Bruno Haible  <bruno@clisp.org>
69028
69029         * modules/ftello-tests: New file.
69030         * tests/test-ftello.c: New file.
69031
69032         * modules/ftello: New file.
69033         * m4/ftello.m4: New file.
69034         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
69035         HAVE_FTELLO.
69036         * lib/stdio_.h (ftello): New declaration.
69037         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
69038         HAVE_FTELLO.
69039
69040 2007-04-25  Bruno Haible  <bruno@clisp.org>
69041
69042         * modules/fseeko-tests: New file.
69043         * tests/test-fseeko.c: New file.
69044
69045         * modules/fseeko: New file.
69046         * m4/fseeko.m4: New file.
69047         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
69048         HAVE_FSEEKO.
69049         * lib/stdio_.h (fseeko): New declaration.
69050         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
69051         HAVE_FSEEKO.
69052
69053 2007-04-25  Bruno Haible  <bruno@clisp.org>
69054
69055         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
69056
69057 2007-04-25  Bruno Haible  <bruno@clisp.org>
69058
69059         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
69060         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
69061         * tests/test-unistd.c: Likewise.
69062         * tests/test-fcntl.c: Likewise.
69063
69064 2007-04-23  Eric Blake  <ebb9@byu.net>
69065
69066         * lib/fflush.c: Fix missing include.
69067         Reported by Bruno Haible.
69068
69069 2007-04-23  Bruno Haible  <bruno@clisp.org>
69070
69071         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
69072         Reported by Eric Blake.
69073
69074 2007-04-23  Bruno Haible  <bruno@clisp.org>
69075
69076         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
69077
69078 2007-04-23  Bruno Haible  <bruno@clisp.org>
69079
69080         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
69081
69082 2007-04-23  Bruno Haible  <bruno@clisp.org>
69083
69084         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
69085         Needed on HP-UX 11.
69086
69087 2007-04-16  Eric Blake  <ebb9@byu.net>
69088
69089         Make fflush rely on fpurge.
69090         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
69091         open coding all variants.
69092         * modules/fflush (Depends-on): Add fpurge and unistd.
69093         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
69094         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
69095
69096         Fix --with-tests compilation on cygwin.
69097         * modules/argmatch-tests (Makefile.am): List gnulib library first
69098         in LDADD.
69099         * modules/argp-tests (Makefile.am): Likewise.
69100         * modules/array-list-tests (Makefile.am): Likewise.
69101         * modules/array-oset-tests (Makefile.am): Likewise.
69102         * modules/avltree-list-tests (Makefile.am): Likewise.
69103         * modules/avltree-oset-tests (Makefile.am): Likewise.
69104         * modules/avltreehash-list-tests (Makefile.am): Likewise.
69105         * modules/carray-list-tests (Makefile.am): Likewise.
69106         * modules/dirname-tests (Makefile.am): Likewise.
69107         * modules/frexp-tests (Makefile.am): Likewise.
69108         * modules/isnanl-tests (Makefile.am): Likewise.
69109         * modules/linked-list-tests (Makefile.am): Likewise.
69110         * modules/linkedhash-list-tests (Makefile.am): Likewise.
69111         * modules/lock-tests (Makefile.am): Likewise.
69112         * modules/rbtree-list-tests (Makefile.am): Likewise.
69113         * modules/rbtree-oset-tests (Makefile.am): Likewise.
69114         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
69115         * modules/tls-tests (Makefile.am): Likewise.
69116         * modules/tsearch-tests (Makefile.am): Likewise.
69117         * modules/xvasprintf-tests (Makefile.am): Likewise.
69118
69119         Fix fpurge for cygwin.
69120         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
69121         value.
69122         * modules/fpurge-tests (Depends-on): Clean up trash.
69123
69124 2007-04-16  Simon Josefsson  <simon@josefsson.org>
69125
69126         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
69127
69128         * m4/autobuild.m4: Re-indent.
69129
69130 2007-04-13  Bruno Haible  <bruno@clisp.org>
69131
69132         * modules/fpurge-tests: New file.
69133         * tests/test-fpurge.c: New file.
69134
69135         * modules/fpurge: New file.
69136         * lib/fpurge.h: New file.
69137         * lib/fpurge.c: New file.
69138         * m4/fpurge.m4: New file.
69139
69140 2007-04-13  Bruno Haible  <bruno@clisp.org>
69141
69142         * modules/fbufmode-tests: New file.
69143         * tests/test-fbufmode.c: New file.
69144
69145         * modules/fbufmode: New file.
69146         * lib/fbufmode.h: New file.
69147         * lib/fbufmode.c: New file.
69148         * m4/fbufmode.m4: New file.
69149
69150 2007-04-13  Bruno Haible  <bruno@clisp.org>
69151
69152         * modules/fwritable-tests: New file.
69153         * tests/test-fwritable.c: New file.
69154
69155         * modules/fwritable: New file.
69156         * lib/fwritable.h: New file.
69157         * lib/fwritable.c: New file.
69158         * m4/fwritable.m4: New file.
69159
69160 2007-04-13  Bruno Haible  <bruno@clisp.org>
69161
69162         * modules/freadable-tests: New file.
69163         * tests/test-freadable.c: New file.
69164
69165         * modules/freadable: New file.
69166         * lib/freadable.h: New file.
69167         * lib/freadable.c: New file.
69168         * m4/freadable.m4: New file.
69169
69170 2007-04-13  Bruno Haible  <bruno@clisp.org>
69171
69172         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
69173         MOSTLYCLEANFILES.
69174
69175 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69176
69177         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
69178         gzip bootstrap.conf to avoid dragging in i18n machinery.
69179         (gnulib_tool_option): Use it.
69180
69181 2007-04-13  Bruno Haible  <bruno@clisp.org>
69182
69183         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
69184         %F directives.
69185         * tests/test-vasprintf-posix.c (test_function): Likewise.
69186         * tests/test-snprintf-posix.h (test_function): Likewise.
69187         * tests/test-sprintf-posix.h (test_function): Likewise.
69188         * tests/test-fprintf-posix.h (test_function): Likewise.
69189         * tests/test-printf-posix.h (test_function): Likewise.
69190         * tests/test-fprintf-posix.out: Likewise.
69191
69192 2007-04-13  Bruno Haible  <bruno@clisp.org>
69193
69194         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
69195         * modules/tls-tests (configure.ac): Likewise.
69196         Reported by Arto C. Nirkko <anirkko@insel.ch>.
69197
69198 2007-04-13  Bruno Haible  <bruno@clisp.org>
69199
69200         * lib/tls.c (glthread_tls_get): Fix return type.
69201         Patch by Arto C. Nirkko <anirkko@insel.ch>.
69202
69203 2007-04-12  Eric Blake  <ebb9@byu.net>
69204
69205         * modules/gettime (Depends-on): Remove gettime.
69206         Reported by Dmitry V. Levin.
69207
69208 2007-04-12  Bruno Haible  <bruno@clisp.org>
69209
69210         * modules/fflush (Include): Mention <stdio.h>.
69211         * modules/strtoimax (Include): Mention <inttypes.h>.
69212         * modules/strtoumax (Include): Likewise.
69213
69214 2007-04-12  Eric Blake  <ebb9@byu.net>
69215
69216         * .cvsignore: New file.
69217         * .gitignore: Likewise.
69218
69219 2007-04-12  Bruno Haible  <bruno@clisp.org>
69220
69221         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
69222         not before, since $(LDADD) often contains libgnu.a.
69223         * modules/striconv-tests (test_striconv_LDADD): Likewise.
69224         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
69225         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
69226         Needed on Cygwin.
69227
69228 2007-04-12  Eric Blake  <ebb9@byu.net>
69229
69230         Work around glibc's failure to flush stdin on fclose.
69231         * lib/closein.c (close_stdin): Flush stdin before closing.
69232
69233         Work around glibc's failure to reset seekable stdin on exit.
69234         * modules/closein: New module.
69235         * lib/closein.c: New file.
69236         * lib/closein.h: Likewise.
69237         * m4/closein.m4: Likewise.
69238         * MODULES.html.sh (File stream based Input/Output): Document it.
69239
69240 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69241
69242         * gnulib-tool: Rename generated 'autobuild' script to
69243         'do-autobuild' in --create-megatestdir output.
69244
69245         * doc/gnulib.texi (Build robot for gnulib): Fix.
69246
69247 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69248
69249         * modules/sysexits (Depends-on): Add absolute-header.
69250
69251 2007-04-12  Eric Blake  <ebb9@byu.net>
69252
69253         No need to preserve errno on success.
69254         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
69255         Reported by Bruno Haible.
69256
69257 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69258
69259         * MODULES.html.sh (Support for maintaining and releasing
69260         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
69261
69262 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69263
69264         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
69265
69266 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69267
69268         * modules/autobuild: New module.
69269
69270         * m4/autobuild.m4: New file.
69271
69272 2007-04-11  Bruno Haible  <bruno@clisp.org>
69273
69274         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
69275         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
69276         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
69277         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
69278         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69279         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69280         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69281         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69282         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69283         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69284         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
69285         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69286         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69287         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
69288         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69289         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69290         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
69291         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69292         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69293         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
69294         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69295         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69296         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
69297         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69298         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69299         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
69300         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69301         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69302         Reported by Eric Blake.
69303
69304 2007-04-11  Bruno Haible  <bruno@clisp.org>
69305
69306         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
69307
69308 2007-04-10  Bruno Haible  <bruno@clisp.org>
69309
69310         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
69311         for NaN and Infinity. Needed on FreeBSD 6.1.
69312         * tests/test-vasnprintf-posix.c (test_function): Undo last change
69313         regarding results for "%010a" of Infinity and NaN.
69314         * tests/test-vasprintf-posix.c (test_function): Likewise.
69315         * tests/test-snprintf-posix.h (test_function): Likewise.
69316         * tests/test-sprintf-posix.h (test_function): Likewise.
69317         * tests/test-fprintf-posix.h (test_function): Likewise.
69318         * tests/test-printf-posix.h (test_function): Likewise.
69319         * tests/test-fprintf-posix.out: Likewise.
69320
69321 2007-04-10  Bruno Haible  <bruno@clisp.org>
69322
69323         * modules/locale-tests: New file.
69324         * tests/test-locale.c: New file.
69325
69326         * modules/locale: New file.
69327         * lib/locale_.h: New file.
69328         * m4/locale_h.m4: New file.
69329
69330 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
69331             Bruno Haible  <bruno@clisp.org>
69332
69333         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
69334         be determined, test for availability of the copysignf, copysign,
69335         copysignl functions.
69336         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
69337         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
69338         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
69339
69340 2007-04-09  Eric Blake  <ebb9@byu.net>
69341
69342         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
69343         * modules/stdio (Makefile.am): Support fflush.
69344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
69345         * modules/fflush: New file.
69346         * lib/fflush.c: Likewise.
69347         * m4/fflush.m4: Likewise.
69348         * modules/fflush-tests: New test.
69349         * tests/test-fflush.c: Likewise.
69350         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
69351
69352 2007-04-06  Bruno Haible  <bruno@clisp.org>
69353
69354         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
69355         (VASNPRINTF): Use signbit for faster determination whether to print a
69356         minus sign.
69357         * modules/vasnprintf (Files): Remove lib/float+.h.
69358         * modules/fprintf-posix (Depends-on): Add signbit.
69359         * modules/snprintf-posix (Depends-on): Likewise.
69360         * modules/sprintf-posix (Depends-on): Likewise.
69361         * modules/vasnprintf-posix (Depends-on): Likewise.
69362         * modules/vasprintf-posix (Depends-on): Likewise.
69363         * modules/vfprintf-posix (Depends-on): Likewise.
69364         * modules/vsnprintf-posix (Depends-on): Likewise.
69365         * modules/vsprintf-posix (Depends-on): Likewise.
69366
69367 2007-04-06  Bruno Haible  <bruno@clisp.org>
69368
69369         * tests/test-frexp.c (main): Test also the sign bit of zero results.
69370         * tests/test-frexpl.c (main): Likewise.
69371         * tests/test-ldexpl.c (main): Likewise.
69372         * modules/frexp-tests (Depends-on): Add signbit.
69373         * modules/frexpl-tests (Depdends-on): Likewise.
69374         * modules/ldexpl-tests (Depdends-on): Likewise.
69375
69376 2007-04-06  Bruno Haible  <bruno@clisp.org>
69377
69378         * modules/signbit-tests: New file.
69379         * tests/test-signbit.c: New file.
69380
69381         * modules/signbit: New file.
69382         * lib/signbitf.c: New file.
69383         * lib/signbitd.c: New file.
69384         * lib/signbitl.c: New file.
69385         * m4/signbit.m4: New file.
69386         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
69387         (signbit): New macro.
69388         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
69389         REPLACE_SIGNBIT.
69390         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
69391         REPLACE_FREXPL into math.h.
69392
69393 2007-04-06  Bruno Haible  <bruno@clisp.org>
69394
69395         * modules/isnanf-nolibm-tests: New file.
69396         * tests/test-isnanf.c: New file.
69397
69398         * modules/isnanf-nolibm: New file.
69399         * lib/isnanf.h: New file.
69400         * lib/isnanf.c: New file.
69401         * lib/isnan.c: Consider the USE_FLOAT macro.
69402         * m4/isnanf.m4: New file.
69403
69404 2007-04-06  Bruno Haible  <bruno@clisp.org>
69405
69406         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
69407         (Link): New section.
69408
69409         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
69410
69411 2007-04-06  Bruno Haible  <bruno@clisp.org>
69412
69413         Assume the 'long double' type.
69414         * m4/longdouble.m4: Remove file.
69415         * config/srclist.txt: Don't mention longdouble.m4.
69416         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
69417         * lib/float+.h: Likewise.
69418         * lib/frexp.c: Likewise.
69419         * lib/printf-args.h: Likewise.
69420         * lib/printf-args.c: Likewise.
69421         * lib/printf-frexp.c: Likewise.
69422         * lib/printf-parse.c: Likewise.
69423         * lib/vasnprintf.c: Likewise.
69424         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
69425         * m4/intl.m4: Likewise.
69426         * m4/isnanl.m4: Likewise.
69427         * m4/printf.m4: Likewise.
69428         * m4/printf-frexpl.m4: Likewise.
69429         * m4/vasnprintf.m4: Likewise.
69430         * modules/allocsa (Files): Remove m4/longdouble.m4.
69431         * modules/gettext (Files): Likewise.
69432         * modules/relocatable-prog-wrapper (Files): Likewise.
69433         * modules/vasnprintf (Files): Likewise.
69434         * modules/isnanl (Files): Likewise.
69435         (Include): Simplify.
69436         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
69437         (Include): Simplify.
69438         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
69439         (Include): Simplify.
69440         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
69441         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69442         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
69443         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69444         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69445         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69446         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
69447         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69448         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69449         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69450         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
69451         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69452         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
69453         * tests/test-isnanl.c: Likewise.
69454         * tests/test-snprintf-posix.h: Likewise.
69455         * tests/test-sprintf-posix.h: Likewise.
69456         * tests/test-vasnprintf-posix.c: Likewise.
69457         * tests/test-vasnprintf-posix2.c: Likewise.
69458         * tests/test-vasprintf-posix.c: Likewise.
69459
69460 2007-04-06  Bruno Haible  <bruno@clisp.org>
69461
69462         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
69463         * lib/math_.h [__DECC]: Include the overridden include file through
69464         #include_next, outside the double-inclusion guard.
69465         * lib/stdio_.h [__DECC]: Likewise.
69466         * lib/stdlib_.h [__DECC]: Likewise.
69467         * lib/string_.h [__DECC]: Likewise.
69468         * lib/time_.h [__DECC]: Likewise.
69469         * lib/wchar_.h [__DECC]: Likewise.
69470         * lib/wctype_.h [__DECC]: Likewise.
69471         * lib/inttypes_.h [__DECC]: Likewise.
69472         Reported by Albert Chin <china@thewrittenword.com> in
69473         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
69474
69475 2007-04-04  Eric Blake  <ebb9@byu.net>
69476
69477         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
69478         1.5.x.
69479
69480 2007-04-04  Bruno Haible  <bruno@clisp.org>
69481
69482         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
69483         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
69484
69485 2007-04-04  Bruno Haible  <bruno@clisp.org>
69486
69487         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
69488         results for "%010a" of Infinity and NaN.
69489         * tests/test-vasprintf-posix.c (test_function): Likewise.
69490         * tests/test-snprintf-posix.h (test_function): Likewise.
69491         * tests/test-sprintf-posix.h (test_function): Likewise.
69492         * tests/test-fprintf-posix.h (test_function): Remove these tests.
69493         * tests/test-printf-posix.h (test_function): Likewise.
69494         * tests/test-fprintf-posix.out: Update.
69495         Needed for FreeBSD 6.1.
69496
69497 2007-04-04  Bruno Haible  <bruno@clisp.org>
69498
69499         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
69500         directly used by the gnulib modules nor by gnulib-tool.
69501
69502 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69503
69504         * DEPENDENCIES: Give overall description of version dependency
69505         desirability.  Use more-typical names for apps.
69506         Add shell, coreutils, diffutils, grep, tar, gzip.
69507
69508 2007-04-04  Simon Josefsson  <simon@josefsson.org>
69509
69510         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
69511
69512 2007-04-04  Karl Berry  <karl@gnu.org>
69513
69514         * MODULES.html.sh (func_module): missing '.
69515
69516 2007-04-03  Bruno Haible  <bruno@clisp.org>
69517
69518         * modules/argmatch-tests (Makefile.am): New variable
69519         test_argmatch_LDADD.
69520         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
69521         * modules/array-list-tests (Makefile.am): New variable
69522         test_array_list_LDADD.
69523         * modules/array-oset-tests (Makefile.am): New variable
69524         test_array_oset_LDADD.
69525         * modules/avltree-list-tests (Makefile.am): New variable
69526         test_avltree_list_LDADD.
69527         * modules/avltree-oset-tests (Makefile.am): New variable
69528         test_avltree_oset_LDADD.
69529         * modules/avltreehash-list-tests (Makefile.am): New variable
69530         test_avltreehash_list_LDADD.
69531         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
69532         test_canonicalize_lgpl_LDADD.
69533         * modules/carray-list-tests (Makefile.am): New variable
69534         test_carray_list_LDADD.
69535         * modules/dirname-tests (Makefile.am): New variable
69536         test_dirname_LDADD.
69537         * modules/linked-list-tests (Makefile.am): New variable
69538         test_linked_list_LDADD.
69539         * modules/linkedhash-list-tests (Makefile.am): New variable
69540         test_linkedhash_list_LDADD.
69541         * modules/rbtree-list-tests (Makefile.am): New variable
69542         test_rbtree_list_LDADD.
69543         * modules/rbtree-oset-tests (Makefile.am): New variable
69544         test_rbtree_oset_LDADD.
69545         * modules/rbtreehash-list-tests (Makefile.am): New variable
69546         test_rbtreehash_list_LDADD.
69547         * modules/xvasprintf-tests (Makefile.am): New variable
69548         test_xvasprintf_LDADD.
69549         Reported by Eric Blake.
69550
69551 2007-04-03  Eric Blake  <ebb9@byu.net>
69552
69553         * DEPENDENCIES: Weaken m4 requirements.
69554
69555 2007-04-03  Bruno Haible  <bruno@clisp.org>
69556
69557         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
69558         * modules/isnanl-tests (configure.ac): Likewise.
69559
69560 2007-04-03  Ben Pfaff  <blp@gnu.org>
69561
69562         * modules/iconv_open: Add $(srcdir)/ to source directory
69563         references in Makefile fragments that call gperf, to fix VPATH
69564         builds.
69565
69566 2007-04-03  Bruno Haible  <bruno@clisp.org>
69567
69568         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
69569         * lib/ldexpl.c: Undo last change.
69570
69571 2007-04-03  Bruno Haible  <bruno@clisp.org>
69572
69573         * modules/printf-frexpl (Depends-on): Undo last change.
69574         (Files): Add m4/ldexpl.m4.
69575
69576 2007-04-03  Bruno Haible  <bruno@clisp.org>
69577
69578         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
69579         * modules/isnanl (Link): New section.
69580
69581         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
69582         * modules/frexp (Link): New section.
69583
69584         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
69585         * modules/frexpl (Link): New section.
69586
69587         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
69588         * modules/ldexpl (Link): New section.
69589
69590 2007-04-03  Bruno Haible  <bruno@clisp.org>
69591
69592         * modules/TEMPLATE-EXTENDED: New file.
69593         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
69594
69595 2007-04-03  Bruno Haible  <bruno@clisp.org>
69596
69597         * DEPENDENCIES: New file.
69598         Suggested by Simon Josefsson.
69599
69600 2007-04-03  Bruno Haible  <bruno@clisp.org>
69601
69602         * doc/gnulib.texi: Escape @.
69603
69604 2007-04-03  James Youngman  <jay@gnu.org>
69605         and Paul Eggert  <eggert@cs.ucla.edu>
69606
69607         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
69608         birthtime on all systems that have birthtime, not just those which
69609         use st_birthtimensec rather than st_birthtim.  Putting zero in
69610         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
69611         that the birth time is not available for files on an NFS mount.
69612
69613 2007-04-03  Simon Josefsson  <simon@josefsson.org>
69614
69615         * modules/memxor: Move back from crypto/, suggested by Bruno.
69616         * modules/crypto/hmac-sha1: Fix memxor dependency.
69617
69618         * modules/crypto/gc: Moved from ../.
69619
69620 2007-04-02  Eric Blake  <ebb9@byu.net>
69621
69622         * lib/ldexpl.c (includes): Avoid libm.
69623
69624         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
69625
69626 2007-04-02  Bruno Haible  <bruno@clisp.org>
69627
69628         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
69629         on IRIX.
69630
69631 2007-04-02  Bruno Haible  <bruno@clisp.org>
69632
69633         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
69634         x86 or x86_64 platforms running MacOS X.
69635         Reported by Ryan Schmidt <@ryandesign.com>.
69636
69637 2007-04-02  Bruno Haible  <bruno@clisp.org>
69638
69639         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
69640         i386.
69641
69642 2007-04-01  Simon Josefsson  <simon@josefsson.org>
69643
69644         * modules/crypto/arcfour: Moved from ../.
69645         * modules/crypto/arcfour-tests: Moved from ../.
69646         * modules/crypto/arctwo: Moved from ../.
69647         * modules/crypto/arctwo-tests: Moved from ../.
69648         * modules/crypto/des: Moved from ../.
69649         * modules/crypto/des-tests: Moved from ../.
69650         * modules/crypto/gc-arcfour: Moved from ../.
69651         * modules/crypto/gc-arcfour-tests: Moved from ../.
69652         * modules/crypto/gc-arctwo: Moved from ../.
69653         * modules/crypto/gc-arctwo-tests: Moved from ../.
69654         * modules/crypto/gc-des: Moved from ../.
69655         * modules/crypto/gc-des-tests: Moved from ../.
69656         * modules/crypto/gc-hmac-md5: Moved from ../.
69657         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
69658         * modules/crypto/gc-hmac-sha1: Moved from ../.
69659         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
69660         * modules/crypto/gc-md2: Moved from ../.
69661         * modules/crypto/gc-md2-tests: Moved from ../.
69662         * modules/crypto/gc-md4: Moved from ../.
69663         * modules/crypto/gc-md4-tests: Moved from ../.
69664         * modules/crypto/gc-md5: Moved from ../.
69665         * modules/crypto/gc-md5-tests: Moved from ../.
69666         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
69667         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
69668         * modules/crypto/gc-random: Moved from ../.
69669         * modules/crypto/gc-rijndael: Moved from ../.
69670         * modules/crypto/gc-rijndael-tests: Moved from ../.
69671         * modules/crypto/gc-sha1: Moved from ../.
69672         * modules/crypto/gc-sha1-tests: Moved from ../.
69673         * modules/crypto/gc-tests: Moved from ../.
69674         * modules/crypto/hmac-md5: Moved from ../.
69675         * modules/crypto/hmac-md5-tests: Moved from ../.
69676         * modules/crypto/hmac-sha1: Moved from ../.
69677         * modules/crypto/hmac-sha1-tests: Moved from ../.
69678         * modules/crypto/md2: Moved from ../.
69679         * modules/crypto/md2-tests: Moved from ../.
69680         * modules/crypto/md4: Moved from ../.
69681         * modules/crypto/md4-tests: Moved from ../.
69682         * modules/crypto/md5: Moved from ../.
69683         * modules/crypto/md5-tests: Moved from ../.
69684         * modules/crypto/memxor: Moved from ../.
69685         * modules/crypto/rijndael: Moved from ../.
69686         * modules/crypto/rijndael-tests: Moved from ../.
69687         * modules/crypto/sha1: Moved from ../.
69688
69689 2007-03-30  James Youngman  <jay@gnu.org>
69690
69691         * tests/test-stat-time.c (prepare_test): use chmod() rather than
69692         rename() to change the ctime of a file (because ctime is unaffected
69693         by rename on jfs2 on AIX 5.1).
69694         (main): Start by doing cleanup, in case a previous run failed leaving
69695         test files behind.
69696
69697 2007-03-31  Bruno Haible  <bruno@clisp.org>
69698
69699         Support old proprietary implementations of iconv.
69700         * modules/iconv_open: New file.
69701         * lib/iconv_.h: New file.
69702         * m4/iconv_h.m4: New file.
69703         * lib/iconv_open.c: New file.
69704         * lib/iconv_open-aix.gperf: New file.
69705         * lib/iconv_open-hpux.gperf: New file.
69706         * lib/iconv_open-irix.gperf: New file.
69707         * lib/iconv_open-osf.gperf: New file.
69708         * m4/iconv_open.m4: New file.
69709         * modules/linebreak (Depends-on): Add iconv_open.
69710         * modules/striconv (Depends-on): Likewise.
69711         * modules/striconveh (Depends-on): Likewise.
69712         * modules/unicodeio (Depends-on): Likewise.
69713         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
69714         (iconv_t)(-1).
69715         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
69716         conversion if cd is (iconv_t)(-1).
69717         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
69718         is not possible.
69719
69720 2007-03-31  Bruno Haible  <bruno@clisp.org>
69721
69722         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69723         work on Solaris either. Protect also second use of "autodetect_jp".
69724
69725 2007-03-31  Bruno Haible  <bruno@clisp.org>
69726
69727         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
69728         the function is not present.
69729
69730 2007-03-31  Bruno Haible  <bruno@clisp.org>
69731
69732         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
69733         the function is not present.
69734
69735 2007-03-31  Bruno Haible  <bruno@clisp.org>
69736
69737         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
69738         a bug in HP-UX iconv_open().
69739
69740 2007-03-31  Bruno Haible  <bruno@clisp.org>
69741
69742         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
69743         (Mathematics <math.h>): New section, add fpieee.
69744         (Input/output <stdio.h>): Add fseterr.
69745         (Mathematics <math.h>): New section, add printf-frexp.
69746         (Container data structures): Add sublist.
69747         (Core language properties): Add fpucw, inline.
69748         (Functions for greatest-width integer types <inttypes.h>): Add
69749         imaxabs, imaxdiv, inttypes.
69750         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
69751         isnanl-nolibm, ldexp.
69752         (Mathematics <math.h>): New section, add printf-frexpl.
69753         (Support for systems lacking POSIX:2001): Add fprintf-posix,
69754         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
69755         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
69756         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
69757         (Unicode string functions): Add unistr/u*-mbtoucr.
69758         (Java): Add javacomp-script, javaexec-script.
69759         (C#): Add csharpcomp-script, csharpexec-script.
69760         (Support for building libraries and executables): Add havelib,
69761         relocatable-*.
69762         (Support for maintaining and releasing projects): Renamed from
69763         'Support for maintaining and release projects'. Add announce-gen.
69764
69765 2007-03-31  Bruno Haible  <bruno@clisp.org>
69766
69767         * README: Talk primarily about git.
69768         (git and CVS): Renamed from CVS.
69769         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
69770         gnulib is available through git.
69771         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
69772
69773 2007-03-30  Bruno Haible  <bruno@clisp.org>
69774
69775         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
69776         * lib/poll_.h: Likewise.
69777         * lib/stat_.h: Likewise.
69778         * lib/sys_time_.h: Likewise.
69779         * lib/sysexit_.h: Likewise.
69780         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
69781         * lib/stdbool_.h: Likewise.
69782         * lib/byteswap_.h: Add double-inclusion guard.
69783
69784 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
69785
69786         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
69787
69788 2007-03-30  Karl Berry  <karl@gnu.org>
69789
69790         * config/srclist-update: double space after USA in the license
69791         substitution, since that's how it's usually (?) written.
69792
69793 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
69794
69795         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
69796         reported by Bruno Haible.
69797
69798 2007-03-29  Bruno Haible  <bruno@clisp.org>
69799
69800         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
69801         a bug in AIX iconv().
69802
69803 2007-03-29  Bruno Haible  <bruno@clisp.org>
69804
69805         * modules/ldexpl-tests: New file.
69806         * tests/test-ldexpl.c: New file.
69807
69808 2007-03-29  Bruno Haible  <bruno@clisp.org>
69809
69810         * lib/ldexpl.c: Include fpucw.h.
69811         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
69812         multiplication.
69813         * modules/ldexpl (Depends-on): Add fpucw.
69814
69815 2007-03-29  Bruno Haible  <bruno@clisp.org>
69816
69817         * modules/ldexpl: New file.
69818         * m4/ldexpl.m4: New file.
69819         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
69820         set.
69821         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
69822         REPLACE_LDEXPL.
69823         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
69824         REPLACE_LDEXPL.
69825         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69826         gl_FUNC_LDEXPL_WORKS.
69827         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
69828         * modules/mathl (Files): Remove lib/ldexpl.c.
69829         (Depends-on): Add ldexpl.
69830
69831 2007-03-29  Bruno Haible  <bruno@clisp.org>
69832
69833         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
69834
69835 2007-03-29  Bruno Haible  <bruno@clisp.org>
69836
69837         * tests/test-striconveh.c (main): Don't assume that a direct conversion
69838         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
69839         and possibly also HP-UX.
69840         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69841         work on AIX, IRIX, HP-UX, OSF/1.
69842         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
69843         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
69844         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
69845         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
69846         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
69847         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
69848
69849 2007-03-29  Bruno Haible  <bruno@clisp.org>
69850
69851         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
69852
69853 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69854
69855         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
69856         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
69857
69858 2007-03-29  Eric Blake  <ebb9@byu.net>
69859
69860         * lib/acl-internal.h: Remove redundant include.
69861         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
69862         Cygwin when a file is locked.
69863
69864 2007-03-29  Bruno Haible  <bruno@clisp.org>
69865
69866         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
69867         file.
69868         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
69869
69870 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69871
69872         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
69873         try to remove a parent directory if the child couldn't be removed
69874         (except for the first rmdir, which could fail because the child
69875         doesn't exist).  Problem reported by Jeff Blaine in
69876         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
69877
69878 2007-03-28  Bruno Haible  <bruno@clisp.org>
69879
69880         * lib/striconveh.c (utf8conv_carefully): New function.
69881         (mem_cd_iconveh_internal): Invoke it.
69882
69883 2007-03-28  Bruno Haible  <bruno@clisp.org>
69884
69885         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
69886         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
69887         input.
69888         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
69889         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
69890         unistr/u8-uctomb.
69891
69892 2007-03-28  Bruno Haible  <bruno@clisp.org>
69893
69894         * modules/unistr/u8-mbtoucr: New file.
69895         * lib/unistr/u8-mbtoucr.c: New file.
69896         * modules/unistr/u16-mbtoucr: New file.
69897         * lib/unistr/u16-mbtoucr.c: New file.
69898         * modules/unistr/u16-mbtoucr: New file.
69899         * lib/unistr/u16-mbtoucr.c: New file.
69900         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
69901
69902 2007-03-27  Simon Josefsson  <simon@josefsson.org>
69903             Bruno Haible  <bruno@clisp.org>
69904
69905         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
69906         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
69907         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
69908
69909         * m4/stdio_h.m4: Add stubs for vasprintf too.
69910
69911         * modules/stdio: Support vasprintf in sed command.
69912
69913         * modules/vasprintf: Depend on stdio for prototypes.  Remove
69914         vasprintf.h.  Add stdio module indicator.
69915
69916         * lib/stdio_.h: Declare asprintf and vasprintf, based on
69917         vasprintf.h.
69918
69919         * lib/vasprintf.h: File removed.
69920
69921         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
69922         * lib/vasprintf.c: Ditto.
69923         * lib/xvasprintf.c: Ditto.
69924         * tests/test-vasprintf-posix.c: Ditto.
69925         * tests/test-vasprintf.c: Ditto.
69926
69927 2007-03-27  Bruno Haible  <bruno@clisp.org>
69928
69929         Make vasnprintf multithread-safe.
69930         * lib/vasnprintf.c (decimal_point_char): New function.
69931         (VASNPRINTF): Use it.
69932         Suggested by Simon Josefsson.
69933
69934 2007-03-27  Eric Blake  <ebb9@byu.net>
69935
69936         Support sub-second birthtime on cygwin.
69937         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
69938         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
69939         (get_stat_birthtime): Also work with st_birthtim.
69940
69941 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
69942
69943         * lib/stat-time.h (USE_BIRTHTIME): Remove.
69944         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
69945         (get_stat_birthtime_ns): Do not try to use "spare" fields.
69946         (get_stat_birthtime_ns): Simplify compile-time tests.
69947         (get_stat_birthtime): Change the API to look like
69948         get_stat_mtime etc., except return a negative tv_nsec on error.
69949         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
69950         Don't check for "spare" fields.
69951         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
69952         or for struct stat.st_birthtime, as these tests aren't used.
69953         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
69954
69955 2007-03-27  Bruno Haible  <bruno@clisp.org>
69956
69957         * lib/stat-time.h: Include <sys/stat.h>.
69958
69959 2007-03-27  James Youngman  <jay@gnu.org>
69960
69961         * lib/stat-time.h (get_stat_birthtime): New function for
69962           retrieving st_birthtime as provided by UFS2 (hence *BSD).
69963         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
69964           and its variants.
69965         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
69966         * modules/stat-time-test: New file.
69967         * tests/test-stat-time.c: New test, devised by Bruno Haible.
69968
69969 2007-03-26  Bruno Haible  <bruno@clisp.org>
69970
69971         Better support of signalling NaNs.
69972         * lib/atanl.c: Include isnanl.h.
69973         (atanl): Perform test for NaN at the beginning of the function and
69974         through a call to isnanl.
69975         * lib/cosl.c: Include isnanl.h.
69976         (cosl): Perform test for NaN at the beginning of the function and
69977         through a call to isnanl.
69978         * lib/ldexpl.c: Include isnanl.h.
69979         (ldexpl): Perform test for NaN through a call to isnanl.
69980         * lib/logl.c: Include isnanl.h.
69981         (logl): Perform test for NaN at the beginning of the function and
69982         through a call to isnanl.
69983         * lib/sinl.c: Include isnanl.h.
69984         (sinl): Perform test for NaN at the beginning of the function and
69985         through a call to isnanl.
69986         * lib/sqrtl.c: Include isnanl.h.
69987         (sqrtl): Perform test for NaN at the beginning of the function and
69988         through a call to isnanl.
69989         * lib/tanl.c: Include isnanl.h.
69990         (tanl): Perform test for NaN at the beginning of the function and
69991         through a call to isnanl.
69992         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
69993         * modules/mathl (Depends-on): Add isnanl.
69994
69995 2007-03-26  Eric Blake  <ebb9@byu.net>
69996
69997         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
69998         regression in logic sense of previous patch.
69999
70000 2007-03-26  Bruno Haible  <bruno@clisp.org>
70001
70002         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
70003         unportable shell command "if ! ...".
70004         Reported by Ralf Wildenhues.
70005
70006 2007-03-25  Bruno Haible  <bruno@clisp.org>
70007
70008         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
70009         <sysexits.h> file, and only add EX_CONFIG.
70010         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
70011         absolute file name and whether it is sufficient. Substitute also
70012         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
70013         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
70014         ABSOLUTE_SYSEXITS_H into sysexits.h.
70015
70016 2007-03-25  Bruno Haible  <bruno@clisp.org>
70017
70018         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
70019         hints is NULL.
70020
70021 2007-03-25  Bruno Haible  <bruno@clisp.org>
70022
70023         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
70024         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
70025
70026 2007-03-25  Bruno Haible  <bruno@clisp.org>
70027
70028         * lib/vasnprintf.c: Include langinfo.h.
70029         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
70030         multithread-safe.
70031         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
70032         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
70033         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70034         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70035         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70036         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70037         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70038         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
70039         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70040         Reported by Simon Josefsson.
70041
70042 2007-03-25  Bruno Haible  <bruno@clisp.org>
70043
70044         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
70045         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
70046         * modules/vasnprintf (Depends-on): Add stdint.
70047
70048 2007-03-25  Bruno Haible  <bruno@clisp.org>
70049
70050         * modules/fpieee: New file.
70051         * m4/fpieee.m4: New file.
70052         * modules/isnan-nolibm (Depends-on): Add fpieee.
70053         * modules/isnanl-nolibm (Depends-on): Add fpieee.
70054         * modules/isnanl (Depends-on): Add fpieee.
70055
70056 2007-03-25  Bruno Haible  <bruno@clisp.org>
70057
70058         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
70059
70060 2007-03-25  Bruno Haible  <bruno@clisp.org>
70061
70062         Avoid test failures on IRIX 6.5.
70063         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
70064         (main): Use it.
70065         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
70066         macros.
70067         (main): Use them.
70068
70069 2007-03-25  Bruno Haible  <bruno@clisp.org>
70070
70071         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
70072         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
70073         exists but doesn't work.
70074         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
70075         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
70076         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
70077         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
70078         math.h.
70079
70080 2007-03-25  Bruno Haible  <bruno@clisp.org>
70081
70082         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
70083         returns inf. Needed on IRIX 6.5.
70084
70085 2007-03-25  Bruno Haible  <bruno@clisp.org>
70086
70087         * tests/test-frexpl.c: Include isnanl-nolibm.h.
70088         (main): Use isnanl instead of x != x idiom.
70089         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
70090
70091         * tests/test-frexp.c: Include isnan.h.
70092         (main): Use isnan instead of x != x idiom.
70093         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
70094
70095 2007-03-25  Bruno Haible  <bruno@clisp.org>
70096
70097         * tests/test-frexp.c (NaN): New function/macro.
70098         (main): Use it instead of 0.0 / 0.0.
70099         * tests/test-isnan.c (NaN): New function/macro.
70100         (main): Use it instead of 0.0 / 0.0.
70101         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
70102         (test_function): Use it instead of 0.0 / 0.0.
70103         * tests/test-vasprintf-posix.c (NaN): New function/macro.
70104         (test_function): Use it instead of 0.0 / 0.0.
70105         * tests/test-snprintf-posix.h (NaN): New function/macro.
70106         (test_function): Use it instead of 0.0 / 0.0.
70107         * tests/test-sprintf-posix.h (NaN): New function/macro.
70108         (test_function): Use it instead of 0.0 / 0.0.
70109         * tests/test-fprintf-posix.h (NaN): New function/macro.
70110         (test_function): Use it instead of 0.0 / 0.0.
70111         * tests/test-printf-posix.h (NaN): New function/macro.
70112         (test_function): Use it instead of 0.0 / 0.0.
70113
70114         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
70115
70116 2007-03-25  Bruno Haible  <bruno@clisp.org>
70117
70118         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
70119
70120 2007-03-25  Bruno Haible  <bruno@clisp.org>
70121
70122         * lib/regexec.c (merge_state_with_log): Make static.
70123
70124 2007-03-25  Bruno Haible  <bruno@clisp.org>
70125
70126         * lib/trigl.c (kernel_rem_pio2): Make static.
70127
70128 2007-03-25  Bruno Haible  <bruno@clisp.org>
70129
70130         * lib/sincosl.c (sincosl_table): Make static.
70131
70132 2007-03-25  Bruno Haible  <bruno@clisp.org>
70133
70134         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
70135         if the compiler does not support C99.
70136
70137 2007-03-25  Bruno Haible  <bruno@clisp.org>
70138
70139         * modules/time (Makefile.am): Ensure all rule action lines start with a
70140         tab.
70141
70142 2007-03-24  Bruno Haible  <bruno@clisp.org>
70143
70144         * modules/tsearch-tests: New file.
70145         * tests/test-tsearch.sh: New file.
70146         * tests/test-tsearch.c: New file, mostly copied from glibc.
70147
70148         * modules/search-tests: New file.
70149         * tests/test-search.c: New file.
70150
70151         * modules/search: New file.
70152         * lib/search_.h: New file, incorporating lib/tsearch.h.
70153         * m4/search_h.m4: New file.
70154         * lib/tsearch.h: Remove file.
70155         * lib/tsearch.c: Include search.h instead of tsearch.h.
70156         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
70157         HAVE_TSEARCH.
70158         * modules/tsearch (Files): Remove lib/tsearch.h.
70159         (Depends-on): Add search.
70160         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
70161         (Include): Change tsearch.h into search.h.
70162
70163 2007-03-24  Bruno Haible  <bruno@clisp.org>
70164
70165         * modules/fpucw: New file.
70166         * lib/fpucw.h: New file.
70167         * lib/frexp.c: Include fpucw.h.
70168         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70169         (FUNC): Use them.
70170         * lib/printf-frexp.c: Include fpucw.h.
70171         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70172         (FUNC): Use them.
70173         * lib/vasnprintf.c: Include fpucw.h.
70174         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
70175         'long double' calculations.
70176         * tests/test-frexpl.c: Include fpucw.h.
70177         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70178         * tests/test-printf-frexpl.c: Include fpucw.h.
70179         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70180         * modules/frexpl (Depends-on): Add fpucw.
70181         * modules/printf-frexpl (Depends-on): Likewise.
70182         * modules/fprintf-posix (Depends-on): Likewise.
70183         * modules/snprintf-posix (Depends-on): Likewise.
70184         * modules/sprintf-posix (Depends-on): Likewise.
70185         * modules/vasnprintf-posix (Depends-on): Likewise.
70186         * modules/vasprintf-posix (Depends-on): Likewise.
70187         * modules/vfprintf-posix (Depends-on): Likewise.
70188         * modules/vsnprintf-posix (Depends-on): Likewise.
70189         * modules/vsprintf-posix (Depends-on): Likewise.
70190         * modules/frexpl-tests (Depends-on): Likewise.
70191         * modules/printf-frexpl-tests (Depends-on): Likewise.
70192
70193 2007-03-24  Bruno Haible  <bruno@clisp.org>
70194
70195         * lib/float+.h: New file.
70196         * lib/isnan.c: Include float+.h.
70197         (SIZE): New macro.
70198         (FUNC): Compare only SIZE bytes of the value.
70199         * lib/vasnprintf.c: Include float+.h.
70200         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
70201         SIZEOF_LDBL or SIZEOF_DBL bytes.
70202         * modules/isnan-nolibm (Files): Add lib/float+.h.
70203         * modules/isnanl-nolibm (Files): Add lib/float+.h.
70204         * modules/isnanl (Files): Add lib/float+.h.
70205         * modules/vasnprintf (Files): Add lib/float+.h.
70206
70207 2007-03-24  Bruno Haible  <bruno@clisp.org>
70208
70209         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
70210         include isnanl-nolibm.h.
70211
70212 2007-03-24  Bruno Haible  <bruno@clisp.org>
70213
70214         * tests/test-read-file.c (main): Don't produce spurious output for
70215         expected situations. Make the test fail if it encountered unexpected
70216         results.
70217
70218 2007-03-24  Bruno Haible  <bruno@clisp.org>
70219
70220         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
70221         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
70222
70223 2007-03-24  Bruno Haible  <bruno@clisp.org>
70224
70225         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
70226
70227 2007-03-24  Bruno Haible  <bruno@clisp.org>
70228
70229         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
70230         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
70231
70232         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
70233         * modules/utf8-ucs4: Turn into a symbolic link to module
70234         unistr/u8-mbtouc.
70235
70236         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
70237         utf8-ucs4-unsafe.
70238         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
70239         unistr/u8-mbtouc-unsafe.
70240
70241         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
70242         * modules/utf16-ucs4: Turn into a symbolic link to module
70243         unistr/u16-mbtouc.
70244
70245         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
70246         utf16-ucs4-unsafe.
70247         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
70248         unistr/u16-mbtouc-unsafe.
70249
70250         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
70251         * modules/ucs4-utf8: Turn into a symbolic link to module
70252         unistr/u8-ubtomb.
70253
70254         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
70255         * modules/ucs4-utf16: Turn into a symbolic link to module
70256         unistr/u16-ubtomb.
70257
70258 2007-03-24  Bruno Haible  <bruno@clisp.org>
70259
70260         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
70261         Enable the function only if HAVE_INLINE.
70262         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
70263         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70264         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
70265         Enable the function only if HAVE_INLINE.
70266         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
70267         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70268         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
70269         Enable the function only if HAVE_INLINE.
70270         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
70271         Enable the function only if HAVE_INLINE.
70272         * modules/utf8-ucs4: Update.
70273         * modules/utf8-ucs4-unsafe: Update.
70274         * modules/utf16-ucs4: Update.
70275         * modules/utf16-ucs4-unsafe: Update.
70276         * modules/ucs4-utf8: Update.
70277         * modules/ucs4-utf16: Update.
70278
70279 2007-03-24  Bruno Haible  <bruno@clisp.org>
70280
70281         * lib/utf8-ucs4.h: Remove file.
70282         * lib/utf8-ucs4-unsafe.h: Remove file.
70283         * lib/utf16-ucs4.h: Remove file.
70284         * lib/utf16-ucs4-unsafe.h: Remove file.
70285         * lib/ucs4-utf8.h: Remove file.
70286         * lib/ucs4-utf16.h: Remove file.
70287         * lib/unistr.h: Include their previous contents.
70288         * m4/utf-ucs4.m4: Remove file.
70289         * m4/ucs4-utf.m4: Remove file.
70290         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
70291         (Depends-on): Add unistr/base.
70292         (configure.ac): Remove gl_UTF_UCS4.
70293         (Makefile.am): Update.
70294         (Include): Change to unistr.h.
70295         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
70296         (Depends-on): Add unistr/base.
70297         (configure.ac): Remove gl_UTF_UCS4.
70298         (Makefile.am): Update.
70299         (Include): Change to unistr.h.
70300         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
70301         (Depends-on): Add unistr/base.
70302         (configure.ac): Remove gl_UTF_UCS4.
70303         (Makefile.am): Update.
70304         (Include): Change to unistr.h.
70305         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
70306         (Depends-on): Add unistr/base.
70307         (configure.ac): Remove gl_UTF_UCS4.
70308         (Makefile.am): Update.
70309         (Include): Change to unistr.h.
70310         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
70311         (Depends-on): Add unistr/base.
70312         (configure.ac): Remove gl_UCS4_UTF.
70313         (Makefile.am): Update.
70314         (Include): Change to unistr.h.
70315         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
70316         (Depends-on): Add unistr/base.
70317         (configure.ac): Remove gl_UCS4_UTF.
70318         (Makefile.am): Update.
70319         (Include): Change to unistr.h.
70320         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
70321         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
70322         utf8-ucs4-unsafe.h.
70323         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
70324         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
70325         utf16-ucs4-unsafe.h.
70326         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
70327         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
70328         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
70329         * lib/unistr/u8-strchr.c: Likewise.
70330         * lib/unistr/u8-strrchr.c: Likewise.
70331         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
70332         * lib/unistr/u16-strchr.c: Likewise.
70333         * lib/unistr/u16-strrchr.c: Likewise.
70334         * lib/striconveh.c: Update.
70335         * lib/linebreak.c: Update.
70336
70337 2007-03-24  Bruno Haible  <bruno@clisp.org>
70338
70339         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
70340         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
70341
70342 2007-03-22  Bruno Haible  <bruno@clisp.org>
70343
70344         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
70345
70346 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70347
70348         * MODULES.html.sh (File system functions): New module write-any-file.
70349         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
70350         * m4/write-any-file.m4: New files.
70351
70352 2007-03-23  Eric Blake  <ebb9@byu.net>
70353
70354         * gnulib-tool: Rearrange space-tab sequences, since some editors
70355         like to eat them.
70356
70357 2007-03-23  Eric Blake  <ebb9@byu.net>
70358
70359         * lib/version-etc.c (version_etc_va): Update license wording to
70360         be more concise.  Recommended by Richard Stallman.
70361
70362 2007-03-22  Bruno Haible  <bruno@clisp.org>
70363
70364         * lib/poll.c (MSG_PEEK): New fallback definition.
70365
70366 2007-03-22  Bruno Haible  <bruno@clisp.org>
70367
70368         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
70369         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
70370         (main): Update.
70371         Fixes a compilation error on BeOS.
70372
70373 2007-03-22  Bruno Haible  <bruno@clisp.org>
70374
70375         * modules/frexpl-tests: New file.
70376         * tests/test-frexpl.c: New file.
70377
70378         * modules/frexpl: New file.
70379         * m4/frexpl.m4: New file.
70380         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
70381         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
70382         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
70383         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
70384         (Depends-on): Add frexpl. Remove isnanl-nolibm.
70385         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
70386
70387 2007-03-22  Bruno Haible  <bruno@clisp.org>
70388
70389         * lib/frexpl.c: Share code with lib/frexp.c.
70390         * modules/mathl (Files): Add lib/frexp.c.
70391         (Depends-on): Add isnanl-nolibm.
70392
70393 2007-03-22  Bruno Haible  <bruno@clisp.org>
70394
70395         * modules/printf-frexp (Files): Add m4/frexp.m4.
70396         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
70397         only if the found frexp function actually works.
70398
70399 2007-03-22  Bruno Haible  <bruno@clisp.org>
70400
70401         * lib/frexp.c: Remove older implementation that uses divisions.
70402
70403 2007-03-21  Bruno Haible  <bruno@clisp.org>
70404
70405         * modules/frexp-tests: New file.
70406         * tests/test-frexp.c: New file.
70407
70408         * modules/frexp: New file.
70409         * lib/frexp.c: New file.
70410         * m4/frexp.m4: New file.
70411         * lib/math_.h (frexp): New declaration.
70412         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
70413         REPLACE_FREXP.
70414         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
70415
70416 2007-03-21  Bruno Haible  <bruno@clisp.org>
70417
70418         * modules/isnanl-tests: New file.
70419         * tests/test-isnanl.c: New file.
70420
70421         * modules/isnanl: New file.
70422         * lib/isnanl.h: New file.
70423         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
70424         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
70425         gl_FUNC_ISNANL_WORKS.
70426         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
70427         New macros.
70428
70429 2007-03-21  Bruno Haible  <bruno@clisp.org>
70430
70431         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
70432         lib/isnanl.h.
70433         (Include): Update.
70434         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
70435         * lib/vasnprintf.c: Update.
70436         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
70437         tests/test-isnanl.h, remove tests/test-isnanl.c.
70438         (Makefile.am): Update.
70439         * tests/test-isnanl-nolibm.c: New file.
70440         * tests/test-isnanl.h: New file.
70441         * tests/test-isnanl.c: Remove file.
70442
70443 2007-03-21  Jim Meyering  <jim@meyering.net>
70444
70445         When trying to open ".", treat ESTALE like EACCES.
70446         * lib/savewd.c (savewd_save): Resort to forking not just upon
70447         failure with EACCES, but also when errno is ESTALE.
70448
70449 2007-03-20  Bruno Haible  <bruno@clisp.org>
70450
70451         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
70452         Needed on AIX 5.1. Reported by Matthew Woehlke.
70453
70454 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70455
70456         Suggestions by Bruno Haible:
70457         * lib/acl-internal.h: Include "gettext.h" rather than rolling
70458         our own.
70459         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
70460         * modules/acl (Depends-on): Add gettext.
70461
70462 2007-03-19  Bruno Haible  <bruno@clisp.org>
70463
70464         * modules/iconvme: Remove file.
70465         * lib/iconvme.h: Remove file.
70466         * lib/iconvme.c: Remove file.
70467         * m4/iconvme.m4: Remove file.
70468
70469 2007-03-19  Bruno Haible  <bruno@clisp.org>
70470
70471         * doc/relocatable-maint.texi: Break long shell script line.
70472         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70473
70474 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70475
70476         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
70477         handle file_has_acl.
70478         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
70479         * lib/acl.c: Move header inclusions and related macro defns into
70480         lib/acl-internal.h.
70481         (S_ISLNK): Remove defn, since that's now done for us.
70482         (file_has_acl): Move to lib/file-has-acl.c.
70483         Call acl_trivial if available.  This is the crucial part of the fix.
70484         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
70485         shared within the library.  Rewrite a bit, partly to make it compatible
70486         with the GNU coding style.
70487         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
70488         Remove unnecessary double-quotes.
70489         Don't test for acl_to_text; the build will catch that.
70490         Replace acl_entries if it doesn't exist and it is needed.
70491         Check for -lsec and acl_trivial (as used on Solaris 10).
70492         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
70493         lib/file-has-acl.c.
70494         (Depends-on): Add sys_stat, for S_ISLNK.
70495
70496 2007-03-19  Ben Pfaff  <blp@gnu.org>
70497
70498         * doc/gnulib.texi: Fix typos.
70499         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70500
70501 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70502
70503         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
70504         If size is zero here, buf must be zero.
70505
70506 2007-03-19  Simon Josefsson  <simon@josefsson.org>
70507
70508         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
70509         <bruno@clisp.org>.
70510
70511 2007-03-18  Bruno Haible  <bruno@clisp.org>
70512
70513         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
70514         Suggested by Eric Blake.
70515
70516 2007-03-18  Ben Pfaff  <blp@gnu.org>
70517
70518         * doc/relocatable.texi: Recommend using as prefix a directory
70519         that does not exist and will never be created.  Based on
70520         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
70521         and others.
70522
70523 2007-03-17  Bruno Haible  <bruno@clisp.org>
70524
70525         * lib/fchownat.c: Include lchown.h.
70526
70527 2007-03-17  Bruno Haible  <bruno@clisp.org>
70528
70529         Fix endless loop when the given allocated size was > INT_MAX.
70530         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
70531         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
70532         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
70533         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
70534         * lib/sprintf.c (sprintf): Likewise.
70535
70536 2007-03-17  Bruno Haible  <bruno@clisp.org>
70537
70538         * tests/test-argp-2.sh (func_compare): Output a context diff.
70539
70540 2007-03-17  Bruno Haible  <bruno@clisp.org>
70541
70542         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
70543         locale's decimal-point character.
70544
70545 2007-03-17  Bruno Haible  <bruno@clisp.org>
70546
70547         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
70548         before comparing it. Needed because on some platforms (e.g. x86) a
70549         'long double' occupies less bytes than sizeof (long double).
70550
70551 2007-03-17  Bruno Haible  <bruno@clisp.org>
70552
70553         * tests/test-crc.c (main): Make printf statements 64-bit clean.
70554         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
70555         * tests/test-getaddrinfo.c (simple): Likewise.
70556         * tests/test-read-file.c (main): Likewise.
70557
70558 2007-03-17  Bruno Haible  <bruno@clisp.org>
70559
70560         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
70561
70562 2007-03-17  Bruno Haible  <bruno@clisp.org>
70563
70564         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
70565         unused variable.
70566
70567 2007-03-17  Bruno Haible  <bruno@clisp.org>
70568
70569         * tests/test-c-strcasecmp.c: Include c-strcase.h.
70570         * tests/test-c-strncasecmp.c: Likewise.
70571
70572 2007-03-17  Bruno Haible  <bruno@clisp.org>
70573
70574         * modules/stdlib (Depends-on): Add unistd.
70575         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
70576         Needed for MacOS X 10.3.
70577
70578 2007-03-17  Bruno Haible  <bruno@clisp.org>
70579
70580         * lib/unistr/u-strdup.h: Include <stdlib.h>.
70581
70582 2007-03-17  Bruno Haible  <bruno@clisp.org>
70583
70584         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
70585
70586 2007-03-17  Bruno Haible  <bruno@clisp.org>
70587
70588         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
70589         to reflect files copied from gnulib (with or without modifications).
70590         Suggested by Jim Meyering.
70591
70592 2007-03-17  Eric Blake  <ebb9@byu.net>
70593
70594         * NEWS: Document stdlib change from 2007-02-18.
70595
70596 2007-03-17  Jim Meyering  <jim@meyering.net>
70597
70598         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
70599         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
70600         someone uses a name containing shell meta-characters.
70601         Reported by Alfred M. Szmidt.
70602
70603         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
70604
70605 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70606
70607         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
70608         and copy gettext configuration files only if configure.ac contains
70609         a use of AM_GNU_GETTEXT_VERSION.
70610
70611 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70612
70613         * build-aux/bootstrap (gnulib_name): New variable.
70614         (gnulib_tool_options): Use it.
70615
70616 2007-03-13  Simon Josefsson  <simon@josefsson.org>
70617
70618         * tests/test-des.c: Use new namespace.
70619
70620 2007-03-15  Bruno Haible  <bruno@clisp.org>
70621
70622         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
70623         Reported by James Youngman <jay@gnu.org>.
70624
70625 2007-03-15  Bruno Haible  <bruno@clisp.org>
70626
70627         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
70628         declared prototype. Needed with cc on OSF/1 5.1.
70629
70630 2007-03-15  Bruno Haible  <bruno@clisp.org>
70631
70632         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
70633         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
70634         (struct gl_list_implementation): Add dispose_fn argument to the
70635         'create_empty', 'create' methods.
70636         (struct gl_list_impl_base): Add field 'dispose_fn'.
70637         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
70638         argument.
70639         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
70640         dispose_fn argument.
70641         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
70642         dispose_fn on the dropped values.
70643         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
70644         dispose_fn argument.
70645         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
70646         dropped values.
70647         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
70648         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70649         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
70650         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70651         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
70652         argument.
70653         (gl_tree_list_free): Call dispose_fn on the dropped values.
70654         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
70655         the dropped values.
70656         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
70657         Add dispose_fn argument.
70658         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
70659         Call dispose_fn on the dropped values.
70660         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
70661         Add dispose_fn argument.
70662         (gl_sublist_create): Initialize the 'dispose_fn' field.
70663         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
70664         * tests/test-array_list.c (main): Update.
70665         * tests/test-carray_list.c (main): Update.
70666         * tests/test-avltree_list.c (main): Update.
70667         * tests/test-rbtree_list.c (main): Update.
70668         * tests/test-avltreehash_list.c (main): Update.
70669         * tests/test-rbtreehash_list.c (main): Update.
70670         * tests/test-linked_list.c (main): Update.
70671         * tests/test-linkedhash_list.c (main): Update.
70672         * tests/test-array_oset.c (main): Update.
70673
70674 2007-03-15  Bruno Haible  <bruno@clisp.org>
70675
70676         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
70677         (gl_oset_create_empty): Add dispose_fn argument.
70678         (struct gl_oset_implementation): Add dispose_fn argument to
70679         'create_empty' method.
70680         (struct gl_oset_impl_base): Add dispose_fn field.
70681         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
70682         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
70683         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
70684         values.
70685         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
70686         (gl_tree_oset_free): Call dispose_fn on the dropped values.
70687         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70688         dropped value.
70689         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70690         dropped value.
70691         * tests/test-array_oset.c (main): Update.
70692         * tests/test-avltree_oset.c (main): Update.
70693         * tests/test-rbtree_oset.c (main): Update.
70694         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
70695
70696 2007-03-13  Bruno Haible  <bruno@clisp.org>
70697
70698         * tests/test-stdbool.c (i): Update after last patch.
70699
70700 2007-03-12  Bruno Haible  <bruno@clisp.org>
70701
70702         * lib/quotearg.c: Include <wctype.h> early, before the definition of
70703         the iswprint macro. Needed on Solaris 2.5.1.
70704
70705 2007-03-12  Bruno Haible  <bruno@clisp.org>
70706
70707         * tests/test-printf-frexp.c (main): Declare x as volatile.
70708
70709 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70710
70711         * doc/gnulib.texi (Build robot for gnulib): New section.
70712
70713 2007-03-12  Jim Meyering  <jim@meyering.net>
70714
70715         * build-aux/bootstrap: New file.
70716         * build-aux/bootstrap.conf: New file, from coreutils.
70717
70718 2007-03-11  Bruno Haible  <bruno@clisp.org>
70719
70720         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
70721
70722 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70723
70724         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
70725         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
70726         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
70727
70728 2007-03-11  Bruno Haible  <bruno@clisp.org>
70729
70730         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
70731         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
70732
70733 2007-03-11  Bruno Haible  <bruno@clisp.org>
70734
70735         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
70736         formula. Needed for SunPRO C 5.0.
70737
70738 2007-03-11  Bruno Haible  <bruno@clisp.org>
70739
70740         * modules/long-options (Depends-on): Add getopt.
70741
70742 2007-03-11  Bruno Haible  <bruno@clisp.org>
70743
70744         * modules/modechange (Depends-on): Add stdbool.
70745
70746 2007-03-11  Bruno Haible  <bruno@clisp.org>
70747
70748         * modules/i-ring (Depends-on): Add stdbool.
70749
70750 2007-03-11  Bruno Haible  <bruno@clisp.org>
70751
70752         * modules/gc-des (Depends-on): Add stdbool.
70753
70754 2007-03-11  Bruno Haible  <bruno@clisp.org>
70755
70756         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
70757
70758 2007-03-11  Bruno Haible  <bruno@clisp.org>
70759
70760         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
70761
70762 2007-03-11  Bruno Haible  <bruno@clisp.org>
70763
70764         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
70765
70766 2007-03-11  Bruno Haible  <bruno@clisp.org>
70767
70768         * lib/vasnprintf.c (sprintf): Undefine.
70769
70770 2007-03-11  Bruno Haible  <bruno@clisp.org>
70771
70772         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
70773         initializers in SunPRO C and Compaq C compilers.
70774
70775 2007-03-11  Bruno Haible  <bruno@clisp.org>
70776
70777         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
70778         decrementing code ANSI C compliant.
70779
70780 2007-03-11  Bruno Haible  <bruno@clisp.org>
70781
70782         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
70783         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
70784
70785 2007-03-11  Bruno Haible  <bruno@clisp.org>
70786
70787         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
70788         <stdbool.h> substitute doesn't pass.
70789
70790 2007-03-11  Bruno Haible  <bruno@clisp.org>
70791
70792         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
70793
70794 2007-03-11  Bruno Haible  <bruno@clisp.org>
70795
70796         * gnulib-tool (func_create_megatestdir): Create also an autobuild
70797         script, for submission to autobuild.josefsson.org.
70798
70799 2007-03-10  Bruno Haible  <bruno@clisp.org>
70800
70801         * modules/canonicalize-lgpl-tests: New file.
70802         * tests/test-canonicalize-lgpl.sh: New file.
70803         * tests/test-canonicalize-lgpl.c: New file.
70804
70805         * modules/c-strcase-tests: New file.
70806         * tests/test-c-strcase.sh: New file.
70807         * tests/test-c-strcasecmp.c: New file.
70808         * tests/test-c-strncasecmp.c: New file.
70809
70810         * modules/atexit-tests: New file.
70811         * tests/test-atexit.sh: New file.
70812         * tests/test-atexit.c: New file.
70813
70814 2007-03-10  Bruno Haible  <bruno@clisp.org>
70815
70816         * tests/test-binary-io.sh: Use temporary filenames that are not so
70817         likely to clash with those of other tests (in a parallel make).
70818         * tests/test-binary-io.c: Likewise.
70819
70820 2007-03-10  Bruno Haible  <bruno@clisp.org>
70821
70822         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
70823         fallback; use #error instead.
70824         Suggested by Simon Josefsson.
70825
70826 2007-03-10  Bruno Haible  <bruno@clisp.org>
70827
70828         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
70829         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
70830         first and the last.
70831
70832 2007-03-10  Bruno Haible  <bruno@clisp.org>
70833
70834         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
70835
70836 2007-03-10  Bruno Haible  <bruno@clisp.org>
70837
70838         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
70839         "make distcheck".
70840         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
70841         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
70842         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
70843
70844 2007-03-10  Bruno Haible  <bruno@clisp.org>
70845
70846         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
70847         variable.
70848         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
70849         variable.
70850
70851 2007-03-09  Eric Blake  <ebb9@byu.net>
70852         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
70853
70854         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
70855         types are not being provided by gnulib.
70856         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
70857         types are supported.
70858
70859 2007-03-10  Bruno Haible  <bruno@clisp.org>
70860
70861         * lib/stdio_.h (__attribute__): New macro.
70862         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
70863         vsprintf): Specify __attribute__ __format__ for GCC.
70864         Suggested by Eric Blake.
70865
70866 2007-03-09  Bruno Haible  <bruno@clisp.org>
70867
70868         * modules/printf-posix-tests: New file.
70869         * tests/test-printf-posix.sh: New file.
70870         * tests/test-printf-posix.c: New file.
70871
70872         * modules/printf-posix: New file.
70873         * lib/printf.c: New file.
70874         * m4/printf-posix-rpl.m4: New file.
70875         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
70876         REPLACE_PRINTF.
70877         * lib/stdio_.h (printf): New declaration.
70878         (format, __format__, ____printf____, ____scanf____, ____strftime____,
70879         ____strfmon____): New macros.
70880         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
70881         REPLACE_PRINTF.
70882
70883 2007-03-09  Bruno Haible  <bruno@clisp.org>
70884
70885         * tests/test-vasnprintf-posix2.sh: New file.
70886         * tests/test-vasnprintf-posix2.c: New file.
70887         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
70888         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
70889         (Makefile.am): Activate test-vasnprintf-posix2.sh.
70890
70891         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
70892         a locale dependent decimal point, rather than always '.'.
70893
70894 2007-03-09  Eric Blake  <ebb9@byu.net>
70895
70896         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
70897         spite of platforms like Tandem/NSK that define it to -1.
70898
70899 2007-03-08  Bruno Haible  <bruno@clisp.org>
70900
70901         * modules/vprintf-posix-tests: New file.
70902         * tests/test-vprintf-posix.sh: New file.
70903         * tests/test-vprintf-posix.c: New file.
70904         * tests/test-printf-posix.h: New file.
70905
70906         * modules/vprintf-posix: New file.
70907         * lib/vprintf.c: New file.
70908         * m4/vprintf-posix.m4: New file.
70909         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
70910         REPLACE_VPRINTF.
70911         * lib/stdio_.h (vprintf): New declaration.
70912         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
70913         REPLACE_VPRINTF.
70914
70915 2007-03-08  Bruno Haible  <bruno@clisp.org>
70916
70917         * modules/fprintf-posix-tests: New file.
70918         * tests/test-fprintf-posix.sh: New file.
70919         * tests/test-fprintf-posix.c: New file.
70920
70921         * modules/fprintf-posix: New file.
70922         * lib/fprintf.c: New file.
70923         * m4/fprintf-posix.m4: New file.
70924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
70925         REPLACE_FPRINTF.
70926         * lib/stdio_.h (fprintf): New declaration.
70927         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
70928         REPLACE_FPRINTF.
70929
70930 2007-03-08  Bruno Haible  <bruno@clisp.org>
70931
70932         * modules/vfprintf-posix-tests: New file.
70933         * tests/test-vfprintf-posix.sh: New file.
70934         * tests/test-vfprintf-posix.c: New file.
70935         * tests/test-fprintf-posix.h: New file.
70936         * tests/test-fprintf-posix.out: New file.
70937
70938         * modules/vfprintf-posix: New file.
70939         * lib/vfprintf.c: New file.
70940         * m4/vfprintf-posix.m4: New file.
70941         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
70942         REPLACE_VFPRINTF.
70943         * lib/stdio_.h (vfprintf): New declaration.
70944         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
70945         REPLACE_VFPRINTF.
70946
70947 2007-03-08  Bruno Haible  <bruno@clisp.org>
70948
70949         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
70950
70951 2007-03-08  Bruno Haible  <bruno@clisp.org>
70952
70953         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
70954         instead of 'expr' invocations.
70955         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70956         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70957         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70958         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70959         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70960         Suggested by Paul Eggert.
70961
70962 2007-03-08  Bruno Haible  <bruno@clisp.org>
70963
70964         * modules/fseterr-tests: New file.
70965         * tests/test-fseterr.c: New file.
70966
70967         * modules/fseterr: New file.
70968         * lib/fseterr.h: New file.
70969         * lib/fseterr.c: New file.
70970
70971 2007-03-08  Bruno Haible  <bruno@clisp.org>
70972
70973         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
70974         * lib/getopt_.h: Likewise.
70975         * lib/mbswidth.h: Likewise.
70976         * lib/setenv.h: Likewise.
70977         * lib/vasnprintf.h: Likewise.
70978         * lib/vasprintf.h: Likewise.
70979         * lib/verror.h: Likewise.
70980         * lib/xsetenv.h: Likewise.
70981         * lib/xvasprintf.h: Likewise.
70982
70983 2007-03-08  Jim Meyering  <jim@meyering.net>
70984
70985         * users.txt: Add parted.
70986
70987         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
70988
70989 2007-03-07  Bruno Haible  <bruno@clisp.org>
70990
70991         * m4/printf.m4: Make the shell script snippets copy&pastable.
70992
70993 2007-03-02  Bruno Haible  <bruno@clisp.org>
70994
70995         * lib/netinet_in_.h: New file.
70996         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
70997         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
70998         * modules/netinet_in (Files): Add lib/netinet_in_.h.
70999         (Depends-on): Add absolute-header.
71000         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
71001         into netinet/in.h.
71002
71003 2007-03-03  Bruno Haible  <bruno@clisp.org>
71004
71005         * lib/sys_select_.h: New file.
71006         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
71007         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
71008         * modules/sys_select (Files): Add lib/sys_select_.h.
71009         (Depends-on): Add absolute-header.
71010         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
71011         into sys/select.h.
71012
71013 2007-03-02  Bruno Haible  <bruno@clisp.org>
71014
71015         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
71016         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
71017         values.
71018         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
71019         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
71020         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
71021         * modules/sys_socket (Depends-on): Add absolute-header.
71022         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
71023         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
71024         (Include): Remove requirement of inclusion of <sys/types.h>.
71025
71026 2007-03-02  Bruno Haible  <bruno@clisp.org>
71027
71028         * lib/byteswap_.h (bswap_32): Fix formula.
71029
71030 2007-03-06  Bruno Haible  <bruno@clisp.org>
71031
71032         * modules/sprintf-posix-tests: New file.
71033         * tests/test-sprintf-posix.c: New file.
71034
71035         * modules/sprintf-posix: New file.
71036         * lib/sprintf.c: New file.
71037         * m4/sprintf-posix.m4: New file.
71038         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
71039         REPLACE_SPRINTF.
71040         * lib/stdio_.h (sprintf): New declaration.
71041         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
71042         REPLACE_SPRINTF.
71043
71044 2007-03-06  Bruno Haible  <bruno@clisp.org>
71045
71046         * modules/vsprintf-posix-tests: New file.
71047         * tests/test-vsprintf-posix.c: New file.
71048         * tests/test-sprintf-posix.h: New file.
71049
71050         * modules/vsprintf-posix: New file.
71051         * lib/vsprintf.c: New file.
71052         * m4/vsprintf-posix.m4: New file.
71053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
71054         REPLACE_VSPRINTF.
71055         * lib/stdio_.h (vsprintf): New declaration.
71056         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
71057         REPLACE_VSPRINTF.
71058
71059 2007-03-06  Bruno Haible  <bruno@clisp.org>
71060
71061         * modules/vsnprintf (Depend-on): Remove minmax.
71062
71063 2007-03-06  Bruno Haible  <bruno@clisp.org>
71064
71065         * modules/snprintf-posix-tests: New file.
71066         * tests/test-snprintf-posix.c: New file.
71067
71068         * modules/snprintf-posix: New file.
71069         * m4/snprintf-posix.m4: New file.
71070         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
71071         gl_FUNC_SNPRINTF.
71072         (gl_FUNC_SNPRINTF): Invoke it.
71073         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
71074         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
71075         is set.
71076         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
71077
71078 2007-03-06  Bruno Haible  <bruno@clisp.org>
71079
71080         * modules/vsnprintf-posix-tests: New file.
71081         * tests/test-vsnprintf-posix.c: New file.
71082         * tests/test-snprintf-posix.h: New file.
71083
71084         * modules/vsnprintf-posix: New file.
71085         * m4/vsnprintf-posix.m4: New file.
71086         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
71087         gl_FUNC_VSNPRINTF.
71088         (gl_FUNC_VSNPRINTF): Invoke it.
71089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
71090         * lib/stdio_.h (vsnprintf): Define as a replacement if
71091         REPLACE_VSNPRINTF is set.
71092         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
71093
71094 2007-03-06  Bruno Haible  <bruno@clisp.org>
71095
71096         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
71097         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
71098
71099 2007-03-06  Bruno Haible  <bruno@clisp.org>
71100
71101         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
71102         (asinl): Declare also if HAVE_DECL_ASINL is set.
71103         (atanl): Declare also if HAVE_DECL_ATANL is set.
71104         (ceill): Declare also if HAVE_DECL_CEILL is set.
71105         (cosl): Declare also if HAVE_DECL_COSL is set.
71106         (expl): Declare also if HAVE_DECL_EXPL is set.
71107         (floorl): Declare also if HAVE_DECL_FLOORL is set.
71108         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
71109         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
71110         (logl): Declare also if HAVE_DECL_LOGL is set.
71111         (sinl): Declare also if HAVE_DECL_SINL is set.
71112         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
71113         (tanl): Declare also if HAVE_DECL_TANL is set.
71114         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
71115         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
71116         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
71117         declaration of frexpl, ldexpl.
71118         * modules/printf-frexpl (Depends-on): Add math.
71119         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
71120
71121 2007-03-05  Bruno Haible  <bruno@clisp.org>
71122
71123         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
71124         frexpl and ldexpl are declared.
71125         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
71126
71127 2007-03-05  Bruno Haible  <bruno@clisp.org>
71128
71129         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
71130         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
71131
71132 2007-03-05  Bruno Haible  <bruno@clisp.org>
71133
71134         * lib/stdio_.h: Include <stddef.h>.
71135
71136 2007-03-05  Bruno Haible  <bruno@clisp.org>
71137
71138         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
71139
71140 2007-03-05  Bruno Haible  <bruno@clisp.org>
71141
71142         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
71143         NetBSD 4, from Ralf Wildenhues.
71144
71145 2007-03-04  Bruno Haible  <bruno@clisp.org>
71146
71147         * lib/vasprintf.h: Update #if logic for the case when the functions
71148         exist but are overridden.
71149
71150 2007-03-04  Bruno Haible  <bruno@clisp.org>
71151
71152         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
71153         implementations: glibc-2.4 and MacOS X 10.3.
71154         * tests/test-vasnprintf-posix.c (test_function): Test also the case
71155         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
71156         * tests/test-vasprintf-posix.c (test_function): Likewise.
71157
71158 2007-03-04  Bruno Haible  <bruno@clisp.org>
71159
71160         * modules/vasprintf-posix-tests: New file.
71161         * tests/test-vasprintf-posix.c: New file.
71162
71163         * modules/vasprintf-posix: New file.
71164         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
71165         defined.
71166         * m4/vasprintf-posix.m4: New file.
71167         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
71168         gl_FUNC_VASPRINTF.
71169         (gl_FUNC_VASPRINTF): Invoke it.
71170         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
71171         here.
71172         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
71173
71174 2007-03-04  Bruno Haible  <bruno@clisp.org>
71175
71176         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
71177         REPLACE_GETTIMEOFDAY.
71178         * modules/sys_time (Makefile.am): Likewise.
71179         * m4/sys_time_h.m4: Likewise.
71180         * m4/gettimeofday.m4: Likewise.
71181
71182 2007-03-04  Bruno Haible  <bruno@clisp.org>
71183
71184         * modules/vasnprintf-posix-tests: New file.
71185         * tests/test-vasnprintf-posix.c: New file.
71186
71187         * modules/vasnprintf-posix: New file.
71188         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
71189         printf-frexpl.h.
71190         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
71191         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
71192         REPLACE_VASNPRINTF is defined.
71193         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
71194         gl_FUNC_VASNPRINTF.
71195         (gl_FUNC_VASNPRINTF): Invoke it.
71196         * m4/vasnprintf-posix.m4: New file.
71197         * m4/printf.m4: New file.
71198
71199 2007-03-04  Bruno Haible  <bruno@clisp.org>
71200
71201         Compile progreloc.c only if --enable-relocatable is specified.
71202         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
71203         if --enable-relocatable was specified.
71204         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
71205         lib_SOURCES.
71206
71207 2007-03-04  Jim Meyering  <jim@meyering.net>
71208
71209         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
71210         Use it consistently, rather than enumerating errno constants.
71211
71212 2007-03-04  Bruno Haible  <bruno@clisp.org>
71213
71214         * modules/xvasprintf-tests: New file.
71215         * tests/test-xvasprintf.c: New file.
71216
71217         * modules/vasprintf-tests: New file.
71218         * tests/test-vasprintf.c: New file.
71219
71220         * modules/vasnprintf-tests: New file.
71221         * tests/test-vasnprintf.c: New file.
71222
71223         * modules/vsnprintf-tests: New file.
71224         * tests/test-vsnprintf.c: New file.
71225
71226         * modules/snprintf-tests: New file.
71227         * tests/test-snprintf.c: New file.
71228
71229 2007-03-04  Bruno Haible  <bruno@clisp.org>
71230
71231         Compile relocatable.c only if --enable-relocatable is specified.
71232         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
71233         gl_RELOCATABLE_LIBRARY.
71234         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
71235         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
71236         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
71237         gl_RELOCATABLE_LIBRARY.
71238         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
71239         (Makefile.am): Remove lib_SOURCES.
71240         * modules/relocatable-lib-lgpl (configure.ac): Invoke
71241         gl_RELOCATABLE_LIBRARY.
71242         (Makefile.am): Remove lib_SOURCES.
71243         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
71244         always.
71245         * modules/relocatable-prog-wrapper (configure.ac): Invoke
71246         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
71247
71248 2007-03-04  Bruno Haible  <bruno@clisp.org>
71249
71250         * modules/argmatch-tests: New file.
71251         * tests/test-argmatch.c: New file.
71252
71253         * tests/test-allocsa.c (main): Halve the number of loop runs.
71254
71255         * modules/alloca-opt-tests: New file.
71256         * tests/test-alloca-opt.c: New file.
71257
71258 2007-03-04  Jim Meyering  <jim@meyering.net>
71259
71260         Work around difference between Linux ACLs and Solaris 10 ZFS.
71261         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
71262         for EINVAL.
71263
71264 2007-03-03  Bruno Haible  <bruno@clisp.org>
71265
71266         * modules/relocatable-prog (Depends-on): Add back progreloc's
71267         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
71268
71269 2007-03-03  Bruno Haible  <bruno@clisp.org>
71270
71271         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
71272         * modules/relocatable-lib: New file.
71273
71274 2007-03-03  Bruno Haible  <bruno@clisp.org>
71275
71276         * modules/relocatable-prog: Renamed from modules/relocatable.
71277         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
71278
71279 2007-03-03  Bruno Haible  <bruno@clisp.org>
71280
71281         * modules/relocatable-script (Files): Add doc/relocatable.texi,
71282         m4/relocatable-lib.m4.
71283         (Depends-on): Remove 'relocatable'.
71284         (configure.ac): Add gl_RELOCATABLE_NOP.
71285
71286 2007-03-03  Bruno Haible  <bruno@clisp.org>
71287
71288         * modules/relocatable-prog-wrapper: New file.
71289         * modules/relocatable (Depends-on): Add it. Remove all other
71290         dependencies except progname.
71291         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
71292
71293         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
71294         (gl_FUNC_STRERROR): Nop.
71295         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
71296
71297         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
71298         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
71299
71300         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
71301         (gl_FUNC_READLINK): Update.
71302
71303         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
71304
71305 2007-03-03  Bruno Haible  <bruno@clisp.org>
71306
71307         * lib/xreadlink.c: Include <unistd.h> unconditionally.
71308         * modules/xreadlink (Depends-on): Add unistd.
71309         * modules/xreadlink-with-size (Depends-on): Likewise.
71310
71311 2007-03-03  Bruno Haible  <bruno@clisp.org>
71312
71313         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
71314         extracted from gt_FUNC_SETENV.
71315         (gt_FUNC_SETENV): Remove macro.
71316         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
71317         remove gt_FUNC_SETENV.
71318
71319 2007-03-03  Bruno Haible  <bruno@clisp.org>
71320
71321         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
71322         ENABLE_RELOCATABLE here.
71323         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
71324
71325 2007-03-03  Bruno Haible  <bruno@clisp.org>
71326
71327         * modules/rbtreehash-list-tests (Depends-on): Add progname.
71328         * tests/test-rbtreehash_list.c: Include progname.h.
71329         (main): Call set_program_name.
71330
71331         * modules/rbtree-oset-tests (Depends-on): Add progname.
71332         * tests/test-rbtree_oset.c: Include progname.h.
71333         (main): Call set_program_name.
71334
71335         * modules/rbtree-list-tests (Depends-on): Add progname.
71336         * tests/test-rbtree_list.c: Include progname.h.
71337         (main): Call set_program_name.
71338
71339         * modules/linked-list-tests (Depends-on): Add progname.
71340         * tests/test-linked_list.c: Include progname.h.
71341         (main): Call set_program_name.
71342
71343 2007-03-03  Bruno Haible  <bruno@clisp.org>
71344
71345         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
71346         All uses of __restrict changed to _Restrict_.
71347         * lib/glob_.h (__restrict): Remove macro.
71348
71349 2007-03-02  Bruno Haible  <bruno@clisp.org>
71350
71351         * modules/gettext (configure.ac): Require gettext infrastructure
71352         from version 0.16.1.
71353
71354 2007-03-02  Bruno Haible  <bruno@clisp.org>
71355
71356         * modules/linkedhash-list-tests (Depends-on): Add progname.
71357         * tests/test-linkedhash_list.c: Include progname.h.
71358         (main): Call set_program_name.
71359
71360         * modules/carray-list-tests (Depends-on): Add progname.
71361         * tests/test-carray_list.c: Include progname.h.
71362         (main): Call set_program_name.
71363
71364         * modules/avltreehash-list-tests (Depends-on): Add progname.
71365         * tests/test-avltreehash_list.c: Include progname.h.
71366         (main): Call set_program_name.
71367
71368         * modules/avltree-oset-tests (Depends-on): Add progname.
71369         * tests/test-avltree_oset.c: Include progname.h.
71370         (main): Call set_program_name.
71371
71372         * modules/avltree-list-tests (Depends-on): Add progname.
71373         * tests/test-avltree_list.c: Include progname.h.
71374         (main): Call set_program_name.
71375
71376         * modules/array-oset-tests (Depends-on): Add progname.
71377         * tests/test-array_oset.c: Include progname.h.
71378         (main): Call set_program_name.
71379
71380         * modules/array-list-tests (Depends-on): Add progname.
71381         * tests/test-array_list.c: Include progname.h.
71382         (main): Call set_program_name.
71383
71384         * modules/argp-tests (Depends-on): Add progname.
71385         * tests/test-argp.c: Include argp.h first. Include progname.h.
71386         (main): Call set_program_name.
71387
71388 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
71389
71390         * doc/gnulib-tool.texi (Initial import): Reword description of
71391         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
71392         limited effect even if defined after the first system include.
71393
71394 2007-03-01  Bruno Haible  <bruno@clisp.org>
71395
71396         * build-aux/config.libpath: Update to libtool-1.5.22.
71397         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71398
71399 2007-03-01  Bruno Haible  <bruno@clisp.org>
71400
71401         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
71402         foo_CFLAGS.
71403         Reported by Ralf Wildenhues.
71404
71405 2007-03-01  Bruno Haible  <bruno@clisp.org>
71406
71407         * build-aux/install-reloc: Remove object files left over by some
71408         compilers.
71409         Reported by Ralf Wildenhues.
71410
71411 2007-03-01  Bruno Haible  <bruno@clisp.org>
71412
71413         * build-aux/install-reloc: Break long lines.
71414
71415 2007-03-01  Bruno Haible  <bruno@clisp.org>
71416
71417         * doc/relocatable.texi: Document that it may not work on OpenBSD.
71418         Reported by Ralf Wildenhues.
71419
71420 2007-03-01  Bruno Haible  <bruno@clisp.org>
71421
71422         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
71423         include ordering constraints.
71424
71425 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71426
71427         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
71428         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
71429         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
71430         as another example.
71431         * lib/time_.h: Fix misspelling.
71432         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71433         Require gl_HEADER_TIME_H_DEFAULTS.
71434         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
71435         * m4/time_r.m4 (gl_TIME_R): Likewise.
71436         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
71437
71438 2007-03-01  Bruno Haible  <bruno@clisp.org>
71439
71440         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
71441         * m4/utimens.m4 (gl_UTIMENS): Likewise.
71442
71443 2007-03-01  Jim Meyering  <jim@meyering.net>
71444
71445         * modules/xreadlink (Maintainer): Add my name.
71446         * modules/xreadlink-with-size (Depends-on): Alphabetize.
71447
71448 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
71449             Bruno Haible  <bruno@clisp.org>
71450
71451         * build-aux/install-reloc: Compile also c-ctype.c.
71452         * build-aux/relocatable.sh.in: New file.
71453         * doc/relocatable.texi: New file.
71454         * doc/relocatable-maint.texi: New file.
71455         * doc/gnulib.texi: Include relocatable-maint.texi.
71456         * lib/progreloc.c: Include unistd.h unconditionally.
71457         * lib/relocwrapper.c: Include unistd.h unconditionally.
71458         Include c-ctype.h.
71459         (add_dotbin): Use c_tolower.
71460         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
71461         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
71462         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
71463         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
71464         to m4/relocatable-lib.m4.
71465         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
71466         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
71467         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
71468         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
71469         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
71470         * modules/relocatable: New file.
71471         * modules/relocatable-lib: New file.
71472         * modules/relocatable-script: New file.
71473
71474 2007-02-28  Bruno Haible  <bruno@clisp.org>
71475
71476         Import --enable-relocatable infrastructure.
71477         * build-aux/config.libpath: New file, from GNU gettext.
71478         * build-aux/install-reloc: New file, from GNU gettext.
71479         * build-aux/reloc-ldflags: New file, from GNU gettext.
71480         * lib/relocatable.h: New file, from GNU gettext.
71481         * lib/relocatable.c: New file, from GNU gettext.
71482         * lib/relocwrapper.c: New file, from GNU gettext.
71483         * m4/relocatable.m4: New file, from GNU gettext.
71484
71485 2007-02-28  Bruno Haible  <bruno@clisp.org>
71486
71487         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
71488
71489         * modules/xreadlink: New file, from GNU gettext with modifications.
71490         * lib/xreadlink.c: New file, from GNU gettext.
71491         * lib/xreadlink.h: Add comments.
71492         (xreadlink): New declaration.
71493
71494         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
71495         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
71496         lib/xreadlink-with-size.c.
71497         (configure.ac): Remove gl_XREADLINK invocation.
71498         (Makefile.am): Augment lib_SOURCES.
71499         * m4/xreadlink.m4: Remove file.
71500         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
71501         (xreadlink_with_size): Renamed from xreadink.
71502         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
71503         * modules/canonicalize (Depends-on): Replace xreadlink with
71504         xreadlink-with-size.
71505         * lib/canonicalize.c (canonicalize_filename_mode): Update.
71506
71507 2007-02-25  Jim Meyering  <jim@meyering.net>
71508
71509         * build-aux/announce-gen: When complaining about excess arguments,
71510         list them.
71511
71512 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71513
71514         * README: Document signed integer overflow situation more
71515         accurately.
71516
71517 2007-02-25  Bruno Haible  <bruno@clisp.org>
71518
71519         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
71520         'a' or 'A' conversion.
71521
71522 2007-02-25  Bruno Haible  <bruno@clisp.org>
71523
71524         * modules/filename: Renamed from modules/pathname.
71525         (Files): Replace lib/pathname.h with lib/filename.h. Replace
71526         lib/concatpath.c with lib/concat-filename.c.
71527         (Makefile.am): Update.
71528         (Include): Replace pathname.h with filename.h.
71529         * lib/filename.h: Renamed from lib/pathname.h.
71530         (concatenated_filename): Renamed from concatenated_pathname.
71531         * lib/concat-filename.c: Renamed from lib/concatpath.c.
71532         (concatenated_filename): Renamed from concatenated_pathname.
71533         * lib/findprog.c: Include filename.h instead of pathname.h.
71534         (find_in_path): Update.
71535         * lib/javacomp.c: Include filename.h instead of pathname.h.
71536         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
71537         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
71538         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
71539         is_oldgcj_14_13_usable, is_javac_usable): Update.
71540         * lib/javaexec.c: Include filename.h instead of pathname.h.
71541         (execute_java_class): Update.
71542         * modules/findprog: Update.
71543         * modules/javacomp: Update.
71544         * modules/javaexec: Update.
71545         * MODULES.html.sh (File system functions): Add 'filename', remove
71546         'pathname'.
71547
71548 2007-02-25  Bruno Haible  <bruno@clisp.org>
71549
71550         * modules/printf-frexpl-tests: New file.
71551         * tests/test-printf-frexpl.c: New file.
71552
71553         * modules/printf-frexpl: New file.
71554         * lib/printf-frexpl.h: New file.
71555         * lib/printf-frexpl.c: New file.
71556         * m4/printf-frexpl.m4: New file.
71557
71558 2007-02-25  Bruno Haible  <bruno@clisp.org>
71559
71560         * modules/printf-frexp-tests: New file.
71561         * tests/test-printf-frexp.c: New file.
71562
71563         * modules/printf-frexp: New file.
71564         * lib/printf-frexp.h: New file.
71565         * lib/printf-frexp.c: New file.
71566         * m4/printf-frexp.m4: New file.
71567
71568 2007-02-25  Bruno Haible  <bruno@clisp.org>
71569
71570         Assume automake >= 1.10 for the tests.
71571         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
71572         * modules/arctwo-tests: Likewise.
71573         * modules/argp-tests: Likewise.
71574         * modules/avltree-list-tests: Likewise.
71575         * modules/avltree-oset-tests: Likewise.
71576         * modules/avltreehash-list-tests: Likewise.
71577         * modules/carray-list-tests: Likewise.
71578         * modules/crc-tests: Likewise.
71579         * modules/des-tests: Likewise.
71580         * modules/gc-arcfour-tests: Likewise.
71581         * modules/gc-arctwo-tests: Likewise.
71582         * modules/gc-des-tests: Likewise.
71583         * modules/gc-hmac-md5-tests: Likewise.
71584         * modules/gc-hmac-sha1-tests: Likewise.
71585         * modules/gc-md2-tests: Likewise.
71586         * modules/gc-md4-tests: Likewise.
71587         * modules/gc-md5-tests: Likewise.
71588         * modules/gc-pbkdf2-sha1-tests: Likewise.
71589         * modules/gc-rijndael-tests: Likewise.
71590         * modules/gc-sha1-tests: Likewise.
71591         * modules/gc-tests: Likewise.
71592         * modules/getaddrinfo-tests: Likewise.
71593         * modules/hmac-md5-tests: Likewise.
71594         * modules/hmac-sha1-tests: Likewise.
71595         * modules/linked-list-tests: Likewise.
71596         * modules/linkedhash-list-tests: Likewise.
71597         * modules/lock-tests: Likewise.
71598         * modules/md2-tests: Likewise.
71599         * modules/md4-tests: Likewise.
71600         * modules/md5-tests: Likewise.
71601         * modules/rbtree-list-tests: Likewise.
71602         * modules/rbtree-oset-tests: Likewise.
71603         * modules/rbtreehash-list-tests: Likewise.
71604         * modules/read-file-tests: Likewise.
71605         * modules/rijndael-tests: Likewise.
71606         * modules/stdint-tests: Likewise.
71607         * modules/tls-tests: Likewise.
71608
71609 2007-02-24  Bruno Haible  <bruno@clisp.org>
71610
71611         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
71612         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
71613         function; instead check whether isnan with a double argument links.
71614         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
71615         function; instead check whether isnan with a 'long double' argument
71616         links.
71617         Reported by Eric Blake <ebb9@byu.net>.
71618
71619 2007-02-24  Bruno Haible  <bruno@clisp.org>
71620
71621         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
71622         defined.
71623         * lib/isnanl.c: Remove all code. Just include isnan.c.
71624         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
71625
71626 2007-02-25  Jim Meyering  <jim@meyering.net>
71627
71628         Avoid conflicting types for 'unsetenv' on FreeBSD.
71629         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
71630         conflicting with FreeBSD's (5.0 and 6.1) function declaration
71631         in stdlib.h.
71632
71633 2007-02-24  Bruno Haible  <bruno@clisp.org>
71634
71635         * modules/isnanl-nolibm-tests: New file.
71636         * tests/test-isnanl.c: New file.
71637
71638         * modules/isnanl-nolibm: New file.
71639         * lib/isnanl.h: New file.
71640         * lib/isnanl.c: New file.
71641         * m4/isnanl.m4: New file.
71642
71643 2007-02-24  Bruno Haible  <bruno@clisp.org>
71644
71645         * modules/isnan-nolibm-tests: New file.
71646         * tests/test-isnan.c: New file.
71647
71648         * modules/isnan-nolibm: New file.
71649         * lib/isnan.h: New file.
71650         * lib/isnan.c: New file.
71651         * m4/isnan.m4: New file.
71652
71653 2007-02-24  Bruno Haible  <bruno@clisp.org>
71654
71655         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
71656         assume that an exponent fits in 20 bits.
71657
71658 2007-02-24  Jim Meyering  <jim@meyering.net>
71659
71660         * m4/regex.m4: Update the description of the configure-time option,
71661         --without-included-regex, to state accurately what the defaults are,
71662         and perhaps to give people an idea why using this option is risky.
71663
71664 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71665
71666         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
71667         loops on small arguments.  This attempts to avoid the problem
71668         Bruno Haible reported for AIX 4.3.2 in
71669         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
71670
71671 2007-02-23  Bruno Haible  <bruno@clisp.org>
71672
71673         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
71674         Needed for help2man.
71675
71676 2007-02-23  Karl Berry  <karl@gnu.org>
71677
71678         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
71679         exists, foo.h should be cvs-ignored, not committed.
71680
71681 2007-02-23  Eric Blake  <ebb9@byu.net>
71682
71683         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
71684         * lib/stat-time.h (includes): Likewise.
71685         * lib/utimecmp.c (includes): Likewise.
71686         * lib/utimens.h (includes): Likewise.
71687         * lib/getdate.y (includes): Also include "timespec.h" for use
71688         internal to the module.
71689         * modules/utimens (Depends-on): Revert yesterday's patch.
71690         * modules/nanosleep (Depends-on): Add missing dependency.
71691
71692 2007-02-22  Bruno Haible  <bruno@clisp.org>
71693
71694         * lib/glob.c: Don't include getlogin_r.h.
71695
71696 2007-02-22  Jim Meyering  <jim@meyering.net>
71697
71698         * modules/utimens (Depends-on): Add timespec, required for
71699         utimens.h's inclusion of timespec.h.
71700
71701 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
71702
71703         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
71704         long unreadable paths in GNU/Linux.  Problem reported by Andreas
71705         Schwab in
71706         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
71707         I'll try to think of a better way to fix the Solaris problem.
71708
71709         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
71710         like glibc; on Solaris 10, it fails with errno == EINVAL.
71711         POSIX says the behavior is unspecified if the first argument is NULL,
71712         so play it safe and never pass NULL to the system getcwd.
71713
71714 2007-02-21  Jim Meyering  <jim@meyering.net>
71715
71716         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
71717         of gettimeofday.  It would conflict with the one now always
71718         provided via sys_time_.h.  Reported by Matthew Woehlke, as
71719         an IRIX 6.5 build failure.
71720
71721 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71722
71723         Minor fixups to port to Solaris 10 with Sun C 5.8.
71724         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
71725         * modules/getcwd (Depends-on): Add dirfd.
71726         * lib/putenv.c (putenv): #undef it.
71727         (rpl_putenv): New decl.
71728         (malloc, free): Include <stdlib.h> rather than prototyping separately.
71729
71730 2007-02-20  Bruno Haible  <bruno@clisp.org>
71731
71732         * modules/stdio-tests: New file.
71733         * tests/test-stdio.c: New file.
71734
71735         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
71736         (Depends-on): Add stdio.
71737         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71738         (Include): Use <stdio.h> instead of vsnprintf.h.
71739         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71740         HAVE_DECL_VSNPRINTF.
71741         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
71742
71743         * modules/snprintf (Files): Remove lib/snprintf.h.
71744         (Depends-on): Add stdio.
71745         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71746         (Include): Use <stdio.h> instead of snprintf.h.
71747         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71748         HAVE_DECL_SNPRINTF.
71749         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
71750         * lib/getaddrinfo.c: Likewise.
71751
71752         * modules/stdio: New file.
71753         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
71754         * lib/snprintf.h: Remove file.
71755         * lib/vsnprintf.h: Remove file.
71756         * lib/.cppi-disable: Remove snprintf.h.
71757         * m4/stdio_h.m4: New file.
71758         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
71759
71760 2007-02-20  Jim Meyering  <jim@meyering.net>
71761
71762         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
71763         used by e.g., mingw.  From Bruno Haible.
71764
71765 2007-02-19  Bruno Haible  <bruno@clisp.org>
71766
71767         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
71768         warnings.
71769         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71770
71771 2007-02-19  Bruno Haible  <bruno@clisp.org>
71772
71773         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
71774         from mingw users.
71775
71776 2007-02-19  Bruno Haible  <bruno@clisp.org>
71777
71778         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
71779         warnings.
71780         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
71781
71782 2007-02-19  Jim Meyering  <jim@meyering.net>
71783
71784         Don't use FD after a successful "fdopendir (fd)".
71785         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
71786         Reset it by calling dirfd on the just-obtained DIR*.
71787
71788         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
71789         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
71790
71791 2007-02-18  Bruno Haible  <bruno@clisp.org>
71792
71793         * lib/readlink.c: Include <unistd.h>.
71794         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
71795         HAVE_READLINK.
71796         * modules/readlink (Depends-on): Add unistd.
71797         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71798         (Include): Add <unistd.h>.
71799
71800         * lib/getlogin_r.h: Remove file.
71801         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
71802         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
71803         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
71804         HAVE_DECL_GETLOGIN_R.
71805         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
71806         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71807         (Include): Use <unistd.h> instead of getlogin_r.h.
71808
71809         * lib/getcwd.h: Remove file.
71810         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
71811         * lib/xgetcwd.c: Likewise.
71812         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
71813         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
71814         * modules/getcwd (Files): Remove lib/getcwd.h.
71815         (Depends-on): Add unistd.
71816         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71817         (Include): Use <unistd.h> instad of getcwd.h.
71818
71819         * lib/ftruncate.c: Include <unistd.h> first.
71820         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
71821         Set HAVE_FTRUNCATE.
71822         * modules/ftruncate (Depends-on): Add unistd.
71823         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71824
71825         * lib/fchdir.c: Include <unistd.h> first.
71826         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
71827         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
71828         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
71829         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71830         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
71831
71832         * lib/dup2.c: Include <unistd.h> first.
71833         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
71834         HAVE_DUP2.
71835         * modules/dup2 (Depends-on): Add unistd.
71836         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71837
71838         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
71839         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
71840         REPLACE_CHOWN. Don't define chown as a macro here.
71841         * modules/chown (Depends-on): Add unistd.
71842         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71843
71844         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
71845         Add definition for GL_LINK_WARNING.
71846         (chown, dup2): New declarations.
71847         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
71848         link warning.
71849         (ftruncate): New declaration.
71850         (getcwd): New declaration, taken from old getcwd.h.
71851         (getlogin_r): New declaration, taken from old getlogin_r.h.
71852         (readlink): New declaration.
71853         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
71854         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
71855         (gl_PREREQ_UNISTD): Remove macro.
71856         (gl_UNISTD_MODULE_INDICATOR): New macro.
71857         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
71858         many new variables. Don't set UNISTD_H.
71859         * modules/unistd (Description): Change.
71860         (Depends-on): Add link-warning.
71861         (configure.ac): Update.
71862         (Makefile.am): Create unistd.h always. Substitute many new variables
71863         into it.
71864
71865 2007-02-18  Bruno Haible  <bruno@clisp.org>
71866
71867         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
71868         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
71869         HAVE_GETSUBOPT.
71870         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
71871         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
71872         * lib/getsubopt.h: Remove file.
71873         * modules/getsubopt (Files): Remove lib/getsubopt.h.
71874         (Depends-on): Add stdlib.
71875         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71876         (Includes): Use <stdlib.h> instead of getsubopt.h.
71877         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
71878         Set HAVE_GETSUBOPT.
71879         * lib/getsubopt.c: Don't include getsubopt.h.
71880
71881 2007-02-18  Bruno Haible  <bruno@clisp.org>
71882
71883         * modules/fchdir (Depends-on): Add dup2.
71884
71885 2007-02-18  Bruno Haible  <bruno@clisp.org>
71886
71887         * lib/stdlib_.h: Handle glibc's special invocation convention
71888         specially.
71889
71890 2007-02-18  Bruno Haible  <bruno@clisp.org>
71891
71892         * modules/stdlib-tests: New file.
71893         * tests/test-stdlib.c: New file.
71894
71895         * modules/mkstemp (Files): Remove lib/mkstemp.h.
71896         (Depends-on): Add stdlib.
71897         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71898         (Includes): Use <stdlib.h> instead of mkstemp.h.
71899         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71900         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
71901         * lib/mkstemp.c: Don't include mkstemp.h.
71902         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
71903         * lib/stdlib--.h: Don't include mkstemp.h.
71904
71905         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
71906         (Depends-on): Add stdlib.
71907         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71908         (Includes): Use <stdlib.h> instead of mkdtemp.h.
71909         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71910         HAVE_MKDTEMP.
71911         * lib/mkdtemp.c: Don't include mkdtemp.h.
71912         * lib/clean-temp.c: Don't include mkdtemp.h.
71913
71914         * modules/exit (Files): Remove lib/exit.h.
71915         (Depends-on): Add stdlib.
71916         (Makefile.am): Remove lib_SOURCES.
71917         (Include): Use <stdlib.h> instead of exit.h.
71918         * lib/argmatch.c: Don't include exit.h.
71919         * lib/execute.c: Likewise.
71920         * lib/pagealign_alloc.c: Likewise.
71921         * lib/pipe.c: Likewise.
71922         * lib/wait-process.c: Likewise.
71923         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
71924         * lib/exitfail.c: Likewise.
71925         * lib/savewd.c: Likewise.
71926         * lib/xsetenv.c: Likewise.
71927
71928         * modules/stdlib: New file.
71929         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
71930         and extra comments about mkstemp().
71931         * lib/exit.h: Remove file.
71932         * lib/mkdtemp.h: Remove file.
71933         * lib/mkstemp.h: Remove file.
71934         * m4/stdlib_h.m4: New file.
71935         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
71936
71937 2007-02-18  Bruno Haible  <bruno@clisp.org>
71938
71939         * modules/math-tests: New file.
71940         * tests/test-math.c: New file.
71941
71942         * modules/math: New file.
71943         * modules/mathl (Files): Remove lib/mathl.h.
71944         (Depends-on): Add math.
71945         (Makefile.am): Don't mention mathl.h.
71946         (Include): Use <math.h> instead of mathl.h.
71947         * lib/math_.h: New file.
71948         * lib/mathl.h: Remove file.
71949         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
71950         mathl.h.
71951         * lib/asinl.c: Likewise.
71952         * lib/atanl.c: Likewise.
71953         * lib/ceill.c: Likewise.
71954         * lib/cosl.c: Likewise.
71955         * lib/expl.c: Likewise.
71956         * lib/floorl.c: Likewise.
71957         * lib/frexpl.c: Likewise.
71958         * lib/ldexpl.c: Likewise.
71959         * lib/logl.c: Likewise.
71960         * lib/sincosl.c: Likewise.
71961         * lib/sinl.c: Likewise.
71962         * lib/sqrtl.c: Likewise.
71963         * lib/tanl.c: Likewise.
71964         * lib/trigl.c: Likewise.
71965         * m4/math_h.m4: New file.
71966         * MODULES.html.sh (Mathematics): Add math.
71967
71968 2007-02-17  Bruno Haible  <bruno@clisp.org>
71969
71970         * modules/wctype-tests: New file.
71971         * tests/test-wctype.c: New file.
71972
71973         * modules/wchar-tests: New file.
71974         * tests/test-wchar.c: New file.
71975
71976         * modules/unistd-tests: New file.
71977         * tests/test-unistd.c: New file.
71978
71979         * modules/time-tests: New file.
71980         * tests/test-time.c: New file.
71981
71982         * modules/sysexits-tests: New file.
71983         * tests/test-sysexits.c: New file.
71984
71985         * modules/sys_time-tests: New file.
71986         * tests/test-sys_time.c: New file.
71987
71988         * modules/sys_stat-tests: New file.
71989         * tests/test-sys_stat.c: New file.
71990
71991         * modules/sys_socket-tests: New file.
71992         * tests/test-sys_socket.c: New file.
71993
71994         * modules/sys_select-tests: New file.
71995         * tests/test-sys_select.c: New file.
71996
71997         * modules/string-tests: New file.
71998         * tests/test-string.c: New file.
71999
72000         * modules/stdbool-tests: New file.
72001         * tests/test-stdbool.c: New file.
72002
72003         * modules/netinet_in-tests: New file.
72004         * tests/test-netinet_in.c: New file.
72005
72006         * modules/inttypes-tests: New file.
72007         * tests/test-inttypes.c: New file.
72008
72009         * modules/fcntl-tests: New file.
72010         * tests/test-fcntl.c: New file.
72011
72012         * modules/byteswap-tests: New file.
72013         * tests/test-byteswap.c: New file.
72014
72015         * modules/arpa_inet-tests: New file.
72016         * tests/test-arpa_inet.c: New file.
72017
72018 2007-02-17  Bruno Haible  <bruno@clisp.org>
72019
72020         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
72021         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
72022         if the corresponding module is not enabled. Emit link warnings if
72023         the function is used nevertheless.
72024         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
72025         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
72026         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
72027         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
72028         * modules/inttypes (Depends-on): Add link-warning.
72029         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72030         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
72031         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
72032         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
72033         * modules/imaxdiv (configure.ac): Likewise.
72034         * modules/strtoimax (configure.ac): Likewise.
72035         * modules/strtoumax (configure.ac): Likewise.
72036
72037 2007-02-17  Bruno Haible  <bruno@clisp.org>
72038
72039         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
72040         gl_STRING_MODULE_INDICATOR_DEFAULTS.
72041         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
72042         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
72043
72044 2007-02-17  Bruno Haible  <bruno@clisp.org>
72045
72046         * modules/link-warning: New file.
72047         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
72048         * lib/string_.h (GL_LINK_WARNING): Remove definition.
72049         * modules/string (Depends-on): Add link-warning.
72050         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72051         string.h.
72052         * MODULES.html.sh (Support for building libraries and executables): Add
72053         link-warning.
72054
72055 2007-02-17  Bruno Haible  <bruno@clisp.org>
72056
72057         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
72058         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
72059         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
72060         long lines.
72061
72062 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
72063             Bruno Haible  <bruno@clisp.org>
72064
72065         * modules/tmpfile: New file.
72066         * lib/tmpfile.c: New file.
72067         * m4/tmpfile.m4: New file.
72068         * MODULES.html.sh (func_all_modules): New section "Input/output".
72069
72070 2007-02-15  Bruno Haible  <bruno@clisp.org>
72071
72072         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
72073         (supports_delete_on_close): New function.
72074         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
72075
72076 2007-02-14  Bruno Haible  <bruno@clisp.org>
72077
72078         * modules/mbspcasecmp-tests: New file.
72079         * tests/test-mbspcasecmp.sh: New file.
72080         * tests/test-mbspcasecmp.c: New file.
72081
72082         New module mbspcasecmp.
72083         * modules/mbspcasecmp: New file.
72084         * lib/mbspcasecmp.c: New file.
72085         * lib/string_.h (strncasecmp): Change warning message.
72086         (mbspcasecmp): New declaration.
72087         * m4/mbspcasecmp.m4: New file.
72088         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72089         GNULIB_MBSPCASECMP.
72090         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
72091         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
72092
72093 2007-02-14  Bruno Haible  <bruno@clisp.org>
72094
72095         * modules/mbsncasecmp-tests: New file.
72096         * tests/test-mbsncasecmp.sh: New file.
72097         * tests/test-mbsncasecmp.c: New file.
72098
72099         New module mbsncasecmp.
72100         * modules/mbsncasecmp: New file.
72101         * lib/mbsncasecmp.c: New file.
72102         * lib/string_.h (mbsncasecmp): New declaration.
72103         * m4/mbsncasecmp.m4: New file.
72104         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72105         GNULIB_MBSNCASECMP.
72106         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
72107         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
72108
72109 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72110
72111         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
72112         Verify that it doesn't overlap with our flags.
72113         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
72114         do not have the desired effect in multibyte locales; instead, use
72115         mbscasecmp.
72116         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
72117         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
72118         we don't require GNU fnmatch ourselves (if our users require it, they
72119         should do so explicitly).
72120
72121         Fix regex code so it doesn't rely on strcasecmp.
72122         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
72123         Otherwise, include gnulib's langinfo.h.
72124         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
72125         undesirable behavior in non-C locales.  Instead, rely on localecharset.
72126         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
72127         * modules/regex (FILES): Remove m4/codeset.m4.
72128         (Depends-on): Add localcharset.  Remove strcase.
72129
72130 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72131
72132         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
72133         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
72134
72135 2007-02-13  Bruno Haible  <bruno@clisp.org>
72136
72137         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
72138         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72139
72140 2007-02-12  Bruno Haible  <bruno@clisp.org>
72141
72142         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72143         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
72144         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
72145         time warning rather than a link error.
72146
72147 2007-02-12  Bruno Haible  <bruno@clisp.org>
72148
72149         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
72150         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
72151         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72152
72153 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72154
72155         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
72156         args, not 2.
72157
72158 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72159
72160         New module 'time', so that apps can include <time.h> as per
72161         POSIX and GNU instead of separate include files like time_r.h
72162         and timegm.h.  This implementation tries out a simpler approach
72163         for replacing decls in standard include files (as compared to
72164         the string module), somewhat as an experiment.
72165
72166         * config/srclist.txt: Comment out mktime.c for now.
72167         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
72168         since it doesn't apply any more.  Use generic wording instead.
72169         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
72170         'time'.
72171         * lib/time_.h, m4/time_h.m4, modules/time: New files.
72172         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
72173         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
72174         Don't include <sys/types.h>; no longer needed since we assume C89.
72175         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
72176         * lib/strftime.c: Likewise.
72177         * lib/time_r.c: Likewise.
72178         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
72179         * lib/nanosleep.c: Include <time.h> first, to check interface.
72180         * lib/strptime.c: Likewise.
72181         * lib/time_r.c: Likewise.
72182         * lib/timegm.c: Likewise.
72183         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
72184         needed.
72185         * lib/timegm.c: Don't include timegm.h; no longer needed.
72186         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
72187         time.h now handles any problems in that area.
72188         (struct timespec, nanosleep): Remove; time.h now arranges for these.
72189         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
72190         that time.h defines struct timespec.
72191         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
72192         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
72193         handles that.
72194         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
72195         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
72196         needed.  Set REPLACE_LOCALTIME.
72197         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
72198         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
72199         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
72200         nanosleep; time_h.m4 now does that.  Don't require
72201         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
72202         module handles this now.
72203         * modules/getdate (Depends-on): Remove timespec.  Add time.
72204         * modules/nanosleep (Depends-on): Likewise.
72205         * modules/stat-time (Depends-on): Likewise.
72206         * modules/nanosleep (Include): Include time.h, not timespec.h.
72207         * modules/strptime (Files): Remove lib/strptime.h.
72208         (Depends-on): Add extensions, time.
72209         (Include): Include time.h, not strptime.h.
72210         * modules/time_r (Files): Remove lib/time_r.h.
72211         (Depends-on): Add time.
72212         (Include): Include time.h, not time_r.h.
72213         * modules/timegm: Likewise.
72214         * modules/timespec (Description): Now does timespec-related decls
72215         of our own, instead of struct timespec itself.
72216         (Depends-on): Add time; remove extensions.
72217         (Maintainer): Add self.
72218         * modules/utimecmp (Depends-on): Add time; remove timespec.
72219         * modules/utimens (Depends-on): Likewise.
72220         * modules/xnanosleep (Depends-on): Likewise.
72221
72222 2007-02-11  Bruno Haible  <bruno@clisp.org>
72223
72224         * lib/c-strstr.c: Include allocsa.h.
72225         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72226         * lib/c-strcasestr.c: Include allocsa.h.
72227         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72228         * lib/strcasestr.c: Include allocsa.h.
72229         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72230         * lib/mbsstr.c: Include allocsa.h.
72231         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72232         allocsa/freesa instead of malloc/free.
72233         * lib/mbscasestr.c: Include allocsa.h.
72234         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72235         allocsa/freesa instead of malloc/free.
72236         * modules/c-strstr (Depends-on): Add allocsa.
72237         * modules/c-strcasestr (Depends-on): Likewise.
72238         * modules/strcasestr (Depends-on): Likewise.
72239         * modules/mbsstr (Depends-on): Likewise.
72240         * modules/mbscasestr (Depends-on): Likewise.
72241
72242 2007-02-11  Bruno Haible  <bruno@clisp.org>
72243
72244         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
72245
72246         * modules/mbsspn-tests: New file.
72247         * tests/test-mbsspn.sh: New file.
72248         * tests/test-mbsspn.c: New file.
72249
72250 2007-02-11  Bruno Haible  <bruno@clisp.org>
72251
72252         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
72253
72254         * modules/mbspbrk-tests: New file.
72255         * tests/test-mbspbrk.sh: New file.
72256         * tests/test-mbspbrk.c: New file.
72257
72258 2007-02-11  Bruno Haible  <bruno@clisp.org>
72259
72260         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
72261         unneeded cast.
72262
72263         * modules/mbscspn-tests: New file.
72264         * tests/test-mbscspn.sh: New file.
72265         * tests/test-mbscspn.c: New file.
72266
72267 2007-02-11  Bruno Haible  <bruno@clisp.org>
72268
72269         * modules/mbscasecmp-tests: New file.
72270         * tests/test-mbscasecmp.sh: New file.
72271         * tests/test-mbscasecmp.c: New file.
72272
72273 2007-02-11  Bruno Haible  <bruno@clisp.org>
72274
72275         Ensure O(n) worst-case complexity of mbscasestr.
72276         * lib/mbscasestr.c: Include stdbool.h.
72277         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72278         functions.
72279         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
72280         the bookkeeping indicates that it's worth it.
72281         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
72282
72283         * modules/mbscasestr-tests: New file.
72284         * tests/test-mbscasestr1.c: New file.
72285         * tests/test-mbscasestr2.sh: New file.
72286         * tests/test-mbscasestr2.c: New file.
72287         * tests/test-mbscasestr3.sh: New file.
72288         * tests/test-mbscasestr3.c: New file.
72289         * tests/test-mbscasestr4.sh: New file.
72290         * tests/test-mbscasestr4.c: New file.
72291         * m4/locale-tr.m4: New file.
72292
72293 2007-02-11  Bruno Haible  <bruno@clisp.org>
72294
72295         Ensure O(n) worst-case complexity of mbsstr.
72296         * lib/mbsstr.c: Include stdbool.h.
72297         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72298         functions.
72299         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
72300         bookkeeping indicates that it's worth it.
72301         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
72302
72303         * modules/mbsstr-tests: New file.
72304         * tests/test-mbsstr1.c: New file.
72305         * tests/test-mbsstr2.sh: New file.
72306         * tests/test-mbsstr2.c: New file.
72307         * tests/test-mbsstr3.sh: New file.
72308         * tests/test-mbsstr3.c: New file.
72309         * m4/locale-fr.m4: New file.
72310
72311 2007-02-11  Bruno Haible  <bruno@clisp.org>
72312
72313         * lib/mbsrchr.c (mbsrchr): Fix bug.
72314
72315         * modules/mbsrchr-tests: New file.
72316         * tests/test-mbsrchr.sh: New file.
72317         * tests/test-mbsrchr.c: New file.
72318
72319 2007-02-11  Bruno Haible  <bruno@clisp.org>
72320
72321         * lib/mbschr.c (mbschr): Fix bug.
72322
72323         * modules/mbschr-tests: New file.
72324         * tests/test-mbschr.sh: New file.
72325         * tests/test-mbschr.c: New file.
72326         * m4/locale-zh.m4: New file.
72327
72328 2007-02-11  Bruno Haible  <bruno@clisp.org>
72329
72330         Support for copying multibyte string iterators.
72331         * lib/mbiter.h: Include <string.h>.
72332         (mbiter_multi_copy): New function.
72333         (mbi_copy): New macro.
72334         * lib/mbuiter.h: Include <string.h>.
72335         (mbuiter_multi_copy): New function.
72336         (mbui_copy): New macro.
72337
72338 2007-02-11  Bruno Haible  <bruno@clisp.org>
72339
72340         New module mbslen.
72341         * modules/mbslen: New file.
72342         * lib/mbslen.c: New file.
72343         * lib/string_.h (mbslen): New declaration.
72344         * m4/mbslen.m4: New file.
72345         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72346         GNULIB_MBSLEN.
72347         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
72348         * MODULES.html.sh (Internationalization functions): Add mbslen.
72349
72350 2007-02-11  Bruno Haible  <bruno@clisp.org>
72351
72352         Ensure O(n) worst-case complexity of strcasestr substitute.
72353         * lib/strcasestr.c: Include stdbool.h.
72354         (knuth_morris_pratt): New function.
72355         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72356         bookkeeping indicates that it's worth it.
72357         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
72358
72359         * modules/strcasestr-tests: New file.
72360         * tests/test-strcasestr.c: New file.
72361
72362 2007-02-11  Bruno Haible  <bruno@clisp.org>
72363
72364         Ensure O(n) worst-case complexity of c_strcasestr.
72365         * lib/c-strcasestr.c: Include stdbool.h, string.h.
72366         (knuth_morris_pratt): New function.
72367         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
72368         the bookkeeping indicates that it's worth it.
72369         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
72370
72371         * modules/c-strcasestr-tests: New file.
72372         * tests/test-c-strcasestr.c: New file.
72373
72374 2007-02-11  Bruno Haible  <bruno@clisp.org>
72375
72376         Ensure O(n) worst-case complexity of c_strstr.
72377         * lib/c-strstr.c: Include stdbool.h, string.h.
72378         (knuth_morris_pratt): New function.
72379         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72380         bookkeeping indicates that it's worth it.
72381         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
72382
72383         * lib/c-strstr.c: Complete rewrite for maintainability.
72384
72385         * modules/c-strstr-tests: New file.
72386         * tests/test-c-strstr.c: New file.
72387
72388 2007-02-11  Bruno Haible  <bruno@clisp.org>
72389
72390         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
72391         5.2.1 and earlier, whereby \055 was treated just like the range
72392         delimiter '-'.
72393         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
72394
72395 2007-02-08  Bruno Haible  <bruno@clisp.org>
72396
72397         * modules/regex (Depends-on): Add stdbool.
72398         Reported by Dalibor Topic <robilad@kaffe.org>.
72399
72400 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72401
72402         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
72403         Prefer returning from main to exiting from it.
72404         Remove unnecessary parens after sizeof.
72405
72406 2007-02-05  Bruno Haible  <bruno@clisp.org>
72407
72408         New module mbssep.
72409         * modules/mbssep: New file.
72410         * lib/mbssep.c: New file.
72411         * lib/string_.h (strsep): Add a conditional link warning.
72412         (mbssep): New declaration.
72413         * m4/mbssep.m4: New file.
72414         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72415         GNULIB_MBSSEP.
72416         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
72417         * MODULES.html.sh (Internationalization functions): Add mbssep.
72418
72419 2007-02-05  Bruno Haible  <bruno@clisp.org>
72420
72421         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
72422         Optimize search in case of 1 delimiter.
72423
72424 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72425
72426         * lib/acl.h: Include sys/types.h before sys/acl.h.
72427
72428 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72429
72430         Merge upstream fix for glibc bugzilla #3957:
72431
72432         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
72433
72434         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
72435         bit for RE_HAT_LISTS_NOT_NEWLINE.
72436         (build_charclass_op): Remove bogus comment.
72437
72438 2007-02-05  Simon Josefsson  <simon@josefsson.org>
72439
72440         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
72441
72442 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72443
72444         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
72445         * lib/memmem.c [!defined _LIBC]: Include config.h.
72446
72447 2007-02-04  Bruno Haible  <bruno@clisp.org>
72448
72449         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
72450         warning message.
72451
72452 2007-02-04  Bruno Haible  <bruno@clisp.org>
72453
72454         New module mbstok_r.
72455         * modules/mbstok_r: New file.
72456         * lib/mbstok_r.c: New file.
72457         * lib/string_.h (strtok_r): Change argument names to match the
72458         comments. Add a conditional link warning.
72459         (mbstok_r): New declaration.
72460         * m4/mbstok_r.m4: New file.
72461         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72462         GNULIB_MBSTOK_R.
72463         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
72464         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
72465
72466 2007-02-04  Bruno Haible  <bruno@clisp.org>
72467
72468         New module mbsspn.
72469         * modules/mbsspn: New file.
72470         * lib/mbsspn.c: New file.
72471         * lib/string_.h (strspn): Add a conditional link warning.
72472         (mbsspn): New declaration.
72473         * m4/mbsspn.m4: New file.
72474         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72475         GNULIB_MBSSPN.
72476         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
72477         * MODULES.html.sh (Internationalization functions): Add mbsspn.
72478
72479 2007-02-04  Bruno Haible  <bruno@clisp.org>
72480
72481         New module mbspbrk.
72482         * modules/mbspbrk: New file.
72483         * lib/mbspbrk.c: New file.
72484         * lib/string_.h (strpbrk): Add a conditional link warning.
72485         (mbspbrk): New declaration.
72486         * m4/mbspbrk.m4: New file.
72487         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72488         GNULIB_MBSPBRK.
72489         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
72490         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
72491
72492 2007-02-04  Bruno Haible  <bruno@clisp.org>
72493
72494         New module mbscspn.
72495         * modules/mbscspn: New file.
72496         * lib/mbscspn.c: New file.
72497         * lib/string_.h (strcspn): Add a conditional link warning.
72498         (mbscspn): New declaration.
72499         * m4/mbscspn.m4: New file.
72500         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72501         GNULIB_MBSCSPN.
72502         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
72503         * MODULES.html.sh (Internationalization functions): Add mbscspn.
72504
72505 2007-02-04  Bruno Haible  <bruno@clisp.org>
72506
72507         New module mbscasestr, reduced goal of strcasestr.
72508         * modules/mbscasestr: New file.
72509         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
72510         (mbscasestr): Renamed from strcasestr.
72511         * lib/strcasestr.c: Don't include mbuiter.h.
72512         (strcasestr): Remove support for multibyte locales.
72513         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
72514         Change the conditional link warning.
72515         (mbscasestr): New declaration.
72516         * m4/mbscasestr.m4: New file.
72517         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
72518         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
72519         REPLACE_STRCASESTR.
72520         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
72521         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72522         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72523         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
72524         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
72525         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72526         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
72527         (Depends-on): Remove mbuiter.
72528         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
72529
72530 2007-02-04  Bruno Haible  <bruno@clisp.org>
72531
72532         Simplify handling of strncasecmp.
72533         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
72534         the conditional link warning.
72535         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72536         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
72537         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
72538         * modules/strcase (configure.ac): Don't invoke
72539         gl_STRING_MODULE_INDICATOR.
72540         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
72541
72542 2007-02-04  Bruno Haible  <bruno@clisp.org>
72543
72544         New module mbscasecmp, reduced goal of strcasecmp.
72545         * modules/mbscasecmp: New file.
72546         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
72547         (mbscasecmp): Renamed from strcasecmp.
72548         * lib/strcasecmp.c: Don't include mbuiter.h.
72549         (strcasecmp): Remove support for multibyte locales.
72550         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
72551         Change the conditional link warning.
72552         (mbscasecmp): New declaration.
72553         * m4/mbscasecmp.m4: New file.
72554         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
72555         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
72556         REPLACE_STRCASECMP.
72557         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
72558         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72559         GNULIB_MBSCASECMP.
72560         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
72561         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
72562         * modules/strcase (Files): Remove m4/mbrtowc.m4.
72563         (Depends-on): Remove mbuiter.
72564         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
72565
72566 2007-02-04  Bruno Haible  <bruno@clisp.org>
72567
72568         New module mbsstr. Remove module strstr.
72569         * modules/mbsstr: New file.
72570         * modules/strstr: Remove file.
72571         * lib/mbsstr.c: Renamed from lib/strstr.c.
72572         (mbsstr): Renamed from strstr.
72573         * lib/string_.h (strstr): Remove declaration. Change the conditional
72574         link warning.
72575         (mbsstr): New declaration.
72576         * m4/mbsstr.m4: New file.
72577         * m4/strstr.m4: Remove file.
72578         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
72579         REPLACE_STRSTR.
72580         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
72581         Don't initialize GNULIB_STRSTR.
72582         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
72583         substitute GNULIB_STRSTR and REPLACE_STRSTR.
72584         * MODULES.html.sh (Internationalization functions): Add mbsstr.
72585         (Support for systems lacking ANSI C 89): Remove strstr.
72586
72587 2007-02-04  Bruno Haible  <bruno@clisp.org>
72588
72589         New module mbsrchr.
72590         * modules/mbsrchr: New file.
72591         * lib/mbsrchr.c: New file.
72592         * lib/string_.h (strrchr): Add a conditional link warning.
72593         (mbsrchr): New declaration.
72594         * m4/mbsrchr.m4: New file.
72595         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72596         GNULIB_MBSRCHR.
72597         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
72598         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
72599
72600 2007-02-04  Bruno Haible  <bruno@clisp.org>
72601
72602         New module mbschr.
72603         * modules/mbschr: New file.
72604         * lib/mbschr.c: New file.
72605         * lib/string_.h (strchr): Add a conditional link warning.
72606         (mbschr): New declaration.
72607         * m4/mbschr.m4: New file.
72608         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72609         GNULIB_MBSCHR.
72610         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
72611         * MODULES.html.sh (Internationalization functions): Add mbschr.
72612
72613 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72614
72615         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
72616
72617         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
72618
72619 2007-02-04  Bruno Haible  <bruno@clisp.org>
72620
72621         New module description section 'configure.ac-early'.
72622         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
72623         (func_get_autoconf_early_snippet): New function.
72624         (func_import, func_create_testdir): Use it. Remove special cases for
72625         modules 'extensions' and 'lock'.
72626         * modules/extensions (configure.ac-early): Require
72627         gl_USE_SYSTEM_EXTENSIONS.
72628         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
72629
72630 2007-02-04  Bruno Haible  <bruno@clisp.org>
72631
72632         Make use of gcj-4.3's -fsource and -ftarget option.
72633         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
72634         and if so try the options -fsource and -ftarget.
72635         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
72636         source_version, ftarget_option, target_version arguments.
72637         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
72638         (is_envjavac_oldgcj_14_14_usable): Renamed from
72639         is_envjavac_gcj_14_14_usable.
72640         (is_envjavac_oldgcj_14_13_usable): Renamed from
72641         is_envjavac_gcj_14_13_usable.
72642         (is_gcj_present): Update.
72643         (is_gcj_43, is_gcj43_usable): New functions.
72644         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
72645         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
72646         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
72647         try the options -fsource and -ftarget.
72648
72649 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72650
72651         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
72652         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
72653         larger value.
72654
72655 2007-02-03  Jim Meyering  <jim@meyering.net>
72656
72657         Give tools a better chance to allocate space for very large buffers.
72658         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
72659
72660         Make pwd and readlink work also when run with an unreadable parent dir
72661         on systems with openat support.
72662         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
72663         provided getcwd function, even when we have openat support.
72664         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
72665
72666 2007-02-02  Bruno Haible  <bruno@clisp.org>
72667
72668         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72669         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
72670         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
72671         portability problems if one of these functions is only used on specific
72672         platforms.
72673         Reported by Paul Eggert.
72674
72675 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
72676
72677         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
72678         is causing more trouble than it's curing.
72679         * lib/regex_internal.h (__mempcpy): Remove.
72680         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
72681         (and make the code a tad smaller to boot).
72682         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
72683
72684 2007-02-02  Jim Meyering  <jim@meyering.net>
72685
72686         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
72687         section, not in the Makefile.am: one.
72688
72689 2007-02-02  Eric Blake  <ebb9@byu.net>
72690
72691         * lib/strchrnul.c: Always include config.h first.
72692
72693         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
72694         gnulib strstr is not necessary here.
72695
72696 2007-02-02  Simon Josefsson  <simon@josefsson.org>
72697
72698         * m4/socklen.m4: Fix typo.
72699
72700 2007-02-02  Eric Blake  <ebb9@byu.net>
72701
72702         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
72703         * modules/netinet_in (Makefile.am): Likewise.
72704
72705 2007-02-01  Bruno Haible  <bruno@clisp.org>
72706
72707         * lib/string_.h (GL_LINK_WARNING): New macro.
72708         (strcasecmp, strstr, strcasestr): If provided by the system,
72709         conditionally define as a macro that leads to a warning instead of to
72710         an error.
72711         (strncasecmp): Conditionally define as a macro that leads to a warning.
72712
72713 2007-02-01  Karl Berry  <karl@gnu.org>
72714
72715         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
72716
72717 2007-02-01  Bruno Haible  <bruno@clisp.org>
72718
72719         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
72720         renamings.
72721
72722 2007-02-01  Eric Blake  <ebb9@byu.net>
72723
72724         * modules/regex (Depends-on): Revert dependence on mempcpy.
72725         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
72726         module's definition of mempcpy.
72727         Reported by Paul Eggert.
72728
72729 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72730
72731         * lib/string_.h: If the gnulib module XYZ is not present, undefine
72732         the symbol XYZ before redefining it.  This fixes a problem with
72733         programs that don't use XYZ, when compiled on systems that define
72734         XYZ to something else.
72735
72736 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
72737
72738         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
72739         occurs when "mkdir -m foo" creates a setgid directory that is (1)
72740         writeable to group or other and (2) is intended to have a special
72741         mode bit that is set or cleared.  In such a case, the directory
72742         should be neither group- nor other-writeable until the special
72743         mode bits are right.
72744
72745 2007-01-31  Eric Blake  <ebb9@byu.net>
72746
72747         * modules/mountlist (Depends-on): Add strstr.
72748
72749         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
72750         bug.
72751         * modules/string (Makefile.am): Remove redundant replacement.
72752         * modules/regex (Depends-on): Add mempcpy.
72753
72754 2007-01-31  Bruno Haible  <bruno@clisp.org>
72755
72756         New module description field 'Link'.
72757         * gnulib-tool (func_usage): Document --extract-link-directive.
72758         (sed_extract_prog): Recognize 'Link' directive.
72759         (func_get_link_directive): New function.
72760         (func_import): Show summary of link directives.
72761         Handle --extract-link-directive option.
72762         * modules/acl (Link): New section.
72763         * modules/clock-time (Link): New section.
72764         * modules/euidaccess (Link): New section.
72765         * modules/gettext (Link): New section.
72766         * modules/iconv (Link): New section.
72767         * modules/lock (Link): New section.
72768         * modules/nanosleep (Link): New section.
72769         * modules/readline (Link): New section.
72770
72771 2007-01-27  Bruno Haible  <bruno@clisp.org>
72772
72773         Enforce the use of gnulib modules for unportable <string.h> functions.
72774         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
72775         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
72776         (gl_HEADER_STRING_H_BODY): Require it.
72777         * lib/string_.h: If the gnulib module XYZ is not present, redefine
72778         the symbol XYZ to one that gives a link error.
72779         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
72780         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
72781         * modules/mempcpy (configure.ac): Likewise.
72782         * modules/memrchr (configure.ac): Likewise.
72783         * modules/stpcpy (configure.ac): Likewise.
72784         * modules/stpncpy (configure.ac): Likewise.
72785         * modules/strcase (configure.ac): Likewise.
72786         * modules/strcasestr (configure.ac): Likewise.
72787         * modules/strchrnul (configure.ac): Likewise.
72788         * modules/strdup (configure.ac): Likewise.
72789         * modules/strndup (configure.ac): Likewise.
72790         * modules/strnlen (configure.ac): Likewise.
72791         * modules/strpbrk (configure.ac): Likewise.
72792         * modules/strsep (configure.ac): Likewise.
72793         * modules/strstr (configure.ac): Likewise.
72794         * modules/strtok_r (configure.ac): Likewise.
72795
72796 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
72797
72798         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
72799
72800 2007-01-30  Jim Meyering  <jim@meyering.net>
72801
72802         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
72803
72804 2007-01-29  Bruno Haible  <bruno@clisp.org>
72805
72806         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
72807         * lib/execute.c: Likewise.
72808         * lib/pipe.c: Likewise.
72809         * lib/printf-args.h: Likewise.
72810         * lib/printf-args.c: Likewise.
72811         * lib/printf-parse.c: Likewise.
72812         * lib/vasnprintf.c: Likewise.
72813
72814 2007-01-29  Eric Blake  <ebb9@byu.net>
72815
72816         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
72817         declaration.
72818
72819 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
72820
72821         * lib/strptime.h (strptime): Use 'restrict' for args where
72822         POSIX requires this.
72823         * lib/strptime.c (strptime): Likewise.
72824         Change license notice from LGPL to GPL, since gnulib-tool will
72825         change this as needed.
72826         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
72827         defined.
72828         Include "strptime.h" first, to check interface.
72829         Do not #undef _LIBC and _NL_CURRENT.
72830         Do not include <stdlib.h>; no longer needed.
72831         Include "time_r.h" and declare ptime_locale_status
72832         only if _LIBC is not defined.
72833         (__P): Remove unused macro.
72834         (match_string): Bring back glibc version, but use it only if _LIBC
72835         is defined.
72836         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
72837         Remove unnecessary assertion and abort() call.
72838         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
72839         * m4/strptime.m4: Fix serial number comment.
72840         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
72841         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
72842         (Depends-on): Add time_r.
72843
72844 2007-01-29  Bruno Haible  <bruno@clisp.org>
72845
72846         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72847         strptime.
72848         * modules/strptime (Depends-on): Add stdbool.
72849         * lib/strptime.h: Include <time.h> always. Add comments.
72850
72851 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72852
72853         * modules/strptime: New file.
72854         * lib/strptime.h: New file.
72855         * lib/strptime.c: New file.
72856         * m4/strptime.m4: New file.
72857
72858 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72859
72860         * MODULES.html.sh: New module mpsort.
72861         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
72862
72863         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
72864         a circularity problem with HP-UX ia64 reported by Bob Proulx in
72865         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
72866         All uses changed.
72867         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
72868         All uses changed.
72869         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
72870         to _Restrict_.
72871         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
72872         the parameter matches the prototype.
72873
72874 2007-01-28  Jim Meyering  <jim@meyering.net>
72875
72876         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
72877         sys/time.h here, reverting that part of the previous patch:
72878         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
72879
72880 2007-01-28  Bruno Haible  <bruno@clisp.org>
72881
72882         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
72883         value of $(SYS_TIME_H).
72884         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
72885         remove it conditionally, too. [added by Jim Meyering]
72886         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
72887         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
72888         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
72889         GETTIMEOFDAY_REPLACEMENT to 1.
72890
72891 2007-01-28  Bruno Haible  <bruno@clisp.org>
72892
72893         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
72894         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
72895         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
72896         Set UNISTD_H instead of UNISTD_H2.
72897         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
72898
72899 2007-01-28  Bruno Haible  <bruno@clisp.org>
72900
72901         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
72902         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
72903
72904 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72905
72906         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
72907         (func_create_testdir): Ensure C locale for `grep' and `tr'
72908         character ranges.
72909         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
72910         ACLOCAL_AMFLAGS parsing state machine.
72911
72912 2007-01-27  Bruno Haible  <bruno@clisp.org>
72913
72914         * modules/unistr/base: Update.
72915
72916 2007-01-27  Bruno Haible  <bruno@clisp.org>
72917
72918         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
72919         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
72920         * modules/unistr/u32-mbtouc-unsafe: Renamed from
72921         modules/unistr/u32-mbtouc.
72922         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
72923         * lib/unistr.h: Update.
72924         * lib/linebreak.c: Update.
72925         * modules/unistr/u32-mbtouc: Renamed from
72926         modules/unistr/u32-mbtouc-safe.
72927         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
72928         * lib/unistr.h: Update.
72929         * lib/unistr/u32-to-u8.c: Update.
72930         * lib/unistr/u32-to-u16.c: Update.
72931
72932 2007-01-27  Bruno Haible  <bruno@clisp.org>
72933
72934         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
72935         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
72936         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
72937         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
72938         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
72939         * modules/unistr/u16-mbtouc-unsafe: Renamed from
72940         modules/unistr/u16-mbtouc.
72941         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
72942         * lib/unistr.h: Update.
72943         * lib/linebreak.c: Update.
72944         * modules/linebreak: Update.
72945         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
72946         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
72947         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
72948         * modules/unistr/u16-mbtouc: Renamed from
72949         modules/unistr/u16-mbtouc-safe.
72950         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
72951         * lib/unistr.h: Update.
72952         * lib/unistr/u16-to-u8.c: Update.
72953         * modules/unistr/u16-to-u8: Update.
72954         * lib/unistr/u16-to-u32.c: Update.
72955         * modules/unistr/u16-to-u32: Update.
72956
72957 2007-01-27  Bruno Haible  <bruno@clisp.org>
72958
72959         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
72960         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
72961         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
72962         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
72963         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
72964         * modules/unistr/u8-mbtouc-unsafe: Renamed from
72965         modules/unistr/u8-mbtouc.
72966         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
72967         * lib/unistr.h: Update.
72968         * lib/striconveh.c: Update.
72969         * modules/striconveh: Update.
72970         * lib/linebreak.c: Update.
72971         * modules/linebreak: Update.
72972         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
72973         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
72974         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
72975         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
72976         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
72977         * lib/unistr.h: Update.
72978         * lib/striconveh.c: Update.
72979         * modules/striconveh: Update.
72980         * lib/unistr/u8-to-u16.c: Update.
72981         * modules/unistr/u8-to-u16: Update.
72982         * lib/unistr/u8-to-u32.c: Update.
72983         * modules/unistr/u8-to-u32: Update.
72984
72985 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72986
72987         Sync from Libtool.
72988         * lib/argz.c: Do not include strings.h nor memory.h, include
72989         string.h unconditionally.  Patch by Simon Josefsson.
72990
72991 2007-01-27  Bruno Haible  <bruno@clisp.org>
72992
72993         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
72994         from gl_HEADER_STRING_H_BODY.
72995         (gl_HEADER_STRING_H_BODY): Require it.
72996         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
72997         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
72998         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
72999         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
73000         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
73001         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
73002         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73003         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
73004         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
73005         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
73006         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
73007         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
73008         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
73009         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
73010         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
73011
73012 2007-01-27  Bruno Haible  <bruno@clisp.org>
73013
73014         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
73015         check_PROGRAMS into noinst_PROGRAMS.
73016         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
73017         check_PROGRAMS in this case.
73018         (func_import): Set for_test to false.
73019         (func_create_testdir): Set for_test to true.
73020
73021 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73022             Bruno Haible  <bruno@clisp.org>
73023
73024         * modules/strcasestr (Files): Remove lib/strcasestr.h.
73025         (Depends-on): Add string.
73026         (Includes): Use <string.h> instead of strcasestr.h.
73027         * modules/string (Makefile.am): Also substitute the value of
73028         REPLACE_STRCASESTR.
73029         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
73030         assume strcasestr is declared in <string.h> not <strings.h>. Also
73031         set REPLACE_STRCASESTR.
73032         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
73033         REPLACE_STRCASESTR.
73034         * lib/strcasestr.h: Remove file.
73035         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
73036         * lib/string_.h (strcasestr): New declaration.
73037
73038 2007-01-27  Bruno Haible  <bruno@clisp.org>
73039
73040         * lib/string_.h: Use 'extern'.
73041
73042 2007-01-27  Jim Meyering  <jim@meyering.net>
73043
73044         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
73045         of set-but-not-used local, "q".
73046
73047         * lib/mempcpy.c: Include <config.h> before <string.h>.
73048         This fixes a compilation error on HP-UX, due to the system's
73049         "restrict"-using mempcpy prototype.
73050
73051 2007-01-26  Bruno Haible  <bruno@clisp.org>
73052
73053         Small optimization.
73054         * lib/javacomp.c: Include c-strstr.h.
73055          (is_envjavac_gcj): Use c_strstr instead of strstr.
73056         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
73057
73058 2007-01-26  Bruno Haible  <bruno@clisp.org>
73059
73060         * MODULES.html.sh (Unicode string functions): Add the new modules.
73061
73062         * modules/uniconv/u32-strconv-to-locale: New file.
73063         * lib/uniconv/u32-strconv-to-locale.c: New file.
73064
73065         * modules/uniconv/u16-strconv-to-locale: New file.
73066         * lib/uniconv/u16-strconv-to-locale.c: New file.
73067
73068         * modules/uniconv/u8-strconv-to-locale: New file.
73069         * lib/uniconv/u8-strconv-to-locale.c: New file.
73070
73071         * modules/uniconv/u32-strconv-from-locale: New file.
73072         * lib/uniconv/u32-strconv-from-locale.c: New file.
73073
73074         * modules/uniconv/u16-strconv-from-locale: New file.
73075         * lib/uniconv/u16-strconv-from-locale.c: New file.
73076
73077         * modules/uniconv/u8-strconv-from-locale: New file.
73078         * lib/uniconv/u8-strconv-from-locale.c: New file.
73079
73080         * modules/uniconv/u32-strconv-to-enc: New file.
73081         * lib/uniconv/u32-strconv-to-enc.c: New file.
73082         * modules/uniconv/u32-strconv-to-enc-tests: New file.
73083         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
73084
73085         * modules/uniconv/u16-strconv-to-enc: New file.
73086         * lib/uniconv/u16-strconv-to-enc.c: New file.
73087         * lib/uniconv/u-strconv-to-enc.h: New file.
73088         * modules/uniconv/u16-strconv-to-enc-tests: New file.
73089         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
73090
73091         * modules/uniconv/u8-strconv-to-enc: New file.
73092         * lib/uniconv/u8-strconv-to-enc.c: New file.
73093         * modules/uniconv/u8-strconv-to-enc-tests: New file.
73094         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
73095
73096         * modules/uniconv/u32-strconv-from-enc: New file.
73097         * lib/uniconv/u32-strconv-from-enc.c: New file.
73098         * modules/uniconv/u32-strconv-from-enc-tests: New file.
73099         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
73100
73101         * modules/uniconv/u16-strconv-from-enc: New file.
73102         * lib/uniconv/u16-strconv-from-enc.c: New file.
73103         * modules/uniconv/u16-strconv-from-enc-tests: New file.
73104         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
73105
73106         * modules/uniconv/u8-strconv-from-enc: New file.
73107         * lib/uniconv/u8-strconv-from-enc.c: New file.
73108         * lib/uniconv/u-strconv-from-enc.h: New file.
73109         * modules/uniconv/u8-strconv-from-enc-tests: New file.
73110         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
73111
73112         * modules/uniconv/u32-conv-from-enc: New file.
73113         * lib/uniconv/u32-conv-from-enc.c: New file.
73114         * modules/uniconv/u32-conv-from-enc-tests: New file.
73115         * tests/uniconv/test-u32-conv-from-enc.c: New file.
73116
73117         * modules/uniconv/u16-conv-from-enc: New file.
73118         * lib/uniconv/u16-conv-from-enc.c: New file.
73119         * lib/uniconv/u-conv-from-enc.h: New file.
73120         * modules/uniconv/u16-conv-from-enc-tests: New file.
73121         * tests/uniconv/test-u16-conv-from-enc.c: New file.
73122
73123         * modules/uniconv/u8-conv-from-enc: New file.
73124         * lib/uniconv/u8-conv-from-enc.c: New file.
73125         * modules/uniconv/u8-conv-from-enc-tests: New file.
73126         * tests/uniconv/test-u8-conv-from-enc.c: New file.
73127
73128         * modules/uniconv/base: New file.
73129         * lib/uniconv.h: New file.
73130
73131 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73132
73133         * doc/gnulib-tool.texi (Initial import): Update to match current
73134         behavior with strdup module.
73135         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
73136         * lib/memmem.h: Remove; all uses removed.  This is now done
73137         by <string.h>.
73138         * lib/mempcpy.h: Likewise.
73139         * lib/memrchr.h: Likewise.
73140         * lib/stpcpy.h: Likewise.
73141         * lib/stpncpy.h: Likewise.
73142         * lib/strcase.h: Likewise.
73143         * lib/strchrnul.h: Likewise.
73144         * lib/strdup.h: Likewise.
73145         * lib/strndup.h: Likewise.
73146         * lib/strnlen.h: Likewise.
73147         * lib/strpbrk.h: Likewise.
73148         * lib/strsep.h: Likewise.
73149         * lib/strstr.h: Likewise.
73150         * lib/strtok_r.h: Likewise.
73151         * lib/string_.h: New file.
73152         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
73153         Rely on <string.h> instead.
73154         * lib/canon-host.c: Likewise.
73155         * lib/chdir-long.c: Likewise.
73156         * lib/concatpath.c: Likewise.
73157         * lib/exclude.c: Likewise.
73158         * lib/fchdir.c: Likewise.
73159         * lib/getaddrinfo.c: Likewise.
73160         * lib/getcwd.c: Likewise.
73161         * lib/getsubopt.c: Likewise.
73162         * lib/glob.c: Likewise.
73163         * lib/hard-locale.c: Likewise.
73164         * lib/iconvme.c: Likewise.
73165         * lib/javacomp.c: Likewise.
73166         * lib/mempcpy.c: Likewise.
73167         * lib/memrchr.c: Likewise.
73168         * lib/regex_internal.h: Likewise.
73169         * lib/stpncpy.c: Likewise.
73170         * lib/strcasecmp.c: Likewise.
73171         * lib/strchrnul.c: Likewise.
73172         * lib/strdup.c: Likewise.
73173         * lib/striconv.c: Likewise.
73174         * lib/striconveh.c: Likewise.
73175         * lib/striconveha.c: Likewise.
73176         * lib/strncasecmp.c: Likewise.
73177         * lib/strndup.c: Likewise.
73178         * lib/strnlen.c: Likewise.
73179         * lib/strsep.c: Likewise.
73180         * lib/strstr.c: Likewise.
73181         * lib/strtok_r.c: Likewise.
73182         * lib/userspec.c: Likewise.
73183         * lib/w32spawn.h: Likewise.
73184         * lib/xstrndup.c: Likewise.
73185         * lib/mountlist.c (strstr): Remove decl.
73186         * m4/string_h.m4: New file.
73187         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
73188         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
73189         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
73190         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
73191         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
73192         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
73193         Set REPLACE_STRCASECMP if necessary.
73194         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
73195         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
73196         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
73197         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
73198         HAVE_DECL_STRDUP if necessary.
73199         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
73200         since gl_FUNC_STRNDUP does that now.
73201         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
73202         Check for decl here...
73203         (gl_PREREQ_STRNLEN): ... not here.
73204         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
73205         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
73206         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
73207         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
73208         necessary.
73209         * modules/string: New file.
73210         * modules/memmem (Files): Remove special-purpose include file.
73211         (Depends-on): Add string.
73212         (Include): Include <string.h>, not the removed file.
73213         * modules/mempcpy: Likewise.
73214         * modules/memrchr: Likewise.
73215         * modules/stpcpy: Likewise.
73216         * modules/stpncpy: Likewise.
73217         * modules/strcase: Likewise.
73218         * modules/strchrnul: Likewise.
73219         * modules/strdup: Likewise.
73220         * modules/strndup: Likewise.
73221         * modules/strnlen: Likewise.
73222         * modules/strpbrk: Likewise.
73223         * modules/strsep: Likewise.
73224         * modules/strstr: Likewise.
73225         * modules/strtok_r: Likewise.
73226         * tests/test-dirname.c: Don't include "strdup.h", since
73227         <string.h> now suffices.
73228         * tests/test-memmem.c: Don't include "memmem.h", since
73229         <string.h> now suffices.
73230
73231 2007-01-25  Bruno Haible  <bruno@clisp.org>
73232
73233         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
73234         *resultp is 0.
73235
73236         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
73237         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
73238         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
73239         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
73240
73241         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
73242         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
73243         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
73244         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
73245         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
73246         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
73247
73248 2007-01-24  Bruno Haible  <bruno@clisp.org>
73249
73250         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
73251         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
73252         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
73253         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
73254         gl_FUNC_FTS_CORE.
73255         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
73256         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
73257         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73258         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
73259         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
73260         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
73261         gl_FUNC_FCHOWNAT.
73262         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
73263         gl_FUNC_STRFTIME.
73264         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
73265         Reported by Ralf Wildenhues.
73266
73267 2007-01-24  Bruno Haible  <bruno@clisp.org>
73268
73269         Drop AC_REQUIRE calls that are redundant with the module dependencies.
73270         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
73271         gl_GETADDRINFO.
73272         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
73273         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
73274         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
73275
73276 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
73277
73278         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
73279         Don't use 'exit'; just return from 'main'.
73280         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
73281
73282         * lib/fnmatch_.h: Readjust white space and comments to match
73283         glibc, to avoid spurious diffs.
73284
73285 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73286
73287         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
73288         2004-12-01 change by Jakub Jelinek, since this code won't compile
73289         if !LIBC.  Problem reported by Bob Proulx.
73290
73291 2007-01-23  Bruno Haible  <bruno@clisp.org>
73292
73293         * lib/striconveh.c: Include c-strcaseeq.h.
73294         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
73295         * modules/striconveh (Depends-on): Add c-strcaseeq.
73296
73297 2007-01-23  Bruno Haible  <bruno@clisp.org>
73298
73299         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
73300
73301         * modules/c-strcaseeq: New file.
73302         * lib/c-strcaseeq.h: New file.
73303
73304         * modules/streq: New file.
73305         * lib/streq.h: New file.
73306
73307 2007-01-23  Bruno Haible  <bruno@clisp.org>
73308
73309         * modules/striconveha-tests: New file.
73310         * tests/test-striconveha.c: New file.
73311
73312         * lib/striconveha.h: Include <stdbool.h>.
73313         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
73314         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
73315         (mem_iconveha_notranslit): Renamed from mem_iconveha.
73316         (mem_iconveha): New function.
73317         (str_iconveha_notranslit): Renamed from str_iconveha.
73318         (str_iconveha): New function.
73319         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
73320         c-strcase.
73321
73322 2007-01-23  Bruno Haible  <bruno@clisp.org>
73323
73324         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
73325         encodings without forgiving before trying any encoding with handler.
73326         (str_iconveha): Try all encodings without forgiving before trying any
73327         encoding with handler.
73328
73329 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73330
73331         Import the following changes from libc.
73332
73333         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73334
73335         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
73336
73337         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73338
73339         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
73340         normal_bracket label.
73341
73342         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
73343
73344         [BZ #361]
73345         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
73346         to normal_bracket after fetching the next character.
73347
73348 2007-01-22  Bruno Haible  <bruno@clisp.org>
73349
73350         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
73351         argument.
73352         * lib/striconveh.c (iconv_carefully_1): New function.
73353         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
73354         argument.
73355         (str_cd_iconveh): Update.
73356         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
73357         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
73358         * tests/test-striconveh.c (MAGIC): New macro.
73359         (new_offsets): New function.
73360         (main): Test call with and without offsets.
73361
73362 2007-01-22  Bruno Haible  <bruno@clisp.org>
73363
73364         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
73365         * modules/sys_select (Makefile.am): Likewise.
73366         * modules/sys_socket (Makefile.am): Likewise.
73367         * modules/sys_time (Makefile.am): Likewise.
73368
73369 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73370
73371         * modules/gettimeofday (License): Change from GPL to LGPL, since
73372         gettimeofday is a library function.
73373
73374 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73375
73376         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
73377
73378 2007-01-21  Bruno Haible  <bruno@clisp.org>
73379
73380         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
73381
73382 2007-01-21  Bruno Haible  <bruno@clisp.org>
73383
73384         * modules/striconveha: New file.
73385         * lib/striconveha.h: New file.
73386         * lib/striconveha.c: New file.
73387         * MODULES.html.sh (Internationalization functions): Add striconveha.
73388         * lib/striconv.c (str_iconv): Optimize the case of an empty input
73389         string.
73390         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
73391
73392 2007-01-21  Bruno Haible  <bruno@clisp.org>
73393
73394         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
73395         * lib/striconveh.c (str_iconveh): Likewise.
73396
73397 2007-01-21  Bruno Haible  <bruno@clisp.org>
73398
73399         * lib/striconveh.h (mem_iconveh): New declaration.
73400         * lib/striconveh.c (mem_iconveh): New function.
73401         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
73402
73403 2007-01-21  Bruno Haible  <bruno@clisp.org>
73404
73405         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
73406
73407         * lib/striconveh.h (mem_cd_iconveh): Change specification.
73408         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
73409         original result buffer.
73410         (str_cd_iconveh): Update.
73411         * tests/test-striconveh.c (main): Update.
73412
73413         * lib/striconv.h (mem_cd_iconv): Change specification.
73414         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
73415         result buffer.
73416         (str_cd_iconv): Update.
73417         * tests/test-striconv.c (main): Update.
73418
73419 2007-01-21  Bruno Haible  <bruno@clisp.org>
73420
73421         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
73422
73423 2007-01-20  Jim Meyering  <jim@meyering.net>
73424
73425         * lib/userspec.c (parse_with_separator): If a user or group string
73426         starts with "+", skip the corresponding name-to-ID look-up, since
73427         such a look-up must fail: user and group names may not include "+".
73428
73429 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
73430
73431         * lib/poll.c: Include sys/time.h and time.h unconditionally,
73432         since we now assume the sys_time module.
73433         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
73434         check for sys/time.h; no longer needed.
73435         * modules/poll (Depends-on): Depend on sys_time.
73436
73437 2007-01-18  Bruno Haible  <bruno@clisp.org>
73438
73439         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
73440         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73441
73442         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
73443         gettimeofday.
73444
73445         * tests/test-gettimeofday.c: Include <time.h>.
73446         (dummy): Remove variable.
73447
73448         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
73449         gl_HEADER_SYS_TIME_H.
73450         (gl_HEADER_SYS_TIME_H): New macro.
73451
73452         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
73453         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73454         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
73455         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
73456         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73457         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
73458         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
73459         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73460         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
73461         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
73462         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73463
73464         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
73465         last change; it caused a compilation error when cross-compiling to
73466         Cygwin.
73467
73468 2007-01-18  Jim Meyering  <jim@meyering.net>
73469
73470         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
73471         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
73472         than the race-prone "test -d sys || mkdir sys".
73473         (configure.ac): Use AC_PROG_MKDIR_P.
73474         * modules/sys_select: Likewise.
73475         * modules/sys_socket: Likewise.
73476         * modules/sys_time: Likewise.
73477
73478 2007-01-18  Eric Blake  <ebb9@byu.net>
73479
73480         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
73481         replace gettimeofday.
73482         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
73483         name, to avoid infinite recursion.
73484
73485 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
73486
73487         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
73488         module sys_time.
73489         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
73490         assume timespec.h defines struct timeval.
73491         * lib/settime.c: Likewise.
73492         * lib/utimens.c: Likewise.
73493         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
73494         since we now assume the gettimeofday module.
73495         * lib/tempname.c (__gen_tempname): Likewise.
73496         * lib/gettimeofday.h: Remove.
73497         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
73498         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
73499         Include <time.h>, for 'time()'.
73500         (localtime_buffer_addr): Also use this workaround if
73501         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
73502         to simplify the uses.  All uses changed.
73503         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
73504         that #undef is inside {}, and 'const' follows type name consistently.
73505         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
73506         (gettimeofday): Do not use the maximum possible value for
73507         tv->tv_usec, since that might break usages other than ls.c.
73508         Instead, we'll leave ls.c alone.  This undoes today's patch
73509         by Bruno.  Add a compile-time warning for 1s-clock resolution;
73510         we've never observed the problem but might as well keep the
73511         canary.
73512         * lib/nanosleep.c: Include timespec.h first, for interface check.
73513         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
73514         now assume the sys_time module.
73515         * lib/tempname.c: Likewise.
73516         * lib/timespec.h: Likewise.
73517         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
73518         needed.
73519         * lib/strftime.c: Likewise.
73520         * lib/timespec.h: Likewise.
73521         * lib/posixtm.c: Include posixtm.h first, for interface check.
73522         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
73523         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
73524         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
73525         * lib/sys_time_.h: New file.
73526         * lib/timespec.h (struct timespec): Use long int, not long.
73527         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73528         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
73529         Remove obsolescent call to AC_HEADER_TIME.
73530         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
73531         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73532         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73533         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
73534         Likewise.
73535         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
73536         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
73537         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
73538         into the sys_time module.  Check for gettimeofday just once.
73539         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
73540         for gettimeofday signature to just check the signature.  Merely
73541         compile it, since linking doesn't test signature.  Improve test for
73542         whether gettimeofday.o is actually needed.
73543         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
73544         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
73545         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
73546         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73547         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
73548         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
73549         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
73550         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
73551         than worrying about sys/time.h.
73552         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73553         Don't bother worrying about TIME_WITH_SYS_TIME.
73554         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
73555         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
73556         * m4/sys_time_h.m4: New file.
73557         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
73558         Don't include sys/time.h.  Return from main rather than exiting.
73559         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
73560         all uses changed.
73561         * modules/gethrxtime (Depends-on): Add sys_time.
73562         * modules/gettime (Depends-on): Likewise.
73563         * modules/gettimeofday (Depends-on): Likewise.
73564         * modules/nanosleep (Depends-on): Likewise.
73565         * modules/settime (Depends-on): Likewise.
73566         * modules/tempname (Depends-on): Likewise.
73567         * modules/utimens (Depends-on): Likewise.
73568         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
73569         (Include): Change back to <sys/time.h>.
73570         (Maintainer): Add self.
73571         * modules/sys_time: New file.
73572         * modules/tempname (Depends-on): Add gettimeofday.
73573         * tests/test-gettimeofday.c: Include <sys/time.h>
73574         rather than gettimeofday.h.
73575
73576 2007-01-17  Bruno Haible  <bruno@clisp.org>
73577
73578         * gnulib-tool (func_get_license): Revert last patch. Instead, let
73579         the license default to GPL.
73580         (func_create_testdir): Don't complain if a module is LGPL and its
73581         tests module depends on GPLed modules.
73582
73583 2007-01-17  Bruno Haible  <bruno@clisp.org>
73584
73585         * lib/gettimeofday.c (gettimeofday): Add code for the case
73586         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
73587         maximum possible value for tv->tv_usec, rather than the minimum one.
73588
73589 2005-10-08  Martin Lambers  <marlam@marlam.de>
73590 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73591 2007-01-16  Bruno Haible  <bruno@clisp.org>
73592
73593         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
73594         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
73595         gl_FUNC_GETTIMEOFDAY.
73596         (Include): Add gettimeofday.h.
73597         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
73598         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
73599         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
73600         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
73601         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
73602         * lib/gettimeofday.h: New file.
73603         * lib/gettimeofday.c: Include <sys/timeb.h>.
73604         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
73605         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73606         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
73607         fall back on time().
73608
73609         * tests/test-gettimeofday.c: New file.
73610         * modules/gettimeofday-tests: New file.
73611
73612 2007-01-16  Eric Blake  <ebb9@byu.net>
73613
73614         * modules/fnmatch (Depends-on): Depend on wchar.
73615         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
73616         * m4/fnmatch.m4: Likewise.
73617         * modules/mbchar (Makefile.am): Assume <wchar.h>.
73618         * m4/mbchar.m4: Likewise.
73619         * modules/mbswidth (Depends-on): Depend on wchar.
73620         * lib/mbswidth.c: Assume <wchar.h>.
73621         * m4/mbswidth.m4: Likewise.
73622         * modules/quotearg (Depends-on): Depend on wchar.
73623         * lib/quotearg.c: Assume <wchar.h>.
73624         * m4/quotearg.m4: Likewise.
73625         * modules/regex (Depends-on): Depend on wchar.
73626         * lib/regex_internal.h: Assume <wchar.h>.
73627         * m4/regex.m4: Likewise.
73628         * modules/stdint (Depends-on): Depend on wchar.
73629         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
73630         * m4/stdint.m4: Likewise.
73631         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
73632         * modules/strftime (Depends-on): Depend on wchar.
73633         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
73634         * modules/strtol (Depends-on): Depend on wchar.
73635         * lib/strtol.c: Assume <wchar.h>.
73636         * modules/wcwidth (Depends-on): Depend on wchar.
73637         * lib/wcwidth.h: Assume <wchar.h>.
73638         * m4/wcwidth.m4: Likewise.
73639
73640 2007-01-16  Bruno Haible  <bruno@clisp.org>
73641
73642         * modules/csharpexec-script: New, created from...
73643         * modules/csharpexec: ... this.
73644
73645 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
73646
73647         * modules/javaexec-script: New, created from...
73648         * modules/javaexec: ... this.
73649
73650 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73651
73652         * modules/poll (Dependencies): Add sys_select.
73653
73654 2007-01-15  Jim Meyering  <jim@meyering.net>
73655
73656         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
73657         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
73658         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
73659         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
73660
73661 2007-01-15  Bruno Haible  <bruno@clisp.org>
73662
73663         * modules/striconveh: New file.
73664         * lib/striconveh.h: New file.
73665         * lib/striconveh.c: New file.
73666         * MODULES.html.sh (Internationalization functions): Add striconveh.
73667
73668         * modules/striconveh-tests: New file.
73669         * tests/test-striconveh.c: New file.
73670
73671 2007-01-15  Bruno Haible  <bruno@clisp.org>
73672
73673         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
73674         not from GNU libiconv or GNU libc.
73675
73676 2007-01-15  Bruno Haible  <bruno@clisp.org>
73677
73678         * doc/gnulib-intro.texi (Copyright): Explain the different license
73679         terms for module descriptions, autoconf macros, tests, documentation.
73680
73681 2007-01-14  Bruno Haible  <bruno@clisp.org>
73682
73683         * modules/striconv-tests: New file.
73684         * tests/test-striconv.c: New file.
73685
73686 2007-01-14  Bruno Haible  <bruno@clisp.org>
73687
73688         * modules/iconv-tests: New file.
73689         * tests/test-iconv.c: New file.
73690
73691 2007-01-14  Bruno Haible  <bruno@clisp.org>
73692
73693         * gnulib-tool (func_get_license): For test modules, use the license of
73694         the main module.
73695
73696 2007-01-14  Bruno Haible  <bruno@clisp.org>
73697
73698         * modules/iconv (Include): Clarify that <iconv.h> can only be included
73699         if iconv is found to exist.
73700
73701 2007-01-14  Bruno Haible  <bruno@clisp.org>
73702
73703         * modules/c-ctype-tests: New file.
73704         * tests/test-c-ctype.c: New file.
73705
73706 2007-01-14  Bruno Haible  <bruno@clisp.org>
73707
73708         * modules/binary-io-tests: New file.
73709         * tests/test-binary-io.sh: New file.
73710         * tests/test-binary-io.c: New file.
73711
73712 2007-01-14  Bruno Haible  <bruno@clisp.org>
73713
73714         * modules/array-oset-tests: New file.
73715         * tests/test-array_oset.c: New file.
73716
73717 2007-01-14  Bruno Haible  <bruno@clisp.org>
73718
73719         * modules/array-list-tests: New file.
73720         * tests/test-array_list.c: New file.
73721
73722 2007-01-14  Bruno Haible  <bruno@clisp.org>
73723
73724         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
73725         and make.
73726         Reported by Simon Josefsson in
73727         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
73728
73729 2007-01-14  Bruno Haible  <bruno@clisp.org>
73730
73731         * modules/allocsa-tests: New file.
73732         * tests/test-allocsa.c: New file.
73733
73734 2007-01-14  Bruno Haible  <bruno@clisp.org>
73735
73736         * modules/fchdir (Depends-on): Add absolute-header.
73737         * modules/unistd (Depends-on): Likewise.
73738
73739 2006-12-30  Bruno Haible  <bruno@clisp.org>
73740
73741         * modules/fchdir: New file.
73742         * modules/unistd (Files): Add lib/unistd_.h.
73743         (Makefile.am): Generate unistd.h from unistd_.h.
73744         * lib/fchdir.c: New file.
73745         * lib/dirent_.h: New file.
73746         * lib/unistd_.h: New file.
73747         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
73748         * m4/fchdir.m4: New file.
73749         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
73750         (gl_HEADER_UNISTD): Invoke it.
73751         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
73752         function.
73753         * lib/backupfile.c (opendir, closedir): Undefine.
73754         * lib/chown.c (open, close): Undefine.
73755         * lib/clean-temp.c (open, close): Undefine.
73756         * lib/copy-file.c (open, close): Undefine.
73757         * lib/execute.c (open, close): Undefine.
73758         * lib/fsusage.c (open, close): Undefine.
73759         * lib/gc-gnulib.c (open, close): Undefine.
73760         * lib/getcwd.c (opendir, closedir): Undefine.
73761         * lib/glob.c (opendir, closedir): Undefine.
73762         * lib/javacomp.c (open, close): Undefine.
73763         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
73764         * lib/openat-proc.c (open, close): Undefine.
73765         * lib/pagealign_alloc.c (open, close): Undefine.
73766         * lib/pipe.c (open, close): Undefine.
73767         * lib/progreloc.c (open, close): Undefine.
73768         * lib/savedir.c (opendir, closedir): Undefine.
73769         * lib/utime.c (open, close): Undefine.
73770         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
73771
73772 2007-01-10  Bruno Haible  <bruno@clisp.org>
73773
73774         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
73775
73776 2007-01-12  Eric Blake  <ebb9@byu.net>
73777
73778         Provide a robust <wchar.h>.  Further simplifications are now
73779         possible in other modules, but not included here.
73780         * modules/wchar: New module.
73781         * m4/wchar.m4: New file.
73782         * lib/wchar_.h: Likewise.
73783         * modules/mbchar (Depends-on): Depend on wchar, as the first use
73784         of the new module.
73785         * MODULES.html.sh (Extended multibyte and wide character utilities):
73786         New section.
73787
73788 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
73789
73790         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
73791         to a reasonable default for memory allocation.
73792         (xreadlink): Don't allocate a huge buffer, to work around a buggy
73793         file system that reports garbage st_size values for symlinks.
73794         Problem reported by Liyang Hu.
73795
73796 2007-01-11  Simon Josefsson  <simon@josefsson.org>
73797
73798         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
73799         Emacs .#* auto-save files).
73800
73801 2007-01-11  Bruno Haible  <bruno@clisp.org>
73802
73803         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
73804         directory.
73805
73806 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73807
73808         Use @...@ consistently in lib/wctype_.h.
73809         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
73810         on it being set to 1 or 0.
73811         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
73812         go back to AC_SUBSTing it.
73813         * modules/wctype (Makefile.am): Undo previous change.
73814
73815 2007-01-10  Eric Blake  <ebb9@byu.net>
73816
73817         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
73818         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
73819         * modules/wctype (Makefile.am): Likewise.
73820         Reported by Chris McGuire.
73821
73822 2007-01-10  Jim Meyering  <jim@meyering.net>
73823
73824         fts.c: a small readability/maintainability improvement
73825         * lib/fts.c (fts_read): Make this code slightly more readable and
73826         maintainable by hoisting the "sp->fts_cur = p" assignments to
73827         immediately follow the statements that set P.  Derived from
73828         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
73829
73830 2007-01-10  Eric Blake  <ebb9@byu.net>
73831
73832         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
73833         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
73834         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73835         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
73836         Reported by Chris McGuire.
73837
73838 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73839
73840         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
73841         in sed script.
73842
73843 2007-01-09  Bruno Haible  <bruno@clisp.org>
73844
73845         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
73846         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
73847         variables.
73848         (func_module): Use them.
73849
73850 2007-01-09  Bruno Haible  <bruno@clisp.org>
73851
73852         * modules/unistr/base: New file.
73853         * lib/unistr.h: New file.
73854
73855         * modules/unistr/u8-to-u16: New file.
73856         * lib/unistr/u8-to-u16.c: New file.
73857
73858         * modules/unistr/u8-to-u32: New file.
73859         * lib/unistr/u8-to-u32.c: New file.
73860
73861         * modules/unistr/u16-to-u8: New file.
73862         * lib/unistr/u16-to-u8.c: New file.
73863
73864         * modules/unistr/u16-to-u32: New file.
73865         * lib/unistr/u16-to-u32.c: New file.
73866
73867         * modules/unistr/u32-to-u8: New file.
73868         * lib/unistr/u32-to-u8.c: New file.
73869
73870         * modules/unistr/u32-to-u16: New file.
73871         * lib/unistr/u32-to-u16.c: New file.
73872
73873         * modules/unistr/u8-check: New file.
73874         * modules/unistr/u16-check: New file.
73875         * modules/unistr/u32-check: New file.
73876         * lib/unistr/u8-check.c: New file.
73877         * lib/unistr/u16-check.c: New file.
73878         * lib/unistr/u32-check.c: New file.
73879
73880         * modules/unistr/u8-chr: New file.
73881         * modules/unistr/u16-chr: New file.
73882         * modules/unistr/u32-chr: New file.
73883         * lib/unistr/u8-chr.c: New file.
73884         * lib/unistr/u16-chr.c: New file.
73885         * lib/unistr/u32-chr.c: New file.
73886
73887         * modules/unistr/u8-cmp: New file.
73888         * modules/unistr/u16-cmp: New file.
73889         * modules/unistr/u32-cmp: New file.
73890         * lib/unistr/u8-cmp.c: New file.
73891         * lib/unistr/u16-cmp.c: New file.
73892         * lib/unistr/u32-cmp.c: New file.
73893
73894         * modules/unistr/u8-cpy: New file.
73895         * modules/unistr/u16-cpy: New file.
73896         * modules/unistr/u32-cpy: New file.
73897         * lib/unistr/u8-cpy.c: New file.
73898         * lib/unistr/u16-cpy.c: New file.
73899         * lib/unistr/u32-cpy.c: New file.
73900         * lib/unistr/u-cpy.h: New file.
73901
73902         * modules/unistr/u8-cpy-alloc: New file.
73903         * modules/unistr/u16-cpy-alloc: New file.
73904         * modules/unistr/u32-cpy-alloc: New file.
73905         * lib/unistr/u8-cpy-alloc.c: New file.
73906         * lib/unistr/u16-cpy-alloc.c: New file.
73907         * lib/unistr/u32-cpy-alloc.c: New file.
73908         * lib/unistr/u-cpy-alloc.h: New file.
73909
73910         * modules/unistr/u8-endswith: New file.
73911         * modules/unistr/u16-endswith: New file.
73912         * modules/unistr/u32-endswith: New file.
73913         * lib/unistr/u8-endswith.c: New file.
73914         * lib/unistr/u16-endswith.c: New file.
73915         * lib/unistr/u32-endswith.c: New file.
73916         * lib/unistr/u-endswith.h: New file.
73917
73918         * modules/unistr/u8-mblen: New file.
73919         * modules/unistr/u16-mblen: New file.
73920         * modules/unistr/u32-mblen: New file.
73921         * lib/unistr/u8-mblen.c: New file.
73922         * lib/unistr/u16-mblen.c: New file.
73923         * lib/unistr/u32-mblen.c: New file.
73924
73925         * modules/unistr/u8-mbtouc: New file.
73926         * modules/unistr/u16-mbtouc: New file.
73927         * modules/unistr/u32-mbtouc: New file.
73928         * lib/unistr/u8-mbtouc.c: New file.
73929         * lib/unistr/u16-mbtouc.c: New file.
73930         * lib/unistr/u32-mbtouc.c: New file.
73931
73932         * modules/unistr/u8-mbtouc-safe: New file.
73933         * modules/unistr/u16-mbtouc-safe: New file.
73934         * modules/unistr/u32-mbtouc-safe: New file.
73935         * lib/unistr/u8-mbtouc-safe.c: New file.
73936         * lib/unistr/u16-mbtouc-safe.c: New file.
73937         * lib/unistr/u32-mbtouc-safe.c: New file.
73938
73939         * modules/unistr/u8-move: New file.
73940         * modules/unistr/u16-move: New file.
73941         * modules/unistr/u32-move: New file.
73942         * lib/unistr/u8-move.c: New file.
73943         * lib/unistr/u16-move.c: New file.
73944         * lib/unistr/u32-move.c: New file.
73945         * lib/unistr/u-move.h: New file.
73946
73947         * modules/unistr/u8-next: New file.
73948         * modules/unistr/u16-next: New file.
73949         * modules/unistr/u32-next: New file.
73950         * lib/unistr/u8-next.c: New file.
73951         * lib/unistr/u16-next.c: New file.
73952         * lib/unistr/u32-next.c: New file.
73953
73954         * modules/unistr/u8-prev: New file.
73955         * modules/unistr/u16-prev: New file.
73956         * modules/unistr/u32-prev: New file.
73957         * lib/unistr/u8-prev.c: New file.
73958         * lib/unistr/u16-prev.c: New file.
73959         * lib/unistr/u32-prev.c: New file.
73960
73961         * modules/unistr/u8-set: New file.
73962         * modules/unistr/u16-set: New file.
73963         * modules/unistr/u32-set: New file.
73964         * lib/unistr/u8-set.c: New file.
73965         * lib/unistr/u16-set.c: New file.
73966         * lib/unistr/u32-set.c: New file.
73967         * lib/unistr/u-set.h: New file.
73968
73969         * modules/unistr/u8-startswith: New file.
73970         * modules/unistr/u16-startswith: New file.
73971         * modules/unistr/u32-startswith: New file.
73972         * lib/unistr/u8-startswith.c: New file.
73973         * lib/unistr/u16-startswith.c: New file.
73974         * lib/unistr/u32-startswith.c: New file.
73975         * lib/unistr/u-startswith.h: New file.
73976
73977         * modules/unistr/u8-stpcpy: New file.
73978         * modules/unistr/u16-stpcpy: New file.
73979         * modules/unistr/u32-stpcpy: New file.
73980         * lib/unistr/u8-stpcpy.c: New file.
73981         * lib/unistr/u16-stpcpy.c: New file.
73982         * lib/unistr/u32-stpcpy.c: New file.
73983         * lib/unistr/u-stpcpy.h: New file.
73984
73985         * modules/unistr/u8-stpncpy: New file.
73986         * modules/unistr/u16-stpncpy: New file.
73987         * modules/unistr/u32-stpncpy: New file.
73988         * lib/unistr/u8-stpncpy.c: New file.
73989         * lib/unistr/u16-stpncpy.c: New file.
73990         * lib/unistr/u32-stpncpy.c: New file.
73991         * lib/unistr/u-stpncpy.h: New file.
73992
73993         * modules/unistr/u8-strcat: New file.
73994         * modules/unistr/u16-strcat: New file.
73995         * modules/unistr/u32-strcat: New file.
73996         * lib/unistr/u8-strcat.c: New file.
73997         * lib/unistr/u16-strcat.c: New file.
73998         * lib/unistr/u32-strcat.c: New file.
73999         * lib/unistr/u-strcat.h: New file.
74000
74001         * modules/unistr/u8-strchr: New file.
74002         * modules/unistr/u16-strchr: New file.
74003         * modules/unistr/u32-strchr: New file.
74004         * lib/unistr/u8-strchr.c: New file.
74005         * lib/unistr/u16-strchr.c: New file.
74006         * lib/unistr/u32-strchr.c: New file.
74007
74008         * modules/unistr/u8-strcmp: New file.
74009         * modules/unistr/u16-strcmp: New file.
74010         * modules/unistr/u32-strcmp: New file.
74011         * lib/unistr/u8-strcmp.c: New file.
74012         * lib/unistr/u16-strcmp.c: New file.
74013         * lib/unistr/u32-strcmp.c: New file.
74014
74015         * modules/unistr/u8-strcpy: New file.
74016         * modules/unistr/u16-strcpy: New file.
74017         * modules/unistr/u32-strcpy: New file.
74018         * lib/unistr/u8-strcpy.c: New file.
74019         * lib/unistr/u16-strcpy.c: New file.
74020         * lib/unistr/u32-strcpy.c: New file.
74021         * lib/unistr/u-strcpy.h: New file.
74022
74023         * modules/unistr/u8-strcspn: New file.
74024         * modules/unistr/u16-strcspn: New file.
74025         * modules/unistr/u32-strcspn: New file.
74026         * lib/unistr/u8-strcspn.c: New file.
74027         * lib/unistr/u16-strcspn.c: New file.
74028         * lib/unistr/u32-strcspn.c: New file.
74029         * lib/unistr/u-strcspn.h: New file.
74030
74031         * modules/unistr/u8-strdup: New file.
74032         * modules/unistr/u16-strdup: New file.
74033         * modules/unistr/u32-strdup: New file.
74034         * lib/unistr/u8-strdup.c: New file.
74035         * lib/unistr/u16-strdup.c: New file.
74036         * lib/unistr/u32-strdup.c: New file.
74037         * lib/unistr/u-strdup.h: New file.
74038
74039         * modules/unistr/u8-strlen: New file.
74040         * modules/unistr/u16-strlen: New file.
74041         * modules/unistr/u32-strlen: New file.
74042         * lib/unistr/u8-strlen.c: New file.
74043         * lib/unistr/u16-strlen.c: New file.
74044         * lib/unistr/u32-strlen.c: New file.
74045         * lib/unistr/u-strlen.h: New file.
74046
74047         * modules/unistr/u8-strmblen: New file.
74048         * modules/unistr/u16-strmblen: New file.
74049         * modules/unistr/u32-strmblen: New file.
74050         * lib/unistr/u8-strmblen.c: New file.
74051         * lib/unistr/u16-strmblen.c: New file.
74052         * lib/unistr/u32-strmblen.c: New file.
74053
74054         * modules/unistr/u8-strmbtouc: New file.
74055         * modules/unistr/u16-strmbtouc: New file.
74056         * modules/unistr/u32-strmbtouc: New file.
74057         * lib/unistr/u8-strmbtouc.c: New file.
74058         * lib/unistr/u16-strmbtouc.c: New file.
74059         * lib/unistr/u32-strmbtouc.c: New file.
74060
74061         * modules/unistr/u8-strncat: New file.
74062         * modules/unistr/u16-strncat: New file.
74063         * modules/unistr/u32-strncat: New file.
74064         * lib/unistr/u8-strncat.c: New file.
74065         * lib/unistr/u16-strncat.c: New file.
74066         * lib/unistr/u32-strncat.c: New file.
74067         * lib/unistr/u-strncat.h: New file.
74068
74069         * modules/unistr/u8-strncmp: New file.
74070         * modules/unistr/u16-strncmp: New file.
74071         * modules/unistr/u32-strncmp: New file.
74072         * lib/unistr/u8-strncmp.c: New file.
74073         * lib/unistr/u16-strncmp.c: New file.
74074         * lib/unistr/u32-strncmp.c: New file.
74075
74076         * modules/unistr/u8-strncpy: New file.
74077         * modules/unistr/u16-strncpy: New file.
74078         * modules/unistr/u32-strncpy: New file.
74079         * lib/unistr/u8-strncpy.c: New file.
74080         * lib/unistr/u16-strncpy.c: New file.
74081         * lib/unistr/u32-strncpy.c: New file.
74082         * lib/unistr/u-strncpy.h: New file.
74083
74084         * modules/unistr/u8-strnlen: New file.
74085         * modules/unistr/u16-strnlen: New file.
74086         * modules/unistr/u32-strnlen: New file.
74087         * lib/unistr/u8-strnlen.c: New file.
74088         * lib/unistr/u16-strnlen.c: New file.
74089         * lib/unistr/u32-strnlen.c: New file.
74090         * lib/unistr/u-strnlen.h: New file.
74091
74092         * modules/unistr/u8-strpbrk: New file.
74093         * modules/unistr/u16-strpbrk: New file.
74094         * modules/unistr/u32-strpbrk: New file.
74095         * lib/unistr/u8-strpbrk.c: New file.
74096         * lib/unistr/u16-strpbrk.c: New file.
74097         * lib/unistr/u32-strpbrk.c: New file.
74098         * lib/unistr/u-strpbrk.h: New file.
74099
74100         * modules/unistr/u8-strrchr: New file.
74101         * modules/unistr/u16-strrchr: New file.
74102         * modules/unistr/u32-strrchr: New file.
74103         * lib/unistr/u8-strrchr.c: New file.
74104         * lib/unistr/u16-strrchr.c: New file.
74105         * lib/unistr/u32-strrchr.c: New file.
74106
74107         * modules/unistr/u8-strspn: New file.
74108         * modules/unistr/u16-strspn: New file.
74109         * modules/unistr/u32-strspn: New file.
74110         * lib/unistr/u8-strspn.c: New file.
74111         * lib/unistr/u16-strspn.c: New file.
74112         * lib/unistr/u32-strspn.c: New file.
74113         * lib/unistr/u-strspn.h: New file.
74114
74115         * modules/unistr/u8-strstr: New file.
74116         * modules/unistr/u16-strstr: New file.
74117         * modules/unistr/u32-strstr: New file.
74118         * lib/unistr/u8-strstr.c: New file.
74119         * lib/unistr/u16-strstr.c: New file.
74120         * lib/unistr/u32-strstr.c: New file.
74121         * lib/unistr/u-strstr.h: New file.
74122
74123         * modules/unistr/u8-strtok: New file.
74124         * modules/unistr/u16-strtok: New file.
74125         * modules/unistr/u32-strtok: New file.
74126         * lib/unistr/u8-strtok.c: New file.
74127         * lib/unistr/u16-strtok.c: New file.
74128         * lib/unistr/u32-strtok.c: New file.
74129         * lib/unistr/u-strtok.h: New file.
74130
74131         * modules/unistr/u8-uctomb: New file.
74132         * modules/unistr/u16-uctomb: New file.
74133         * modules/unistr/u32-uctomb: New file.
74134         * lib/unistr/u8-uctomb.c: New file.
74135         * lib/unistr/u16-uctomb.c: New file.
74136         * lib/unistr/u32-uctomb.c: New file.
74137
74138         * MODULES.html.sh (Unicode string functions): Add the new modules.
74139
74140 2007-01-08  Bruno Haible  <bruno@clisp.org>
74141
74142         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
74143         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
74144         subdirectories.
74145
74146 2007-01-08  Karl Berry  <karl@gnu.org>
74147
74148         * doc/error.texi: mention that main() fns must set program_name
74149         when progname is used.
74150
74151 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
74152
74153         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
74154         WCTYPE_H is empty, for the benefit of builds from non-distclean
74155         directories.  Problem reported by Eric Blake in
74156         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
74157
74158 2007-01-08  Bruno Haible  <bruno@clisp.org>
74159
74160         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
74161         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
74162         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
74163         PROVIDE_CANONICALIZE_FILENAME_MODE.
74164         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
74165
74166 2007-01-08  Bruno Haible  <bruno@clisp.org>
74167
74168         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
74169         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
74170         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
74171         * lib/fts.c: Likewise.
74172         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
74173
74174 2006-12-25  Bruno Haible  <bruno@clisp.org>
74175
74176         * modules/utf8-ucs4-safe: New file.
74177         * lib/utf8-ucs4-safe.h: New file.
74178         * lib/unistr/utf8-ucs4-safe.c: New file.
74179
74180         * modules/utf16-ucs4-safe: New file.
74181         * lib/utf16-ucs4-safe.h: New file.
74182         * lib/unistr/utf16-ucs4-safe.c: New file.
74183
74184         * MODULES.html.sh (Unicode string functions): Add the new modules.
74185
74186 2007-01-08  Bruno Haible  <bruno@clisp.org>
74187
74188         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
74189         (Depends-on): Add unitypes.
74190         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74191         (u8_mbtouc_aux): Move out to separate file.
74192         (u8_mbtouc): Use ucs4_t, uint8_t types.
74193         * lib/unistr/utf8-ucs4.c: New file.
74194
74195         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
74196         (Depends-on): Add unitypes.
74197         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74198         (u16_mbtouc_aux): Move out to separate file.
74199         (u16_mbtouc): Use ucs4_t, uint16_t types.
74200         * lib/unistr/utf16-ucs4.c: New file.
74201
74202         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
74203         (Depends-on): Add unitypes.
74204         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
74205         (u8_uctomb_aux): Move out to separate file.
74206         (u8_uctomb): Use ucs4_t, uint8_t types.
74207         * lib/unistr/ucs4-utf8.c: New file.
74208
74209         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
74210         (Depends-on): Add unitypes.
74211         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
74212         (u16_uctomb_aux): Move out to separate file.
74213         (u16_uctomb): Use ucs4_t, uint16_t types.
74214         * lib/unistr/ucs4-utf16.c: New file.
74215
74216 2006-12-25  Bruno Haible  <bruno@clisp.org>
74217
74218         * modules/unitypes: New file.
74219         * lib/unitypes.h: New file.
74220         * MODULES.html.sh (func_all_modules): New section "Unicode string
74221         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
74222         this section. Add unitypes.
74223
74224 2007-01-08  Bruno Haible  <bruno@clisp.org>
74225
74226         Avoid variable names that conflict with those from libtool.
74227         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
74228         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
74229         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
74230         library_names_spec to acl_library_names_spec, hardcode_* to
74231         acl_hardcode_*.
74232         Reported by Ralf Wildenhues.
74233
74234 2007-01-08  Bruno Haible  <bruno@clisp.org>
74235
74236         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
74237         definition.
74238         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
74239         definition.
74240         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
74241         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
74242         definition.
74243         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
74244         definition.
74245         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
74246         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
74247         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
74248         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
74249         definition.
74250         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
74251         definition.
74252         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
74253         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
74254         GC_USE_<algorithm>.
74255         * lib/gc-libgcrypt.c: Likewise.
74256         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
74257         * modules/gc-arctwo (configure.ac): Likewise.
74258         * modules/gc-des (configure.ac): Likewise.
74259         * modules/gc-hmac-md5 (configure.ac): Likewise.
74260         * modules/gc-hmac-sha1 (configure.ac): Likewise.
74261         * modules/gc-md2 (configure.ac): Likewise.
74262         * modules/gc-md4 (configure.ac): Likewise.
74263         * modules/gc-md5 (configure.ac): Likewise.
74264         * modules/gc-random (configure.ac): Likewise.
74265         * modules/gc-rijndael (configure.ac): Likewise.
74266         * modules/gc-sha1 (configure.ac): Likewise.
74267
74268 2007-01-08  Bruno Haible  <bruno@clisp.org>
74269
74270         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
74271         macro definition.
74272         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
74273         definition.
74274         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
74275         definition.
74276         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
74277         * modules/fcntl-safer (configure.ac): Likewise.
74278         * modules/fopen-safer (configure.ac): Likewise.
74279         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
74280         GNULIB_FWRITEERROR macro definition.
74281
74282 2007-01-08  Bruno Haible  <bruno@clisp.org>
74283
74284         * m4/gnulib-common.m4: New file.
74285         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
74286         (func_get_filelist): Add m4/gnulib-common.m4.
74287
74288 2007-01-08  Bruno Haible  <bruno@clisp.org>
74289
74290         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
74291         command.
74292
74293 2007-01-08  Jim Meyering  <jim@meyering.net>
74294
74295         Use a more robust test for a "can't happen" condition.
74296         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
74297         narrowed the st_size value.  Presuming the "can't happen" condition
74298         is true, that narrowing could conceivably convert an invalid st_size
74299         value into a valid one.  Instead, use a change based on Matthew
74300         Woehlke's original patch.
74301
74302         Slight readability improvement: use an assert-like macro
74303         in place of literal "abort ()" uses.
74304         * lib/fts.c (fts_assert): Define.
74305         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
74306         Use this macro instead of a bare 'abort'.
74307
74308 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
74309
74310         Don't worry about using IRIX 5.3's wctype.h broken definitions;
74311         simply work around them.
74312         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
74313         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
74314         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
74315         declaring.
74316         Don't bother to define as macros, since the standard doesn't require it.
74317         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
74318         longer worry about IRIX 5.3.
74319         (HAVE_WCTYPE_CTMP_BUG): Remove.
74320
74321 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74322
74323         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
74324         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
74325         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
74326         Problems reported by Georg Schwarz for IRIX 5.3.
74327
74328         * gnulib-tool (autoconf_minversion): Take the maximum version number
74329         found, not the minimum.  Problem reported by James Youngman.
74330
74331 2007-01-03  Karl Berry  <karl@gnu.org>
74332
74333         * doc/error.texi: new file, explaining interaction with progname.
74334         * doc/gnulib.texi: include it.  Update copyright.
74335
74336 2007-01-03  Simon Josefsson  <simon@josefsson.org>
74337
74338         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
74339         AC_CANONICAL_HOST, to improve autobuild outputs.
74340
74341 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
74342             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74343
74344         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
74345         sockets, server sockets, and other file descriptors.  Count errors
74346         to compute the return value.  Reorder the code a bit to be easier
74347         to follow.  Don't set event bits that were not requested (except
74348         POLLERR and POLLHUP).
74349
74350 2007-01-01  Bruno Haible  <bruno@clisp.org>
74351
74352         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
74353
74354 2007-01-03  Jim Meyering  <jim@meyering.net>
74355
74356         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
74357
74358 2007-01-02  Bruno Haible  <bruno@clisp.org>
74359
74360         * modules/settime (Include): Require timespec.h.
74361         * modules/nanosleep (Include): Likewise.
74362
74363 2007-01-01  Bruno Haible  <bruno@clisp.org>
74364
74365         * gnulib-tool (func_emit_copyright_notice): Bump year.
74366         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
74367
74368 2007-01-01  Bruno Haible  <bruno@clisp.org>
74369
74370         Improve support for OpenBSD.
74371         * build-aux/config.rpath (libname_spec): Export.
74372         (library_names_spec): New variable. Export.
74373         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
74374         library_names_spec from the config.rpath output. Locate shared library
74375         through the name pattern in library_names_spec.
74376
74377 2007-01-01  Eric Blake  <ebb9@byu.net>
74378
74379         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
74380
74381 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
74382
74383         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
74384         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
74385         assume the C locale, and avoid an "eval" that could cause trouble.
74386         Problem with SORT reported by Bob Proulx.
74387
74388         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
74389         Define.  Trivial patch from Henning Nielsen Lund, originally
74390         sent to bug-grep@gnu.org today.
74391
74392 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
74393
74394         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
74395         struct stat.  Problem reported by Henning Nielsen Lund.
74396         * lib/acl.c: Include acl.h first, to check interface.  Don't
74397         bother to include sys/types.h and sys/stat.h again.
74398
74399 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74400
74401         Import the following change from libc; problem reported by
74402         Sven Verdoolaege.
74403
74404         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
74405
74406         [BZ #1373]
74407         * lib/argp.h: Remove __NTH for __argp_usage inline function.
74408
74409 2006-12-28  Jim Meyering  <jim@meyering.net>
74410
74411         * build-aux/announce-gen: Do not assume that the package
74412         builds any of tar.gz, tar.bz2, and .xdelta files.
74413         Suggestion from Simon Josefsson.
74414
74415 2006-12-28  Simon Josefsson  <simon@josefsson.org>
74416
74417         * modules/announce-gen: New file.
74418
74419 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
74420
74421         * lib/mbchar.h: Just include <wctype.h>; the wctype module
74422         handles its gotchas now.
74423         * lib/mbswidth.c: Likewise.
74424         * lib/wcwidth.h: Likewise.
74425         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
74426         and iswcntrl; the wctype module does this stuff now.
74427         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74428         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74429         * modules/mbchar (Depends-on): Add wctype.
74430         * modules/mbswidth (Depends-on): Likewise.
74431         * modules/wcwidth (Depends-on): Likewise.
74432
74433 2006-12-27  Eric Blake  <ebb9@byu.net>
74434
74435         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
74436         module uses more than what <wctype.h> is required to provide.
74437
74438 2006-12-26  Eric Blake  <ebb9@byu.net>
74439
74440         * gnulib-tool (sed_extract_prog): Avoid space-tab.
74441
74442 2006-12-26  Eric Blake  <ebb9@byu.net>
74443
74444         * modules/absolute-header: New module.
74445         * modules/fcntl (Depends-on): Depend on it.
74446         * modules/inttypes (Depends-on): Likewise.
74447         * modules/stdint (Depends-on): Likewise.
74448         * modules/sys_stat (Depends-on): Likewise.
74449         * modules/wctype (Depends-on): Likewise.
74450         * MODULES.html.sh (Support for building libraries and
74451         executables): Document it.
74452
74453 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
74454
74455         * gnulib-tool (SED): Remove, undoing previous change.
74456         The problem was that it broke coreutils on Solaris, because
74457         "sed --posix" leaked into a makefile.
74458         (sed): New alias, if 'alias' and GNU sed.
74459
74460 2006-12-24  Jim Meyering  <jim@meyering.net>
74461
74462         Work around an fchownat bug in glibc-2.4:
74463         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
74464         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
74465         in spite of the -P option.
74466         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
74467         New macros.
74468         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
74469         * modules/openat (Files): Add lib/fchownat.c.
74470         * lib/openat.c (fchownat): Don't define here.  Move to...
74471         * lib/fchownat.c: ...this new file.
74472
74473 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74474
74475         Fix bug reported by Bruno Haible in
74476         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
74477         where quotearg.c didn't compile on Mac OS X 10.2 because it
74478         lacks <wchar.h> and wint_t.
74479         * lib/wctype_.h (__wctype_wint_t): New type.
74480         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
74481         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
74482         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
74483         Arg is now of type __wctype_wint_t, not wint_t.
74484         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
74485         substitute HAVE_WINT_T.
74486         * modules/wctype (Files): Add m4/wint_t.m4.
74487         (wctype.h): Substitute HAVE_WINT_T.
74488
74489 2006-12-23  Bruno Haible  <bruno@clisp.org>
74490
74491         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
74492
74493 2006-12-23  Bruno Haible  <bruno@clisp.org>
74494
74495         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
74496         S_ISLNK.
74497         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
74498         mingw.
74499
74500 2006-12-22  Bruno Haible  <bruno@clisp.org>
74501
74502         * lib/copy-file.c: Include acl.h.
74503         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
74504         Close the file descriptors only after being done with copy_acl.
74505         * modules/copy-file (Depends-on): Add acl.
74506
74507 2006-12-22  Bruno Haible  <bruno@clisp.org>
74508
74509         * gnulib-tool (SED): New variable.
74510         Use $SED instead of sed everywhere.
74511
74512 2006-12-22  Bruno Haible  <bruno@clisp.org>
74513
74514         * modules/no-c++: New file.
74515         * m4/no-c++.m4: New file.
74516         * MODULES.html.sh (Support for building libraries and executables):
74517         Add no-c++.
74518
74519 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
74520
74521         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74522         Include <limits.h>, and use its INT_MAX to rewrite the
74523         j loop so that it does not overflow 'int'.  Problem reported by
74524         Ralf Wildenhues in
74525         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
74526         Play it safe by shifting left by 1 rather than multiplying by 2,
74527         as GCC is less likely to optimize this away when the value
74528         is signed (when it assumes overflow leads to undefined behavior).
74529         Also, don't assume time_t uses two's complement.
74530
74531 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
74532
74533         * MODULES.html.sh: New module wctype.
74534         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
74535         * lib/fnmatch.c: Don't bother to include <wchar.h> before
74536         <wctype.h>, since the new wctype module should fix this.
74537         * lib/quotearg.c: Include <wctype.h> unconditionally, since
74538         the wctype module should arrange for it.
74539         * lib/regex_internal.h: Likewise.
74540         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
74541         since the wctype module should handle this now.
74542         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
74543         * modules/fnmatch (Depends-on): Add wctype.
74544         * modules/quotearg (Depends-on): Likewise.
74545         * modules/regex (Depends-on): Likewise.
74546
74547 2006-12-19  Bruno Haible  <bruno@clisp.org>
74548
74549         * lib/strdup.h [C++]: Wrap definitions in extern "C".
74550         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
74551
74552 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74553
74554         * modules/savewd (Depends-on): Fix dependency on fcntl.
74555
74556 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74557
74558         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
74559         conforms to C99, rather than relying on the user's environment
74560         setting of STDINT_H.
74561
74562 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74563         and Eric Blake  <ebb9@byu.net>
74564
74565         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
74566         This is more consistent with the other defines here.
74567         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
74568         Port to z/OS.  Problem reported by Paul Gilmartin.
74569         Change local vars to use gl_ prefix rather than ac_.
74570         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
74571         with other defines.
74572         * modules/double-slash-root: New module.
74573         * modules/dirname (Files): Remove m4/double-slash-root.m4.
74574         (Depends-on): Add double-slash-root.
74575         * MODULES.html.sh (File system functions): Mention new module.
74576
74577 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
74578
74579         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
74580         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
74581         This is for the benefit of gzip, which doesn't do i18n.
74582
74583 2006-12-12  Jim Meyering  <jim@meyering.net>
74584
74585         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
74586         Reported by Andreas Schwab <schwab@suse.de>.
74587
74588 2006-12-12  Bruno Haible  <bruno@clisp.org>
74589
74590         Merge these changes.
74591         2006-09-05  Bruno Haible  <bruno@clisp.org>
74592         * lib/iconvme.c (iconv_string): No need to save and restore errno when
74593         iconv_alloc succeeded.
74594         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
74595         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
74596         test for " && dest " at the end - dest is always != NULL there. Call
74597         iconv with 4xNULL arguments initially, to reset the state. Call iconv
74598         with 2xNULL arguments, also to flush the state storage. Handle the
74599         IRIX iconv behaviour. Realloc the final result, to throw away unused
74600         memory.
74601
74602 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
74603
74604         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
74605         and fchmodat unconditionally, since glibc 2.4 has them.
74606         Problem reported by Arkadiusz Miskiewicz.
74607
74608 2006-12-10  Bruno Haible  <bruno@clisp.org>
74609
74610         * gnulib-tool (func_import): Show the include files only for those
74611         modules that are copied and specified.
74612         Reported by Karl Berry.
74613
74614 2006-12-08  Jim Meyering  <jim@meyering.net>
74615
74616         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
74617         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
74618
74619         * build-aux/announce-gen: Add two new options, both optional:
74620         --bootstrap-tools=TOOL_LIST
74621               a comma-separated list of tools, e.g.,
74622               autoconf,automake,bison,gnulib
74623         --gnulib-snapshot-date=DATE
74624               if gnulib is in the bootstrap tool list,
74625               then report this as the snapshot date.
74626               If not specified, use the current date/time.
74627               If you specify a date here, be sure it's UTC.
74628
74629 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74630
74631         * tests/test-argp-2.sh: Fix test to match actual output.
74632         (func_compare): Fix sed script to be portable.
74633
74634 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
74635
74636         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
74637         workaround for this case.  It is not autoconfigured now; offhand
74638         it's hard to see how to autoconfigure it.
74639
74640 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
74641
74642         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
74643         a directory that is about to be chowned.  Such a directory's
74644         initial file permissions should permit the owner only and this
74645         should not be changed until after the chown, since the group and
74646         other bits would be incorrect if they granted permission before
74647         the chown.
74648
74649         Fix porting problem for iswctype reported by Georg Schwarz in:
74650         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
74651         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
74652         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
74653         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
74654         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
74655
74656 2006-12-03  Jim Meyering  <jim@meyering.net>
74657
74658         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
74659         p->fts_statp may not yet be defined.
74660         (fts_read): Instead, set it in the caller, once p->fts_statp is
74661         sure to be defined, and corresponds to a top-level directory.
74662         This bug made du -x fail.  Here's the coreutils test case:
74663         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
74664         Reported by Mike Frysinger.
74665
74666 2006-12-01  Jim Meyering  <jim@meyering.net>
74667
74668         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
74669         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
74670         Reported by Simon Josefsson.
74671
74672 2006-11-30  Jim Meyering  <jim@meyering.net>
74673
74674         * m4/warning.m4: Use the all-permissive copyright notice
74675         recommended by RMS (rather than LGPL).
74676         * m4/vararrays.m4: Likewise.
74677         * m4/flexmember.m4: Likewise.
74678
74679 2006-11-29  Bruno Haible  <bruno@clisp.org>
74680
74681         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74682         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
74683         using +=.
74684         Reported by Simon Josefsson <simon@josefsson.org>.
74685
74686 2006-11-28  James Youngman <jay@gnu.org>
74687
74688         * README: Advise users that they might find the bug-gnulib@gnu.org
74689         and autotools-announce@gnu.org mailing lists useful.
74690
74691 2006-11-28  Bruno Haible  <bruno@clisp.org>
74692
74693         * m4/ptrdiff_max.m4: Remove file.
74694
74695 2006-11-21  Bruno Haible  <bruno@clisp.org>
74696
74697         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
74698         _AC_COMPUTE_INT.
74699         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74700         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
74701         _AC_COMPUTE_INT.
74702         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74703         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
74704         _AC_COMPUTE_INT.
74705         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74706
74707 2006-11-28  Jim Meyering  <jim@meyering.net>
74708
74709         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
74710         warning from "gcc -Wshadow" about shadowing the builtin.
74711
74712 2006-11-27  Bruno Haible  <bruno@clisp.org>
74713
74714         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
74715         _AC_COMPUTE_INT.
74716         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74717
74718 2006-11-27  Bruno Haible  <bruno@clisp.org>
74719             Paul Eggert  <eggert@cs.ucla.edu>
74720
74721         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
74722
74723 2006-11-26  Bruno Haible  <bruno@clisp.org>
74724
74725         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74726         noinst_LTLIBRARIES.
74727
74728 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74729             Bruno Haible  <bruno@clisp.org>
74730
74731         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
74732         if compiling with "gcc -ansi".
74733
74734 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74735
74736         Fix some incompatibilities with gcc -ansi -pedantic.
74737         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
74738         if compiling pedantically with GCC, unless it's C99 or later.
74739         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
74740         it mishandles gcc -ansi -pedantic as well.
74741         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
74742         if gcc -pedantic.
74743         * lib/regexec.c (check_node_accept_bytes): Don't use auto
74744         initializers for struct if -pedantic, unless it's C99 or later.
74745
74746 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
74747
74748         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
74749         Don't close an fd more than once. Identical atimes indicate
74750         success, not failure.
74751
74752 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
74753
74754         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
74755
74756 2006-11-23  Jim Meyering  <jim@meyering.net>
74757
74758         * build-aux/announce-gen: New file.  From coreutils.
74759
74760 2006-11-22  Jim Meyering  <jim@meyering.net>
74761
74762         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
74763         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
74764         (fts_read): Use a temporary to narrow the overused st_size member
74765         before using it in a switch statement.  Reported by Matthew Woehlke.
74766
74767         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
74768         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74769
74770 2006-11-20  Bruno Haible  <bruno@clisp.org>
74771
74772         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
74773         changequote instead of pairs of brackets.
74774         Reported by Andreas Schwab <schwab@suse.de>.
74775
74776 2006-11-21  Jim Meyering  <jim@meyering.net>
74777
74778         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
74779         so as to remain compatible with older compilers.
74780         Patch from Michael Deutschmann.
74781
74782 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74783
74784         * MODULES.html.sh (File system functions): Add openat.
74785
74786         * lib/openat.h (rpl_fstatat): New macro, if
74787         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
74788         (fstatat): Define to rpl_fstatat under the same conditions,
74789         unless COMPILING_FSTATAT.
74790         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
74791         seems to have the bug.
74792         * lib/fstatat.c: New file.
74793         * modules/openat (Files): Add it.
74794
74795 2006-11-20  Bruno Haible  <bruno@clisp.org>
74796
74797         * Makefile: New file.
74798
74799 2006-11-20  Jim Meyering  <jim@meyering.net>
74800
74801         The beginnings of syntax-related checks for gnulib.
74802         * lib/Makefile: New file.
74803         * lib/t-idcache: New script.  Ensure that the two halves of
74804         idcache.c stay in sync.
74805
74806         * lib/idcache.c: Adjust comments in user- and group- portions to
74807         be more accurate, and to be consistent with one another.
74808
74809 2006-11-20  Jim Meyering  <jim@meyering.net>
74810
74811         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
74812         continue using the flexible array member (thus, this module performs
74813         half as many malloc calls), with the addition that...
74814         (getgroup, getuser): Consistently record a non-match via an empty
74815         "name" string, and map an empty string match to a NULL return value.
74816         * modules/idcache (Depends-on): Re-add flexmember.
74817
74818         * lib/idcache.c (getuser): Remove all uses of the register keyword.
74819         (getuidbyname, getgroup, getgidbyname): Likewise.
74820
74821         Use cleaner syntax: NULL rather than 0.
74822         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
74823
74824 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74825
74826         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
74827         It mishandled the case where the group was missing.
74828         Problem reported by Greg Schafer.
74829         * modules/idcache: Likewise.
74830
74831 2006-11-18  Jim Meyering  <jim@meyering.net>
74832
74833         * check-module (%exempt_header): Add exception for some
74834         conditionally-included headers.
74835
74836         * modules/i-ring (Depends-on): Add verify.
74837         (License): Change to LGPL.
74838
74839 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74840
74841         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
74842         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
74843         and inttostr.h.  Use snprintf rather than uinttostr, so that
74844         LGPLed code doesn't depend on GPLed.
74845
74846 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74847
74848         * modules/inline (License): Change from GPL to LGPL.
74849
74850 2006-11-17  Jim Meyering  <jim@meyering.net>
74851
74852         * modules/d-type (License): Switch to LGPL.
74853
74854 2006-11-15  Bruno Haible  <bruno@clisp.org>
74855
74856         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
74857
74858 2006-11-15  Eric Blake  <ebb9@byu.net>
74859
74860         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
74861         the module dependency.
74862
74863 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74864             Bruno Haible  <bruno@clisp.org>
74865
74866         * gnulib-tool (func_create_testdir): Add license consistency check.
74867
74868 2006-11-15  Eric Blake  <ebb9@byu.net>
74869
74870         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
74871         random "(cached)" in configure output.
74872
74873 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74874
74875         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
74876         test for conforming inttypes.h is both announced and cached.
74877
74878         * MODULES.html.sh (seen_modules, seen_files): New variables.
74879         (func_module): Rewrite to use a few less gnulib-tool and sed
74880         invocations.  Avoid a couple of quadratic algorithms for ...
74881         (missed_modules, missed_files): ... these, with ...
74882         (func_append, func_tmpdir): ... these new functions, from
74883         gnulib-tool.  Analogously, install traps for cleanup.
74884
74885         * tests/test-gc.c (main): Remove unused variables.
74886         * tests/test-read-file.c: Include stdlib.h, for 'free'.
74887
74888 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
74889
74890         * modules/inttostr (License): Change to LGPL.
74891
74892 2006-11-14  Eric Blake  <ebb9@byu.net>
74893
74894         * modules/tempname (License): Change to LGPL.
74895
74896 2006-11-14  Eric Blake  <ebb9@byu.net>
74897
74898         * doc/functions.texi (Function Portability): *printf functions on
74899         Cygwin now understand all POSIX size specifiers.
74900
74901 2006-11-14  Bruno Haible  <bruno@clisp.org>
74902
74903         * modules/c-ctype (License): Change to LGPL.
74904
74905 2006-11-12  Bruno Haible  <bruno@clisp.org>
74906
74907         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
74908         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
74909         for GNOME libraries, for which the include files are installed in
74910         subdirectories of $prefix/include.
74911
74912 2006-11-12  Bruno Haible  <bruno@clisp.org>
74913
74914         * m4/lib-link.m4: Require at least autoconf-2.54.
74915         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
74916         name to underscores for the --with option.
74917
74918 2006-11-13  Bruno Haible  <bruno@clisp.org>
74919
74920         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
74921         the tests directory.
74922         Reported by Ralf Wildenhues.
74923
74924 2006-11-13  Bruno Haible  <bruno@clisp.org>
74925
74926         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
74927         (func_emit_initmacro_end): Undo the override here.
74928         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
74929         Works around the famous automake error in coreutils.
74930
74931 2006-11-13  Eric Blake  <ebb9@byu.net>
74932
74933         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
74934         element, not its node.
74935
74936 2006-11-12  Bruno Haible  <bruno@clisp.org>
74937
74938         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
74939         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
74940
74941 2006-11-12  Bruno Haible  <bruno@clisp.org>
74942
74943         * gnulib-tool: New option --local-symlink.
74944         (func_usage): Document it.
74945         (lsymbolic): New variable.
74946         (func_import, func_create_testdir): If --symlink was not specified,
74947         test whether --local-symlink was specified and the file comes from
74948         the local_gnulib_dir.
74949
74950 2006-11-12  Bruno Haible  <bruno@clisp.org>
74951
74952         * gnulib-tool (func_ln): New function.
74953         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
74954
74955 2006-11-12  Bruno Haible  <bruno@clisp.org>
74956
74957         Finish support for source files in subdirectories.
74958         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
74959         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
74960         AUTOMAKE_OPTIONS.
74961         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
74962
74963 2006-11-12  Bruno Haible  <bruno@clisp.org>
74964
74965         * gnulib-tool (func_get_automake_snippet): Synthesize also an
74966         EXTRA_lib_SOURCES augmentation.
74967         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
74968
74969 2006-11-12  Jim Meyering  <jim@meyering.net>
74970
74971         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
74972         file descriptors.  This also averts a failure on systems with
74973         native openat support when a traversed directory lacks "x" access.
74974         * lib/fts_.h: Include "i-ring.h"
74975         (struct FTS) [fts_fd_ring]: New member.
74976         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
74977         (FCHDIR): Add parentheses.
74978         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
74979         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
74980         When descending, rather than simply closing the previous
74981         fts_cwd_fd value, push that file descriptor onto the ring.
74982         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
74983         (fts_open): Initialize the new fd_ring member.
74984         (fts_close): Clear the ring.
74985         (fts_safe_changedir): When possible, use our new fd_ring to skip
74986         the diropen and fstat and dev/ino comparison that would normally
74987         accompany a virtual `chdir ("..")'.
74988
74989         * modules/fts (Depends-on): Add i-ring.
74990         * modules/i-ring: New module.
74991         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
74992         * m4/i-ring.m4: New file.
74993
74994 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74995
74996         * gnulib-tool (func_create_testdir): Fix replacement of
74997         `build-aux' in configure.ac.  Run autotools in gltests
74998         subdirectory.
74999         (func_create_testdir, func_create_megatestdir, test): There is
75000         no need for '--force' in most autotool invocations in a new
75001         tree.  Actually fail the whole test if any of the tools, or the
75002         configure or make stages fail.
75003
75004         Sync from Automake.
75005         * build-aux/gnupload: Revert last change.  Add pointer to upload
75006         instructions of the GNU Maintenance Instructions.
75007         Suggestion by Karl Berry.
75008
75009 2006-11-10  Jim Meyering  <jim@meyering.net>
75010
75011         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
75012
75013 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75014
75015         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
75016         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
75017         (bind_textdomain_codeset) [! ENABLE_NLS]:
75018         Evaluate all the arguments.  That way, callers get compatible behavior
75019         if the arguments have side effects.  Also, it avoids some GCC
75020         diagnostics in some cases; Joel E. Denny reported problems when Bison
75021         was configured with --enable-gcc-warnigs.
75022
75023 2006-11-10  Jim Meyering  <jim@meyering.net>
75024
75025         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
75026         relevant options in CFLAGS (like -O, -fno-inline) are taken into
75027         account.
75028
75029 2006-11-10  Jim Meyering  <jim@meyering.net>
75030
75031         * modules/inline: New file/module.
75032         * modules/xalloc (Files): Remove m4/inline.m4.
75033         (Depends-on): Add inline, instead.
75034         * modules/oset: Likewise.
75035         * modules/list: Likewise.
75036
75037 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75038
75039         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
75040         Problem reported by Matthew Woehlke.
75041
75042 2006-11-09  Bruno Haible  <bruno@clisp.org>
75043
75044         * lib/tempname.c (gen_tempname): Remove variant that invokes
75045         __gen_tempname.
75046         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
75047         __gen_tempname.
75048
75049 2006-11-08  Bruno Haible  <bruno@clisp.org>
75050
75051         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
75052         to 'yes' instead of 'cross-compiling'.
75053
75054 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
75055
75056         * lib/quotearg.h (quotearg_free): New decl.
75057         * lib/quotearg.c (quotearg_free): New function.
75058         (slot0, nslots, slotvec0, slotvec):
75059         Now file-scope so that quotearg_free can get at them.
75060
75061 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75062
75063         Sync from Automake.
75064         * build-aux/gnupload: Add missing 'gnu' to example URL.
75065         Report by Karl Berry.
75066
75067 2006-11-08  Bruno Haible  <bruno@clisp.org>
75068
75069         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
75070         Suggested by Paul Eggert.
75071
75072 2006-11-08  Jim Meyering  <jim@meyering.net>
75073
75074         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
75075         It's already included if !_LIBC.
75076         (fts_safe_changedir): Add a comment.
75077
75078 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75079
75080         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
75081         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
75082         Matthew Woehlke.
75083
75084         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
75085         definitions up, to avoid colliding with change below.
75086         (static_inline) [HAVE_INLINE]: New macro.
75087         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
75088         Provide extern decls when !HAVE_INLINE.  Do not define unless
75089         static_inline is defined, either by us or by xmalloc.c.  Use
75090         static_inline rather than static inline.
75091         (XCALLOC): Optimize sizeof(T) = 1 case.
75092         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
75093
75094 2006-11-07  Bruno Haible  <bruno@clisp.org>
75095
75096         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
75097         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
75098         AC_C_INLINE.
75099         * modules/xalloc (Files): Add m4/inline.m4.
75100
75101 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75102
75103         * README: Fix typo.
75104         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
75105         (Miscellanous Notes): ...from this.
75106
75107 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75108
75109         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
75110         Mention that offsetof should be used instead of sizeof.
75111         From Bruno Haible.
75112
75113 2006-11-07  Bruno Haible  <bruno@clisp.org>
75114
75115         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
75116
75117 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75118
75119         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75120         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
75121         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75122         (gl_tree_add_before, gl_tree_add_after):
75123         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
75124         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
75125         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
75126         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
75127         (gl_linked_add_after, gl_linked_add_at): Likewise.
75128         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
75129         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75130         (gl_tree_add_before, gl_tree_add_after): Likewise.
75131         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
75132         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
75133         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
75134
75135 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75136
75137         * lib/gl_oset.h: Use C comment style, not C++ comment style.
75138
75139 2006-11-06  Bruno Haible  <bruno@clisp.org>
75140
75141         * m4/inline.m4: New file.
75142         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
75143         * modules/list (Files): Add m4/inline.m4.
75144         * modules/oset (Files): Likewise.
75145
75146 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75147
75148         * lib/idcache.c: Include <stddef.h>, for offsetof.
75149         (struct userid.name): Change from char * to a flexible array member.
75150         All uses changed.
75151         * modules/idcache (Depends-on): Add flexmember.
75152
75153         * MODULES.html.sh (Core language properties): New module flexmember.
75154         * modules/flexmember, m4/flexmember.m4: New files.
75155
75156         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
75157         inline functions that are identical with the old xnmalloc_inline,
75158         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
75159         that we can avoid some unnecessary integer multiplications and
75160         divisions in the common case where the element size is known at
75161         compile time.
75162         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
75163         needed.
75164         (xnboundedmalloc): Remove.
75165         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
75166         arguments, for consistency with rest of this header.
75167         (xcharalloc): Rewrite using XNMALLOC.
75168         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
75169         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
75170         versions have been moved to lib/xalloc.h and renamed to be the
75171         non-*_inline versions.
75172         (xmalloc, xrealloc): Implement without reference to the xnmalloc
75173         and xnrealloc functions, since those functions are now inline and
75174         now call us.
75175         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
75176         renaming described above.
75177         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
75178         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
75179         captures the dependency in AC_C_INLINE.
75180
75181         New module canonicalize-lgpl, proposed by Charles Wilson in
75182         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
75183         with a few small changes afterwards.
75184         * MODULES.html.sh (File system functions): New module
75185         canonicalize-lgpl.
75186         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
75187         and canonicalize_file_name.
75188         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
75189         * modules/canonicalize-lgpl: New files.
75190
75191 2006-11-05  Bruno Haible  <bruno@clisp.org>
75192
75193         * gnulib-tool (func_import, func_create_testdir): Create directories
75194         also for files in subdirectories of lib/.
75195
75196 2006-11-05  Bruno Haible  <bruno@clisp.org>
75197
75198         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
75199         ANSI C compliant.
75200
75201 2006-11-03  Bruno Haible  <bruno@clisp.org>
75202
75203         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75204         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
75205         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
75206         (xnboundedmalloc): New inline function.
75207         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
75208         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
75209         xmalloc.
75210         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
75211         xmalloc.
75212         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
75213         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
75214         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
75215         xmalloc.
75216         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75217         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
75218         xmalloc.
75219         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
75220         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75221         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
75222         xmalloc.
75223         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75224         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
75225         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75226         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
75227         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
75228         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
75229         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
75230
75231 2006-11-03  Bruno Haible  <bruno@clisp.org>
75232
75233         * lib/c-ctype.h [C++]: Define functions without name mangling.
75234         * lib/fwriteerror.h [C++]: Likewise.
75235         * lib/gcd.h [C++]: Likewise.
75236         * lib/linebreak.h [C++]: Likewise.
75237
75238 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75239
75240         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
75241         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
75242         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
75243         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75244         Check for functions and headers just once.
75245         Check for declaration of canonicalize_file_name.
75246         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
75247
75248 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75249
75250         * gnulib-tool (func_import): Fix typo in actioncmd.
75251
75252 2006-11-02  Bruno Haible  <bruno@clisp.org>
75253
75254         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
75255         newline sequence in the Makefile.am snippet as a space, like "make"
75256         does.
75257         Reported by Roger Persson <perrog@gmail.com>.
75258
75259 2006-11-01  Bruno Haible  <bruno@clisp.org>
75260
75261         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
75262         already declared in <string.h>.
75263         * lib/strcase.h (strncasecmp): Don't declare it if yes.
75264
75265 2006-11-01  Bruno Haible  <bruno@clisp.org>
75266
75267         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
75268         * lib/strcase.h: Include <string.h>.
75269         (strcasecmp): Define to rpl_strcasecmp here.
75270
75271 2006-11-01  Bruno Haible  <bruno@clisp.org>
75272
75273         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
75274
75275 2006-11-01  Eric Blake  <ebb9@byu.net>
75276
75277         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
75278
75279         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
75280
75281 2006-10-29  Bruno Haible  <bruno@clisp.org>
75282
75283         Make it compile in C++ mode.
75284         * lib/full-write.c (full_rw): Add a cast.
75285
75286 2006-11-01  Bruno Haible  <bruno@clisp.org>
75287
75288         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
75289         be POSIX compliant.
75290         Reported by Roger Persson <perrog@gmail.com>.
75291
75292 2006-11-01  Eric Blake  <ebb9@byu.net>
75293
75294         * lib/getopt_.h: Fix comments.
75295
75296 2006-10-31  Eric Blake  <ebb9@byu.net>
75297
75298         * modules/tmpdir (Depends-on): Add sys_stat.
75299         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
75300         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
75301         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
75302         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
75303         tempname.
75304
75305 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
75306
75307         Avoid some C++ diagnostics reported by Bruno Haible.
75308         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
75309         xmalloc.
75310         (quotearg_alloc): Use xcharalloc rather than xmalloc.
75311         (struct slotvec): Move to top level.
75312         (quotearg_n_options): Rewrite to avoid xmalloc.
75313         * lib/xalloc.h (xcharalloc): New function.
75314         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
75315         [defined __cplusplus]: Add function template that provides result
75316         type propagation.  This part of the change is from Bruno Haible.
75317
75318 2006-10-29  Bruno Haible  <bruno@clisp.org>
75319
75320         Make it compile in C++ mode.
75321         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
75322         * lib/strnlen1.c (strnlen1): Cast memchr result.
75323         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
75324         * lib/clean-temp.c (string_equals, string_hash): Add casts.
75325         (create_temp_dir): Rename local variable 'template'.
75326         (compile_csharp_using_sscli): Add cast.
75327         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
75328         * lib/findprog.c (find_in_path): Likewise.
75329         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
75330         * lib/wait-process.c (register_slave_subprocess): Likewise.
75331
75332 2006-10-22  Bruno Haible  <bruno@clisp.org>
75333
75334         * modules/tsearch: New file.
75335         * lib/tsearch.h: New file.
75336         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
75337         * m4/tsearch.m4: New file.
75338         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
75339
75340 2006-10-29  Eric Blake  <ebb9@byu.net>
75341
75342         * lib/arcfour.c: Assume config.h.
75343         * lib/arctwo.c: Likewise.
75344         * lib/base64.c: Likewise.
75345         * lib/check-version.c: Likewise.
75346         * lib/crc.c: Likewise.
75347         * lib/des.c: Likewise.
75348         * lib/gc-gnulib.c: Likewise.
75349         * lib/gc-libgcrypt.c: Likewise.
75350         * lib/gc-pbkdf2-sha1.c: Likewise.
75351         * lib/getaddrinfo.c: Likewise.
75352         * lib/getdelim.c: Likewise.
75353         * lib/getline.c: Likewise.
75354         * lib/hmac-md5.c: Likewise.
75355         * lib/hmac-sha1.c: Likewise.
75356         * lib/iconvme.c: Likewise.
75357         * lib/md2.c: Likewise.
75358         * lib/md4.c: Likewise.
75359         * lib/memxor.c: Likewise.
75360         * lib/read-file.c: Likewise.
75361         * lib/readline.c: Likewise.
75362         * lib/rijndael-alg-fst.c: Likewise.
75363         * lib/rijndael-api-fst.c: Likewise.
75364         * lib/xgetdomainname.c: Likewise.
75365
75366 2006-10-28  Eric Blake  <ebb9@byu.net>
75367
75368         * lib/xstrndup.c: Assume config.h.
75369
75370 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75371
75372         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
75373         stat-macros.h is now for our own macros, whereas stat_h is for
75374         macros in the <sys/stat.h> name space.
75375         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
75376         (STAT_MACROS_H): Remove.
75377         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
75378         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
75379         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
75380         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
75381         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
75382         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
75383         Move these macros to ...
75384         * lib/stat_.h: here.  Don't include stat-macros.h.
75385         * lib/canonicalize.c: Don't include stat-macros.h.
75386         * lib/chown.c: Likewise.
75387         * lib/euidaccess.c: Likewise.
75388         * lib/file-type.c: Likewise.
75389         * lib/filemode.c: Likewise.
75390         * lib/glob.c: Likewise.
75391         * lib/isapipe.c: Likewise.
75392         * lib/lchown.c: Likewise.
75393         * lib/lstat.c: Likewise.
75394         * lib/mkdir-p.c: Likewise.
75395         * lib/rmdir.c: Likewise.
75396         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
75397         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
75398         unless mkdir isn't declared, to speed up 'configure'.
75399         Always create sys/stat.h, since it's unlikely any real sys/stat.h
75400         would define all the S_* symbols.
75401         * modules/canonicalize (Depends-on):
75402         Depend on sys_stat, not stat-macros.
75403         * modules/chown: Likewise.
75404         * modules/euidaccess: Likewise.
75405         * modules/filemode: Likewise.
75406         * modules/file-type: Likewise.
75407         * modules/glob: Likewise.
75408         * modules/isapipe: Likewise.
75409         * modules/lchown: Likewise.
75410         * modules/lstat: Likewise.
75411         * modules/mkancesdirs: Likewise.
75412         * modules/rmdir: Likewise.
75413         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
75414         * modules/modechange: Likewise.
75415         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
75416         (configure.ac): Remove gl_STAT_MACROS.
75417         * modules/sys_stat (Depends-on): Remove stat-macros.
75418
75419 2006-10-27  Bruno Haible  <bruno@clisp.org>
75420
75421         * m4/signed.m4: Remove file.
75422         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
75423         invocation.
75424         * modules/vasnprintf (Files): Remove m4/signed.m4.
75425
75426 2006-10-27  Bruno Haible  <bruno@clisp.org>
75427
75428         Update to GNU gettext 0.16.
75429         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
75430         m4/inttypes-h.m4, m4/signed.m4.
75431         * m4/gettext.m4: Update to GNU gettext 0.16.
75432         * m4/intl.m4: New file, from GNU gettext.
75433         * m4/intldir.m4: New file, from GNU gettext.
75434         * config/srclist.txt: Update
75435
75436 2006-10-27  Eric Blake  <ebb9@byu.net>
75437
75438         * MODULES.html.sh: Document tempname.
75439         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
75440         dependencies.
75441         (Files): Move lib/tempname.c...
75442         * modules/tempname: ...to this new module.
75443         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
75444         (gl_PREREQ_TEMPNAME): Move...
75445         * m4/tempname.m4: ...to this new file.
75446         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
75447         * modules/sys_stat (Depends-on): Add stat-macros.
75448         * lib/stat_.h (includes): Pick up stat macros.
75449         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
75450         if stat macros are broken.
75451         * lib/tempname.c (includes): No need to include "stat-macros.h".
75452         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
75453         (direxists, __path_search) [!_LIBC]: Don't compile these in
75454         gnulib; the tmpdir module covers that.
75455         * lib/tempname.h: New file.
75456
75457 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
75458
75459         * COPYING: Explain how gnulib-tool converts licence headers.
75460         Almost all wording by Eric Blake.
75461
75462 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
75463
75464         * lib/mbchar.h (is_basic_table): Make read-only.
75465         * lib/mbchar.c (is_basic_table): Likewise.
75466         Reported by John Darrington.
75467
75468 2006-10-25  Bruno Haible  <bruno@clisp.org>
75469
75470         * lib/progname.h (set_program_name): Undefine before defining.
75471
75472 2006-10-25  Bruno Haible  <bruno@clisp.org>
75473
75474         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
75475         false for non-gcc C++ compilers.
75476         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
75477
75478 2006-10-24  Bruno Haible  <bruno@clisp.org>
75479
75480         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
75481         iconv implementations like Irix iconv.
75482
75483 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75484
75485         * modules/vararrays: New file.
75486         * m4/vararrays.m4: New file, taken from diffutils.
75487         * MODULES.html.sh: New module vararrays.
75488
75489 2006-10-24  Karl Berry  <karl@gnu.org>
75490
75491         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
75492         Don't call GNU Unix.
75493
75494 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75495
75496         * users.txt: Add Libtool.
75497
75498         Sync from Libtool:
75499
75500         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75501
75502         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
75503         to gnulib's policy of including config.h unconditionally.
75504
75505 2006-10-24  Bruno Haible  <bruno@clisp.org>
75506
75507         * modules/wcwidth (Files): Add m4/wint_t.m4.
75508         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
75509         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
75510
75511 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75512
75513         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
75514         to pacify GCC with some -W flags enabled.  Problem reported by
75515         Bruno Haible.
75516
75517 2006-10-24  Jim Meyering  <jim@meyering.net>
75518
75519         * MODULES.html.sh: Remove uinttostr.  It's not a module.
75520         Reported by Karl Berry.
75521
75522 2006-10-23  Bruno Haible  <bruno@clisp.org>
75523
75524         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
75525
75526 2006-10-24  Bruno Haible  <bruno@clisp.org>
75527
75528         * lib/gl_list.h: Use C comment style, not C++ comment style.
75529
75530 2006-10-23  Eric Blake  <ebb9@byu.net>
75531
75532         * lib/getaddrinfo.c (includes): Add missing include.
75533
75534 2006-10-23  Bruno Haible  <bruno@clisp.org>
75535             Paul Eggert  <eggert@cs.ucla.edu>
75536
75537         Ability to rename obstack_free.
75538         * lib/obstack.h (__obstack_free): New macro. Declare instead of
75539         obstack_free.
75540         (obstack_free): Invoke the __obstack_free macro.
75541         * lib/obstack.c (obstack_free): Use __obstack_free macro.
75542
75543 2006-10-23  Bruno Haible  <bruno@clisp.org>
75544             Paul Eggert  <eggert@cs.ucla.edu>
75545
75546         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
75547         __argc, __argv from the declaration. (They are defined as macros on
75548         mingw.)
75549
75550 2006-10-22  Bruno Haible  <bruno@clisp.org>
75551
75552         * doc/gnulib-intro.texi: New file.
75553         * doc/gnulib.texi: Include it.
75554
75555 2006-10-21  Bruno Haible  <bruno@clisp.org>
75556
75557         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
75558         "Introduction", "Miscellanous Notes", "Particular Modules".
75559
75560 2006-10-21  Bruno Haible  <bruno@clisp.org>
75561
75562         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75563         Change mostlyclean-local rule to avoid sh syntax error from bash
75564         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
75565
75566 2006-10-23  Jim Meyering  <jim@meyering.net>
75567
75568         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
75569         in place of snprintf.
75570
75571         * modules/inttostr (Files): Add lib/uinttostr.c.
75572         * lib/uinttostr.c (inttostr): New file/function.
75573         * lib/inttostr.h (uinttostr): Declare.
75574         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
75575         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75576         Add uinttostr.
75577         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
75578
75579 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75580
75581         * lib/canonicalize.c (ELOOP): Define if not already defined.
75582         Problem reported by Bruno Haible in
75583         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
75584
75585 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75586
75587         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
75588         Problem reported by Perry Smith and Ville Laurikari.
75589
75590         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
75591         uses.
75592
75593 2006-10-19  Bruno Haible  <bruno@clisp.org>
75594
75595         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
75596         for mingw.
75597
75598 2006-10-19  Bruno Haible  <bruno@clisp.org>
75599
75600         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
75601         Needed for mingw.
75602
75603 2006-10-19  Bruno Haible  <bruno@clisp.org>
75604
75605         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
75606
75607 2006-10-19  Bruno Haible  <bruno@clisp.org>
75608
75609         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
75610         it.
75611
75612 2006-10-19  Bruno Haible  <bruno@clisp.org>
75613
75614         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
75615         invocation.
75616
75617 2006-10-19  Bruno Haible  <bruno@clisp.org>
75618
75619         * gnulib-tool (func_create_testdir): Don't include ftruncate and
75620         mountlist by default.
75621
75622 2006-10-16  Bruno Haible  <bruno@clisp.org>
75623
75624         * lib/c-strstr.c: Include c-strstr.h.
75625
75626 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75627
75628         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
75629         in a slash.
75630
75631 2006-10-18  Bruno Haible  <bruno@clisp.org>
75632
75633         * lib/lock.h [C++]: Wrap definitions in extern "C".
75634
75635 2006-10-18  Bruno Haible  <bruno@clisp.org>
75636
75637         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
75638         gl_LIBOBJS list.
75639
75640 2006-10-18  Bruno Haible  <bruno@clisp.org>
75641
75642         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
75643
75644 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
75645
75646         * lib/xstrtol.h: Include gettext.h.
75647         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
75648         Problem reported by Eric Blake.
75649         * modules/xstrtol (Depends-on): Add gettext-h.
75650
75651 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
75652
75653         * lib/strftime.c (advance): New macro.
75654         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
75655         incomplete type, so you can't add 0 to it.  Problem and patch
75656         reported by Eelco Dolstra for dietlibc.
75657
75658 2006-10-18  Jim Meyering  <jim@meyering.net>
75659
75660         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
75661         type for a local, and rename it: s/up/user_proc/.
75662
75663 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
75664
75665         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
75666         READ_UTMP_USER_PROCESS.
75667         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
75668
75669 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75670
75671         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
75672         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
75673
75674 2006-10-17  Eric Blake  <ebb9@byu.net>
75675
75676         * lib/sigprocmask.c (sigprocmask): Fix typo.
75677
75678         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
75679
75680         * modules/clean-temp (Makefile.am): Don't add to make output...
75681         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
75682         config.h.
75683
75684 2006-10-17  Bruno Haible  <bruno@clisp.org>
75685
75686         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
75687         differently if DEFAULT_TEXT_DOMAIN is set.
75688
75689 2006-10-16  Bruno Haible  <bruno@clisp.org>
75690
75691         * lib/clean-temp.c: Include fwriteerror.h.
75692
75693 2006-10-16  Bruno Haible  <bruno@clisp.org>
75694
75695         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
75696
75697 2006-10-16  Bruno Haible  <bruno@clisp.org>
75698
75699         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
75700         * lib/sigprocmask.h: Include <sys/types.h>.
75701         (sigset_t): Use the system's definition if present.
75702
75703 2006-10-17  Eric Blake  <ebb9@byu.net>
75704
75705         * lib/xvasprintf.c (includes): Assume config.h.
75706         * lib/xasprintf.c (includes): Likewise.
75707
75708 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
75709
75710         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
75711         at least as wide as intmax_t.
75712
75713 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
75714
75715         (Imported from Automake.)
75716         * build-aux/gnupload: Update to version 1.1 of directive file.
75717
75718 2006-10-16  Eric Blake  <ebb9@byu.net>
75719
75720         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
75721         match Automake 1.10a.
75722
75723 2006-10-14  Bruno Haible  <bruno@clisp.org>
75724
75725         * modules/sigprocmask: New file.
75726         * lib/sigprocmask.h: New file.
75727         * lib/sigprocmask.c: New file.
75728         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
75729         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
75730         request sigprocmask.o.
75731         (gl_PREREQ_SIGPROCMASK): New macro.
75732         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
75733         (Depends-on): Add sigprocmask.
75734         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
75735         gt_SIGNALBLOCKING. Test for 'raise' only once.
75736         * lib/fatal-signal.c: Include sigprocmask.h.
75737         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
75738         unblock_fatal_signals): Define always.
75739         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75740         sigprocmask.
75741
75742 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75743
75744         Sync from Automake.
75745         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
75746         which incorrectly sets the mode of an existing destination
75747         directory.  In some cases the unpatched install-sh could do the
75748         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
75749         system.  We hope this is rare in practice, but it's clearly worth
75750         fixing.  Problem reported by Alex Unleashed in
75751         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
75752         Also, don't bother to check for -m bugs unless we're using -m;
75753         suggested by Stepan Kasal.
75754
75755 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75756
75757         Sync from Automake.
75758         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
75759         `-c' flag, so they appear at the same position as in %FASTDEP%
75760         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
75761         which ignores unknown options only after the first non-option.
75762         Bug report against M4 by Nelson H. F. Beebe.
75763
75764 2006-10-13  Jim Meyering  <jim@meyering.net>
75765
75766         Fix a bug in yesterday's change.
75767         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
75768         p->fts_statp->st_dev would be used uninitialized.
75769         Ensures that we always call fts_stat on the very first entry.
75770         Miklos Szeredi reported that find -xdev stopped working.
75771
75772 2006-10-12  Bruno Haible  <bruno@clisp.org>
75773
75774         * gnulib-tool (func_get_automake_snippet): Append an automatically
75775         computed EXTRA_DIST augmentation.
75776         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
75777         * modules/alloca-opt (Makefile.am): Likewise.
75778         * modules/allocsa (Makefile.am): Likewise.
75779         * modules/arcfour (Makefile.am): Likewise.
75780         * modules/arctwo (Makefile.am): Likewise.
75781         * modules/argmatch (Makefile.am): Likewise.
75782         * modules/argz (Makefile.am): Likewise.
75783         * modules/atexit (Makefile.am): Likewise.
75784         * modules/backupfile (Makefile.am): Likewise.
75785         * modules/byteswap (Makefile.am): Likewise.
75786         * modules/c-strtod (Makefile.am): Likewise.
75787         * modules/c-strtold (Makefile.am): Likewise.
75788         * modules/calloc (Makefile.am): Likewise.
75789         * modules/canon-host (Makefile.am): Likewise.
75790         * modules/canonicalize (Makefile.am): Likewise.
75791         * modules/chdir-long (Makefile.am): Likewise.
75792         * modules/chdir-safer (Makefile.am): Likewise.
75793         * modules/check-version (Makefile.am): Likewise.
75794         * modules/chown (Makefile.am): Likewise.
75795         * modules/cloexec (Makefile.am): Likewise.
75796         * modules/close-stream (Makefile.am): Likewise.
75797         * modules/closeout (Makefile.am): Likewise.
75798         * modules/crc (Makefile.am): Likewise.
75799         * modules/csharpexec (Makefile.am): Likewise.
75800         * modules/cycle-check (Makefile.am): Likewise.
75801         * modules/des (Makefile.am): Likewise.
75802         * modules/dev-ino (Makefile.am): Likewise.
75803         * modules/dirfd (Makefile.am): Likewise.
75804         * modules/dirname (Makefile.am): Likewise.
75805         * modules/dup2 (Makefile.am): Likewise.
75806         * modules/eealloc (Makefile.am): Likewise.
75807         * modules/error (Makefile.am): Likewise.
75808         * modules/euidaccess (Makefile.am): Likewise.
75809         * modules/exclude (Makefile.am): Likewise.
75810         * modules/exitfail (Makefile.am): Likewise.
75811         * modules/fcntl-safer (Makefile.am): Likewise.
75812         * modules/fcntl (Makefile.am): Likewise.
75813         * modules/file-type (Makefile.am): Likewise.
75814         * modules/fileblocks (Makefile.am): Likewise.
75815         * modules/filemode (Makefile.am): Likewise.
75816         * modules/filenamecat (Makefile.am): Likewise.
75817         * modules/fnmatch (Makefile.am): Likewise.
75818         * modules/fopen-safer (Makefile.am): Likewise.
75819         * modules/fpending (Makefile.am): Likewise.
75820         * modules/fprintftime (Makefile.am): Likewise.
75821         * modules/free (Makefile.am): Likewise.
75822         * modules/fsusage (Makefile.am): Likewise.
75823         * modules/ftruncate (Makefile.am): Likewise.
75824         * modules/fts (Makefile.am): Likewise.
75825         * modules/gc-arcfour (Makefile.am): Likewise.
75826         * modules/gc-des (Makefile.am): Likewise.
75827         * modules/gc-hmac-md5 (Makefile.am): Likewise.
75828         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
75829         * modules/gc-md4 (Makefile.am): Likewise.
75830         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75831         * modules/gc-sha1 (Makefile.am): Likewise.
75832         * modules/gc (Makefile.am): Likewise.
75833         * modules/getaddrinfo (Makefile.am): Likewise.
75834         * modules/getcwd (Makefile.am): Likewise.
75835         * modules/getdelim (Makefile.am): Likewise.
75836         * modules/getdomainname (Makefile.am): Likewise.
75837         * modules/getgroups (Makefile.am): Likewise.
75838         * modules/gethostname (Makefile.am): Likewise.
75839         * modules/gethrxtime (Makefile.am): Likewise.
75840         * modules/getline (Makefile.am): Likewise.
75841         * modules/getloadavg (Makefile.am): Likewise.
75842         * modules/getlogin_r (Makefile.am): Likewise.
75843         * modules/getndelim2 (Makefile.am): Likewise.
75844         * modules/getopt (Makefile.am): Likewise.
75845         * modules/getpagesize (Makefile.am): Likewise.
75846         * modules/getpass-gnu (Makefile.am): Likewise.
75847         * modules/getpass (Makefile.am): Likewise.
75848         * modules/getsubopt (Makefile.am): Likewise.
75849         * modules/gettime (Makefile.am): Likewise.
75850         * modules/gettimeofday (Makefile.am): Likewise.
75851         * modules/getugroups (Makefile.am): Likewise.
75852         * modules/getusershell (Makefile.am): Likewise.
75853         * modules/glob (Makefile.am): Likewise.
75854         * modules/group-member (Makefile.am): Likewise.
75855         * modules/hard-locale (Makefile.am): Likewise.
75856         * modules/hash (Makefile.am): Likewise.
75857         * modules/hmac-md5 (Makefile.am): Likewise.
75858         * modules/hmac-sha1 (Makefile.am): Likewise.
75859         * modules/human (Makefile.am): Likewise.
75860         * modules/idcache (Makefile.am): Likewise.
75861         * modules/imaxabs (Makefile.am): Likewise.
75862         * modules/imaxdiv (Makefile.am): Likewise.
75863         * modules/inet_ntop (Makefile.am): Likewise.
75864         * modules/inet_pton (Makefile.am): Likewise.
75865         * modules/intprops (Makefile.am): Likewise.
75866         * modules/inttostr (Makefile.am): Likewise.
75867         * modules/inttypes (Makefile.am): Likewise.
75868         * modules/isapipe (Makefile.am): Likewise.
75869         * modules/javaversion (Makefile.am): Likewise.
75870         * modules/lchmod (Makefile.am): Likewise.
75871         * modules/lchown (Makefile.am): Likewise.
75872         * modules/localcharset (Makefile.am): Likewise.
75873         * modules/long-options (Makefile.am): Likewise.
75874         * modules/lstat (Makefile.am): Likewise.
75875         * modules/malloc (Makefile.am): Likewise.
75876         * modules/mathl (Makefile.am): Likewise.
75877         * modules/mbchar (Makefile.am): Likewise.
75878         * modules/md2 (Makefile.am): Likewise.
75879         * modules/md4 (Makefile.am): Likewise.
75880         * modules/md5 (Makefile.am): Likewise.
75881         * modules/memcasecmp (Makefile.am): Likewise.
75882         * modules/memchr (Makefile.am): Likewise.
75883         * modules/memcmp (Makefile.am): Likewise.
75884         * modules/memcoll (Makefile.am): Likewise.
75885         * modules/memcpy (Makefile.am): Likewise.
75886         * modules/memmem (Makefile.am): Likewise.
75887         * modules/memmove (Makefile.am): Likewise.
75888         * modules/mempcpy (Makefile.am): Likewise.
75889         * modules/memrchr (Makefile.am): Likewise.
75890         * modules/memset (Makefile.am): Likewise.
75891         * modules/memxor (Makefile.am): Likewise.
75892         * modules/mkancesdirs (Makefile.am): Likewise.
75893         * modules/mkdir-p (Makefile.am): Likewise.
75894         * modules/mkdir (Makefile.am): Likewise.
75895         * modules/mkdtemp (Makefile.am): Likewise.
75896         * modules/mkstemp (Makefile.am): Likewise.
75897         * modules/mktime (Makefile.am): Likewise.
75898         * modules/modechange (Makefile.am): Likewise.
75899         * modules/mountlist (Makefile.am): Likewise.
75900         * modules/nanosleep (Makefile.am): Likewise.
75901         * modules/obstack (Makefile.am): Likewise.
75902         * modules/openat (Makefile.am): Likewise.
75903         * modules/pagealign_alloc (Makefile.am): Likewise.
75904         * modules/pathmax (Makefile.am): Likewise.
75905         * modules/physmem (Makefile.am): Likewise.
75906         * modules/poll (Makefile.am): Likewise.
75907         * modules/posixtm (Makefile.am): Likewise.
75908         * modules/posixver (Makefile.am): Likewise.
75909         * modules/putenv (Makefile.am): Likewise.
75910         * modules/quote (Makefile.am): Likewise.
75911         * modules/quotearg (Makefile.am): Likewise.
75912         * modules/raise (Makefile.am): Likewise.
75913         * modules/read-file (Makefile.am): Likewise.
75914         * modules/readline (Makefile.am): Likewise.
75915         * modules/readlink (Makefile.am): Likewise.
75916         * modules/readtokens (Makefile.am): Likewise.
75917         * modules/readutmp (Makefile.am): Likewise.
75918         * modules/realloc (Makefile.am): Likewise.
75919         * modules/regex (Makefile.am): Likewise.
75920         * modules/rename-dest-slash (Makefile.am): Likewise.
75921         * modules/rename (Makefile.am): Likewise.
75922         * modules/rijndael (Makefile.am): Likewise.
75923         * modules/rmdir (Makefile.am): Likewise.
75924         * modules/rpmatch (Makefile.am): Likewise.
75925         * modules/safe-read (Makefile.am): Likewise.
75926         * modules/safe-write (Makefile.am): Likewise.
75927         * modules/same-inode (Makefile.am): Likewise.
75928         * modules/same (Makefile.am): Likewise.
75929         * modules/save-cwd (Makefile.am): Likewise.
75930         * modules/savedir (Makefile.am): Likewise.
75931         * modules/setenv (Makefile.am): Likewise.
75932         * modules/settime (Makefile.am): Likewise.
75933         * modules/sha1 (Makefile.am): Likewise.
75934         * modules/sig2str (Makefile.am): Likewise.
75935         * modules/snprintf (Makefile.am): Likewise.
75936         * modules/stat-macros (Makefile.am): Likewise.
75937         * modules/stat-time (Makefile.am): Likewise.
75938         * modules/stdbool (Makefile.am): Likewise.
75939         * modules/stdint (Makefile.am): Likewise.
75940         * modules/stdlib-safer (Makefile.am): Likewise.
75941         * modules/stpcpy (Makefile.am): Likewise.
75942         * modules/stpncpy (Makefile.am): Likewise.
75943         * modules/strcase (Makefile.am): Likewise.
75944         * modules/strcasestr (Makefile.am): Likewise.
75945         * modules/strchrnul (Makefile.am): Likewise.
75946         * modules/strcspn (Makefile.am): Likewise.
75947         * modules/strdup (Makefile.am): Likewise.
75948         * modules/strerror (Makefile.am): Likewise.
75949         * modules/strftime (Makefile.am): Likewise.
75950         * modules/strndup (Makefile.am): Likewise.
75951         * modules/strnlen (Makefile.am): Likewise.
75952         * modules/strpbrk (Makefile.am): Likewise.
75953         * modules/strsep (Makefile.am): Likewise.
75954         * modules/strstr (Makefile.am): Likewise.
75955         * modules/strtod (Makefile.am): Likewise.
75956         * modules/strtoimax (Makefile.am): Likewise.
75957         * modules/strtok_r (Makefile.am): Likewise.
75958         * modules/strtol (Makefile.am): Likewise.
75959         * modules/strtoll (Makefile.am): Likewise.
75960         * modules/strtoul (Makefile.am): Likewise.
75961         * modules/strtoull (Makefile.am): Likewise.
75962         * modules/strtoumax (Makefile.am): Likewise.
75963         * modules/strverscmp (Makefile.am): Likewise.
75964         * modules/sys_socket (Makefile.am): Likewise.
75965         * modules/sys_stat (Makefile.am): Likewise.
75966         * modules/sysexits (Makefile.am): Likewise.
75967         * modules/time_r (Makefile.am): Likewise.
75968         * modules/timegm (Makefile.am): Likewise.
75969         * modules/timespec (Makefile.am): Likewise.
75970         * modules/tmpfile-safer (Makefile.am): Likewise.
75971         * modules/trim (Makefile.am): Likewise.
75972         * modules/unistd-safer (Makefile.am): Likewise.
75973         * modules/unlinkdir (Makefile.am): Likewise.
75974         * modules/unlocked-io (Makefile.am): Likewise.
75975         * modules/userspec (Makefile.am): Likewise.
75976         * modules/utime (Makefile.am): Likewise.
75977         * modules/utimecmp (Makefile.am): Likewise.
75978         * modules/utimens (Makefile.am): Likewise.
75979         * modules/vasnprintf (Makefile.am): Likewise.
75980         * modules/vasprintf (Makefile.am): Likewise.
75981         * modules/vsnprintf (Makefile.am): Likewise.
75982         * modules/xalloc (Makefile.am): Likewise.
75983         * modules/xgetcwd (Makefile.am): Likewise.
75984         * modules/xnanosleep (Makefile.am): Likewise.
75985         * modules/xreadlink (Makefile.am): Likewise.
75986         * modules/xstrtod (Makefile.am): Likewise.
75987         * modules/xstrtol (Makefile.am): Likewise.
75988         * modules/xstrtold (Makefile.am): Likewise.
75989         * modules/yesno (Makefile.am): Likewise.
75990         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
75991
75992 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75993
75994         * modules/error (Makefile.am): Distribute files through
75995         EXTRA_DIST, not lib_SOURCES.
75996
75997 2006-10-12  Eric Blake  <ebb9@byu.net>
75998
75999         * modules/error (Makefile.am): Distribute files in /lib.
76000         * modules/obstack (Makefile.am): Likewise.
76001
76002 2006-10-12  Bruno Haible  <bruno@clisp.org>
76003
76004         * modules/acl (Makefile.am): Distribute all files in lib/ through
76005         EXTRA_DIST.
76006         * modules/arcfour (Makefile.am): Likewise.
76007         * modules/arctwo (Makefile.am): Likewise.
76008         * modules/argmatch (Makefile.am): Likewise.
76009         * modules/argz (Makefile.am): Likewise.
76010         * modules/atexit (Makefile.am): Likewise.
76011         * modules/backupfile (Makefile.am): Likewise.
76012         * modules/c-strtod (Makefile.am): Likewise.
76013         * modules/c-strtold (Makefile.am): Likewise.
76014         * modules/calloc (Makefile.am): Likewise.
76015         * modules/canon-host (Makefile.am): Likewise.
76016         * modules/canonicalize (Makefile.am): Likewise.
76017         * modules/chdir-long (Makefile.am): Likewise.
76018         * modules/chdir-safer (Makefile.am): Likewise.
76019         * modules/check-version (Makefile.am): Likewise.
76020         * modules/chown (Makefile.am): Likewise.
76021         * modules/cloexec (Makefile.am): Likewise.
76022         * modules/close-stream (Makefile.am): Likewise.
76023         * modules/closeout (Makefile.am): Likewise.
76024         * modules/crc (Makefile.am): Likewise.
76025         * modules/cycle-check (Makefile.am): Likewise.
76026         * modules/des (Makefile.am): Likewise.
76027         * modules/dirfd (Makefile.am): Likewise.
76028         * modules/dirname (Makefile.am): Likewise.
76029         * modules/dup2 (Makefile.am): Likewise.
76030         * modules/euidaccess (Makefile.am): Likewise.
76031         * modules/exclude (Makefile.am): Likewise.
76032         * modules/exitfail (Makefile.am): Likewise.
76033         * modules/fcntl-safer (Makefile.am): Likewise.
76034         * modules/file-type (Makefile.am): Likewise.
76035         * modules/fileblocks (Makefile.am): Likewise.
76036         * modules/filemode (Makefile.am): Likewise.
76037         * modules/filenamecat (Makefile.am): Likewise.
76038         * modules/fnmatch (Makefile.am): Likewise.
76039         * modules/fopen-safer (Makefile.am): Likewise.
76040         * modules/fpending (Makefile.am): Likewise.
76041         * modules/fprintftime (Makefile.am): Likewise.
76042         * modules/free (Makefile.am): Likewise.
76043         * modules/fsusage (Makefile.am): Likewise.
76044         * modules/ftruncate (Makefile.am): Likewise.
76045         * modules/fts (Makefile.am): Likewise.
76046         * modules/gc (Makefile.am): Likewise.
76047         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76048         * modules/getaddrinfo (Makefile.am): Likewise.
76049         * modules/getcwd (Makefile.am): Likewise.
76050         * modules/getdelim (Makefile.am): Likewise.
76051         * modules/getdomainname (Makefile.am): Likewise.
76052         * modules/getgroups (Makefile.am): Likewise.
76053         * modules/gethostname (Makefile.am): Likewise.
76054         * modules/gethrxtime (Makefile.am): Likewise.
76055         * modules/getline (Makefile.am): Likewise.
76056         * modules/getloadavg (Makefile.am): Likewise.
76057         * modules/getlogin_r (Makefile.am): Likewise.
76058         * modules/getopt (Makefile.am): Likewise.
76059         * modules/getpass (Makefile.am): Likewise.
76060         * modules/getpass-gnu (Makefile.am): Likewise.
76061         * modules/getsubopt (Makefile.am): Likewise.
76062         * modules/gettime (Makefile.am): Likewise.
76063         * modules/gettimeofday (Makefile.am): Likewise.
76064         * modules/getugroups (Makefile.am): Likewise.
76065         * modules/getusershell (Makefile.am): Likewise.
76066         * modules/glob (Makefile.am): Likewise.
76067         * modules/group-member (Makefile.am): Likewise.
76068         * modules/hard-locale (Makefile.am): Likewise.
76069         * modules/hash (Makefile.am): Likewise.
76070         * modules/hmac-md5 (Makefile.am): Likewise.
76071         * modules/hmac-sha1 (Makefile.am): Likewise.
76072         * modules/human (Makefile.am): Likewise.
76073         * modules/idcache (Makefile.am): Likewise.
76074         * modules/imaxabs (Makefile.am): Likewise.
76075         * modules/imaxdiv (Makefile.am): Likewise.
76076         * modules/inet_ntop (Makefile.am): Likewise.
76077         * modules/inet_pton (Makefile.am): Likewise.
76078         * modules/inttostr (Makefile.am): Likewise.
76079         * modules/isapipe (Makefile.am): Likewise.
76080         * modules/lchown (Makefile.am): Likewise.
76081         * modules/long-options (Makefile.am): Likewise.
76082         * modules/lstat (Makefile.am): Likewise.
76083         * modules/malloc (Makefile.am): Likewise.
76084         * modules/mathl (Makefile.am): Likewise.
76085         * modules/mbchar (Makefile.am): Likewise.
76086         * modules/md2 (Makefile.am): Likewise.
76087         * modules/md4 (Makefile.am): Likewise.
76088         * modules/md5 (Makefile.am): Likewise.
76089         * modules/memcasecmp (Makefile.am): Likewise.
76090         * modules/memchr (Makefile.am): Likewise.
76091         * modules/memcmp (Makefile.am): Likewise.
76092         * modules/memcoll (Makefile.am): Likewise.
76093         * modules/memcpy (Makefile.am): Likewise.
76094         * modules/memmem (Makefile.am): Likewise.
76095         * modules/memmove (Makefile.am): Likewise.
76096         * modules/mempcpy (Makefile.am): Likewise.
76097         * modules/memrchr (Makefile.am): Likewise.
76098         * modules/memset (Makefile.am): Likewise.
76099         * modules/memxor (Makefile.am): Likewise.
76100         * modules/mkancesdirs (Makefile.am): Likewise.
76101         * modules/mkdir (Makefile.am): Likewise.
76102         * modules/mkdir-p (Makefile.am): Likewise.
76103         * modules/mkdtemp (Makefile.am): Likewise.
76104         * modules/mkstemp (Makefile.am): Likewise.
76105         * modules/mktime (Makefile.am): Likewise.
76106         * modules/modechange (Makefile.am): Likewise.
76107         * modules/mountlist (Makefile.am): Likewise.
76108         * modules/nanosleep (Makefile.am): Likewise.
76109         * modules/openat (Makefile.am): Likewise.
76110         * modules/pagealign_alloc (Makefile.am): Likewise.
76111         * modules/physmem (Makefile.am): Likewise.
76112         * modules/poll (Makefile.am): Likewise.
76113         * modules/posixtm (Makefile.am): Likewise.
76114         * modules/posixver (Makefile.am): Likewise.
76115         * modules/putenv (Makefile.am): Likewise.
76116         * modules/quote (Makefile.am): Likewise.
76117         * modules/quotearg (Makefile.am): Likewise.
76118         * modules/raise (Makefile.am): Likewise.
76119         * modules/read-file (Makefile.am): Likewise.
76120         * modules/readline (Makefile.am): Likewise.
76121         * modules/readlink (Makefile.am): Likewise.
76122         * modules/readtokens (Makefile.am): Likewise.
76123         * modules/readutmp (Makefile.am): Likewise.
76124         * modules/realloc (Makefile.am): Likewise.
76125         * modules/regex (Makefile.am): Likewise.
76126         * modules/rename (Makefile.am): Likewise.
76127         * modules/rename-dest-slash (Makefile.am): Likewise.
76128         * modules/rijndael (Makefile.am): Likewise.
76129         * modules/rmdir (Makefile.am): Likewise.
76130         * modules/rpmatch (Makefile.am): Likewise.
76131         * modules/safe-read (Makefile.am): Likewise.
76132         * modules/safe-write (Makefile.am): Likewise.
76133         * modules/same (Makefile.am): Likewise.
76134         * modules/save-cwd (Makefile.am): Likewise.
76135         * modules/savedir (Makefile.am): Likewise.
76136         * modules/setenv (Makefile.am): Likewise.
76137         * modules/settime (Makefile.am): Likewise.
76138         * modules/sha1 (Makefile.am): Likewise.
76139         * modules/sig2str (Makefile.am): Likewise.
76140         * modules/snprintf (Makefile.am): Likewise.
76141         * modules/stdlib-safer (Makefile.am): Likewise.
76142         * modules/stpcpy (Makefile.am): Likewise.
76143         * modules/stpncpy (Makefile.am): Likewise.
76144         * modules/strcase (Makefile.am): Likewise.
76145         * modules/strcasestr (Makefile.am): Likewise.
76146         * modules/strchrnul (Makefile.am): Likewise.
76147         * modules/strcspn (Makefile.am): Likewise.
76148         * modules/strdup (Makefile.am): Likewise.
76149         * modules/strerror (Makefile.am): Likewise.
76150         * modules/strftime (Makefile.am): Likewise.
76151         * modules/strndup (Makefile.am): Likewise.
76152         * modules/strnlen (Makefile.am): Likewise.
76153         * modules/strpbrk (Makefile.am): Likewise.
76154         * modules/strsep (Makefile.am): Likewise.
76155         * modules/strstr (Makefile.am): Likewise.
76156         * modules/strtod (Makefile.am): Likewise.
76157         * modules/strtoimax (Makefile.am): Likewise.
76158         * modules/strtok_r (Makefile.am): Likewise.
76159         * modules/strtol (Makefile.am): Likewise.
76160         * modules/strtoll (Makefile.am): Likewise.
76161         * modules/strtoul (Makefile.am): Likewise.
76162         * modules/strtoull (Makefile.am): Likewise.
76163         * modules/strtoumax (Makefile.am): Likewise.
76164         * modules/strverscmp (Makefile.am): Likewise.
76165         * modules/time_r (Makefile.am): Likewise.
76166         * modules/timegm (Makefile.am): Likewise.
76167         * modules/tmpfile-safer (Makefile.am): Likewise.
76168         * modules/unistd-safer (Makefile.am): Likewise.
76169         * modules/unlinkdir (Makefile.am): Likewise.
76170         * modules/userspec (Makefile.am): Likewise.
76171         * modules/utime (Makefile.am): Likewise.
76172         * modules/utimecmp (Makefile.am): Likewise.
76173         * modules/utimens (Makefile.am): Likewise.
76174         * modules/vasnprintf (Makefile.am): Likewise.
76175         * modules/vasprintf (Makefile.am): Likewise.
76176         * modules/vsnprintf (Makefile.am): Likewise.
76177         * modules/xalloc (Makefile.am): Likewise.
76178         * modules/xgetcwd (Makefile.am): Likewise.
76179         * modules/xnanosleep (Makefile.am): Likewise.
76180         * modules/xreadlink (Makefile.am): Likewise.
76181         * modules/xstrtod (Makefile.am): Likewise.
76182         * modules/xstrtol (Makefile.am): Likewise.
76183         * modules/xstrtold (Makefile.am): Likewise.
76184         * modules/yesno (Makefile.am): Likewise.
76185
76186 2006-10-12  Jim Meyering  <jim@meyering.net>
76187
76188         * m4/getloadavg.m4: Revert the change below.
76189
76190         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
76191         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
76192         fail with a symlink, which is what coreutils' ./bootstrap now
76193         creates by default.
76194
76195 2006-10-12  Bruno Haible  <bruno@clisp.org>
76196
76197         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
76198         mingw.
76199         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
76200         MSVC and mingw explicitly.
76201
76202 2006-10-11  Simon Josefsson  <jas@extundo.com>
76203             Bruno Haible  <bruno@clisp.org>
76204
76205         Add support for multiple gnulib-tool invocations in the scope of a
76206         single configure.ac file.
76207         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
76208         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
76209         with the same contents as the _LIBADD variable.
76210         (func_emit_initmacro_start, func_emit_initmacro_end,
76211         func_emit_initmacro_done): New functions.
76212         (func_import, func_create_testdir): Invoke them. Allow the identifiers
76213         gl_LIBOBJS and gl_LTLIBOBJS.
76214
76215 2006-10-11  Bruno Haible  <bruno@clisp.org>
76216
76217         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
76218         (func_create_testdir): Don't create po/Makefile.am, don't invoke
76219         autoreconf. Instead, invoke autopoint explicitly but move back the
76220         *.m4 files from gnulib.
76221
76222 2006-10-11  Bruno Haible  <bruno@clisp.org>
76223
76224         * gnulib-tool (func_usage): Make module names after --create-testdir
76225         optional.
76226         (func_create_testdir): If no module was specified, use nearly all
76227         modules.
76228
76229 2006-10-12  Jim Meyering  <jim@meyering.net>
76230
76231         Big performance improvement for fts-based tools that use FTS_NOSTAT.
76232         Avoid spurious inode-mismatch problems on non-POSIX file systems.
76233         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
76234         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
76235         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
76236         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
76237         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
76238         (fts_set_stat_required): New function.
76239         (fts_open): Defer the calls to fts_stat, if possible or requested.
76240         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
76241         into fts_stat itself.
76242         (fts_read): Perform any required (deferred) fts_stat call.
76243         (fts_build): Likewise, for the directory we're about to open and read.
76244         In the readdir loop, carefully decide whether each entry will require
76245         an eventual call to fts_stat, using dirent.d_type info if available.
76246         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
76247         a command line argument into this function.  Update all callers.
76248         Map a return value of FTS_DOT to FTS_D for a command line argument.
76249         * modules/fts (Depends-on): Add d-type.  Alphabetize.
76250         Thanks to Miklos Szeredi for his tenacity and for the initial
76251         bug report about "find" failing on a FUSE-based file system.
76252
76253         * lib/fts.c (fts_open): Use consistent indentation.
76254
76255 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76256
76257         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
76258         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
76259         reported by Jim Meyering.  All uses of cache variables renamed
76260         to match Autoconf's.
76261         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
76262         the other one.
76263
76264         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
76265         Fix misspelling in diagnostic.
76266
76267 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76268
76269         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
76270         defined.  Problem reported by Matthew Woehlke.
76271
76272         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
76273         Add support for Tandem NonStop R series.
76274         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
76275         Use new macro.
76276
76277         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
76278         (has_trailing_slash): Omit size arg; all callers changed.
76279         Omit 'inline', since it doesn't help performance and we'd
76280         need to configure it.
76281         Don't count //, ///, etc. as having a trailing slash.
76282         As a side effect, this removes a C99ism reported by Matthew Woehlke.
76283         (rpl_rename_dest_slash): On failure, use rename's errno rather
76284         than (in some cases) an incorrect or junk errno.
76285         Simplify code by removing need to compute length; this does
76286         cause it to make two passes instead of one over the file name,
76287         but it's worth it.
76288
76289         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
76290         change, since Autoconf's version may no longer be appropriate now
76291         that we are using CVS Autoconf's version.  Add support for Tandem.
76292
76293 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76294             Bruno Haible  <bruno@clisp.org>
76295
76296         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
76297         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
76298         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
76299         gl_AC_TYPE_LONG_LONG.
76300
76301         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
76302         instead of HAVE_LONG_LONG.
76303         * lib/printf-args.c (printf_fetchargs): Likewise.
76304         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
76305         * lib/vasnprintf.c (VASNPRINTF): Likewise.
76306         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
76307         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
76308         gl_AC_TYPE_LONG_LONG.
76309
76310 2006-10-11  Bruno Haible  <bruno@clisp.org>
76311
76312         * m4/longlong.m4: Add comments.
76313         * m4/ulonglong.m4: Likewise.
76314
76315 2006-10-10  Bruno Haible  <bruno@clisp.org>
76316
76317         Make it possible to #define stpcpy, strdup to aliases.
76318         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
76319         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
76320
76321 2006-10-10  Bruno Haible  <bruno@clisp.org>
76322
76323         Make it possible to #define gcd to an alias.
76324         * lib/gcd.c: Include config.h.
76325
76326 2006-10-10  Bruno Haible  <bruno@clisp.org>
76327
76328         Make it possible to #define c_isascii to an alias.
76329         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
76330         defined. Undefine the macros before defining them, to avoid gcc
76331         warnings.
76332         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
76333         define NO_C_CTYPE_MACROS early.
76334
76335 2006-10-10  Bruno Haible  <bruno@clisp.org>
76336
76337         Make it possible to #define set_program_name to an alias.
76338         * lib/progname.c: Don't undefine set_program_name; instead, undefine
76339         ENABLE_RELOCATABLE early.
76340
76341 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76342
76343         Port to Tandem NSK OSS, which has 64-bit signed int but at most
76344         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
76345         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
76346         More generally, don't assume that 64-bit signed int is available
76347         if unsigned int is, and vice versa.
76348         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
76349         unsigned symbols, not on their signed counterparts.
76350         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
76351         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
76352         (UINT64_C, UINTMAX_C):
76353         Likewise.
76354         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
76355         unsigned counterparts.
76356         (Have_long_long, Unsigned): New macros.
76357         (Int): Renamed from INT.
76358         (strtoimax): Use the new macros.
76359         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
76360         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
76361         * modules/inttypes (inttypes.h): Substitute
76362         HAVE_UNSIGNED_LONG_LONG_INT.
76363         * modules/stdint (stdint.h): Likewise.
76364         (Files): Add m4/ulonglong.m4.
76365
76366 2006-10-10  Bruno Haible  <bruno@clisp.org>
76367
76368         Fix a gcc -Wshadow warning.
76369         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
76370         to 'bucket'.
76371         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
76372         gl_linked_indexof_from_to): Likewise.
76373         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
76374         Likewise.
76375         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
76376         Likewise.
76377         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
76378         Reported by Eric Blake.
76379
76380 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
76381
76382         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
76383         for NetBSD.  Problem reported by Bruno Haible.
76384
76385 2006-10-09  Jim Meyering  <jim@meyering.net>
76386
76387         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
76388         Patch from Bruno Haible.
76389
76390 2006-10-09  Jim Meyering  <jim@meyering.net>
76391
76392         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
76393         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
76394         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
76395
76396 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
76397
76398         Don't include <config.h> twice; this doesn't work in some cases,
76399         e.g., when config.h has "#define intmax_t long long int" and
76400         we include <config.h>, <inttypes.h>, <config.h> in that order.
76401         Problem reported by Matthew Woehlke in:
76402         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
76403         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
76404         * lib/fts-cycle.c: Don't include config.h.
76405         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
76406         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
76407         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
76408         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
76409         inttypes.h.
76410         * lib/xstrtoumax.c: Likewise.
76411         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
76412         __strtol and the like, so that this module is more like its siblings.
76413         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
76414         Remove; no longer needed now that we assume gnulib inttypes.h.
76415
76416 2006-10-08  Bruno Haible  <bruno@clisp.org>
76417
76418         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
76419         option.
76420
76421 2006-10-07  Jim Meyering  <jim@meyering.net>
76422
76423         * modules/inttypes (inttypes.h): Revert what seems to have been
76424         an inadvertent part of today's change: use "|", not "/" in the
76425         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
76426
76427 2006-10-07  Bruno Haible  <bruno@clisp.org>
76428
76429         * modules/sublist: New file.
76430
76431 2006-10-07  Bruno Haible  <bruno@clisp.org>
76432
76433         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
76434         * modules/argz (argz.h): Likewise.
76435         * modules/arpa_inet (arpa/inet.h): Likewise.
76436         * modules/byteswap (byteswap.h): Likewise.
76437         * modules/configmake (configmake.h): Likewise.
76438         * modules/fcntl (fcntl.h): Likewise.
76439         * modules/fnmatch (fnmatch.h): Likewise.
76440         * modules/getopt (getopt.h): Likewise.
76441         * modules/glob (glob.h): Likewise.
76442         * modules/inttypes (inttypes.h): Likewise.
76443         * modules/netinet_in (netinet/in.h): Likewise.
76444         * modules/poll (poll.h): Likewise.
76445         * modules/stdbool (stdbool.h): Likewise.
76446         * modules/stdint (stdint.h): Likewise.
76447         * modules/sys_select (sys/select.h): Likewise.
76448         * modules/sys_socket (sys/socket.h): Likewise.
76449         * modules/sys_stat (sys/stat.h): Likewise.
76450         * modules/sysexits (sysexits.h): Likewise.
76451         * modules/unistd (unistd.h): Likewise.
76452         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76453         Add a "DO NOT EDIT" comment to the generated file.
76454         (func_import): Likewise for gnulib-comp.m4.
76455
76456 2006-10-07  Bruno Haible  <bruno@clisp.org>
76457
76458         * lib/gl_sublist.h: New file.
76459         * lib/gl_sublist.c: New file.
76460
76461 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76462
76463         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
76464         name (relative to the original working directory) and the file
76465         name component (relative to the temporary working directory).  All
76466         callers changed.
76467         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
76468         * lib/mkdir-p.c (make_dir_parents): Likewise.
76469         * lib/mkdir-p.h (make_dir_parents): Likewise.
76470
76471 2006-10-06  Eric Blake  <ebb9@byu.net>
76472
76473         Define several macros for use by the clean-temp module.
76474         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
76475         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
76476         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
76477
76478         * lib/clean-temp.h (close_stream_temp): New declaration.
76479         * lib/clean-temp.c (includes): Pull in headers according to what
76480         other modules are in use.
76481         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
76482
76483 2006-10-06  Bruno Haible  <bruno@clisp.org>
76484
76485         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
76486         instead of fopen, fwriteerror.
76487
76488 2006-10-06  Bruno Haible  <bruno@clisp.org>
76489
76490         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
76491         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
76492         int.
76493         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
76494         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
76495         Return an error indicator.
76496         Suggested by Eric Blake.
76497
76498 2006-10-06  Bruno Haible  <bruno@clisp.org>
76499
76500         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
76501         Reported by Eric Blake.
76502
76503 2006-10-06  Bruno Haible  <bruno@clisp.org>
76504
76505         * modules/closeout (Description): Mention stderr too.
76506
76507 2006-10-06  Bruno Haible  <bruno@clisp.org>
76508         and Paul Eggert  <eggert@cs.ucla.edu>
76509
76510         * lib/closeout.c (close_stdout): Also close stderr.
76511         * lib/closeout.h: Update comment.
76512
76513 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76514
76515         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
76516         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
76517         * lib/dirchownmod.c: Include lchown.h.
76518         * lib/lchown.c: Don't include files that lchown.h now includes.
76519         Don't declare chown, since lchown.h now does that.
76520         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
76521         (lchown): Define to rpl_chown if lchown is declared but
76522         does not exist.  Declare using a prototype if lchown is not
76523         declared.  Add a copyright notice.
76524         * lib/mkstemp.h: Include <unistd.h>.
76525         * lib/openat.c: Include lchown.h.
76526
76527         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
76528         we now test for that separately.
76529         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
76530         rather than O_NOFOLLOW, when testing whether it's possible to
76531         avoid a race condition reliably.
76532         * lib/savewd.c (savewd_chdir): Likewise.
76533
76534         Remove macros that are no longer needed now that stdint.h is
76535         reliable.
76536         * lib/fsusage.c (UINTMAX_MAX): Remove.
76537         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
76538         * lib/utimecmp.c (SIZE_MAX): Remove.
76539
76540         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
76541
76542         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
76543         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
76544         O_NOATIME works.
76545
76546 2006-10-05  Bruno Haible  <bruno@clisp.org>
76547
76548         * lib/gl_list.h (gl_sortedlist_search_from_to,
76549         gl_sortedlist_indexof_from_to): New declarations.
76550         (gl_list_implementation): New fields sortedlist_search_from_to,
76551         sortedlist_indexof_from_to.
76552         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
76553         inline functions.
76554         * lib/gl_list.c (gl_sortedlist_search_from_to,
76555         gl_sortedlist_indexof_from_to): New functions.
76556         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
76557         function.
76558         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
76559         (gl_array_sortedlist_search_from_to): New function.
76560         (gl_array_list_implementation): Update.
76561         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
76562         function.
76563         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
76564         (gl_carray_sortedlist_search_from_to): New function.
76565         (gl_carray_list_implementation): Update.
76566         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
76567         gl_linked_sortedlist_indexof_from_to): New functions.
76568         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76569         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76570         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
76571         gl_tree_sortedlist_indexof_from_to): New functions.
76572         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76573         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76574         Update.
76575         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76576         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
76577         Update.
76578
76579 2006-10-05  Bruno Haible  <bruno@clisp.org>
76580
76581         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
76582         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
76583         (struct gl_list_implementation): Add fields search_from_to,
76584         indexof_from_to. Remove fields search, indexof.
76585         (gl_list_search): Use the search_from_to method.
76586         (gl_list_search_from, gl_list_search_from_to): New functions.
76587         (gl_list_indexof): Use the indexof_from_to method.
76588         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76589         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
76590         (gl_list_search_from, gl_list_search_from_to): New functions.
76591         (gl_list_indexof): Use the indexof_from_to method.
76592         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76593         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
76594         gl_array_indexof. Add start_index, end_index arguments.
76595         (gl_array_search_from_to): Renamed from gl_array_search. Add
76596         start_index, end_index arguments.
76597         (gl_array_remove, gl_array_list_implementation): Update.
76598         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
76599         gl_carray_indexof. Add start_index, end_index arguments.
76600         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
76601         start_index, end_index arguments.
76602         (gl_carray_remove, gl_carray_list_implementation): Update.
76603         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
76604         gl_linked_search. Add start_index, end_index arguments.
76605         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
76606         start_index, end_index arguments.
76607         (gl_linked_remove): Update.
76608         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76609         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76610         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
76611         field to 'size_t'.
76612         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
76613         gl_tree_search. Add start_index, end_index arguments.
76614         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76615         start_index, end_index arguments.
76616         (gl_tree_remove): Update.
76617         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76618         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76619         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
76620         function.
76621         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
76622         gl_tree_search. Add start_index, end_index arguments.
76623         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76624         start_index, end_index arguments.
76625         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76626         Update.
76627         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
76628
76629 2006-10-05  Bruno Haible  <bruno@clisp.org>
76630
76631         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
76632
76633         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
76634         fwriteerror_temp): New declarations.
76635         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
76636         (descriptors): New variable.
76637         (cleanup): First, close the descriptors.
76638         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
76639         fclose_temp, fwriteerror_temp): New functions.
76640
76641 2006-10-04  Jim Meyering  <jim@meyering.net>
76642
76643         * lib/fts.c (fts_open): Tiny comment change.
76644
76645 2006-10-04  Bruno Haible  <bruno@clisp.org>
76646
76647         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
76648         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
76649         gl_LOCK_BODY.
76650         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
76651         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
76652         gl_LOCK_EARLY_BODY.
76653         (gl_LOCK): Require gl_LOCK_BODY.
76654
76655 2006-10-04  Bruno Haible  <bruno@clisp.org>
76656
76657         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
76658         (gl_oset_search_atleast): New declaration.
76659         (struct gl_oset_implementation): Add field 'search_atleast'.
76660         (gl_oset_search_atleast): New inline function.
76661         * lib/gl_oset.c (gl_oset_search_atleast): New function.
76662         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
76663         (gl_array_oset_implementation): Update.
76664         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
76665         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
76666         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
76667
76668 2006-10-04  Bruno Haible  <bruno@clisp.org>
76669
76670         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
76671
76672 2006-10-03  Bruno Haible  <bruno@clisp.org>
76673
76674         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
76675         from gl_avltreehash_list_implementation.
76676
76677 2006-10-03  Bruno Haible  <bruno@clisp.org>
76678
76679         * lib/gl_oset.c (gl_oset_add): Fix return type.
76680
76681 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
76682
76683         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
76684
76685 2006-10-02  Eric Blake  <ebb9@byu.net>
76686
76687         * modules/strnlen (Depends-on): Add extensions.
76688
76689 2006-10-02  Eric Blake  <ebb9@byu.net>
76690
76691         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
76692         definition in 2.60+.
76693
76694 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
76695
76696         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
76697         checks.
76698
76699 2006-10-02  Bruno Haible  <bruno@clisp.org>
76700
76701         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
76702         to the AUTOMAKE_OPTIONS.
76703         Reported by Jim Meyering.
76704
76705 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76706
76707         Work around bug in Solaris 10 /proc file system:
76708         /proc/self/fd/NNN/.. isn't the parent directory of
76709         the directory whose file descriptor is NNN.  This needs to
76710         be worked around at run time, not compile time, since a
76711         program might be built on Solaris 8, where things work, and
76712         run on Solaris 10.
76713         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
76714         to use the following interface instead:
76715         (OPENAT_BUFFER_SIZE): New macro.
76716         (openat_proc_name): New function.
76717         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
76718         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
76719         Likewise.
76720         * lib/openat-proc.c: New file.
76721         * modules/openat (Files): Add lib/openat-proc.c.
76722         (Depends-on): Add same-inode, stdbool.
76723         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
76724
76725 2006-09-29  Bruno Haible  <bruno@clisp.org>
76726
76727         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
76728         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
76729         argument. Set stdout_closed before testing for ferror, not after.
76730         (fwriteerror, fwriteerror_no_ebadf): New functions.
76731
76732 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76733
76734         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
76735
76736 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
76737
76738         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
76739         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
76740
76741 2006-09-28  Jim Meyering  <jim@meyering.net>
76742
76743         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
76744         Include <unistd.h>.
76745
76746 2006-09-28  Bruno Haible  <bruno@clisp.org>
76747
76748         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
76749         * modules/linkedhash-list (Depends-on): Likewise.
76750         * modules/rbtreehash-list (Depends-on): Likewise.
76751
76752 2006-09-28  Bruno Haible  <bruno@clisp.org>
76753
76754         * lib/strndup.h: Simplify the redefinition of strndup.
76755         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
76756         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
76757
76758 2006-09-28  Bruno Haible  <bruno@clisp.org>
76759
76760         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
76761         * lib/gl_linkedhash_list.c: Likewise.
76762         * lib/gl_rbtreehash_list.c: Likewise.
76763
76764 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76765
76766         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
76767         getaddrinfo.
76768
76769         * lib/__fpending.h: Don't include <stdio_ext.h> unless
76770         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
76771         it causes <stdio_ext.h> to cause a compile-time error.
76772         Problem reported by Nelson H. F. Beebe.
76773         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
76774         of HAVE_DECL___PENDING.
76775
76776         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
76777         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
76778         declaration.
76779
76780 2006-09-27  Jim Meyering  <jim@meyering.net>
76781
76782         This file could end up with a definition for a function
76783         named __strndup, rather than rpl_strndup on a system with
76784         incomplete weak_alias support.
76785         * lib/strndup.c (strndup): Rename from __strndup.
76786         Remove #defines that used to map __strndup to strndup.
76787         Don't use K&R prototypes.
76788         Remove LIBC-related code, since this file is not sync'd with glibc.
76789         * lib/strndup.h: Revamp, accordingly.
76790         * m4/strndup.m4: Modernize.
76791
76792 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76793
76794         * modules/savewd (Depends-on): Add 'raise'.
76795         * lib/savewd.c: Include <signal.h>, for 'raise'.
76796
76797 2006-09-26  Jim Meyering  <jim@meyering.net>
76798
76799         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
76800         when we detect Darwin 8.7.0's acl_get_file bug.
76801         Rearrange to perform the new (below) run-test while $LIBS
76802         contains any acl-related library.  Set USE_ACL at the end.
76803         (gl_ACL_GET_FILE): New function.
76804
76805 2006-09-26  Eric Blake  <ebb9@byu.net>
76806
76807         * lib/verror.c: Include <config.h> unconditionally.
76808
76809 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
76810
76811         * modules/clock-time (Maintainer): Add self.
76812         * modules/getlogin_r (Depends-on): Add extensions.
76813
76814 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76815
76816         * modules/clock-time: New module.
76817         * modules/nanosleep (Depends-on): Add clock-time.
76818         * modules/gethrxtime (Depends-on): Likewise.
76819         * modules/gettime (Depends-on): Likewise.
76820         * modules/settime (Depends-on): Likewise.
76821
76822         * modules/fts-lgpl: Depend on openat.
76823         * modules/mkancesdirs: Depend on savewd.
76824         * modules/mkdir-p: Likewise.
76825
76826 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76827
76828         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
76829
76830         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
76831         `gl_have_arbitrary_file_name_length_limit' to
76832         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
76833         actually works between configure runs.
76834
76835 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76836             Bruno Haible  <bruno@clisp.org>
76837
76838         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
76839
76840 2006-09-25  Jim Meyering  <jim@meyering.net>
76841
76842         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
76843         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
76844
76845 2006-09-25  Eric Blake  <ebb9@byu.net>
76846
76847         * gnulib-tool (func_import, func_create_testdir): Fix typos in
76848         exec's in 2006-09-18 patch when shuffling fds.
76849
76850 2006-09-25  Bruno Haible  <bruno@clisp.org>
76851
76852         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
76853         Reported by Jim Meyering.
76854
76855 2006-09-24  Jim Meyering  <jim@meyering.net>
76856
76857         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
76858         compare a pointer against a literal "0".  That caused failures with
76859         at least HP-UX's hpcc.
76860
76861 2006-09-22  Simon Josefsson  <jas@extundo.com>
76862
76863         * modules/gc-sha1:
76864         * modules/gc-md4:
76865         * modules/gc-hmac-sha1:
76866         * modules/gc-hmac-md5:
76867         * modules/gc-des:
76868         * modules/gc-arcfour: Distribute more files.
76869
76870 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76871
76872         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
76873         (gl_linked_iterator_from_to): Initialize struct completely.
76874         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
76875         (gl_tree_iterator_from_to): Likewise
76876         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
76877         * lib/gl_array_list.c [lint] (gl_array_iterator)
76878         (gl_array_iterator_from_to): Likewise.
76879         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
76880         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
76881         (gl_carray_iterator_from_to): Likewise.
76882
76883         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
76884         * lib/md4.c (md4_process_block): Remove unused variable.
76885         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
76886         parentheses for clarity.
76887
76888 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76889
76890         * modules/bison-i18n (Depends-on): Add gettext.
76891
76892 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76893
76894         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
76895         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
76896         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
76897         also add missing comma that caused broken test.
76898         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
76899         stdlib.h, for `abort'.
76900         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
76901         variables.
76902         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
76903         include unistd.h if present, for `rmdir'.
76904         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
76905         variables.
76906         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
76907         in the process include standard headers for prototypes.
76908         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
76909         gets declared on GNU/Linux.
76910         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
76911         unistd.h, for `rmdir'.
76912         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
76913
76914         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
76915         always true.
76916         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
76917
76918         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
76919
76920 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76921
76922         * gnulib-tool (func_version): Create output all at once.  This
76923         may help avoid triggering unnecessary SIGPIPEs, and at any
76924         rate it doesn't hurt.
76925
76926 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76927             Bruno Haible  <bruno@clisp.org>
76928
76929         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
76930         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76931         * m4/signed.m4 (bh_C_SIGNED): Likewise.
76932
76933         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
76934         (gl_FUNC_VASPRINTF): Invoke it.
76935
76936 2006-09-22  Bruno Haible  <bruno@clisp.org>
76937
76938         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
76939         getloadavg.c as first argument.
76940
76941 2006-09-22  Bruno Haible  <bruno@clisp.org>
76942
76943         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
76944         at the beginning of the gl_INIT macro.
76945         * modules/getloadavg (configure.ac): Pass $gl_source_base to
76946         gl_GETLOADAVG.
76947
76948 2006-09-22  Bruno Haible  <bruno@clisp.org>
76949
76950         * gnulib-tool (func_create_megatestdir): Don't include the config-h
76951         module.
76952         Suggested by Ralf Wildenhues.
76953
76954 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76955
76956         Import this patch from libc:
76957
76958         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
76959
76960         * lib/regex_internal.c (re_string_reconstruct): Handle
76961         offset < pstr->valid_raw_len && pstr->offsets_needed case.
76962         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
76963         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
76964         re_string_context_at.
76965
76966         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
76967         now requires it.
76968         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
76969         gl_REGEX now does it for us.
76970         (gl_REGEX): Add test taken from
76971         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
76972
76973         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
76974         Check that large offsets work.  Modernize Autoconf usages.
76975         Prefer "yes" to mean a good thing rather than a bad.
76976         Don't put "#define mkstemp" in config.h, as this might interfere
76977         with standard system headers that "#define mkstemp mkstemp64".
76978
76979         * modules/mkstemp (Depends-on): Add extensions, so that
76980         mkstemp is visible on some platforms.
76981         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
76982         (Include): Change to "mkstemp.h" from <stdlib.h>.
76983         (Files): Add mkstemp.h.
76984
76985         * lib/mkstemp.h: New file, since some standard headers
76986         #define mkstemp.
76987         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
76988         Include "mkstemp.h".
76989         Make the _LIBC code resemble glibc original more,
76990         e.g., use K&R style.
76991         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
76992         (mkstemp): Remove, since mkstemp.h does this for us.
76993         * lib/stdlib--.h: Include mkstemp.h.
76994
76995         Import this patch from libc:
76996
76997         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76998
76999         * lib/tempname.c (__gen_tempname): Change attempts_min
77000         into a macro.  Use preprocessor to decide how to initialize
77001         attempts [Coverity CID 67].
77002
77003 2006-09-20  Bruno Haible  <bruno@clisp.org>
77004
77005         * lib/mkdtemp.c: Import from libc.
77006         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77007                 * sysdeps/posix/tempname.c (__gen_tempname): Change
77008                 attempts_min into a macro.  Use preprocessor to decide how to
77009                 initialize attempts [Coverity CID 67].
77010         2001-11-27  Paul Eggert  <eggert@twinsun.com>
77011                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
77012                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
77013
77014 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77015
77016         * gnulib-tool (func_exit): New function, to allow to pass the
77017         exit status portably through the trap.  Use everywhere.
77018         (--help, --version): Signal a write error.
77019         (trap): catch SIGPIPE, for write errors.
77020         Exit at the end of the trap, with the correct exit status.
77021
77022 2006-09-19  Karl Berry  <karl@gnu.org>
77023
77024         * doc/gnulib.texi: note about the license texinfo files.
77025
77026 2006-09-19  Eric Blake  <ebb9@byu.net>
77027
77028         * gnulib-tool: Avoid space-tab.
77029
77030 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77031
77032         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
77033         that prevented coreutils 6.1 from building.  Problem reported
77034         by Petter Reinholdtsen.
77035
77036 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77037
77038         * gnulib-tool (avoidlist): Fix typo that broke options like
77039         --avoid=lock that are used by coreutils bootstrap.
77040
77041 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
77042
77043         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
77044         more systematically.
77045
77046 2006-09-18  Jim Meyering  <jim@meyering.net>
77047
77048         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
77049
77050 2006-09-18  Bruno Haible  <bruno@clisp.org>
77051
77052         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
77053
77054 2006-09-18  Bruno Haible  <bruno@clisp.org>
77055
77056         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
77057         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
77058         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
77059         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
77060         * m4/gettext.m4: Require autoconf >= 2.52.
77061         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
77062         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
77063         of gl_cv_header_inttypes_h.
77064
77065 2006-09-18  Bruno Haible  <bruno@clisp.org>
77066
77067         * lib/javaversion.c: Include configmake.h.
77068
77069 2006-09-18  Bruno Haible  <bruno@clisp.org>
77070
77071         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
77072         avoid that the while loops be executed in a subshell.
77073
77074 2006-09-18  Bruno Haible  <bruno@clisp.org>
77075
77076         * MODULES.html.sh (func_module): Break long lines.
77077         Suggested by Bruce Korb <bkorb@gnu.org>.
77078
77079 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77080
77081         Speed up by a factor of 1.12.
77082         * gnulib-tool (nl): New variable.
77083         (func_import): Rewrite include directive extraction to only read each
77084         directive once.
77085
77086 2006-09-17  Bruno Haible  <bruno@clisp.org>
77087
77088         * modules/javaversion (Makefile.am): Remove DEFS setting.
77089         (Depends-on): Add configmake, for PKGDATADIR definition.
77090
77091 2006-09-17  Bruno Haible  <bruno@clisp.org>
77092
77093         * gnulib-tool (func_create_testdir): Rewrite all files at once.
77094
77095 2006-09-17  Bruno Haible  <bruno@clisp.org>
77096
77097         * gnulib-tool (func_append): New function, stolen from libtool.m4.
77098         (func_modules_transitive_closure, func_modules_add_dummy,
77099         func_modules_to_filelist, func_import, func_create_testdir,
77100         func_create_megatestdir, ...): Use it wherever possible.
77101         Suggested by Ralf Wildenhues.
77102
77103 2006-09-16  Karl Berry  <karl@gnu.org>
77104
77105         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
77106         to avoid sectioning errors.
77107         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
77108         [ifinfo]: blank line after @center-ed titles.
77109         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
77110         Spell FSF address consistently with others.
77111         (These changes approved by rms.)
77112
77113 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77114
77115         Speed up by a factor of 1.61.
77116         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
77117         already checked module names again.
77118
77119 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77120
77121         Speed up by a factor of 1.13.
77122         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
77123         for new_files, and the input to func_add_or_update.
77124
77125 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77126
77127         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
77128         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
77129
77130 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77131
77132         * modules/mkancesdirs (Depends-on): Add fcntl.
77133         * modules/savewd: New file.
77134         * MODULES.html.sh (File system functions): Add savewd.
77135
77136         * modules/configmake (Makefile.am): Add support for the
77137         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
77138
77139 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77140
77141         * m4/savewd.m4: New file.
77142
77143 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77144
77145         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
77146         (dirchownmod): New arg FD.  All callers changed.
77147         Use FD rather than opening the directory ourself, as opening is
77148         now the caller's responsibility.
77149         * lib/dirchownmod.h: Likewise.
77150         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
77151         hosts that require <sys/types.h> before <sys/stat.h>.  Include
77152         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
77153         (test_dir): Remove.
77154         (mkancesdirs): Return length of prefix of FILE that has already
77155         been made, or -2 if there is a child doing the work.  Redo
77156         algorithm so that it is O(N) rather than O(N**2).  Optimize away
77157         ".", and treat ".." specially since it might stray back into
77158         already-created areas.  Use a subprocess if necessary.  New arg
77159         WD; all users changed.  MAKE_DIR function should now return 1
77160         if it creates a directory that is not readable.  Return -2 if
77161         a child process is spun off.
77162         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
77163         Adjust signature to match code.
77164         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
77165         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
77166         all users changed.
77167         * lib/savewd.c, lib/savewd.h: New files.
77168
77169 2006-09-15  Jim Meyering  <jim@meyering.net>
77170
77171         * modules/rename-dest-slash: New module.
77172         * MODULES.html.sh (posix_compat): Add it here.
77173
77174         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
77175
77176 2006-09-15  Jim Meyering  <jim@meyering.net>
77177
77178         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
77179         file.
77180
77181         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
77182
77183 2006-09-15  Jim Meyering  <jim@meyering.net>
77184
77185         * lib/rename-dest-slash.c (has_trailing_slash): Use
77186         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
77187         (rpl_rename_dest_slash): Perform the cheaper trailing slash
77188         test before testing whether SRC is a directory.
77189         Suggestions from Bruno Haible.
77190
77191         Avoid a warning about an unused variable.
77192         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
77193         into the #ifdef block where it's used.
77194
77195         * lib/rename-dest-slash.c: New file.
77196
77197 2006-09-14  Bruno Haible  <bruno@clisp.org>
77198
77199         * lib/allocsa.c: Include <config.h> unconditionally.
77200         * lib/asnprintf.c: Likewise.
77201         * lib/asprintf.c: Likewise.
77202         * lib/c-strcasecmp.c: Likewise.
77203         * lib/c-strcasestr.c: Likewise.
77204         * lib/c-strncasecmp.c: Likewise.
77205         * lib/c-strstr.c: Likewise.
77206         * lib/classpath.c: Likewise.
77207         * lib/clean-temp.c: Likewise.
77208         * lib/concatpath.c: Likewise.
77209         * lib/copy-file.c: Likewise.
77210         * lib/csharpcomp.c: Likewise.
77211         * lib/csharpexec.c: Likewise.
77212         * lib/execute.c: Likewise.
77213         * lib/fatal-signal.c: Likewise.
77214         * lib/findprog.c: Likewise.
77215         * lib/fwriteerror.c: Likewise.
77216         * lib/gl_array_list.c: Likewise.
77217         * lib/gl_array_oset.c: Likewise.
77218         * lib/gl_avltree_list.c: Likewise.
77219         * lib/gl_avltree_oset.c: Likewise.
77220         * lib/gl_avltreehash_list.c: Likewise.
77221         * lib/gl_carray_list.c: Likewise.
77222         * lib/gl_linked_list.c: Likewise.
77223         * lib/gl_linkedhash_list.c: Likewise.
77224         * lib/gl_list.c: Likewise.
77225         * lib/gl_oset.c: Likewise.
77226         * lib/gl_rbtree_list.c: Likewise.
77227         * lib/gl_rbtree_oset.c: Likewise.
77228         * lib/gl_rbtreehash_list.c: Likewise.
77229         * lib/imaxabs.c: Likewise.
77230         * lib/imaxdiv.c: Likewise.
77231         * lib/javacomp.c: Likewise.
77232         * lib/javaexec.c: Likewise.
77233         * lib/javaversion.c: Likewise.
77234         * lib/linebreak.c: Likewise.
77235         * lib/localcharset.c: Likewise.
77236         * lib/lock.c: Likewise.
77237         * lib/mbchar.c: Likewise.
77238         * lib/mbswidth.c: Likewise.
77239         * lib/mkdtemp.c: Likewise.
77240         * lib/pipe.c: Likewise.
77241         * lib/printf-args.c: Likewise.
77242         * lib/printf-parse.c: Likewise.
77243         * lib/progname.c: Likewise.
77244         * lib/progreloc.c: Likewise.
77245         * lib/readlink.c: Likewise.
77246         * lib/sh-quote.c: Likewise.
77247         * lib/stpcpy.c: Likewise.
77248         * lib/stpncpy.c: Likewise.
77249         * lib/strcasecmp.c: Likewise.
77250         * lib/strcasestr.c: Likewise.
77251         * lib/strcspn.c: Likewise.
77252         * lib/striconv.c: Likewise.
77253         * lib/strncasecmp.c: Likewise.
77254         * lib/strnlen1.c: Likewise.
77255         * lib/strstr.c: Likewise.
77256         * lib/strtok_r.c: Likewise.
77257         * lib/tls.c: Likewise.
77258         * lib/tmpdir.c: Likewise.
77259         * lib/unicodeio.c: Likewise.
77260         * lib/unsetenv.c: Likewise.
77261         * lib/vasnprintf.c: Likewise.
77262         * lib/vasprintf.c: Likewise.
77263         * lib/wait-process.c: Likewise.
77264         * lib/xallocsa.c: Likewise.
77265         * lib/xsetenv.c: Likewise.
77266         * lib/xstriconv.c: Likewise.
77267
77268 2006-09-13  Simon Josefsson  <jas@extundo.com>
77269
77270         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
77271         that internally, suggested by Ralf Wildenhues
77272         <Ralf.Wildenhues@gmx.de>.
77273
77274 2006-09-13  Simon Josefsson  <jas@extundo.com>
77275
77276         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
77277         @LIBOBJS@.
77278         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77279
77280 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77281
77282         * lib/_fpending.c: Include <config.h> unconditionally, since we no
77283         longer worry about uses that don't define HAVE_CONFIG_H.
77284         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
77285         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
77286         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
77287         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
77288         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
77289         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
77290         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
77291         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
77292         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
77293         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
77294         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
77295         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
77296         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
77297         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
77298         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
77299         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
77300         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
77301         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
77302         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
77303         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
77304         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
77305         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
77306         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
77307         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
77308         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
77309         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
77310         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
77311         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
77312         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
77313         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
77314         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
77315         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
77316         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
77317         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
77318         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
77319         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
77320         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
77321         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
77322         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
77323         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
77324         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
77325         Likewise.
77326
77327 2006-09-13  Eric Blake  <ebb9@byu.net>
77328
77329         * lib/getopt.c: Fix typo in last commit.
77330
77331 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77332
77333         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
77334         dgettext.
77335
77336 2006-09-12  Jim Meyering  <jim@meyering.net>
77337
77338         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
77339         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
77340         Reported by Nelson H. F. Beebe.
77341
77342 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77343
77344         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
77345         program_invocation_name and program_invocation_short_name are
77346         initialized.
77347         * lib/argp-namefrob.h: Move declarations of program_invocation_name
77348         and program_invocation_short_name to argp.h, so they are visible
77349         to user programs.
77350         * lib/argp.h: Likewise
77351
77352 2006-09-10  Bruno Haible  <bruno@clisp.org>
77353
77354         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77355         m4/inttypes_h.m4, m4/uintmax_t.m4.
77356
77357 2006-09-10  Bruno Haible  <bruno@clisp.org>
77358
77359         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
77360         gl_AC_TYPE_UINTMAX_T.
77361
77362 2006-09-10  Bruno Haible  <bruno@clisp.org>
77363
77364         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
77365
77366 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77367
77368         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
77369         convention.  Text proposed by Bruno Haible.
77370         (struct argp_option): Document the use of N_() wrappers.
77371
77372         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
77373         '\v', and translate the two parts separately, instead of feeding
77374         the whole string to gettext.  This allows to exclude
77375         '\v' from the strings visible to the translator by writing doc
77376         strings as N_("..") "\v" N_("..").
77377
77378 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
77379
77380         * config/srclist.txt: Undo latest change; the bug was fixed.
77381
77382 2006-09-09  Bruno Haible  <bruno@clisp.org>
77383
77384         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
77385         assignments if building a library without libtool.
77386         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
77387         in func_emit_lib_Makefile_am.
77388         (func_import): When building a static library libfoo.a, arrange to
77389         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
77390         (func_create_testdir): Likewise.
77391         * modules/gc (configure.ac, Makefile.am): If building statically,
77392         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
77393         * modules/iconvme (configure.ac, Makefile.am): Likewise.
77394         * modules/striconv (configure.ac, Makefile.am): Likewise.
77395         Based on a suggestion by Ralf Wildenhues.
77396
77397 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77398
77399         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
77400         Check for unistd.h too, since Autoconf doesn't assume POSIX.
77401         Also:
77402
77403         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77404         Add year_2050_test to catch glibc bug 2821
77405         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77406
77407         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77408         Prefer #ifdef to #if.
77409
77410         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
77411         Return from 'main' instead of calling 'exit'.
77412
77413 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77414
77415         * lib/mktime.c (guess_time_tm): Fix bug where mktime
77416         returned the maximum time_t value rather than (time_t) -1.
77417         Problem originally reported by William Bardwell
77418         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77419
77420         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77421         Moved to here ...
77422         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77423         ... from here.
77424
77425 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77426
77427         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
77428         2821 is fixed.
77429
77430 2006-09-08  Jim Meyering  <jim@meyering.net>
77431
77432         Don't make generated files read-only.  That would bother too many
77433         people.  However, do retain the ability to work when targets are
77434         read-only: remove the destination and temporary files before writing
77435         them (when generated via sed or echo), or by using the -f option for
77436         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
77437         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77438         * modules/byteswap, modules/configmake, modules/fcntl:
77439         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77440         * modules/localcharset, modules/netinet_in, modules/poll:
77441         * modules/stdbool, modules/stdint, modules/sys_select:
77442         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77443
77444 2006-09-08  Jim Meyering  <jim@meyering.net>
77445
77446         Avoid new build failure on FreeBSD 6.0.
77447         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
77448         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
77449         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
77450
77451 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77452
77453         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
77454
77455 2006-09-07  Jim Meyering  <jim@meyering.net>
77456
77457         Fix global typo in last change: use chmod u-w, not chmod u-x.
77458         Spotted by Paul Eggert and Bruce Korb.
77459         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77460         * modules/byteswap, modules/configmake, modules/fcntl:
77461         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77462         * modules/localcharset, modules/netinet_in, modules/poll:
77463         * modules/stdbool, modules/stdint, modules/sys_select:
77464         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77465
77466 2006-09-06  Jim Meyering  <jim@meyering.net>
77467
77468         Make generated files be read-only.
77469         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
77470         Ensure that each generated file is now read-only.
77471         * modules/argz: Likewise.
77472         * modules/arpa_inet: Likewise.
77473         * modules/byteswap: Likewise.
77474         * modules/configmake: Likewise.
77475         * modules/fcntl: Likewise.
77476         * modules/fnmatch: Likewise.
77477         * modules/getopt: Likewise.
77478         * modules/glob: Likewise.
77479         * modules/inttypes: Likewise.
77480         * modules/netinet_in: Likewise.
77481         * modules/poll: Likewise.
77482         * modules/stdbool: Likewise.
77483         * modules/stdint: Likewise.
77484         * modules/sys_select: Likewise.
77485         * modules/sys_socket: Likewise.
77486         * modules/sys_stat: Likewise.
77487         * modules/sysexits: Likewise.
77488         * modules/localcharset: Same as above, but continue using temporary
77489         file named "t-$@" (why different?) rather than the "$@-t" used
77490         everywhere else.
77491
77492         * modules/sysexits (Makefile.am): Replace literal occurrences
77493         of "sysexit.h" more readable, and more consistent, "$@".
77494
77495 2006-09-06  Bruno Haible  <bruno@clisp.org>
77496
77497         * modules/striconv: New file.
77498         * modules/xstriconv: New file.
77499         * MODULES.html.sh (Internationalization functions): Add striconv,
77500         xstriconv.
77501
77502 2006-09-06  Bruno Haible  <bruno@clisp.org>
77503
77504         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
77505         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
77506         not using libtool correctly.
77507
77508 2006-09-06  Bruno Haible  <bruno@clisp.org>
77509
77510         * lib/striconv.h: New file.
77511         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
77512         iconvstring.c.
77513         * lib/xstriconv.h: New file.
77514         * lib/xstriconv.c: New file.
77515
77516 2006-09-06  Bruno Haible  <bruno@clisp.org>
77517
77518         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
77519         lib_..._LDFLAGS.
77520
77521 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77522
77523         * lib/argz_.h: Sync from Libtool.
77524
77525         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
77526                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77527
77528         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
77529
77530 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77531
77532         * modules/trim: New file.
77533
77534 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77535
77536         * lib/trim.h: New file.
77537         * lib/trim.c: New file.
77538
77539 2006-09-05  Bruno Haible  <bruno@clisp.org>
77540
77541         * MODULES.html.sh (String handling): Add trim.
77542
77543 2006-09-04  Karl Berry  <karl@gnu.org>
77544
77545         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
77546         until next release.
77547
77548 2006-09-03  Bruno Haible  <bruno@clisp.org>
77549
77550         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
77551         correctly.
77552
77553 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77554
77555         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
77556         not gl_GETLOADAVG.  Omit unneeded semicolons.
77557         Problems reported by Ralf Wildenhues in
77558         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77559         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
77560         at the end, which is the usual gnulib style.
77561
77562         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
77563         of doing all the work ourselves.
77564         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
77565         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
77566
77567 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77568
77569         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
77570         Problem reported by Ralf Wildenhues in
77571         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77572
77573         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
77574         HAVE_STRUCT_STATFS_F_FSTYPENAME.
77575
77576 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77577
77578         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
77579         yesterday's patch by changing test -n to test -z.
77580
77581 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77582
77583         * modules/getloadavg (Files): Add m4/getloadavg.m4.
77584         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
77585         the former is now obsolescent.
77586
77587         * modules/chdir-long (Depends-on): Add fcntl.
77588
77589 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77590
77591         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
77592         obsolescent, and programs should use gnulib instead.
77593         * m4/getloadavg.m4: New file, with contents taken from Autoconf
77594         but with prefixes changed.
77595
77596 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77597
77598         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
77599         or stdbool.h, because they might not exist while configuring.
77600
77601         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
77602         Don't include unistd.h or limits.h; not needed, since chdir-long.h
77603         does that for us.
77604         (O_DIRECTORY): Remove.
77605
77606 2006-08-31  Eric Blake  <ebb9@byu.net>
77607
77608         * gnulib-tool: Don't let emacs change spaces to TAB.
77609
77610 2006-08-31  Bruno Haible  <bruno@clisp.org>
77611
77612         * gnulib-tool: When calling func_import more than once, do it in a
77613         subshell.
77614         Reported by Eric Blake <ebb9@byu.net>.
77615
77616 2006-08-31  Bruno Haible  <bruno@clisp.org>
77617
77618         * gnulib-tool (nl): Remove variable.
77619         (sed_transform_lib_file): Use more robust test for config-h module.
77620         (func_import): Fix typo in 2006-08-25 patch.
77621
77622 2006-08-31  Bruno Haible  <bruno@clisp.org>
77623
77624         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
77625         specified, augment Makefile.am variables instead of assigning them.
77626
77627 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77628
77629         Work around a bug in both the Linux and SunOS 64-bit kernels:
77630         nanosleep mishandles sleeps for longer than 2**31 seconds.
77631         Problem reported by Frank v Waveren in
77632         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77633         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
77634         Check for nanosleep bug.
77635         (LIB_NANOSLEEP): Append clock_gettime library if needed.
77636
77637 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77638
77639         Work around a bug in both the Linux and SunOS 64-bit kernels:
77640         nanosleep mishandles sleeps for longer than 2**31 seconds.
77641         Problem reported by Frank v Waveren in
77642         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77643         * lib/nanosleep.c (BILLION): New constant.
77644         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
77645         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
77646         implementation.
77647
77648 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77649
77650         * modules/nanosleep (Depends-on): Add gettime.
77651
77652 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77653         and Simon Josefsson  <jas@extundo.com>
77654         and Oskar Liljeblad  <oskar@osk.mine.nu>
77655
77656         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
77657         * gnulib-tool (func_import): New license type 'unmodifiable license
77658         text'.
77659         * modules/fdl: Use it.  Longer description.
77660         * module/gpl, module/lgpl: New files.
77661
77662 2006-08-30  Jim Meyering  <jim@meyering.net>
77663
77664         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
77665         shadowing the parameter.
77666
77667 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77668
77669         Sync from Libtool:
77670
77671         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77672
77673         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
77674         sharing with gnulib.  Report by Eric Blake.
77675
77676 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77677
77678         * modules/isapipe: New file.
77679         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
77680
77681 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77682
77683         * modules/configmake (Makefile.am): Add a comment, and omit
77684         the CONFIGMAKE_ prefix from generated macro names.  Suggested
77685         by Bruno Haible.
77686
77687 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77688
77689         * m4/isapipe.m4: New file.
77690
77691 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77692
77693         * lib/isapipe.c, lib/isapipe.h: New files.
77694
77695 2006-08-29  Jim Meyering  <jim@meyering.net>
77696
77697         * modules/configmake (Makefile.am): Make configmake.h depend on
77698         Makefile.  Otherwise, a stale configmake.h could hang around.
77699
77700 2006-08-29  Eric Blake  <ebb9@byu.net>
77701
77702         * lib/error.c (error_at_line, print_errno_message): Match libc, after
77703         resolution of upstream bug 3044.
77704
77705 2006-08-29  Bruno Haible  <bruno@clisp.org>
77706
77707         * modules/localcharset (Depends-on): Add configmake.
77708         (Makefile.am): Remove setting of LIBDIR through DEFS.
77709
77710 2006-08-29  Bruno Haible  <bruno@clisp.org>
77711
77712         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
77713         defined.
77714
77715 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77716
77717         * modules/fcntl: New file.
77718         * modules/chdir-safer (Depends-on): Add fcntl.
77719         * modules/fts: Likewise.
77720         * modules/mkdir-p: Likewise.
77721
77722         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
77723         This undoes the most recent change, since we're now addressing the
77724         problem in a different way.
77725
77726         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
77727         into output, since the output might be called Makefile.am even
77728         if $makefile_name is something different.
77729         (func_import): Use $makefile_am rather than
77730         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
77731         empty.
77732
77733         * modules/inttypes (Files): Add m4/inttypes-h.m4.
77734
77735 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77736
77737         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
77738         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
77739         recent change to stdint.m4, since we're now addressing the problem in a
77740         different way.
77741
77742 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77743
77744         * m4/fcntl_h.m4: New file.
77745
77746 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77747
77748         * lib/fcntl_.h: New file.
77749         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
77750         the fcntl module.
77751         * lib/dirchownmod.c: Likewise.
77752         * lib/fts.c: Likewise.
77753
77754         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
77755         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
77756         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
77757         just before including <inttypes.h>, to avoid circular inclusion.
77758
77759 2006-08-28  Jim Meyering  <jim@meyering.net>
77760
77761         * doc/visibility.texi: Actually read and correct the grammar of the
77762         sentence affected by yesterday's change.
77763
77764 2006-08-28  Eric Blake  <ebb9@byu.net>
77765
77766         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
77767         needs wrapper.
77768
77769 2006-08-28  Eric Blake  <ebb9@byu.net>
77770
77771         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
77772
77773 2006-08-28  Eric Blake  <ebb9@byu.net>
77774
77775         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
77776
77777 2006-08-28  Bruno Haible  <bruno@clisp.org>
77778
77779         * modules/c-strstr: New file, from GNU gettext.
77780         * MODULES.html.sh (String handling): Add c-strstr.
77781
77782 2006-08-28  Bruno Haible  <bruno@clisp.org>
77783
77784         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
77785         macros.
77786         Reported by Eric Blake.
77787
77788 2006-08-28  Bruno Haible  <bruno@clisp.org>
77789
77790         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
77791         (VASNPRINTF): Return a string of length > INT_MAX without failing.
77792         * lib/vasprintf.c: Include errno.h, limits.h.
77793         (EOVERFLOW): New fallback definition.
77794         (vasprintf): Test here whether the string length is > INT_MAX.
77795         * lib/vsnprintf.c: Include errno.h, limits.h.
77796         (EOVERFLOW): New fallback definition.
77797         (vsnprintf): Fix bug when generated string was too long for the buffer.
77798         Test here whether the string length is > INT_MAX.
77799
77800 2006-08-28  Bruno Haible  <bruno@clisp.org>
77801
77802         * lib/inttypes_.h (SCNX*): Remove definitions.
77803         Reported by Eric Blake.
77804
77805 2006-08-28  Bruno Haible  <bruno@clisp.org>
77806
77807         * lib/c-strstr.h: New file, from GNU gettext.
77808         * lib/c-strstr.c: New file, from GNU gettext.
77809
77810 2006-08-28  Bruno Haible  <bruno@clisp.org>
77811
77812         * gnulib-tool: Reorder some statements.
77813
77814 2006-08-28  Bruno Haible  <bruno@clisp.org>
77815
77816         * gnulib-tool: New option --makefile-name.
77817         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
77818         $makefile_name.
77819         (func_import): Write $makefile_name to the cache file, and read it from
77820         there unless explicitly specified. Use $makefile_name as file name
77821         instead of Makefile.am. Adjust the recommendations accordingly.
77822
77823 2006-08-28  Bruno Haible  <bruno@clisp.org>
77824
77825         * gnulib-tool (func_verify_module): Check against misapplying patch.
77826
77827 2006-08-28  Bruno Haible  <bruno@clisp.org>
77828
77829         * gnulib-tool (func_relativize, func_relconcat): New functions.
77830         Give an error if --local-dir is given with --update.
77831         Remove trailing slashes from $local_gnulib_dir.
77832         (func_import): Store the relativized $local_gnulib_dir in
77833         gnulib-cache.m4, and read it from there if not specified explicitly.
77834
77835 2006-08-28  Bruno Haible  <bruno@clisp.org>
77836
77837         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
77838         is the current directory. Respect also $local_gnulib_dir.
77839
77840 2006-08-28  Bruno Haible  <bruno@clisp.org>
77841             Simon Josefsson  <jas@extundo.com>
77842
77843         BeOS portability.
77844         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
77845
77846 2006-08-27  Jim Meyering  <jim@meyering.net>
77847
77848         * doc/visibility.texi: Remove duplicate word: "pointer".
77849
77850 2006-08-26  Bruno Haible  <bruno@clisp.org>
77851
77852         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
77853         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
77854         (Makefile.am): Create inttypes.h from inttypes_.h.
77855         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
77856
77857         * modules/imaxabs: New file.
77858
77859         * modules/imaxdiv: New file.
77860
77861 2006-08-26  Bruno Haible  <bruno@clisp.org>
77862
77863         * m4/inttypes.m4: New file.
77864         * m4/_inttypes_h.m4: Remove file.
77865         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
77866         PRI_MACROS_BROKEN.
77867         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
77868
77869         * m4/imaxabs.m4: New file.
77870
77871         * m4/imaxdiv.m4: New file.
77872
77873 2006-08-26  Bruno Haible  <bruno@clisp.org>
77874
77875         * lib/inttypes_.h: New file.
77876         * lib/inttypes.h: Remove file.
77877         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
77878
77879         * lib/imaxabs.c: New file.
77880
77881         * lib/imaxdiv.c: New file.
77882
77883 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77884
77885         New config-h module, so that "make" output needn't be cluttered
77886         by -DHAVE_CONFIG_H.
77887         * MODULES.html.sh (Support for building libraries and executables):
77888         Add config-h.
77889         * modules/config-h: New file.
77890         * gnulib-tool (nl, sed_transform_lib_file): New vars.
77891         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
77892         the config-h module is used.
77893
77894         New configmake module, so that "make" output needn't be cluttered
77895         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
77896         * MODULES.html.sh (Support for building libraries and executables):
77897         Add configmake.
77898         * modules/configmake: New file.
77899
77900 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77901
77902         * m4/config-h.m4: New file.
77903
77904 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77905
77906         * config/srclist.txt: Add elisp-comp.
77907
77908 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77909
77910         * MODULES.html.sh (Support for building libraries and executables):
77911         Add elisp-comp.
77912         * build-aux/elisp-comp: New file.
77913         * modules/elisp-comp: New file.
77914
77915 2006-08-24  Bruno Haible  <bruno@clisp.org>
77916
77917         * gnulib-tool (func_create_testdir): Use non-default values of
77918         sourcebase and m4base.
77919
77920 2006-08-24  Bruno Haible  <bruno@clisp.org>
77921
77922         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
77923         HTML structure.
77924
77925 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77926
77927         * modules/openat (Depends-on): Add lchown.
77928
77929 2006-08-23  Bruno Haible  <bruno@clisp.org>
77930
77931         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
77932         of gl_LOCK_EARLY instead of gl_LOCK.
77933
77934 2006-08-23  Bruno Haible  <bruno@clisp.org>
77935
77936         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
77937         on OSF/1 to no.
77938         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
77939
77940 2006-08-23  Bruno Haible  <bruno@clisp.org>
77941
77942         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
77943         as unusable.
77944
77945         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
77946         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
77947         (gl_LOCK): New macro.
77948
77949 2006-08-22  Simon Josefsson  <jas@extundo.com>
77950
77951         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
77952         to md5 module.
77953
77954 2006-08-22  Simon Josefsson  <jas@extundo.com>
77955
77956         * MODULES.html.sh: Add "Support for maintaining and release
77957         projects".
77958
77959         * build-aux/gnupload: New file, from coreutils.
77960
77961 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77962
77963         Avoid the need for AC_LIBSOURCES in m4 macros.
77964         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
77965         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
77966         * modules/check-version (EXTRA_DIST): Add check-version.h.
77967         * modules/crc (EXTRA_DIST): Add crc.h.
77968         * modules/des (EXTRA_DIST): Add des.h.
77969         * modules/gc (EXTRA_DIST): Add gc.h.
77970         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
77971         * modules/getline (EXTRA_DIST): Add getline.h.
77972         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
77973         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
77974         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
77975         * modules/md2 (EXTRA_DIST): Add md2.h.
77976         * modules/md4 (EXTRA_DIST): Add md4.h.
77977         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
77978         * modules/read-file (EXTRA_DIST): Add read-file.h.
77979         * modules/readline (EXTRA_DIST): Add readline.h.
77980         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
77981         rijndael-api-fst.h.
77982
77983 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77984
77985         * m4/rijndael.m4 (gl_ARCFOUR):
77986         * m4/arctwo.m4 (gl_ARCTWO):
77987         * m4/check-version.m4 (gl_CHECK_VERSION):
77988         * m4/crc.m4 (gl_CRC):
77989         * m4/des.m4 (gl_DES):
77990         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
77991         * m4/gc.m4 (gl_GC):
77992         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
77993         * m4/getline.m4 (gl_FUNC_GETLINE):
77994         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
77995         * m4/hmac-md5.m4 (gl_HMAC_MD5):
77996         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
77997         * m4/md2.m4 (gl_MD2):
77998         * m4/md4.m4 (gl_MD4):
77999         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
78000         * m4/read-file.m4 (gl_FUNC_READ_FILE):
78001         * m4/readline.m4 (gl_FUNC_READLINE):
78002         * m4/rijndael.m4 (gl_RIJNDAEL):
78003         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78004         to get the necessary .h files and whatnot.
78005
78006 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78007
78008         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
78009         gnulib rather than the other way around.
78010         * config/srclistvars.sh (COREUTILS): Remove.
78011
78012 2006-08-22  Jim Meyering  <jim@meyering.net>
78013
78014         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
78015
78016         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
78017
78018 2006-08-22  Eric Blake  <ebb9@byu.net>
78019
78020         * modules/regexprops-generic: New file.
78021         * MODULES.html.sh (Support for building documentation): List it.
78022
78023 2006-08-22  Eric Blake  <ebb9@byu.net>
78024
78025         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
78026         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
78027         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
78028         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
78029
78030 2006-08-22  Bruno Haible  <bruno@clisp.org>
78031
78032         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
78033         and lib_LTLIBRARIES like the other lib_* variables.
78034
78035 2006-08-22  Bruno Haible  <bruno@clisp.org>
78036
78037         * build-aux/x-to-1.in: New file, from GNU gettext.
78038
78039 2006-08-22  Bruno Haible  <bruno@clisp.org>
78040
78041         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
78042         <utmpx.h> exists.
78043
78044 2006-08-22  Bruno Haible  <bruno@clisp.org>
78045
78046         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
78047         <utmpx.h> exists.
78048
78049 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78050
78051         BeOS portability.
78052         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
78053         exist.
78054         Problem reported by Bruno Haible.
78055
78056 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78057
78058         Avoid the need for AC_LIBSOURCES in m4 macros.
78059         * modules/acl (EXTRA_DIST): Add acl.h.
78060         * modules/argmatch (Files): Add m4/argmatch.m4.
78061         (configure.ac): Add gl_ARGMATCH.
78062         (EXTRA_DIST): Renamed from lib_SOURCES, for
78063         consistency with the other modules.  Remove argmatch.c.
78064         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
78065         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
78066         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
78067         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
78068         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
78069         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
78070         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
78071         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
78072         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
78073         * modules/closeout (EXTRA_DIST): Add closeout.h.
78074         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
78075         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
78076         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
78077         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
78078         dirname.h; remove basename.c and stripslash.c.
78079         * modules/exclude (EXTRA_DIST): Add exclude.h.
78080         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
78081         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
78082         * modules/file-type (EXTRA_DIST): Add file-type.h.
78083         * modules/filemode (EXTRA_DIST): Add filemode.h.
78084         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
78085         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78086         * modules/fpending (EXTRA_DIST): Add __fpending.h.
78087         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
78088         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
78089         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
78090         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
78091         * modules/getdate (EXTRA_DIST): Add getdate.c.
78092         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
78093         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
78094         * modules/getpass (EXTRA_DIST): Add getpass.h.
78095         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
78096         * modules/group-member (EXTRA_DIST): Add group-member.h.
78097         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
78098         * modules/hash (EXTRA_DIST): Add hash.h.
78099         * modules/human (EXTRA_DIST): Add human.h.
78100         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
78101         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
78102         * modules/lchown (EXTRA_DIST): Add lchown.h.
78103         * modules/long-options (EXTRA_DIST): Add long-options.h.
78104         * modules/lstat (EXTRA_DIST): Add lstat.h.
78105         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
78106         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
78107         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
78108         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
78109         * modules/memxor (EXTRA_DIST): Add memxor.h.
78110         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
78111         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
78112         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
78113         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
78114         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
78115         * modules/physmem (EXTRA_DIST): Add physmem.h.
78116         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
78117         * modules/posixver (EXTRA_DIST): Add posixver.h.
78118         * modules/quote (EXTRA_DIST): Add quote.h.
78119         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
78120         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
78121         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
78122         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
78123         regex_internal.h regexec.c.
78124         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
78125         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
78126         * modules/same (EXTRA_DIST): Add same.h.
78127         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
78128         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
78129         * modules/savedir (EXTRA_DIST): Add savedir.h.
78130         * modules/sha1 (EXTRA_DIST): Add sha1.h.
78131         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
78132         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
78133         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
78134         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
78135         * modules/strdup (EXTRA_DIST): Add strdup.h.
78136         * modules/strftime (EXTRA_DIST): Add strftime.h.
78137         * modules/strndup (EXTRA_DIST): Add strndup.h.
78138         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
78139         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
78140         * modules/time_r (EXTRA_DIST): Add time_r.h.
78141         * modules/timespec (EXTRA_DIST): Add timespec.h.
78142         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78143         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
78144         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
78145         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
78146         * modules/userspec (EXTRA_DIST): Add userspec.h.
78147         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
78148         * modules/utimens (EXTRA_DIST): Add utimens.h.
78149         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
78150         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
78151         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
78152         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
78153         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
78154         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
78155         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
78156         * modules/yesno (EXTRA_DIST): Add yesno.h.
78157
78158 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78159
78160         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
78161
78162         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
78163         * m4/dev-ino.m4, same-inode.m4: Remove.
78164
78165         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
78166         * m4/acl.m4 (AC_FUNC_ACL):
78167         * m4/backupfile.m4 (gl_BACKUPFILE):
78168         * m4/c-strtod.m4 (gl_C99_STRTOLD):
78169         * m4/canon-host.m4 (gl_CANON_HOST):
78170         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
78171         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
78172         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
78173         * m4/cloexec.m4 (gl_CLOEXEC):
78174         * m4/close-stream.m4 (gl_CLOSE_STREAM):
78175         * m4/closeout.m4 (gl_CLOSEOUT):
78176         * m4/dirfd.m4 (gl_FUNC_DIRFD):
78177         * m4/dirname.m4 (gl_DIRNAME):
78178         * m4/exclude.m4 (gl_EXCLUDE):
78179         * m4/exitfail.m4 (gl_EXITFAIL):
78180         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
78181         * m4/file-type.m4 (gl_FILE_TYPE):
78182         * m4/filemode.m4 (gl_FILEMODE):
78183         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
78184         * m4/fpending.m4 (gl_FUNC_FPENDING):
78185         * m4/fprintftime.m4 (gl_FPRINTFTIME):
78186         * m4/fts.m4 (gl_FUNC_FTS):
78187         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
78188         * m4/getdate.m4 (gl_GETDATE):
78189         * m4/gethrxtime.m4 (gl_GETHRXTIME):
78190         * m4/getpagesize.m4 (gl_GETPAGESIZE):
78191         * m4/getpass.m4 (gl_FUNC_GETPASS):
78192         * m4/gettime.m4 (gl_GETTIME):
78193         * m4/getugroups.m4 (gl_GETUGROUPS):
78194         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
78195         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
78196         * m4/hard-locale.m4 (gl_HARD_LOCALE):
78197         * m4/hash.m4 (gl_HASH):
78198         * m4/idcache.m4 (gl_IDCACHE):
78199         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
78200         * m4/lchown.m4 (gl_FUNC_LCHOWN):
78201         * m4/long-options.m4 (gl_LONG_OPTIONS):
78202         * m4/lstat.m4 (gl_FUNC_LSTAT):
78203         * m4/md5.m4 (gl_MD5):
78204         * m4/memcasecmp.m4 (gl_MEMCASECMP):
78205         * m4/memcoll.m4 (gl_MEMCOLL):
78206         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
78207         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
78208         * m4/memxor.m4 (gl_MEMXOR):
78209         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
78210         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
78211         * m4/modechange.m4 (gl_MODECHANGE):
78212         * m4/mountlist.m4 (gl_MOUNTLIST):
78213         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
78214         * m4/openat.m4 (gl_FUNC_OPENAT):
78215         * m4/pathmax.m4 (gl_PATHMAX):
78216         * m4/physmem.m4 (gl_PHYSMEM):
78217         * m4/posixtm.m4 (gl_POSIXTM):
78218         * m4/posixver.m4 (gl_POSIXVER):
78219         * m4/quote.m4 (gl_QUOTE):
78220         * m4/quotearg.m4 (gl_QUOTEARG):
78221         * m4/readtokens.m4 (gl_READTOKENS):
78222         * m4/readutmp.m4 (gl_READUTMP):
78223         * m4/regex.m4 (gl_REGEX):
78224         * m4/safe-read.m4 (gl_SAFE_READ):
78225         * m4/safe-write.m4 (gl_SAFE_WRITE):
78226         * m4/same.m4 (gl_SAME):
78227         * m4/save-cwd.m4 (gl_SAVE_CWD):
78228         * m4/savedir.m4 (gl_SAVEDIR):
78229         * m4/settime.m4 (gl_SETTIME):
78230         * m4/sha1.m4 (gl_SHA1):
78231         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
78232         * m4/stat-macros.m4 (gl_STAT_MACROS):
78233         * m4/stat-time.m4 (gl_STAT_TIME):
78234         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
78235         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
78236         * m4/strdup.m4 (gl_FUNC_STRDUP):
78237         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
78238         * m4/strndup.m4 (gl_FUNC_STRNDUP):
78239         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
78240         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
78241         * m4/time_r.m4 (gl_TIME_R):
78242         * m4/timespec.m4 (gl_TIMESPEC):
78243         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
78244         * m4/unlinkdir.m4 (gl_UNLINKDIR):
78245         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
78246         * m4/userspec.m4 (gl_USERSPEC):
78247         * m4/utimecmp.m4 (gl_UTIMECMP):
78248         * m4/utimens.m4 (gl_UTIMENS):
78249         * m4/xalloc.m4 (gl_XALLOC):
78250         * m4/xgetcwd.m4 (gl_XGETCWD):
78251         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
78252         * m4/xreadlink.m4 (gl_XREADLINK):
78253         * m4/xstrtod.m4 (gl_XSTRTOD):
78254         * m4/yesno.m4 (gl_YESNO):
78255         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78256         to get the necessary .h files and whatnot.
78257
78258 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
78259             Bruno Haible  <bruno@clisp.org>
78260
78261         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
78262         /bin/sh understanding of '!' conditional negation.
78263
78264 2006-08-21  Jim Meyering  <jim@meyering.net>
78265
78266         * modules/openat (Depends-on): Really alphabetize.
78267
78268         * modules/acl (Depends-on): Add error and quote.
78269
78270         * check-module (find_included_lib_files): Add at-func.c to the
78271         ok-to-include-more-than-once white list.
78272
78273         * modules/openat (Depends-on): Add lstat.  Alphabetize.
78274
78275 2006-08-21  Bruno Haible  <bruno@clisp.org>
78276
78277         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78278         Emit a pkgdata_DATA variable only if some snippets add contents to it.
78279         Reported by Martin Lambers <marlam@marlam.de>.
78280
78281 2006-08-21  Bruno Haible  <bruno@clisp.org>
78282
78283         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
78284         specify an installation location, don't emit a noinst_LIBRARIES or
78285         noinst_LTLIBRARIES assignment.
78286
78287 2006-08-21  Bruno Haible  <bruno@clisp.org>
78288
78289         BeOS portability.
78290         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
78291         BeOS has mbrtowc() but no <wctype.h>.
78292
78293 2006-08-21  Bruno Haible  <bruno@clisp.org>
78294
78295         BeOS portability.
78296         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
78297         exist.
78298
78299 2006-08-21  Bruno Haible  <bruno@clisp.org>
78300
78301         BeOS portability.
78302         * lib/mbchar.h: Include <wctype.h> only if it exists.
78303
78304 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78305
78306         Remove files that are no longer needed by their respective modules.
78307         * m4/obstack.m4: Remove.
78308         * m4/strerror_r.m4: Remove.
78309         * m4/uint32_t.m4: Remove.
78310         * m4/uintptr_t.m4: Remove.
78311         * m4/ullong_max.m4: Remove.
78312         * m4/xstrtoimax.m4: Remove.
78313         * m4/xstrtoumax.m4: Remove.
78314
78315         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
78316         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
78317         dependencies now capture this.
78318
78319         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
78320         Do not use AC_LIBSOURCES, since gnulib modules now do this.
78321         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
78322         * m4/human.m4 (gl_HUMAN): Likewise.
78323         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
78324         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
78325
78326         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
78327
78328         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
78329         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
78330         stdint.
78331         * m4/human.m4 (gl_HUMAN): Likewise.
78332         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
78333         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
78334         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78335         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78336         * m4/xstrtol (gl_XSTRTOL): Likewise.
78337
78338         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
78339         AC_TYPE_LONG_LONG_INT.
78340         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78341         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
78342         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
78343         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78344
78345         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
78346         on stdbool.
78347
78348         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
78349         (gl_PREREQ_XSTRTOUL): Remove.
78350
78351         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
78352
78353         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
78354         mode.
78355
78356 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78357
78358         Add and change modules to make it easier for coreutils to use
78359         gnulib-tool.
78360         * modules/backupfile (Files): Remove m4/d-ino.m4.
78361         (Depends-on): Add d-ino.
78362         * modules/cycle-check (Depends-on): Add stdint.
78363         (lib_SOURCES): Add cycle-check.h.
78364         * modules/d-ino: New module.
78365         * modules/d-type: New module.
78366         * modules/error (Files): Remove m4/strerror_r.m4.
78367         * modules/filemode (Files): Add m4/st_dm_mode.m4.
78368         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78369         m4/inttypes_h.m4, m4/uintmax_t.m4.
78370         (Depends-on): Add stdint.
78371         (lib_SOURCES): Add fsusage.h.
78372         * modules/getcwd (Files): Remove d-ino.m4.
78373         (Depends-on): Add d-ino.
78374         * modules/getndelim2 (Depends-on): Add stdint.
78375         * modules/glob (Files): Remove m4/d-type.m4.
78376         (Depends-on): Add d-type.
78377         * modules/host-os: New module.
78378         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
78379         m4/inttypes_h.m4, m4/uintmax_t.m4.
78380         * Depends-on: Add stdint.
78381         (lib_SOURCES): Add human.h.
78382         * modules/inttostr (Files): Remove m4/intmax_t.m4,
78383         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
78384         m4/uintmax_t.m4, m4/ulonglong.m4.
78385         (Depends-on): Add stdint.
78386         (EXTRA_DIST): Add inttostr.h.
78387         * modules/lchmod: New module.
78388         * modules/link-follow: New module.
78389         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
78390         (Depends-on): Add lchmod.
78391         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
78392         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
78393         (Depends-on): Add stdint.
78394         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
78395         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
78396         (Depends-on): Add stdint.
78397         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
78398         * modules/perl: New module.
78399         * modules/regex (Depends-on): Add stdint.
78400         * modules/rmdir-errno: New module.
78401         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78402         m4/intmax_t.m4.
78403         (Depends-on): Add stdint.
78404         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78405         m4/uintmax_t.m4.
78406         (Depends-on): Add stdint.
78407         * modules/unlink-busy: New module.
78408         * modules/utimecmp (Depends-on): Add stdint.
78409         * modules/uptime: New module.
78410         * modules/winsz-ioctl: New module.
78411         * modules/winsz-termios: New module.
78412         * modules/xnanosleep (Depends-on): Add nanosleep.
78413         * modules/ullong_max: Remove.
78414         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
78415         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
78416         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
78417         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
78418         (Depends-on): Add inttypes.
78419         (lib_SOURCES): Add xstrtol.h.
78420         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
78421         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
78422         * MODULES.html.sh: Move 'assert' into the assert section.
78423         Move 'dummy' into the linking section.
78424         Remove ullong_max.
78425         Add section for compatibility checks for POSIX:2001 functions,
78426         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
78427         winsz-ioctl, and winsz-termios into it.
78428         Add lchmod.
78429         Add top-level Misc section and put host-os, perl, and uptime
78430         into it.
78431
78432 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78433
78434         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
78435         now assume the stdint module.  Do not include inttypes.h.
78436         * lib/fsusage.h: Likewise.
78437         * lib/getndelim2.c: Likewise.
78438         * lib/human.h: Likewise.
78439         * lib/inttostr.h: Likewise.
78440         * lib/obstack.c: Likewise.
78441         * lib/regex_internal.h: Likewise.
78442         * lib/tempname.c: Likewise.
78443         * lib/utimecmp.c: Likewise.
78444         * lib/xstrtol.h: Likewise.
78445
78446         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
78447
78448         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
78449         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
78450         * lib/xtime.h: Likewise.
78451
78452 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78453
78454         * modules/openat (Files): Add lib/fchmodat.c.
78455         Fixes problem reported by Jay Youngman.
78456
78457 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78458
78459         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
78460         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
78461
78462 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
78463             Bruno Haible  <bruno@clisp.org>
78464
78465         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
78466         and is a script that invokes bison. Tighten the code. Add comments.
78467
78468 2006-08-18  Jim Meyering  <jim@meyering.net>
78469
78470         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
78471         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
78472         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
78473         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
78474
78475 2006-08-18  Bruno Haible  <bruno@clisp.org>
78476
78477         * modules/bison-i18n: New file.
78478         * MODULES.html.sh (Internationalization functions): Add it.
78479
78480 2006-08-18  Bruno Haible  <bruno@clisp.org>
78481
78482         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
78483         sys/statvfs.h. When getmntinfo was found, check its declaration and
78484         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
78485
78486 2006-08-18  Bruno Haible  <bruno@clisp.org>
78487
78488         * m4/bison-i18n.m4: New file, from bison.
78489
78490 2006-08-18  Bruno Haible  <bruno@clisp.org>
78491
78492         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
78493         (ME_DUMMY): Treat "kernfs" as a dummy.
78494         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
78495
78496 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78497
78498         Update from coreutils.
78499
78500         2006-08-15  Jim Meyering  <jim@meyering.net>
78501
78502         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
78503
78504         2006-01-17  Jim Meyering  <jim@meyering.net>
78505
78506         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
78507
78508         2006-01-11  Jim Meyering  <jim@meyering.net>
78509
78510         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
78511         Check for the lchmod function.
78512
78513 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78514
78515         Update from coreutils.
78516
78517         * lib/__fpending.h: Add copyright notice.
78518         * lib/fprintftime.h: Likewise.
78519         * lib/savedir.c: Use (C) in copyright notice.
78520         * lib/savedir.h: Likewise.
78521
78522         2006-08-15  Jim Meyering  <jim@meyering.net>
78523
78524         * lib/at-func.c: New file, with the logic of all emulated at-functions.
78525         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
78526         in support of the EXPECTED_ERRNO macro.
78527         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
78528         definitions.  Instead, define the appropriate symbols and include
78529         "at-func.c".
78530         * lib/mkdirat.c (mkdirat): Likewise.
78531         * lib/fchmodat.c (fchmodat): Likewise.
78532         (ENOSYS): Remove definition.
78533         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
78534         it.  Don't include "unistd--.h" -- it wasn't ever used.
78535
78536         2006-01-17  Jim Meyering  <jim@meyering.net>
78537
78538         Rewrite fts.c not to change the current working directory,
78539         by using openat, fstatat, fdopendir, etc..
78540
78541         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
78542         (HAVE_OPENAT_SUPPORT): Define.
78543         [_LIBC] (fchdir): Don't undef or define; no longer used.
78544         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
78545         Now, this `function' always succeeds, and consumes its file descriptor
78546         parameter -- so callers must not close such FDs.  Update callers.
78547         (diropen_fd, opendirat, cwd_advance_fd): New functions.
78548         (diropen): Add parameter, SP.  Adjust all callers.
78549         Implement using diropen_fd, rather than open.
78550         (fts_open): Initialize new member, fts_cwd_fd.
78551         Remove fts_rft-setting code.
78552         (fts_close): Close fts_cwd_fd, if necessary.
78553         (__opendir2): Define in terms of opendir or opendirat,
78554         depending on whether the FST_NOCHDIR flag is set.
78555         (fts_build): Since fts_safe_changedir consumes its FD, and since
78556         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
78557         and close the dup'd file descriptor upon failure.
78558         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
78559         (fts_safe_changedir): Tweak semantics to reflect that this function
78560         now calls cwd_advance_fd and hence consumes its FD argument.
78561         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
78562         [struct FTS] (fts_rft): Remove now-unused member.
78563         [struct FTS] (fts_cycle.state): Improve comment.
78564
78565         * lib/openat.c (openat_needs_fchdir): New function.
78566         * lib/openat.h (openat_needs_fchdir): Declare it.
78567
78568 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78569
78570         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
78571         Problem and fix reported by Pádraig Brady in
78572         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
78573
78574 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78575
78576         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
78577
78578 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78579
78580         * lib/memcoll.c (memcoll): Optimize for the common case where the
78581         arguments are bytewise equal.
78582
78583 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78584
78585         * doc/regexprops-generic.texi: Add a copyright notice.
78586
78587 2006-08-15  Bruno Haible  <bruno@clisp.org>
78588
78589         * modules/tmpdir (License): Change to LGPL.
78590
78591 2006-08-15  Bruno Haible  <bruno@clisp.org>
78592
78593         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
78594         module.
78595
78596 2006-08-14  Simon Josefsson  <jas@extundo.com>
78597
78598         * config/srclist.txt: Add gnupload.
78599
78600 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78601
78602         Change copyright notice from LGPL 2 to GPL 2, since that's the
78603         standard form used in the gnulib repository.
78604         * tests/test-lock.c: Likewise.
78605         * tests/test-stdint.c: Likewise.
78606         * tests/test-tls.c: Likewise.
78607
78608         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
78609         prelude-manager.  User shorter URLs for GNU projects, without '?'.
78610         Add copyright notice.
78611
78612         * check-module: Add copyright notice.  Output a copyright
78613         notice if "--version" is specified.
78614         * modules/COPYING: New file.
78615         * tests/test-getaddrinfo.c: Add copyright notice.
78616         * tests/test-verify.c: Likewise.
78617
78618 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78619
78620         Change copyright notice from LGPL 2 to GPL 2, since that's the
78621         standard form used in the gnulib repository.
78622         * lib/lock.c: LGPL -> GPL.
78623         * lib/lock.h: Likewise.
78624         * lib/strnlen1.c: Likewise.
78625         * lib/strnlen1.h: Likewise.
78626         * lib/tls.c: Likewise.
78627         * lib/tls.h: Likewise.
78628         * lib/tmpdir.c: Likewise.
78629
78630         * lib/TODO: Remove; this belongs only in coreutils.
78631
78632 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78633
78634         Add copyright notices to long-enough files that lack them, since
78635         otherwise the files aren't clearly free.  Use the same notice that
78636         getdate.texi already uses.
78637         * doc/alloca-opt.texi: Add copyright notice.
78638         * doc/alloca.texi: Likewise.
78639         * doc/ctime.texi: Likewise.
78640         * doc/functions.texi: Likewise.
78641         * doc/gcd.texi: Likewise.
78642         * doc/gnulib-tool.texi: Likewise.
78643         * doc/inet_ntoa.texi: Likewise.
78644         * doc/visibility.texi: Likewise.
78645
78646         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
78647         * doc/quote.texi: Add copyright notice.
78648
78649         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
78650         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
78651         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
78652         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
78653         is now obsolete, and give a pointer to the Sun list.
78654         Add copyright notice.
78655
78656 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78657
78658         * config/srclistvars.sh: Add copyright notice.
78659
78660 2006-08-14  Eric Blake  <ebb9@byu.net>
78661
78662         Import the following change from libc:
78663
78664         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
78665
78666         Upstream bug 2997.
78667         * lib/misc/error.c: Add space between program name and message if file
78668         name is missing.
78669
78670 2006-08-12  Karl Berry  <karl@gnu.org>
78671
78672         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
78673         remove, these originate in gnulib now.
78674
78675 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78676
78677         * doc/Makefile (standards.info standards.html standards.dvi):
78678         Also depend on make-stds.texi.
78679
78680 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78681
78682         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
78683         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
78684
78685         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
78686         in wchar_t.  Problem reported by Eric Blake.
78687
78688         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
78689         LEN is smaller than SIZE.  Suggested by Bruno Haible.
78690         Also, help the compiler to keep LEN in a register.
78691
78692 2006-08-11  Eric Blake  <ebb9@byu.net>
78693
78694         * users.txt: Sort.  Add tar.
78695
78696 2006-08-11  Bruno Haible  <bruno@clisp.org>
78697
78698         * users.txt: New file.
78699
78700 2006-08-11  Bruno Haible  <bruno@clisp.org>
78701
78702         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
78703         before <wchar.h>. Needed for OSF/1 and BSD/OS.
78704
78705 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78706
78707         * modules/snprintf (Depends-on): Remove minmax.
78708         (Maintainer): Add self and Bruno.
78709
78710 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78711
78712         * lib/.cppi-disable: Add snprintf.h, socket_.h.
78713         * lib/snprintf.c: Include <errno.h> and <limits.h>.
78714         (EOVERFLOW): Define if the system does not.
78715         Do not include "minmax.h"; it wasn't used.
78716         (snprintf): Don't assume size_t promotes to an unsigned type.
78717         Fix bug when generated string was too long for the buffer: the
78718         buffer's contents are supposed to be the initial prefix of the
78719         output.  Don't assume vasnprintf returns EOVERFLOW if the size
78720         exceeds INT_MAX; do the check ourselves.
78721
78722         Import the following changes from libc:
78723
78724         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
78725
78726         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
78727         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
78728         set wc to the byte which couldn't be converted.
78729         (re_string_reconstruct): Don't clear valid_raw_len before calling
78730         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
78731         tip_context using re_string_context_at.
78732
78733         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
78734
78735         * lib/posix/regex.h: g++ still cannot handled [restrict].
78736
78737         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
78738
78739         * lib/posix/regex.h: Remove special handling for VMS.
78740
78741 2006-08-10  Jim Meyering  <jim@meyering.net>
78742
78743         * modules/same-inode: New module.
78744         * modules/dev-ino: New module.
78745         * modules/cycle-check: Depend on these modules, rather than simply
78746         including their .h files.
78747         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
78748         required via m4/cycle-check.m4.
78749         * modules/same: Depend on new same-inode module, rather than
78750         including same-inode.h.
78751         * modules/chdir-safer: New file.
78752
78753         * modules/chown (Depends-on): Add stat-macros.
78754
78755 2006-08-10  Jim Meyering  <jim@meyering.net>
78756
78757         * m4/cycle-check.m4: New file.
78758         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
78759         * m4/dev-ino.m4, m4/same-inode.m4: New files.
78760
78761 2006-08-10  Eric Blake  <ebb9@byu.net>
78762
78763         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
78764         in from original proposal.
78765
78766 2006-08-10  Eric Blake  <ebb9@byu.net>
78767         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78768
78769         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
78770         namespace.
78771
78772 2006-08-10  Bruno Haible  <bruno@clisp.org>
78773
78774         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
78775         as well.
78776
78777 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78778
78779         Sync from coreutils.
78780
78781         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
78782
78783         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
78784         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
78785
78786 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78787
78788         * modules/restrict: Remove; no longer needed now that we assume
78789         Autoconf 2.59 or later.
78790         * MODULES.html.sh: Remove 'restrict'.
78791         * modules/argp (Depends-on): Remove 'restrict'.
78792         * modules/base64 (Depends-on): Likewise.
78793         * modules/gc (Depends-on): Likewise.
78794         * modules/getaddrinfo (Depends-on): Likewise.
78795         * modules/glob (Depends-on): Likewise.
78796         * modules/inet_ntop (Depends-on): Likewise.
78797         * modules/inet_pton (Depends-on): Likewise.
78798         * modules/memxor (Depends-on): Likewise.
78799         * modules/regex (Depends-on): Likewise.
78800         * modules/strtok_r (Depends-on): Likewise.
78801         * modules/time_r (Depends-on): Likewise.
78802
78803 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78804
78805         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
78806         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
78807         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78808         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
78809         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
78810         * m4/memxor.m4 (gl_MEMXOR): Likewise.
78811         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
78812         gl_C_RESTRICT replaced by AC_C_RESTRICT.
78813
78814         Merge from coreutils.
78815         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
78816         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
78817         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
78818         * m4/time_r.m4 (gl_TIME_R): Likewise.
78819
78820 2006-08-09  Karl Berry  <karl@gnu.org>
78821
78822         * config/srclist.txt: no more gettext-tools, per Bruno.
78823
78824 2006-08-08  Eric Blake  <ebb9@byu.net>
78825
78826         * modules/verror: New module.
78827         * MODULES.html.sh: Document it.
78828
78829 2006-08-08  Eric Blake  <ebb9@byu.net>
78830
78831         * lib/verror.h, lib/verror.c: New files.
78832
78833 2006-08-08  Eric Blake  <ebb9@byu.net>
78834
78835         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
78836         verror_at_line output complies with GNU Coding Standards even when
78837         file is NULL.
78838
78839 2006-08-07  Bruno Haible  <bruno@clisp.org>
78840
78841         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
78842         versions of AIX.
78843         Reported by Ralf Wildenhues.
78844
78845 2006-08-07  Bruno Haible  <bruno@clisp.org>
78846
78847         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
78848         in an AC_DEFUN. Needed so that the autoconf snippets can use
78849         AC_REQUIRE.
78850
78851 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78852
78853         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78854         Initialize pkgdata_DATA.
78855         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
78856         overriding it.
78857
78858 2006-08-06  Eric Blake  <ebb9@byu.net>
78859
78860         * lib/error.h: Fold in some upstream changes from glibc.
78861         * lib/error.c: Likewise.
78862
78863 2006-08-04  Bruno Haible  <bruno@clisp.org>
78864
78865         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78866         Make the mostlyclean-local rule depend on mostlyclean-generic.
78867         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
78868
78869 2006-07-31  Bruno Haible  <bruno@clisp.org>
78870
78871         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
78872         <stdlib.h>, <string.h>.
78873
78874 2006-07-30  Bruno Haible  <bruno@clisp.org>
78875
78876         * modules/readlink (License): Change to LGPL.
78877
78878 2006-07-30  Bruno Haible  <bruno@clisp.org>
78879
78880         * modules/javaversion (Makefile.am): Distribute javaversion.java and
78881         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
78882         set PKGDATADIR to point to it.
78883
78884 2006-07-30  Bruno Haible  <bruno@clisp.org>
78885
78886         * modules/csharpexec (configure.ac): Comment out macro invocation.
78887         * modules/javaexec (configure.ac): Likewise.
78888         * modules/javacomp-script (configure.ac): Likewise.
78889
78890         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
78891
78892 2006-07-30  Bruno Haible  <bruno@clisp.org>
78893
78894         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
78895         linked-list.
78896
78897 2006-07-30  Bruno Haible  <bruno@clisp.org>
78898
78899         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
78900
78901 2006-07-30  Bruno Haible  <bruno@clisp.org>
78902
78903         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78904         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
78905         get removed.
78906
78907 2006-07-29  Bruno Haible  <bruno@clisp.org>
78908
78909         Make it possible for gnulib-tool to work with locally modified or
78910         augmented gnulib repositories.
78911         * gnulib-tool (func_usage): Document --local-dir option.
78912         (local_gnulib_dir): New variable.
78913         Handle --local-dir option.
78914         (func_lookup_file): New function.
78915         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
78916         (func_get_description, func_get_filelist, func_get_description,
78917         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
78918         func_get_automake_snippet, func_get_include_directive,
78919         func_get_license, func_get_maintainer): Use func_lookup_file.
78920         (func_import, func_create_testdir): Use func_lookup_file.
78921
78922 2006-07-29  Bruno Haible  <bruno@clisp.org>
78923
78924         * modules/setenv (Depends-on): Add unistd.
78925
78926 2006-07-29  Bruno Haible  <bruno@clisp.org>
78927
78928         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
78929
78930 2006-07-29  Bruno Haible  <bruno@clisp.org>
78931
78932         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
78933
78934 2006-07-29  Bruno Haible  <bruno@clisp.org>
78935
78936         * gnulib-tool (import, update): If there is no Makefile.am, look at
78937         aclocal.m4, instead of bailing out.
78938
78939 2006-07-29  Bruno Haible  <bruno@clisp.org>
78940
78941         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
78942         Categorize the options by when they are useful.
78943
78944 2006-07-29  Bruno Haible  <bruno@clisp.org>
78945
78946         * gnulib-tool (func_usage): Document option --no-libtool.
78947         Handle option --no-libtool.
78948         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
78949         for changed semantics of $libtool variable.
78950         (func_import): Likewise. If libtool is not used, show this through
78951         an option --no-libtool.
78952         (func_create_testdir): Update.
78953
78954 2006-07-29  Bruno Haible  <bruno@clisp.org>
78955
78956         * gnulib-tool (func_import): Extend error message about missing
78957         --doc-base.
78958
78959 2006-07-29  Bruno Haible  <bruno@clisp.org>
78960
78961         * gnulib-tool (func_import): Don't create the $docbase directory if
78962         there is no file to store there.
78963
78964 2006-07-29  Bruno Haible  <bruno@clisp.org>
78965
78966         * gnulib-tool (autoconf_minversion): If a --dir option is given and
78967         relevant, look for configure.ac there, not in the current directory.
78968         Also use a simple search for AC_PREREQ, not "autoconf --trace".
78969
78970 2006-07-29  Bruno Haible  <bruno@clisp.org>
78971
78972         * gnulib-tool (SORT): New variable.
78973         (func_usage): Undocument --assume-autoconf option.
78974         Remove --assume-autoconf option handling.
78975         (autoconf_minversion): Determine from the contents of configure.ac.
78976         (func_import): Remove autoconf_minversion handling.
78977         Suggested by Eric Blake.
78978
78979 2006-07-29  Bruno Haible  <bruno@clisp.org>
78980
78981         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
78982
78983 2006-07-29  Bruno Haible  <bruno@clisp.org>
78984
78985         * config/srclist.txt (*setenv.[ch]): Remove rules.
78986
78987 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78988
78989         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
78990
78991 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78992
78993         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
78994         arpa/inet.h.
78995
78996 2006-07-28  Simon Josefsson  <jas@extundo.com>
78997
78998         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
78999         * modules/inet_pton (Depends-on): Likewise.
79000
79001 2006-07-28  Simon Josefsson  <jas@extundo.com>
79002
79003         * m4/netinet_in_h.m4: New file.
79004
79005 2006-07-28  Simon Josefsson  <jas@extundo.com>
79006
79007         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
79008         #include's.
79009
79010 2006-07-28  Simon Josefsson  <jas@extundo.com>
79011
79012         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
79013         #include's.
79014
79015 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
79016
79017         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
79018         setgid on directories only if they set these bits.
79019         * lib/modechange.h: Remove obsolete comment about masks.
79020
79021 2006-07-28  Eric Blake  <ebb9@byu.net>
79022
79023         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
79024         macro expansion.
79025
79026 2006-07-28  Bruno Haible  <bruno@clisp.org>
79027
79028         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
79029
79030 2006-07-28  Bruno Haible  <bruno@clisp.org>
79031
79032         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
79033
79034 2006-07-28  Bruno Haible  <bruno@clisp.org>
79035
79036         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
79037         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
79038         Define fallbacks.
79039         Avoids link error on FreeBSD 4.x.
79040         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79041
79042         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
79043         encoding.
79044         * lib/mbswidth.c (iswcntrl): Likewise.
79045
79046 2006-07-27  Bruno Haible  <bruno@clisp.org>
79047
79048         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
79049         test.
79050
79051 2006-07-27  Bruno Haible  <bruno@clisp.org>
79052
79053         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
79054         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
79055         defined.
79056
79057 2006-07-26  Eric Blake  <ebb9@byu.net>
79058
79059         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
79060
79061 2006-07-26  Eric Blake  <ebb9@byu.net>
79062
79063         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
79064         like mingw that lack mkstemp.
79065         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
79066         avoid compilation warning on mingw.
79067
79068 2006-07-26  Bruno Haible  <bruno@clisp.org>
79069
79070         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
79071         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
79072         INT_FAST*_MIN, INTPTR_MIN.
79073
79074 2006-07-25  Bruno Haible  <bruno@clisp.org>
79075
79076         * modules/version-etc (Depends-on): Add stdarg.
79077
79078 2006-07-25  Bruno Haible  <bruno@clisp.org>
79079
79080         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
79081         complex commands.
79082
79083 2006-07-25  Bruno Haible  <bruno@clisp.org>
79084
79085         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
79086         defined in <stdarg.h> or config.h.
79087
79088 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79089
79090         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
79091         (gl_STDIO_SAFER): Remove.
79092
79093 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79094
79095         * MODULES.html.sh (File stream based Input/Output):
79096         Add fopen-safer, tmpfile-safer; remove stdio-safer.
79097         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
79098         * modules/fopen-safer, modules/tmpfile-safer: New files.
79099         * modules/stdio-safer: Remove.
79100
79101 2006-07-24  Bruno Haible  <bruno@clisp.org>
79102
79103         * modules/tmpdir: New file.
79104         * MODULES.html.sh (File system functions): Add it.
79105
79106 2006-07-24  Bruno Haible  <bruno@clisp.org>
79107
79108         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
79109         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
79110
79111 2006-07-24  Bruno Haible  <bruno@clisp.org>
79112
79113         * modules/clean-temp: New file.
79114
79115 2006-07-24  Bruno Haible  <bruno@clisp.org>
79116
79117         * m4/tmpdir.m4: New file, from GNU gettext.
79118
79119 2006-07-24  Bruno Haible  <bruno@clisp.org>
79120
79121         * lib/tmpdir.h: New file, from GNU gettext.
79122         * lib/tmpdir.c: New file, from GNU gettext.
79123
79124 2006-07-24  Bruno Haible  <bruno@clisp.org>
79125
79126         * lib/clean-temp.h: New file, from GNU gettext.
79127         * lib/clean-temp.c: New file, from GNU gettext.
79128
79129 2006-07-23  Eric Blake  <ebb9@byu.net>
79130
79131         * modules/stdio-safer (Files): Add tmpfile-safer.c.
79132         (Depends-on): Add binary-io.
79133
79134 2006-07-23  Eric Blake  <ebb9@byu.net>
79135
79136         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
79137
79138 2006-07-23  Eric Blake  <ebb9@byu.net>
79139
79140         * lib/tmpfile-safer.c: New file.
79141         * lib/stdio-safer.h (fopen_safer): Add prototype.
79142         * lib/stdio--.h (tmpfile): Make safer.
79143
79144 2006-07-23  Bruno Haible  <bruno@clisp.org>
79145
79146         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
79147         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
79148         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
79149         gl_linked_remove_at): Use it.
79150
79151 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79152         and Simon Josefsson <jas@extundo.com>
79153
79154         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
79155
79156         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
79157
79158 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79159
79160         * modules/close-stream: New file.
79161         * modules/closeout (Description): Make it clear that it exits
79162         with a diagnostic on error.
79163         (Depends-on): Add close-stream.  Remove fpending, stdbool.
79164         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
79165
79166 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79167
79168         * m4/close-stream.m4: New file.
79169
79170 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79171
79172         * lib/close-stream.c, lib/close-stream.h: New files.
79173
79174 2006-07-22  Bruno Haible  <bruno@clisp.org>
79175
79176         Merge from GNU gettext 0.15.
79177
79178         2006-05-01  Bruno Haible  <bruno@clisp.org>
79179
79180                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
79181
79182         2006-07-22  Bruno Haible  <bruno@clisp.org>
79183
79184                 * modules/javaversion: New file.
79185                 * MODULES.html.sh (Java): Add javaversion.
79186
79187         2006-03-12  Bruno Haible  <bruno@clisp.org>
79188
79189                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
79190
79191         2005-12-04  Bruno Haible  <bruno@clisp.org>
79192
79193                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
79194                 (untested).
79195
79196         2006-06-21  Bruno Haible  <bruno@clisp.org>
79197
79198                 Avoid warnings from recent versions of mcs.
79199                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
79200                 -o, -L, -r any more. Use options documented since mcs-1.0
79201                 instead. Similarly for -g.
79202
79203         2005-12-04  Bruno Haible  <bruno@clisp.org>
79204
79205                 * build-aux/csharpcomp.sh.in: Suffix for resources is
79206                 .resources, not .resource.
79207
79208         2005-07-09  Bruno Haible  <bruno@clisp.org>
79209
79210                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
79211                 add a .dll suffix.
79212                 Reported by Mark Junker <mjscod@gmx.de>.
79213
79214         2006-07-22  Bruno Haible  <bruno@clisp.org>
79215
79216                 * modules/gettext: Upgrade to gettext-0.15.
79217                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
79218                 m4/visibility.m4.
79219                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
79220
79221 2006-07-22  Bruno Haible  <bruno@clisp.org>
79222
79223         Merge from GNU gettext 0.15.
79224
79225         2006-03-25  Bruno Haible  <bruno@clisp.org>
79226
79227                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
79228
79229         2006-07-21  Bruno Haible  <bruno@clisp.org>
79230
79231                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
79232                 "1.1".
79233
79234         2006-05-09  Bruno Haible  <bruno@clisp.org>
79235
79236                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
79237                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
79238                 for the conftestver execution.
79239
79240         2006-05-01  Bruno Haible  <bruno@clisp.org>
79241
79242                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
79243                 optional target-version argument. Verify that the compiler
79244                 groks source of the specified source-version, or add -source
79245                 option as necessary. Verify that the compiler produces
79246                 bytecode in the specified target-version, or add -target and
79247                 -source options as necessary. Make the result of the test
79248                 available as variable CONF_JAVAC. Also log error output in
79249                 config.log.
79250
79251         2006-03-11  Bruno Haible  <bruno@clisp.org>
79252
79253                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
79254
79255         2006-05-09  Bruno Haible  <bruno@clisp.org>
79256
79257                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
79258                 CLASSPATH_SEPARATOR to a semicolon.
79259
79260         2006-03-12  Bruno Haible  <bruno@clisp.org>
79261
79262                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
79263                 available as variable CONF_JAVA, for subsequent autoconf
79264                 tests. Also log error output in config.log.
79265
79266         2006-07-19  Bruno Haible  <bruno@clisp.org>
79267
79268                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
79269                 that getline works on glibc2 systems. Needed to avoid trouble
79270                 in relocatable.c.
79271                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
79272
79273         2005-12-04  Bruno Haible  <bruno@clisp.org>
79274
79275                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
79276                 launcher (untested).
79277
79278         2005-12-04  Bruno Haible  <bruno@clisp.org>
79279
79280                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
79281
79282         2006-07-22  Bruno Haible  <bruno@clisp.org>
79283
79284                 * gettext.m4: Update from GNU gettext-0.15.
79285                 * nls.m4: Likewise.
79286                 * po.m4: Likewise.
79287                 * inttypes-pri.m4: Likewise.
79288                 * inttypes-h.m4: Renamed from inttypes.m4.
79289                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
79290
79291 2006-07-22  Bruno Haible  <bruno@clisp.org>
79292
79293         Merge from GNU gettext 0.15.
79294
79295         2005-07-05  Bruno Haible  <bruno@clisp.org>
79296
79297                 * printf-args.c (printf_fetchargs): Work around broken
79298                 definition of wint_t on mingw.
79299
79300         2005-02-12  Bruno Haible  <bruno@clisp.org>
79301
79302                 * xallocsa.h: Add extern "C" for C++.
79303
79304         2006-05-17  Bruno Haible  <bruno@clisp.org>
79305
79306                 Cygwin portability.
79307                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
79308
79309         2006-04-30  Bruno Haible  <bruno@clisp.org>
79310
79311                 * progreloc.c: Include <mach-o/dyld.h> if available.
79312                 (find_executable): Use _NSGetExecutablePath when possible.
79313
79314         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
79315
79316                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
79317                 function.
79318
79319         2005-12-29  Bruno Haible  <bruno@clisp.org>
79320
79321                 * progreloc.c (set_program_name_and_installdir): Fix
79322                 compilation error.
79323
79324         2005-12-04  Bruno Haible  <bruno@clisp.org>
79325
79326                 Cygwin portability.
79327                 * progreloc.c: Include <windows.h> also on Cygwin.
79328                 (find_executable): Add support for Cygwin.
79329                 (set_program_name_and_installdir): Handle also platforms with
79330                 nonempty EXEEXT.
79331
79332         2006-07-11  Bruno Haible  <bruno@clisp.org>
79333
79334                 * javacomp.c: Fix a comment.
79335                 Reported by Jim Meyering.
79336
79337         2006-04-30  Bruno Haible  <bruno@clisp.org>
79338
79339                 * javacomp.h (compile_java_class): Add source_version,
79340                 target_version arguments.
79341                 * javacomp.c: Rewritten to choose only a compiler that
79342                 respects the specified source_version and target_version.
79343
79344         2006-06-27  Bruno Haible  <bruno@clisp.org>
79345
79346                 Assume correct S_ISDIR macro.
79347                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
79348
79349         2006-07-22  Bruno Haible  <bruno@clisp.org>
79350
79351                 * javaversion.h: New file, from GNU gettext.
79352                 * javaversion.c: New file, from GNU gettext.
79353                 * javaversion.java: New file, from GNU gettext.
79354                 * javaversion.class: New file, from GNU gettext.
79355
79356         2006-05-17  Bruno Haible  <bruno@clisp.org>
79357
79358                 Cygwin portability.
79359                 * javaexec.c (execute_java_class): Test for jview program
79360                 also on Cygwin.
79361
79362         2006-04-09  Bruno Haible  <bruno@clisp.org>
79363
79364                 * fatal-signal.c: Don't include string.h.
79365                 (at_fatal_signal): Use a copying loop instead of memcpy.
79366
79367         2005-12-04  Bruno Haible  <bruno@clisp.org>
79368
79369                 * csharpexec.c: Add support for 'clix' launcher (untested).
79370                 (execute_csharp_using_sscli): New function.
79371                 (execute_csharp_program): Call it.
79372
79373         2006-06-21  Bruno Haible  <bruno@clisp.org>
79374
79375                 Avoid warnings from recent versions of mcs.
79376                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
79377                 -o, -L, -r any more. Use options documented since mcs-1.0
79378                 instead. Similarly for -g.
79379
79380         2005-07-09  Bruno Haible  <bruno@clisp.org>
79381
79382                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
79383                 add a .dll suffix.
79384                 Reported by Mark Junker <mjscod@gmx.de>.
79385
79386         2006-06-17  Bruno Haible  <bruno@clisp.org>
79387
79388                 * config.charset: Update for NetBSD 3.0.
79389
79390         2006-05-17  Bruno Haible  <bruno@clisp.org>
79391
79392                 Cygwin portability.
79393                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
79394
79395         2006-05-16  Bruno Haible  <bruno@clisp.org>
79396
79397                 * localcharset.c [CYGWIN]: Include <windows.h>.
79398                 (get_charset_aliases): For Cygwin, return the same CPxxx
79399                 aliases list as under WIN32.
79400                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
79401                 the environment variables. Fall back to GetACP().
79402
79403         2006-04-05  Bruno Haible  <bruno@clisp.org>
79404
79405                 * config.charset: Update Juan Manuel Guerrero's address.
79406
79407         2005-02-12  Bruno Haible  <bruno@clisp.org>
79408
79409                 * allocsa.h: Add extern "C" for C++.
79410
79411         2005-02-10  Bruno Haible  <bruno@clisp.org>
79412
79413                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
79414                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
79415
79416         2006-07-22  Bruno Haible  <bruno@clisp.org>
79417
79418                 * gettext.h: Update to GNU gettext-0.15.
79419
79420 2006-07-22  Bruno Haible  <bruno@clisp.org>
79421
79422         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
79423         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
79424         lib-prefix.m4, longdouble.m4, ssize_t.m4.
79425
79426 2006-07-21  Eric Blake  <ebb9@byu.net>
79427
79428         * modules/stdlib-safer: New file.
79429         * MODULES.html.sh (File stream based Input/Output): Add
79430         stdlib-safer.
79431
79432 2006-07-21  Eric Blake  <ebb9@byu.net>
79433
79434         * lib/stdlib-safer.h: New file from coreutils, required by
79435         stdlib--.h.
79436
79437 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
79438
79439         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
79440
79441 2006-07-20  Bruno Haible  <bruno@clisp.org>
79442
79443         * gnulib-tool: Recognize new option --assume-autoconf.
79444         (autoconf_minversion): New variable.
79445         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
79446
79447 2006-07-20  Bruno Haible  <bruno@clisp.org>
79448
79449         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
79450
79451 2006-07-19  Derek R. Price  <derek@ximbiot.com>
79452
79453         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
79454         Reindent and repaginate.
79455
79456 2006-07-19  Derek Price  <derek@ximbiot.com>
79457
79458         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
79459         Correct grammar.
79460
79461 2006-07-17  Bruno Haible  <bruno@clisp.org>
79462
79463         * modules/list: New file.
79464         * modules/array-list: New file.
79465         * modules/carray-list, modules/carray-list-tests: New files.
79466         * modules/linked-list, modules/linked-list-tests: New files.
79467         * modules/avltree-list, modules/avltree-list-tests: New files.
79468         * modules/rbtree-list, modules/rbtree-list-tests: New files.
79469         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
79470         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
79471         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
79472         * modules/oset: New file.
79473         * modules/array-oset: New file.
79474         * modules/avltree-oset, modules/avltree-oset-tests: New files.
79475         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
79476         * tests/test-carray_list.c: New file.
79477         * tests/test-linked_list.c: New file.
79478         * tests/test-avltree_list.c: New file.
79479         * tests/test-rbtree_list.c: New file.
79480         * tests/test-linkedhash_list.c: New file.
79481         * tests/test-avltreehash_list.c: New file.
79482         * tests/test-rbtreehash_list.c: New file.
79483         * tests/test-avltree_oset.c: New file.
79484         * tests/test-rbtree_oset.c: New file.
79485         * MODULES.html.sh (Container data structures): New section.
79486
79487 2006-07-17  Bruno Haible  <bruno@clisp.org>
79488
79489         * m4/gl_list.m4: New file.
79490
79491 2006-07-17  Bruno Haible  <bruno@clisp.org>
79492
79493         * lib/gl_list.h: New file.
79494         * lib/gl_list.c: New file.
79495         * lib/gl_array_list.h: New file.
79496         * lib/gl_array_list.c: New file.
79497         * lib/gl_carray_list.h: New file.
79498         * lib/gl_carray_list.c: New file.
79499         * lib/gl_linked_list.h: New file.
79500         * lib/gl_linked_list.c: New file.
79501         * lib/gl_anylinked_list1.h: New file.
79502         * lib/gl_anylinked_list2.h: New file.
79503         * lib/gl_avltree_list.h: New file.
79504         * lib/gl_avltree_list.c: New file.
79505         * lib/gl_anyavltree_list1.h: New file.
79506         * lib/gl_anyavltree_list2.h: New file.
79507         * lib/gl_rbtree_list.h: New file.
79508         * lib/gl_rbtree_list.c: New file.
79509         * lib/gl_anyrbtree_list1.h: New file.
79510         * lib/gl_anyrbtree_list2.h: New file.
79511         * lib/gl_anytree_list1.h: New file.
79512         * lib/gl_anytree_list2.h: New file.
79513         * lib/gl_linkedhash_list.h: New file.
79514         * lib/gl_linkedhash_list.c: New file.
79515         * lib/gl_anyhash_list1.h: New file.
79516         * lib/gl_anyhash_list2.h: New file.
79517         * lib/gl_avltreehash_list.h: New file.
79518         * lib/gl_avltreehash_list.c: New file.
79519         * lib/gl_rbtreehash_list.h: New file.
79520         * lib/gl_rbtreehash_list.c: New file.
79521         * lib/gl_anytreehash_list1.h: New file.
79522         * lib/gl_anytreehash_list2.h: New file.
79523
79524         * lib/gl_oset.h: New file.
79525         * lib/gl_oset.c: New file.
79526         * lib/gl_array_oset.h: New file.
79527         * lib/gl_array_oset.c: New file.
79528         * lib/gl_avltree_oset.h: New file.
79529         * lib/gl_avltree_oset.c: New file.
79530         * lib/gl_rbtree_oset.h: New file.
79531         * lib/gl_rbtree_oset.c: New file.
79532         * lib/gl_anytree_oset.h: New file.
79533
79534 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79535
79536         * m4/mkancesdirs.m4: New file.
79537         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
79538         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
79539         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
79540         it.
79541
79542 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79543
79544         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
79545         * lib/mkancesdirs.h: New files.
79546         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
79547         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
79548         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
79549         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
79550         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
79551         callers changed.  Revamp internals significantly, by not
79552         attempting to create directories that are temporarily more
79553         permissive than the final results.  Do not attempt to use
79554         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
79555         This removes some race conditions, fixes some bugs, and simplifies
79556         things.  Use new dirchownmod function to do owner and mode changes.
79557         * lib/mkdir-p.h: Likewise.
79558         * lib/modechange.c (octal_to_mode): New function.
79559         (struct mode_change): New member mentioned.
79560         (make_node_op_equals): New arg mentioned.  All callers changed.
79561         (mode_compile): Keep track of which mode bits the user has explicitly
79562         mentioned.
79563         (mode_adjust): New arg DIR, so that we implement the X op correctly.
79564         New arg PMODE_BITS, to keep track of which mode bits the user
79565         mentioned; it treats S_ISUID and S_ISGID speciall.
79566         All callers changed.
79567         * lib/modechange.h: Likewise.
79568
79569 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79570
79571         * MODULES.html.sh: Add mkancestors.
79572         * modules/mkancesdirs: New module.
79573         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
79574         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
79575         The chdir-safer and afs files are now orphans; I'll remove them
79576         unless someone speaks up.
79577         Add lib/dirchownmod.c, lib/dirchownmod.h.
79578         (Depends-on): Remove alloca, chown, save-cwd, dirname.
79579         Add lchown, mkancesdirs.
79580         (Maintainer): Add self.
79581
79582 2006-07-15  Karl Berry  <karl@gnu.org>
79583
79584         * gnulib-tool: help message wording/arrangement.
79585
79586 2006-07-14  Simon Josefsson  <jas@extundo.com>
79587
79588         * doc/gnulib.texi (Libtool and Windows): New section.
79589
79590 2006-07-12  Simon Josefsson  <jas@extundo.com>
79591
79592         * modules/gendocs (License): Fix license, approved by Karl.
79593
79594 2006-07-12  Eric Blake  <ebb9@byu.net>
79595
79596         * MODULES.html.sh: Add gendocs.
79597
79598 2006-07-11  Eric Blake  <ebb9@byu.net>
79599
79600         * modules/fdl: New module, to install doc/fdl.texi.
79601         * MODULES.html.sh: Add new section for documentation modules.
79602         * gnulib-tool: Avoid space-tab.
79603         (--doc-base): New option, to manage files from doc.
79604
79605 2006-07-11  Eric Blake  <ebb9@byu.net>
79606
79607         * m4/absolute-header.m4: Fix comments to match recent change.
79608
79609 2006-07-11  Eric Blake  <ebb9@byu.net>
79610
79611         * gnulib-tool: List --doc-base before --tests-base.
79612
79613 2006-07-11  Derek R. Price  <derek@ximbiot.com>
79614
79615         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
79616
79617 2006-07-11  Bruno Haible  <bruno@clisp.org>
79618
79619         * README: Mention where to put documentation.
79620
79621 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79622
79623         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
79624
79625 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79626
79627         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
79628         to stdint.m4.
79629
79630 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79631
79632         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
79633         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
79634         "no/such/file/stdint.h" when there is no such file, so that
79635         the resulting C code can be parsed by dodgy compilers.
79636         Problems reported by Bob Proulx.
79637
79638 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79639
79640         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
79641         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79642         macros into the GNU _D_EXACT_NAMLEN.
79643         * lib/savedir.c:  Likewise.
79644         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
79645
79646 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79647         and Paul Eggert  <eggert@cs.ucla.edu>
79648
79649         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
79650         * m4/savedir.m4:
79651         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79652         macros into the GNU _D_EXACT_NAMLEN.
79653
79654 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79655
79656         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
79657         around the absolute name, to work around a problem with the HP-UX
79658         11.23 native C compiler, reported by Bob Proulx.
79659
79660 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79661
79662         * doc/maintain.texi, make-stds.texi: Sync from
79663         <http://savannah.gnu.org/projects/gnustandards>.
79664
79665 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79666
79667         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
79668
79669 2006-07-09  Jim Meyering  <jim@meyering.net>
79670
79671         * m4/glob.m4: Remove a doubled word in a comment.
79672
79673 2006-07-09  Jim Meyering  <jim@meyering.net>
79674
79675         * lib/argp-pv.c: Remove a doubled word in a comment.
79676         * lib/check-version.c (check_version): Likewise.
79677         * lib/javacomp.c (compile_java_class): Likewise.
79678
79679 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79680
79681         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
79682         for the benefit of people using Autoconf 2.60.  If you want to
79683         support older Autoconf versions you can copy m4/onceonly_2_57.m4
79684         (or m4/onceonly.m4, if pre-2.57) manually.
79685
79686 2006-07-08  Jim Meyering  <jim@meyering.net>
79687
79688         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
79689         comment.
79690         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
79691         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
79692         comment.
79693
79694 2006-07-08  Jim Meyering  <jim@meyering.net>
79695
79696         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
79697
79698 2006-07-07  Simon Josefsson  <jas@extundo.com>
79699
79700         * tests/test-crc.c: Change expected crc value, the test vector
79701         were probably computed using the old broken crc.c?
79702
79703 2006-07-06  Simon Josefsson  <jas@extundo.com>
79704
79705         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
79706         now the canonical place for the M4 file).
79707
79708         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
79709         from the sys_socket dependency now.
79710
79711         * modules/inet_pton (Files): Ditto.
79712
79713         * modules/inet_ntop (Files): Ditto.
79714
79715 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79716
79717         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
79718         not gl_PREREQ_GETUSERSHELL.
79719
79720 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79721
79722         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
79723         with only one argument, for Autoconf 2.60.
79724         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
79725         expand to nothing, so add a shell command to avoid syntax error.
79726         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79727
79728 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79729
79730         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
79731
79732 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79733
79734         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
79735         no longer needed.  Check for isblank decl.
79736         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
79737         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
79738         of existence.
79739
79740 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79741
79742         * lib/getloadavg.c: Use __VMS, not VMS.
79743         * lib/getopt.c: Likewise.
79744         * lib/getpagesize.h: Likewise.
79745         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
79746         and probably does not work.
79747
79748 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79749
79750         * lib/.cppi-disable: Add wcwidth.
79751         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
79752         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
79753         (ISGRAPH): Remove.  All uses changed to isgraph.
79754         (FOLD) [!defined _LIBC]: Remove special case.
79755         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
79756         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
79757         HAVE_ISBLANK.
79758         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
79759         case.
79760
79761 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79762
79763         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
79764         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
79765         brackets.  Other minor changes to suppress some compiler
79766         warnings.
79767
79768 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79769         and Paul Eggert  <eggert@cs.ucla.edu>
79770
79771         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
79772         of invoking obsolescent AC_HEADER_DIRENT macro.
79773         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
79774         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
79775         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
79776         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
79777         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
79778         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79779         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
79780         * m4/readdir.m4: Remove; no longer needed.
79781
79782 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79783         and Paul Eggert  <eggert@cs.ucla.edu>
79784
79785         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
79786         Don't worry about this obsolete case any more.
79787         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
79788         directories.
79789         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
79790         worry about this obsolete case any more.
79791         * lib/fts.c: Likewise.
79792         * lib/getcwd.c: Likewise.
79793         * lib/glob.h: Likewise.
79794         * lib/savedir.c: Likewise.
79795
79796 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79797
79798         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
79799         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
79800         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
79801         needed.
79802         All uses removed.
79803         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79804         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79805         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
79806         needed.
79807         * m4/getdate.m4 (gl_GETDATE): Likewise.
79808         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79809         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79810         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79811         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79812         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79813         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79814         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
79815         needed.
79816
79817 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79818
79819         * lib/memcasecmp.c: Include <limits.h>.
79820         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
79821         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
79822         Don't assume isdigit succeeds only on '0' through '9'.
79823
79824 2006-07-05  Eric Blake  <ebb9@byu.net>
79825
79826         * modules/getaddrinfo (Depends-on): Add snprintf.
79827
79828 2006-07-05  Eric Blake  <ebb9@byu.net>
79829
79830         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
79831         to avoid 'header present but could not be compiled' on cygwin.
79832
79833 2006-07-05  Eric Blake  <ebb9@byu.net>
79834
79835         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
79836         missing from netdb.h.
79837         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
79838
79839 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79840
79841         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
79842         no longer needed.
79843         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
79844         * m4/getdate.m4 (gl_GETDATE): Likewise.
79845         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79846         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79847         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79848         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79849         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79850
79851 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79852
79853         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
79854         All uses of is_space replaced by isspace.
79855         * lib/exit.h: Don't talk about STDC_HEADERS.
79856         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
79857         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
79858         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
79859         replaced by isprint etc.
79860         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
79861         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79862         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
79863         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
79864         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
79865         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79866
79867 2006-07-05  Bruno Haible  <bruno@clisp.org>
79868
79869         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
79870         the function exists, before testing against AIX.
79871         Reported by Martin Lambers <marlam@marlam.de>.
79872
79873 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79874
79875         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
79876         From Mark D. Baushke.
79877
79878 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79879
79880         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
79881         to the absolute name, not just one, to bypass Sun C 5.8's
79882         "warning: #include of /usr/include/... may be non-portable".
79883
79884 2006-07-04  Eric Blake  <ebb9@byu.net>
79885
79886         * modules/dirname-tests: New test module.
79887         * tests/test-dirname.c: New file, replacing dirname.c
79888         TEST_DIRNAME section that was recently deleted.
79889
79890 2006-07-04  Bruno Haible  <bruno@clisp.org>
79891
79892         Assume ANSI C header files and <ctype.h> functions.
79893         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
79894         (mbsnwidth): Use isprint, iscntrl instead.
79895
79896 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79897
79898         Merge from coreutils.
79899         * MODULES.html.sh: Add xstrtold.
79900         * modules/xstrtold: New file.
79901         * modules/cycle-check (Files): Add lib/same-inode.h.
79902         * modules/dirname (Files): Add m4/double-slash-root.m4.
79903         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
79904         * modules/mkdir-p (Files): Add lib/same-inode.h.
79905         * modules/same (Files): Add lib/same-inode.h.
79906
79907 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79908
79909         * m4/absolute-header.m4: Renamed from full-header-path.m4.
79910         This is to keep the terminology clean; POSIX talks about
79911         "absolute pathnames", not "full pathnames", but the GNU
79912         Coding Standards say to use "path" for something else;
79913         so use "absolute" to keep both sides happy.
79914         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
79915         Set gl_absolute_header, not gl_full_header_path.
79916         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
79917         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
79918         All uses changed.
79919
79920         Merge from coreutils.
79921
79922         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79923
79924         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
79925         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
79926         want to require the building of c-strtod.o.
79927         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
79928         needs -lm directly.
79929         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
79930
79931         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
79932
79933         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
79934         --as-needed option if available.  Problem reported by Albert Chin in
79935         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
79936         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
79937         cc merely issues a bunch of annoying warnings for --as-needed
79938         (this problem was reported by Bob Proulx).  Also, try linking with
79939         -lm to detect a bug in binutils 2.16 (this problem was reported
79940         by Ralf Wildenhues).
79941
79942         2006-06-18  Jim Meyering  <jim@meyering.net>
79943
79944         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
79945         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
79946         macro.
79947         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
79948         also check for glibc-2.4's abort-inducing bug.
79949
79950         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
79951         Low-probability clean-up should be to use rmdir to get rid of
79952         the just-created directory, not unlink.
79953
79954         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
79955         configure fail, and request a bug report to inform us about it.
79956         Add a comment that, barring reports to the contrary, in 2007 we'll
79957         assume ftruncate is universally available.
79958
79959         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79960
79961         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
79962
79963         2006-03-12  Jim Meyering  <jim@meyering.net>
79964
79965         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
79966         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
79967         * m4/same.m4 (gl_SAME): Likewise.
79968         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
79969
79970         2006-03-11  Eric Blake  <ebb9@byu.net>
79971
79972         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
79973         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
79974         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
79975         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
79976
79977 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79978
79979         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
79980         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
79981         reported by Mark D. Baushke, one in
79982         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
79983
79984         Merge from coreutils.
79985
79986         * lib/.cppi-disable: Add stdint_.h.
79987         * lib/.cvsignore: Add stdint.h.
79988
79989         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79990
79991         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
79992         both double and long double versions.
79993         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
79994         * lib/xstrtold.c: New file.
79995         * lib/xstrtod.h (xstrtold): New decl.
79996
79997         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79998
79999         * lib/filemode.c (setst): Remove.
80000         (strmode): Rewrite to avoid setst.  This makes the code shorter,
80001         (arguably) clearer, and the generated code is a bit smaller on my
80002         Debian GNU/Linux stable x86 host.
80003
80004         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80005
80006         * lib/filemode.c: Include "filemode.h" first, to test the interface.
80007         Assume that filemode.h includes sys/types.h and sys/stat.h.
80008         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
80009         (ftypelet): Reorder to put common cases first, for efficiency.
80010         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
80011         to do 'M'.
80012         (strmode): Renamed from mode_string, and now stores 12 bytes instead
80013         of 10, for compatibility with FreeBSD.  All callers changed.
80014         (filemodestring): Now stores 12 bytes instead of 10, and sets file
80015         types that can't be deduced solely from st_mode.  First arg is now a
80016         const pointer.
80017         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
80018         (strmode): Renamed from mode_string.
80019         (filemodestring): New decl.
80020         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
80021         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
80022         needed.
80023         (S_ISPORT, S_ISWHT): New macros, if not already defined.
80024
80025         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80026
80027         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
80028         fsusage.h now does that.  Include fsusage.h first, to test interface.
80029         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
80030         at most one method (the old code could have generated decls that
80031         didn't conform to C89, not that this was ever exercised).
80032         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
80033
80034         2006-03-19  Jim Meyering  <jim@meyering.net>
80035
80036         Work even in a chroot where d_ino values for entries in "/"
80037         don't match the stat.st_ino values for the same names.
80038         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
80039         number, iterate through all entries again, using lstat instead.
80040         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
80041         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
80042
80043         * lib/getcwd.c (__getcwd): Clarify a comment.
80044         Use memcpy in place of a call to strcpy.
80045
80046         2006-03-12  Jim Meyering  <jim@meyering.net>
80047
80048         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
80049         matches that of the current directory (which we're about to chdir ".."
80050         out of), then save the dev-ino of the parent, instead.
80051
80052         * lib/same-inode.h (SAME_INODE): New file/macro.
80053         * lib/chdir-safer.c (SAME_INODE): Remove definition.
80054         Include "same-inode.h", instead.
80055         * lib/same.c: Likewise.
80056         * lib/cycle-check.h: Include "same-inode.h".
80057         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
80058         * lib/cycle-check.c (SAME_INODE): Remove definition.
80059         * lib/root-dev-ino.h: Include "same-inode.h".
80060
80061         2006-03-11  Eric Blake  <ebb9@byu.net>
80062
80063         * lib/same.c (same_name): s/base_name/last_component/
80064         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
80065         * lib/filenamecat.c (file_name_concat): Likewise.
80066
80067         2006-03-11  Eric Blake  <ebb9@byu.net>,
80068                     Paul Eggert  <eggert@cs.ucla.edu>
80069
80070         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
80071         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
80072         drive prefix.
80073         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
80074         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
80075         (last_component): New method.
80076         * lib/dirname.c (dir_len): Determine when drive letters need a
80077         subsequent slash.  Preserve // when it is special.
80078         (dir_name): Don't append dot when drive letter is absolute.
80079         [TEST_DIRNAME]: Move into a full-blown gnulib test.
80080         * lib/basename.c (base_name): New semantics - malloc the result.
80081         Preserve // when it is special.  Preserve relative files that look
80082         like drive letters.
80083         (base_len): Preserve // when it is special.
80084         (last_component): New method, similar to old base_name semantics.
80085         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
80086         base_name.  Strip redundant slashes from ///.
80087
80088 2006-07-03  Jim Meyering  <jim@meyering.net>
80089
80090         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
80091         macro is used before the first cycle_check call.
80092
80093 2006-07-03  Eric Blake  <ebb9@byu.net>
80094
80095         * modules/dirname (Depends-on): Add xstrndup.
80096
80097 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80098
80099         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
80100         test cases, so that config.log is a bit easier to follow.
80101
80102 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80103
80104         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
80105         both are 64 bits, since this seems to be the tradition, and this
80106         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
80107         we ever run into a host that prefers long long to long in this
80108         case, we'll need another configure-time test.  Problem reported by
80109         Jim Meyering.
80110
80111 2006-07-02  Eric Blake  <ebb9@byu.net>
80112
80113         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
80114
80115 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80116
80117         * modules/inttypes (Depends-on): No longer depends on stdint.
80118         * modules/stdint (Description): Say more about assumptions.
80119         Say that the fast types might differ.  Say macros are used.
80120         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
80121         (Makefile.am): Revise list of substituted symbols to match
80122         new stdint.m4.
80123         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
80124         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
80125         * tests/test-stdint.c (verify_same_types)
80126         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
80127         the code conforms to C99/C89.
80128         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
80129         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
80130
80131 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80132
80133         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
80134         but fix a bug, by requiring at least 64 bits.
80135         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
80136         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
80137         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
80138         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80139
80140         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
80141         changes.  Make 2.59 a prerequisite.  Check and substitute for
80142         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
80143         inttypes.h.  Do not use special include files; just use the
80144         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
80145         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
80146         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
80147         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
80148         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
80149         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
80150         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
80151         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
80152         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
80153         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
80154         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
80155         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
80156         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
80157         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
80158         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
80159         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
80160         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
80161         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
80162         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
80163         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
80164         WINT_MAX.  Check for C99 conformance more strictly, by detecting
80165         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
80166         not check for things that C99 does not require, e.g., int8_t.  If
80167         a test isn't needed unless <stdint.h> isn't working, and is
80168         unlikely to be needed for any other reason, then don't do it
80169         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
80170         size_t, since we assume C89 freestanding at least.  Do not check
80171         for sig_atomic_t, wchar_t, or wint_t, since the code now does
80172         the right thing even if the types are not defined.  Instead use:
80173         (gl_STDINT_TYPE_PROPERTIES): New macro.
80174         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
80175         testing whether <sys/types.h> clashes, as Autoconf does this for
80176         us now.  All uses removed.
80177         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
80178         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
80179         (gl_CHECK_TYPE_SAME):
80180         Remove; no longer needed.
80181         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
80182         exists, since we'll return 0 anyway in that case.
80183         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
80184
80185 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80186
80187         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
80188         possible collision with system files.
80189         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
80190         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
80191         WCHAR_MIN and WCHAR_MAX in this case.
80192         (<stddef.h>): Do not include; no longer needed.
80193         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
80194         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
80195         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
80196         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
80197         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
80198         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
80199         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
80200         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
80201         !defined(__c99))]: Include in this case too, since it's harmless
80202         now.
80203         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
80204         dangerous to do so.
80205         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
80206         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
80207         (_STDINT_MIN, _STDINT_MAX): New macros.
80208         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
80209         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
80210         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
80211         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
80212         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
80213         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
80214         macros, not typedefs; this simplifies things quite a bit.
80215         Use long int for all types narrower than int64_t.
80216         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
80217         Define in terms of long long int or int64_t or long int,
80218         not int64_t or int32_t.  This saves some compile-time testing.
80219         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
80220         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
80221         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
80222         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
80223         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
80224         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
80225         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
80226         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
80227         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
80228         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
80229         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80230         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80231         undef any previous version and define our own version, for
80232         simplicity and consistency with the new macros for types.
80233         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80234         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80235         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
80236         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
80237         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
80238         @WINT_T_SUFFIX@ to keep things simple here.
80239         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
80240         Simplify by assuming typical 8/16/32/64 host, since we're
80241         already doing that elsewhere anyway.
80242         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
80243         and assume long long int is 64 bits if available.  This
80244         speeds up 'configure'.
80245
80246 2006-07-01  Eric Blake  <ebb9@byu.net>
80247
80248         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
80249         Reported by Andreas Buening.
80250
80251 2006-07-01  Eric Blake  <ebb9@byu.net>
80252
80253         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
80254
80255 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80256
80257         * lib/getaddrinfo.c: fixed typo
80258
80259 2006-06-29  Jim Meyering  <jim@meyering.net>
80260
80261         * modules/strftime (Maintainer): Add my name, since with the
80262         FPRINTFTIME changes strftime.c has forked from glibc.
80263
80264 2006-06-29  Eric Blake  <ebb9@byu.net>
80265
80266         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
80267
80268 2006-06-29  Eric Blake  <ebb9@byu.net>
80269
80270         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
80271
80272 2006-06-29  Eric Blake  <ebb9@byu.net>
80273
80274         * lib/stat_.h: New file.
80275
80276 2006-06-29  Eric Blake  <ebb9@byu.net>
80277
80278         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
80279         unused static function.
80280
80281 2006-06-29  Eric Blake  <ebb9@byu.net>
80282
80283         * doc/functions.texi (Function Portability): Document missing lstat
80284         on mingw.
80285
80286 2006-06-29  Eric Blake  <ebb9@byu.net>
80287
80288         * MODULES.html.sh: Add sys_stat.
80289         * modules/sys_stat: New module.
80290         * modules/mkstemp (Depends-on): Add sys_stat.
80291
80292 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80293
80294         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
80295
80296 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80297
80298         * m4/c-bs-a.m4: Removed.
80299
80300 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80301
80302         * lib/strftime.c: Assume strftime() exists.
80303
80304 2006-06-29  Derek Price  <derek@ximbiot.com>
80305
80306         * modules/c-bs-a: Removed - \a is C89.
80307         * MODULES.html.sh: Remove c-bs-a.
80308
80309 2006-06-29  Bruno Haible  <bruno@clisp.org>
80310
80311         * modules/wcwidth (License): Change to LGPL.
80312
80313 2006-06-28  Simon Josefsson  <jas@extundo.com>
80314
80315         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
80316         on _WIN32.
80317
80318         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
80319         getnameinfo.
80320
80321 2006-06-28  Simon Josefsson  <jas@extundo.com>
80322
80323         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
80324
80325 2006-06-28  Simon Josefsson  <jas@extundo.com>
80326
80327         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
80328         functions there.  It will succeed on Windows XP, but on Windows
80329         2000 and (presumably) earlier, it will fail, and use the internal
80330         re-implementation.
80331         (use_win32_p): New function.
80332         (getaddrinfo): Use strtoul on servname, to support numeric ports.
80333         Support AI_NUMERICSERV to disable getservbyname.
80334         (getnameinfo): New function, only supports
80335         NI_NUMERICHOST|NI_NUMERICSERV for now.
80336
80337         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
80338         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
80339         getnameinfo.
80340
80341 2006-06-28  Eric Blake  <ebb9@byu.net>
80342
80343         * modules/wcwidth: New file.
80344         * modules/mbchar (Depends-on): Add wcwidth.
80345         * modules/mbswidth (Depends-on): Add wcwidth.
80346         * MODULES.html.sh: Add wcwidth.
80347
80348 2006-06-28  Eric Blake  <ebb9@byu.net>
80349
80350         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
80351         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
80352
80353 2006-06-28  Eric Blake  <ebb9@byu.net>
80354
80355         * lib/xvasprintf.h: Fix comments.
80356
80357 2006-06-28  Eric Blake  <ebb9@byu.net>
80358
80359         * lib/mbchar.h (wcwidth): Include wcwidth.h.
80360         * lib/mbswidth.c (wcwidth): Move from here...
80361         * lib/wcwidth.h: ...to this new file.
80362
80363 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80364
80365         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
80366
80367         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
80368         it's obsolete.
80369         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
80370
80371 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80372
80373         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
80374         Autoconf 2.60 says this stuff was obsolete.
80375
80376 2006-06-28  Bruno Haible  <bruno@clisp.org>
80377
80378         * modules/wcwidth (Files): Add m4/wchar_t.m4.
80379
80380 2006-06-28  Bruno Haible  <bruno@clisp.org>
80381
80382         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
80383         gt_TYPE_WCHAR_T.
80384
80385 2006-06-28  Bruno Haible  <bruno@clisp.org>
80386
80387         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
80388         declaration for wcwidth.
80389         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
80390
80391 2006-06-28  Bruno Haible  <bruno@clisp.org>
80392
80393         * lib/mkdtemp.c [MINGW]: Include <io.h>.
80394         (mkdir): Define using _mkdir.
80395
80396 2006-06-28  Bruno Haible  <bruno@clisp.org>
80397
80398         * lib/getaddrinfo.h: Fix POSIX URL.
80399         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
80400         _WIN32.
80401         (use_win32_p): Make static.
80402         (getaddrinfo): Reject service name if it is empty or does not consist
80403         solely of decimal digits, or if its value is > 65535.
80404         (getnameinfo): Remove useless casts.
80405
80406 2006-06-27  Simon Josefsson  <jas@extundo.com>
80407
80408         * modules/sys_select: New file, suggested by Bruno Haible, Paul
80409         Eggert and Martin Lambers.
80410
80411 2006-06-27  Simon Josefsson  <jas@extundo.com>
80412
80413         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
80414         Eggert and Martin Lambers.
80415
80416 2006-06-27  Bruno Haible  <bruno@clisp.org>
80417
80418         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
80419         result to 0, not to empty.
80420         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
80421
80422 2006-06-27  Bruno Haible  <bruno@clisp.org>
80423
80424         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
80425
80426 2006-06-26  Simon Josefsson  <jas@extundo.com>
80427
80428         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
80429         present.
80430
80431 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
80432
80433         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
80434         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
80435         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
80436
80437 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
80438
80439         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
80440
80441 2006-06-26  Bruno Haible  <bruno@clisp.org>
80442
80443         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
80444
80445 2006-06-26  Bruno Haible  <bruno@clisp.org>
80446
80447         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
80448
80449 2006-06-26  Bruno Haible  <bruno@clisp.org>
80450
80451         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
80452         SGI C compiler in pre-C99 mode.
80453         Suggested by Mark D. Baushke and Larry Jones.
80454
80455 2006-06-26  Bruno Haible  <bruno@clisp.org>
80456
80457         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
80458         WCHAR_MAX.
80459         Reported by Mark D. Baushke and Larry Jones.
80460
80461 2006-06-26  Bruno Haible  <bruno@clisp.org>
80462
80463         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
80464         in pre-C99 mode.
80465         Suggested by Mark D. Baushke and Larry Jones.
80466
80467 2006-06-23  Simon Josefsson  <jas@extundo.com>
80468             Bruno Haible  <bruno@clisp.org>
80469
80470         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
80471         Emit mostlyclean-local rule.
80472         (func_emit_tests_Makefile_am): Likewise.
80473         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
80474
80475 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
80476
80477         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
80478
80479 2006-06-23  Bruno Haible  <bruno@clisp.org>
80480
80481         * tests/test-stdint.c: Update to match ISO C 99 Technical
80482         Corrigendum 1.
80483
80484 2006-06-23  Bruno Haible  <bruno@clisp.org>
80485
80486         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
80487
80488 2006-06-23  Bruno Haible  <bruno@clisp.org>
80489
80490         * lib/stdint_.h: Treat IRIX like OpenBSD.
80491
80492 2006-06-23  Bruno Haible  <bruno@clisp.org>
80493
80494         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
80495         ISO C 99 Technical Corrigendum 1.
80496
80497 2006-06-22  Simon Josefsson  <jas@extundo.com>
80498
80499         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
80500         MinGW.
80501
80502 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80503
80504         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
80505         needed.  Some compiler complained about some of them.  Problem reported
80506         by Larry Jones in
80507         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
80508
80509 2006-06-21  Simon Josefsson  <jas@extundo.com>
80510
80511         * tests/test-getaddrinfo.c: New file.
80512
80513         * modules/getaddrinfo-tests: New file.
80514
80515         * MODULES.html.sh: Add inet_pton.
80516
80517         * modules/inet_pton: New file.
80518
80519 2006-06-21  Simon Josefsson  <jas@extundo.com>
80520
80521         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
80522         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
80523         of using the (limited) gnulib implementation on Windows XP.
80524
80525         * m4/inet_pton.m4: New file.
80526
80527 2006-06-21  Simon Josefsson  <jas@extundo.com>
80528
80529         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
80530         variable.
80531
80532         * lib/socket_.h: Don't define WINVER.
80533
80534         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
80535         slightly modified to work in gnulib.
80536
80537 2006-06-21  Simon Josefsson  <jas@extundo.com>
80538
80539         * doc/gnulib.texi (Windows sockets): Add.
80540
80541 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
80542
80543         * lib/read-file.c (fread_file): Start with buffer allocation of
80544         0 bytes rather than 1 byte; this simplifies the code.
80545         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
80546         code to free buffer and save/restore errno.
80547         (internal_read_file): Remove unused local.
80548
80549 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
80550
80551         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
80552         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
80553         Problem reported by Denis Excoffier in
80554         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
80555
80556 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80557
80558         * modules/sys_socket, modules/socklen: Include sys/types since
80559         FreeBSD 4.x's sys/socket.h needs it.
80560
80561 2006-06-19  Simon Josefsson  <jas@extundo.com>
80562
80563         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
80564
80565 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80566
80567         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
80568
80569 2006-06-19  Bruno Haible  <bruno@clisp.org>
80570
80571         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
80572         and FULL_PATH_INTTYPES_H in angle brackets.
80573         Reported by Mark D. Baushke <mdb@gnu.org>.
80574
80575 2006-06-17  Eric Blake  <ebb9@byu.net>
80576
80577         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
80578         errno.
80579
80580 2006-06-17  Bruno Haible  <bruno@clisp.org>
80581
80582         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
80583         <sys/inttypes.h>.
80584
80585 2006-06-17  Bruno Haible  <bruno@clisp.org>
80586
80587         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
80588         whether errno is declared. Assume <errno.h> declares errno.
80589
80590 2006-06-17  Bruno Haible  <bruno@clisp.org>
80591
80592         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
80593
80594 2006-06-17  Bruno Haible  <bruno@clisp.org>
80595
80596         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
80597         problem on Solaris 2.5.1.
80598
80599 2006-06-16  Eric Blake  <ebb9@byu.net>
80600
80601         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
80602         * lib/unicodeio.c [!defined errno]: Likewise.
80603         * lib/strtol.c [!defined errno]: Likewise.
80604         * lib/strtod.c [!defined errno]: Likewise.
80605
80606 2006-06-15  Eric Blake  <ebb9@byu.net>
80607
80608         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
80609
80610 2006-06-15  Eric Blake  <ebb9@byu.net>
80611
80612         * config/srclist.txt (ssize_t.m4): Lose sync.
80613
80614 2006-06-15  Bruno Haible  <bruno@clisp.org>
80615
80616         * modules/stdint (Files): Include m4/full-header-path.m4,
80617         m4/size_max.m4, m4/wchar_t.m4.
80618         (Makefile.am): Many more substitutions.
80619         * modules/stdint-tests: New file.
80620         * tests/test-stdint.c: New file.
80621
80622 2006-06-15  Bruno Haible  <bruno@clisp.org>
80623
80624         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
80625         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
80626         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
80627         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
80628         gl_CHECK_TYPE_SAME): New macros.
80629
80630 2006-06-15  Bruno Haible  <bruno@clisp.org>
80631
80632         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
80633
80634 2006-06-15  Bruno Haible  <bruno@clisp.org>
80635
80636         * lib/stdint_.h: Rewritten to be fully auto-configured.
80637         Fixes bug on HP-UX/IA64.
80638
80639 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
80640
80641         * lib/getdate.y (__attribute__): Don't define if already defined.
80642         Problem reported by Larry Jones.
80643         * lib/utimens.c (__attribute__): Likewise.
80644
80645 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
80646
80647         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
80648         reported by Andreas Schwab.
80649
80650 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80651             Bruno Haible  <bruno@clisp.org>
80652
80653         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
80654         check for the declaration of strnlen and a run test that exposes the
80655         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
80656         rpl_strndup.
80657
80658 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80659             Bruno Haible  <bruno@clisp.org>
80660
80661         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
80662
80663 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80664
80665         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
80666         compile test, for Tru64 4.0D.
80667
80668 2006-05-28  Karl Berry  <karl@gnu.org>
80669
80670         * config/srclist.txt (printf-args.c): lose sync.
80671
80672 2006-05-26  Martin Lambers  <marlam@marlam.de>
80673
80674         * lib/getpass.c: Updates the test for the native W32 API, and adds
80675         missing includes, thus fixing compilation warnings.
80676
80677 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80678
80679         * lib/exclude.c (exclude_fnmatch): New function.
80680         (excluded_file_name): Call exclude_fnmatch.
80681         * lib/exclude.h (excluded_file_name): New prototype
80682
80683 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
80684
80685         * lib/tempname.c (small_open, large_open): New macros.
80686         (__open, __open64) [!_LIBC]: Remove.
80687         (__gen_tempname): Use small_open and large_open instead of __open
80688         and __open64.  This fixes a portability bug on HP-UX 11.11i
80689         reported by Simon Wing-Tang in
80690         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
80691
80692 2006-05-24  Bruno Haible  <bruno@clisp.org>
80693
80694         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
80695         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
80696         Reported by Thorsten Maerz <torte@netztorte.de> via
80697         Aaron Stone <aaron@serendipity.cx>.
80698
80699 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80700
80701         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
80702         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
80703         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
80704         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
80705         not really conditional on the cache.
80706         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
80707
80708 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80709
80710         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
80711         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
80712         (my_usleep): Don't mishandle maximum value.
80713
80714 2006-05-19  Jim Meyering  <jim@meyering.net>
80715
80716         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
80717
80718 2006-05-17  Bruno Haible  <bruno@clisp.org>
80719
80720         Cygwin portability.
80721         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
80722
80723 2006-05-17  Bruno Haible  <bruno@clisp.org>
80724
80725         * lib/stdint_.h: Fix recognition of Cygwin.
80726
80727 2006-05-15  Bruno Haible  <bruno@clisp.org>
80728
80729         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
80730         on libtool patch by Ralf Wildenhues.
80731
80732 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80733
80734         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
80735         test for C99 conformance; (bool) 0.5 is an integer constant
80736         expression, but (bool) -0.5 is not.  Problem reported by Fedor
80737         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
80738
80739 2006-05-11  Simon Josefsson  <jas@extundo.com>
80740
80741         * m4/xvasprintf.m4: Fix obvious typo.
80742
80743 2006-05-11  Jim Meyering  <jim@meyering.net>
80744
80745         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
80746         James Lemley.
80747
80748 2006-05-10  Simon Josefsson  <jas@extundo.com>
80749
80750         * lib/md4.c: Typo fix, update copyright years.
80751         (K1, K2): Don't use L because it turn computations into 64-bit on
80752         64-bit platforms.
80753
80754 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
80755
80756         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
80757         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
80758         unwanted sign propagation, e.g., on hosts with 64-bit int.
80759         There still are some problems with reeelly weird theoretical hosts
80760         (e.g., 33-bit int) but it's not worth worrying about now.
80761         * lib/sha1.c (rol): Likewise.
80762         (K1, K2, K3, K4): Remove unnecessary L suffix.
80763
80764 2006-05-10  Bruno Haible  <bruno@clisp.org>
80765
80766         * lib/des.c: Cast to avoid warnings.
80767
80768 2006-05-09  Bruno Haible  <bruno@clisp.org>
80769
80770         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
80771         (Depends-on): Depend also on xsize, stdarg.
80772         (configure.ac): Add gl_XVASPRINTF.
80773
80774 2006-05-09  Bruno Haible  <bruno@clisp.org>
80775
80776         * m4/xvasprintf.m4: New file.
80777
80778 2006-05-09  Bruno Haible  <bruno@clisp.org>
80779
80780         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
80781         (EOVERFLOW): Define fallback value.
80782         (xstrcat): New function.
80783         (xvasprintf): Recognize the special case of a string concatenation.
80784
80785 2006-05-08  Eric Blake  <ebb9@byu.net>
80786
80787         * gnulib-tool (func_version): Base copyright year on CVS date.
80788         (func_emit_copyright_notice): New function.
80789         (func_emit_lib_Makefile_am): Use it.
80790         (func_emit_tests_Makefile_am): Likewise.
80791         (func_import): Likewise.
80792
80793 2006-05-08  Bruno Haible  <bruno@clisp.org>
80794
80795         * modules/stdarg: New file.
80796         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
80797
80798 2006-05-08  Bruno Haible  <bruno@clisp.org>
80799
80800         * m4/stdarg.m4: New file, from GNU gettext.
80801
80802 2006-05-08  Bruno Haible  <bruno@clisp.org>
80803
80804         * config/srclist.txt (build-aux/config.rpath): different from latest
80805         release.
80806
80807 2006-05-08  Bruno Haible  <bruno@clisp.org>
80808
80809         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
80810
80811 2006-05-05  Jim Meyering  <jim@meyering.net>
80812
80813         * m4/warning.m4: New file, derived from bison's file by the same name.
80814
80815 2006-05-03  Bruno Haible  <bruno@clisp.org>
80816
80817         * lib/stdint_.h: Shorter URL.
80818         * lib/inttypes.h: Likewise.
80819
80820 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80821
80822         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
80823
80824 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80825
80826         * lib/verify.h: Document the internals better.  Most of this change
80827         was written by Bruno Haible.
80828
80829 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80830
80831         * doc/verify.texi: New file, partly based on a proposal by
80832         Bruno Haible.
80833
80834 2006-05-02  Bruno Haible  <bruno@clisp.org>
80835
80836         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
80837         test from here...
80838         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
80839
80840 2006-04-29  Bruno Haible  <bruno@clisp.org>
80841
80842         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
80843         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
80844
80845 2006-04-29  Bruno Haible  <bruno@clisp.org>
80846
80847         * gnulib-tool: Make --update option actually work.
80848
80849 2006-04-29  Bruno Haible  <bruno@clisp.org>
80850
80851         * doc/gcd.texi: New file.
80852         * doc/gnulib.texi: Include it.
80853
80854 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
80855
80856         * lib/getdate.y (get_date): When adding relative date, start with the
80857         initial time, not with the result of the first mktime call.
80858
80859 2006-04-25  Bruno Haible  <bruno@clisp.org>
80860
80861         * gnulib-tool (func_import): Output the include directives in three
80862         blocks, sorted separately.
80863         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80864
80865 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80866
80867         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
80868         to define main with arguments, for C++.  Reported by Eric Blake.
80869         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
80870         Prefer 'int main ()' to 'int main (void)', for C++.
80871         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
80872         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
80873         for 'main', for C99 and C++.
80874
80875 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80876
80877         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
80878         Don't assume that exit status -1 is valid.
80879         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80880         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
80881         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
80882         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
80883         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
80884         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
80885         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
80886         functions can be used without declaring them, or that you can
80887         exit with status -1.
80888         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
80889
80890 2006-04-24  Karl Berry  <karl@gnu.org>
80891
80892         * config/srclist.txt (longdouble.m4): sync lost.
80893
80894 2006-04-24  Eric Blake  <ebb9@byu.net>
80895
80896         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
80897
80898 2006-04-24  Bruno Haible  <bruno@clisp.org>
80899
80900         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
80901         poll() implementation in AIX.
80902         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80903
80904 2006-04-24  Bruno Haible  <bruno@clisp.org>
80905
80906         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
80907         assigned exactly once.
80908
80909 2006-04-23  Claudio Fontana  <claudio@gnu.org>
80910             Bruno Haible  <bruno@clisp.org>
80911
80912         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
80913         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
80914         for AM_CPPFLAGS.
80915
80916 2006-04-23  Bruno Haible  <bruno@clisp.org>
80917
80918         * modules/copy-file: Depend on unistd.
80919         * modules/execute: Likewise.
80920         * modules/fatal-signal: Likewise.
80921         * modules/findprog: Likewise.
80922         * modules/mkdtemp : Likewise.
80923         * modules/pipe: Likewise.
80924         * modules/wait-process: Likewise.
80925
80926 2006-04-23  Bruno Haible  <bruno@clisp.org>
80927
80928         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
80929         condition was already detected.
80930         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80931
80932 2006-04-23  Bruno Haible  <bruno@clisp.org>
80933
80934         * lib/copy-file.c: Include <unistd.h> unconditionally.
80935         * lib/execute.c: Likewise.
80936         * lib/fatal-signal.c: Likewise.
80937         * lib/findprog.c: Likewise.
80938         * lib/mkdtemp.c: Likewise.
80939         * lib/pipe.h: Likewise.
80940         * lib/pipe.c: Likewise.
80941         * lib/wait-process.h: Likewise.
80942
80943 2006-04-23  Bruno Haible  <bruno@clisp.org>
80944
80945         * gnulib-tool (func_usage): Fix --import description. Document
80946         --update.
80947         (func_import): Create temporary file in a temporary directory, if
80948         --dry-run is specified. Silence errors from 'grep' when there are no
80949         m4 files in $m4dir.
80950         (func_create_testdir): Silence errors from 'grep' when there are no
80951         m4 files in $m4dir.
80952         Reported by Karl Berry <karl@freefriends.org>.
80953
80954 2006-04-20  Bruno Haible  <bruno@clisp.org>
80955
80956         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
80957         one argument, so that the code will be portable to Autoconf 2.60.
80958         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
80959         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80960         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
80961
80962 2006-04-19  Derek Price  <derek@ximbiot.com>
80963             Eric Blake  <ebb9@byu.net>
80964
80965         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
80966         rather than "/full/path.h".  Update comment to match.  Shorten &
80967         generalize m4_translit call via AS_TR_CPP.
80968
80969 2006-04-19  Derek Price  <derek@ximbiot.com>
80970             Eric Blake  <ebb9@byu.net>
80971
80972         * lib/inttypes.h: Correct grammar in comment.
80973
80974 2006-04-18  Derek Price  <derek@ximbiot.com>
80975             Paul Eggert  <eggert@cs.ucla.edu>
80976
80977         * modules/inttypes: New file.
80978         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
80979
80980 2006-04-18  Derek Price  <derek@ximbiot.com>
80981             Paul Eggert  <eggert@cs.ucla.edu>
80982
80983         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
80984         New files.
80985
80986 2006-04-18  Derek Price  <derek@ximbiot.com>
80987             Paul Eggert  <eggert@cs.ucla.edu>
80988
80989         * lib/inttypes.h: New file.
80990         * lib/strtoimax.c: Assume <inttypes.h>.
80991
80992 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
80993
80994         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
80995         isn't mounted.  Problem reported by Kir Kolyshkin.
80996
80997 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80998
80999         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
81000         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
81001         Derek R. Price.
81002         * lib/regex.h (RE_DUP_MAX): Update comment to match current
81003         implementation.
81004
81005 2006-04-12  Eric Blake  <ebb9@byu.net>
81006
81007         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
81008         is now done automatically by the corresponding Autoconf macro.
81009
81010 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
81011
81012         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
81013         time_r.h.
81014
81015 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81016
81017         Merge regex changes from libc, removing some of our
81018         POSIX-conformance changes that were rejected and redoing them in a
81019         less-intrusive way.
81020
81021         * lib/regcomp.c (re_compile_internal, init_dfa):
81022         Length arg is now size_t, not Idx.  All uses changed.
81023         (peek_token): Forward decl now says internal_function.
81024         (__re_error_msgid, __re_error_msgid_idx):
81025         Now static rather than extern with attribute_hidden.
81026         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
81027         For some reason libc prefers K&R style defns for external functions.
81028         (regerror) [!defined _LIBC]: Likewise.
81029         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
81030         (seek_collating_symbol_entry, lookup_collation_sequence_value):
81031         (build_range_exp, build_collating_symbol):
81032         Use K&R-style defn.
81033         (re_compile_fastmap): Use '\0' to memset, not 0.
81034         (utf8_sb_map): Make the calculations more obvious.
81035         (init_dfa, parse_bracket_exp, build_charclass_op):
81036         Call calloc and cast result, as glibc does.
81037         (init_word_char, fetch_token, peek_token, peek_token_bracket):
81038         (build_range_exp, build_collating_symbol):
81039         Now internal functions.
81040
81041         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
81042
81043         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
81044         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
81045         Don't depend on VMS; depend on __VMS instead, for POSIX
81046         namespace cleanness.
81047         (regoff_t): Define to ssize_t, not long int.
81048
81049         Remove the REG_ macros named below.  Instead, make the old names
81050         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
81051         __USE_GNU_REGEX.
81052         (REG_BACKSLASH_ESCAPE_IN_LISTS):
81053         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
81054         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
81055         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
81056         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
81057         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
81058         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
81059         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
81060         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
81061         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
81062         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
81063         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
81064         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
81065         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
81066         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
81067         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
81068         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
81069         (REG_NREGS):
81070         Remove.  All uses replaced by the old RE_* names.
81071         (RE_BACKSLASH_ESCAPE_IN_LISTS):
81072         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
81073         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
81074         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
81075         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
81076         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
81077         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
81078         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
81079         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
81080         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
81081         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
81082         Don't bother having these macros be independent of each others'
81083         values, since they no longer exist in the POSIX name space.
81084
81085         Rename the following member names back to their old names,
81086         unless !__USE_GNU_REGEX.  All uses changed back.
81087         (buffer): Renamed from re_buffer.
81088         (allocated): Renamed from re_allocated.
81089         (used): Renamed from re_used.
81090         (syntax): Renamed from re_syntax.
81091         (fastmap): Renamed from re_fastmap.
81092         (translate): Renamed from re_translate.
81093         (can_be_null): Renamed from re_can_be_null.
81094         (regs_allocated): Renamed from re_regs_allocated.
81095         (fastmap_accurate): Renamed from re_fastmap_accurate.
81096         (no_sub): Renamed from re_no_sub.
81097         (not_bol): Renamed from re_not_bol.
81098         (not_eol): Renamed from re_not_eol.
81099         (newline_anchor): Renamed from re_newline_anchor.
81100         (num_regs): Renamed from rm_num_regs.
81101         (start): Renamed from rm_start.
81102         (end): Renamed from rm_end.
81103
81104         (free_state): Move up a bit.
81105
81106         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
81107         #define to be empty.
81108         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
81109         when that is what is intended.
81110         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
81111         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
81112         (MAX): New macro.
81113         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
81114         All uses changed back to re_malloc, etc.  It's now the caller's
81115         responsibility to check for overflow; all callers changed.
81116         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
81117         (re_x2nrealloc): Remove.
81118         (free_state): Remove decl.
81119
81120         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
81121         (re_set_registers, re_exec):
81122         Use K&R-style defn.
81123
81124         2006-01-31  Roland McGrath  <roland@redhat.com>
81125
81126         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
81127         Reported by Mike Frysinger <vapier@gentoo.org>.
81128
81129         2006-01-15  Andreas Jaeger  <aj@suse.de>
81130
81131         [BZ #1950]
81132         * lib/regex_internal.c (re_string_reconstruct): Adjust for
81133         build_wcs_upper_buffer change.
81134         (build_wcs_upper_buffer): Change return type.
81135
81136         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
81137
81138         * lib/regex_internal.h: Include <stdint.h> if available.
81139
81140         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
81141
81142         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
81143
81144         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
81145
81146         * lib/regcomp.c: Adjust for changed secondary hash function.
81147
81148         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
81149
81150         * lib/regex.h: Pretty printing.
81151         Clean up namespace a bit.
81152
81153         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
81154
81155         * lib/regexec.c (update_cur_sifted_state, check_arrival,
81156         check_arrival_add_next_nodes): Avoid using uninitialized variable.
81157
81158         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81159                     Ulrich Drepper  <drepper@redhat.com>
81160
81161         [BZ #1302]
81162         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
81163         changed.
81164         (bitset_word_t): Renamed from bitset_word.  All uses changed.
81165
81166         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
81167
81168         [BZ #281]
81169         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
81170         * lib/regcomp.c: Remove unnecessary uses of
81171         unsigned RE_TRANSLATE_TYPE.
81172         * lib/regex_internal.h: Likewise.
81173         * lib/regex_internal.c: Likewise.
81174         * lib/regexec.c: Likewise.
81175         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
81176
81177         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
81178
81179         * lib/regexec.c (find_recover_state): Remove unnecessary
81180         initialization.
81181         (transit_state_bkref): Make DFA a const pointer.
81182         (get_subexp): Likewise.
81183         (check_arrival): Likewise.
81184         (update_cur_sifted_state): Likewise.
81185         (re_search_internal): Likewise.
81186         (prune_impossible_nodes): Likewise.
81187         (acquire_init_state_context): Likewise.
81188         (proceed_next_node): Likewise.
81189         (set_regs): Likewise.
81190         (free_fail_stack_return): Likewise.
81191         (check_arrival_expand_ecl): Mark DFA parameter as const.
81192         (check_arrival_expand_ecl_sub): Likewise.
81193         (check_subexp_limits): Likewise.
81194         (sub_epsilon_src_nodes):  Likewise.
81195         (add_epsilon_src_nodes):  Likewise.
81196         (merge_state_array): Likewise.
81197         (update_regs): Likewise.
81198         (build_trtable): Likewise.
81199         (sift_states_backward): Mark MCTX parameter as const.
81200         (build_sifted_states): Likewise.
81201         (update_cur_sifted_state): Likewise.
81202         (sift_states_mkref): Likewise.
81203         (check_arrival_expand_ecl): Mark eclosure as const.
81204         (check_dst_limits_calc_pos_1): Likewise.
81205         * lib/regex_internal.h (re_match_context_t): Make dfa a const
81206         pointer.
81207
81208         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
81209
81210         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
81211         (transit_state_sb): Likewise.
81212         (transit_state_mb): Likewise.
81213         (sift_states_iter_mb): Likewise.
81214         (check_arrival_add_next_nodes): Likewise.
81215         (check_node_accept_bytes): Change first parameter to pointer-to-const.
81216         [_LIBC] (re_search_2_stub): Use mempcpy.
81217
81218         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
81219         mbrtowc for very simple UTF-8 case.
81220
81221         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
81222         a pointer-to-const.
81223         (re_acquire_state_context): Likewise.
81224         * lib/regex_internal.h: Adjust prototypes.
81225
81226         * lib/regex.c: Prevent using C++ compilers.
81227
81228         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
81229         (re_acquire_state_context): Likewise.
81230
81231 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81232
81233         * modules/regex (Depends-on): Add ssize_t.
81234
81235 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81236
81237         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
81238         translation table.
81239
81240 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81241
81242         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
81243
81244 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
81245             Bruno Haible  <bruno@clisp.org>
81246
81247         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
81248         <sys/types.h> and <inttypes.h>.
81249
81250 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81251
81252         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
81253         `__error_t_defined', so argp.h will not typedef the former.
81254
81255 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
81256
81257         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
81258         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
81259         glibc names.  Even if glibc is changed to conform to POSIX, the
81260         traditional names will be available anyway, since regex depends on
81261         the extensions module.  Also, fix a longstanding typo in the
81262         implementation of Spencer ERE test #75 from grep 2.3.  Problems
81263         reported by Emanuele Giaquinta.  Also, change sense of cached
81264         variable, so that the message makes sense.
81265
81266 2006-03-24  Simon Josefsson  <jas@extundo.com>
81267
81268         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
81269         including some doc fixes.
81270         (base64_encode_alloc): Fix +1 bug on allocation failures.
81271
81272 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81273
81274         * lib/base64.c (base64_encode): Do not read past end of array with
81275         unsanitized input on systems with CHAR_BIT > 8.
81276
81277 2006-03-24  Eric Blake  <ebb9@byu.net>
81278
81279         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
81280
81281 2006-03-22  Karl Berry  <karl@gnu.org>
81282
81283         * config/srclist.txt (*setenv.[ch]): get from coreutils.
81284         * config/srclistvars.sh (COREUTILS): new var.
81285
81286 2006-03-17  Jim Meyering  <jim@meyering.net>
81287
81288         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
81289         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
81290
81291 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81292
81293         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
81294         no longer needs it.  Instead, check that regoff_t is as least
81295         as wide as ptrdiff_t.
81296
81297         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
81298         so that our regex.h stays compatible with the installed regex.
81299         This is helpful for installers who configure --without-included-regex.
81300         Problem reported by Emanuele Giaquinta.
81301
81302 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81303
81304         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
81305         Typedef to long int, not to off_, as POSIX will likely change
81306         in that direction.
81307
81308 2006-03-15  Eric Blake  <ebb9@byu.net>
81309
81310         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
81311
81312 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81313
81314         * lib/argp-help.c (validate_uparams): Fix typo
81315         * lib/argp-parse.c (argp_default_options): Consistently begin help
81316         messages with a lowercase letter.
81317
81318 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
81319
81320         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
81321         overrun buffers and shouldn't be used (much as gets shouldn't be
81322         used).
81323         * lib/time_r.c (asctime_r, ctime_r): Likewise.
81324
81325 2006-03-08  Simon Josefsson  <jas@extundo.com>
81326
81327         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
81328         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81329
81330 2006-03-08  Simon Josefsson  <jas@extundo.com>
81331
81332         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
81333         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81334
81335 2006-03-08  Simon Josefsson  <jas@extundo.com>
81336
81337         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
81338         signal that configure disabled the device.
81339
81340 2006-03-08  Simon Josefsson  <jas@extundo.com>
81341
81342         * build-aux/maint.mk: Fix refresh-po, to handle no translated
81343         languages.
81344
81345 2006-03-07  Simon Josefsson  <jas@extundo.com>
81346
81347         * modules/getopt (Depends-on): Add unistd.
81348
81349         * modules/unistd: New file.
81350
81351 2006-03-07  Simon Josefsson  <jas@extundo.com>
81352
81353         * modules/gc-random: New file.
81354
81355 2006-03-07  Simon Josefsson  <jas@extundo.com>
81356
81357         * m4/unistd_h.m4: New file.
81358
81359 2006-03-07  Simon Josefsson  <jas@extundo.com>
81360
81361         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
81362         test to be side-effect free by storing the result in the cache
81363         variable gl_cv_lib_readline, and moving the assignment of
81364         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
81365         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81366
81367 2006-03-07  Simon Josefsson  <jas@extundo.com>
81368
81369         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
81370         error on missing devices (the functions will return an error).
81371
81372         * m4/gc.m4: Move random stuff to gc-random.m4
81373
81374 2006-03-07  Simon Josefsson  <jas@extundo.com>
81375
81376         * lib/unistd_.h: New file.
81377
81378 2006-03-07  Simon Josefsson  <jas@extundo.com>
81379
81380         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
81381
81382 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81383
81384         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
81385         Problem reported by Juan Manuel Guerrero.
81386
81387 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81388
81389         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
81390         the unistd module.
81391         * lib/getlogin_r.c: Likewise.
81392         * lib/getlogin_r.h: Likewise.
81393         * lib/glob.c: Likewise.
81394         * lib/pagealign_alloc.c: Likewise.
81395         * lib/unistd_.h: Remove; no longer needed.
81396
81397 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81398
81399         * MODULES.html.sh (Support for systems lacking POSIX:2001):
81400         Add unistd.
81401         * modules/c-stack (Depends-on): Add unistd.
81402         * modules/getlogin_r: Likewise.
81403         * modules/glob: Likewise.
81404         * modules/pagealign_alloc: Likewise.
81405         * modules/unistd (Files): Remove lib/unistd_.h.
81406         (EXTRA_DIST): Remove.
81407         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
81408         need unistd_.h.
81409         (MOSTLYCLEANFILES): Remove unistd.h-t.
81410
81411 2006-03-03  Simon Josefsson  <jas@extundo.com>
81412
81413         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
81414
81415 2006-03-03  Simon Josefsson  <jas@extundo.com>
81416
81417         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
81418         libidn and bison.
81419
81420 2006-03-03  Simon Josefsson  <jas@extundo.com>
81421
81422         * build-aux/maint.mk: Add indent target.
81423
81424 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
81425
81426         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
81427         our replacement poll.h in any case, to avoid a differing
81428         declaration from a system header.  Seen on AIX.
81429
81430 2006-03-01  Simon Josefsson  <jas@extundo.com>
81431
81432         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
81433         <kasal@ucw.cz>.
81434
81435 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81436
81437         * modules/gettime (Depends-on): Add extensions module.
81438         * modules/nanosleep (Depends-on): Likewise.
81439         * modules/settime (Depends-on): Likewise.
81440
81441 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81442
81443         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
81444         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
81445         pedantically.
81446         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81447         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
81448
81449         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
81450         not "==".  Reported by Ralf Wildenhues.
81451
81452 2006-03-01  Karl Berry  <karl@gnu.org>
81453
81454         * doc/Copyright/request-*: new files, synced from gnuorg.
81455
81456 2006-03-01  Karl Berry  <karl@gnu.org>
81457
81458         * config/srclist.txt (Copyright/*): new entries.
81459
81460 2006-02-28  Simon Josefsson  <jas@extundo.com>
81461
81462         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
81463
81464 2006-02-27  Simon Josefsson  <jas@extundo.com>
81465
81466         * lib/base64.h: Indent #define's.  From Jim Meyering
81467         <jim@meyering.net>.
81468
81469 2006-02-27  Jim Meyering  <jim@meyering.net>
81470
81471         Revert the change of 2006-02-24, so these files can continue
81472         to be sync'd from gettext.
81473         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
81474         of `config.h'.
81475
81476 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
81477
81478         * modules/intprops: New file.
81479         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
81480         Add intprops.
81481         * modules/getloadavg (Files): Remove lib/intprops.h.
81482         (Depends-on): Add intprops.
81483         * modules/human: Likewise.
81484         * modules/inttostr: Likewise.
81485         * modules/openat: Likewise.
81486         * modules/sig2str: Likewise.
81487         * modules/userspec: Likewise.
81488         * modules/utimecmp: Likewise.
81489         * modules/xnanosleep: Likewise.
81490         * modules/xstrtol: Likewise.
81491
81492 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
81493
81494         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
81495         * modules/lock-tests (TESTS): Use $(EXEEXT).
81496         * modules/tls-tests: Likewise.
81497         * modules/argp-tests: Likewise.
81498         (check_PROGRAMS): New var, replacing...
81499         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
81500
81501 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81502
81503         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
81504         `config.h'.
81505
81506 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
81507
81508         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
81509
81510 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81511
81512         Sync from coreutils.
81513         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
81514         gl_CHDIR_SAFER.
81515
81516 2006-02-22  Jim Meyering  <jim@meyering.net>
81517
81518         Sync from coreutils.
81519         * m4/chdir-safer.m4: New file.
81520
81521 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
81522
81523         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
81524         AT_FDCWD exceeds INT_MAX.
81525         * lib/openat.h (AT_FDCWD): Likewise.
81526
81527 2006-02-17  Eric Blake  <address@hidden>
81528
81529         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
81530
81531 2006-02-16  Simon Josefsson  <jas@extundo.com>
81532
81533         * modules/getaddrinfo (Depends-on): Add sys_socket.
81534
81535 2006-02-15  Simon Josefsson  <jas@extundo.com>
81536
81537         * build-aux/maint.mk: Add dsyntax-check rule.
81538
81539 2006-02-15  Eric Blake  <ebb9@byu.net>
81540
81541         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
81542         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
81543         'present but cannot compile' warnings on cygwin.
81544         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
81545         use ws2tcpip.h if sys/socket.h works.
81546         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
81547         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
81548
81549 2006-02-14  Simon Josefsson  <jas@extundo.com>
81550
81551         * modules/maintainer-makefile (Files): Rename.
81552
81553         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
81554         and (the local) Makefile.cfg to maint-cfg.mk.
81555
81556         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
81557         to the latter.
81558
81559         * modules/maintainer-makefile: New module.
81560
81561         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
81562         severaly stripped to make it possible to build it up from scratch
81563         with reliable tests.
81564
81565         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
81566         fixes to permit overriding the default actions when configure and
81567         makefile are not available.
81568
81569 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
81570
81571         Sync from coreutils.
81572         * modules/lstat (Depends-on): Don't depend on xalloc.
81573         (License): Change from GPL to LGPL, since this is now simply a
81574         replacement for a libc function.
81575
81576 2006-02-14  Jim Meyering  <jim@meyering.net>
81577
81578         Sync from coreutils.
81579
81580         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
81581         failure on deficient systems, and simplify gnulib lgpl dependencies.
81582         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
81583         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
81584
81585         * lib/xalloc-die.c: Remove unused definition of N_.
81586
81587 2006-02-14  Jim Meyering  <jim@meyering.net>
81588
81589         Sync from coreutils.
81590         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
81591         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
81592         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
81593         double-quote uses of that variable, to accommodate the rare case in
81594         which getmntent is available in none of the libraries checked.  This
81595         happens at least on FreeBSD 5.0.
81596
81597 2006-02-13  Simon Josefsson  <jas@extundo.com>
81598
81599         * gnulib-tool (Usage): Fix --import, from
81600         karl@freefriends.org (Karl Berry).
81601
81602 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81603
81604         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
81605
81606 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
81607
81608         * lib/argp-namefrob.h: Restore changes accidentally lost during the
81609         "autoupdate" on 2005-12-12.
81610
81611 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81612
81613         * modules/closeout (Depends-on): Remove atexit.
81614
81615 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81616
81617         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
81618         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
81619
81620 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
81621
81622         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
81623         __EXTENSIONS__ if this causes compilation to fail.  Problem
81624         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
81625         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
81626
81627 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
81628
81629         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
81630         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
81631         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
81632         All uses changed.
81633
81634 2006-01-26  Simon Josefsson  <jas@extundo.com>
81635
81636         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
81637         prototype is visible on mingw32.
81638
81639         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
81640         for mingw32.
81641
81642         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
81643         mingw32).
81644
81645 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
81646
81647         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
81648         attempt to open for write; this always fails, at least on POSIX
81649         hosts.  This reinstates the 2006-01-09 change, which was
81650         inadvertently removed.
81651
81652 2006-01-26  Bruno Haible  <bruno@clisp.org>
81653
81654         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
81655         Reported by Paul Eggert.
81656
81657 2006-01-26  Bruno Haible  <bruno@clisp.org>
81658             Paul Eggert  <eggert@cs.ucla.edu>
81659
81660         * lib/stdbool_.h (_Bool)
81661         [(! (defined __cplusplus || defined __BEOS__)
81662           && !defined __GNUC__
81663           && !(defined __HP_cc || defined __xlc__
81664                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
81665                || defined __sgi))]:
81666         #define to signed char in these cases too; this simplifies
81667         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
81668         etc., separately) and makes it more conservative.
81669
81670 2006-01-25  Simon Josefsson  <jas@extundo.com>
81671
81672         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
81673         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
81674         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
81675
81676 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81677
81678         * lib/argp-namefrob.h: Bugfix. Remove stray #
81679
81680 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
81681
81682         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
81683         so that we test the test.
81684         Check for yet another HP-UX cc bug involving *bool |= bool.
81685
81686 2006-01-25  Karl Berry  <karl@gnu.org>
81687
81688         * config/srclist.txt (vasnprintf.c): sync lost.
81689
81690 2006-01-25  Jim Meyering  <jim@meyering.net>
81691
81692         Sync from the stable (b5) branch of coreutils:
81693
81694         * lib/fts.c (fts_children): Don't let close() clobber errno from
81695         failed fchdir().
81696
81697         * lib/fts.c (fts_stat): When following a symlink-to-directory,
81698         don't necessarily interpret stat-fails+lstat-succeeds as indicating
81699         a dangling symlink.  That can also happen at least for ELOOP.
81700         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
81701         FYI, this bug predates the inclusion of fts.c in coreutils.
81702
81703         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
81704         in their own block, so pre-c99 compilers don't object.
81705
81706         Avoid the double-free (first in fts_read, second in fts_close) that
81707         would occur when an `active' directory is made inaccessible (e.g.,
81708         via chmod a-x) during a traversal.
81709         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81710         before returning.  Reproduce this failure by
81711         mkdir -p a/b; cd a; chmod a-x . b
81712         Reported by Stavros Passas.
81713
81714 2006-01-25  Jim Meyering  <jim@meyering.net>
81715
81716         * lib/fileblocks.c: Remove more useless parentheses.
81717         * lib/readutmp.h: Likewise.
81718
81719 2006-01-25  Bruno Haible  <bruno@clisp.org>
81720
81721         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
81722         warnings.
81723         Reported by Paul Eggert.
81724
81725 2006-01-25  Bruno Haible  <bruno@clisp.org>
81726
81727         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
81728         rid of a trap command. For Solaris sh.
81729         Reported by Mark D. Baushke <mdb@gnu.org>.
81730
81731 2006-01-24  Simon Josefsson  <jas@extundo.com>
81732
81733         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
81734         Bruno.
81735
81736 2006-01-24  Karl Berry  <karl@gnu.org>
81737
81738         * config/srclist.txt (argp-namefrob.h): sync lost.
81739
81740 2006-01-24  Jim Meyering  <jim@meyering.net>
81741
81742         * modules/openat (Files): Add lib/intprops.h.
81743         From Mark D. Baushke.
81744
81745 2006-01-24  Jim Meyering  <jim@meyering.net>
81746
81747         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
81748         Reported by Mark D. Baushke.
81749
81750 2006-01-24  Jim Meyering  <jim@meyering.net>
81751
81752         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
81753
81754 2006-01-24  Bruno Haible  <bruno@clisp.org>
81755
81756         * modules/strnlen (Maintainer): Change from glibc to all.
81757
81758 2006-01-24  Bruno Haible  <bruno@clisp.org>
81759
81760         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
81761         Patch by Paul Eggert.
81762
81763 2006-01-24  Bruno Haible  <bruno@clisp.org>
81764
81765         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
81766         already has it.
81767         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
81768         2005-11-26.
81769
81770         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
81771         'signed char' to avoid problems with the built-in _Bool type.
81772         Reported by Paul Eggert on 2005-11-26.
81773
81774 2006-01-24  Bruno Haible  <bruno@clisp.org>
81775
81776         * gnulib-tool (func_import): Avoid constructing complicated sed
81777         expressions inside backquote.
81778         Report and solution by Mark D. Baushke <mdb@gnu.org>.
81779
81780 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
81781
81782         These changes imported from libc.
81783         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
81784         test and two separate function calls.
81785         * lib/strndup.c (__strndup): Add libc_hidden_def.
81786
81787 2006-01-23  Simon Josefsson  <jas@extundo.com>
81788
81789         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
81790         Remove the test_*_SOURCES variable: automake infers it by default.
81791         * modules/tls-tests: Likewise.
81792
81793 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81794
81795         Work around porting bugs reported by Dieter in
81796         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
81797         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
81798         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
81799         Include "getopt.h" first, to check interface.
81800         (getenv): Declare only if defined HAVE_DECL_GETENV &&
81801         !HAVE_DECL_GETENV.
81802         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
81803         (__strndup): Revert to K&R-style function dfns, the glibc style.
81804         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
81805         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
81806         Include strnlen.h first, to get prototype properly.
81807         (strnlen): Renamed from __strnlen.
81808         Remove weak alias.
81809
81810 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81811
81812         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
81813
81814 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81815
81816         * config/srclist.txt: Adjust to reflect glibc reorganization.
81817         This affects only comments.
81818
81819 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81820
81821          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
81822          Reported by Bruce Korb <bkorb@gnu.org>.
81823
81824 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
81825
81826         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
81827         to pacify gcc -Wswitch-default.
81828
81829 2006-01-22  Bruno Haible  <bruno@clisp.org>
81830
81831         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
81832         temporary buffer for sprintf, take into account the precision also
81833         for 'd', 'i', 'u', 'o', 'x', 'X'.
81834
81835 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81836
81837         * modules/argp-tests: New module
81838         * tests/test-argp.c: New file
81839         * tests/test-argp-2.sh: New file
81840
81841 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81842
81843         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
81844         (__argp_base_name): Removed
81845         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
81846         typo.
81847         (__argp_base_name): Provide macro definition or extern declaration
81848         depending on the configuration
81849
81850 2006-01-20  Simon Josefsson  <jas@extundo.com>
81851
81852         * modules/inet_ntop (Depends-on): Depend on sys_socket.
81853
81854 2006-01-20  Simon Josefsson  <jas@extundo.com>
81855
81856         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
81857
81858 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81859
81860         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
81861         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
81862         Suggested by Bruno Haible.
81863
81864 2006-01-20  Karl Berry  <karl@gnu.org>
81865
81866         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
81867         until changes propagate, I guess.
81868
81869 2006-01-19  Simon Josefsson  <jas@extundo.com>
81870
81871         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
81872
81873 2006-01-19  Simon Josefsson  <jas@extundo.com>
81874
81875         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
81876
81877 2006-01-19  Simon Josefsson  <jas@extundo.com>
81878
81879         * gnulib-tool: Set check_PROGRAMS.
81880
81881         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81882         modules/des-tests, modules/gc-arcfour-tests,
81883         modules/gc-arctwo-tests, modules/gc-des-tests,
81884         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81885         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81886         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81887         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81888         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81889         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
81890         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
81891         test_*_SOURCES.
81892
81893 2006-01-18  Simon Josefsson  <jas@extundo.com>
81894
81895         * modules/socklen (Depends-on): Depend on sys_socket.
81896
81897 2006-01-18  Simon Josefsson  <jas@extundo.com>
81898
81899         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81900         modules/des-tests, modules/gc-arcfour-tests,
81901         modules/gc-arctwo-tests, modules/gc-des-tests,
81902         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81903         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81904         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81905         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81906         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81907         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
81908         $(EXEEXT) to automake TESTS variable, for mingw32.
81909
81910 2006-01-17  Simon Josefsson  <jas@extundo.com>
81911
81912         * modules/socklen (Include): Need sys/socket.h.
81913
81914 2006-01-17  Bruno Haible  <bruno@clisp.org>
81915
81916         * modules/ssize_t (Include): Add <sys/types.h>.
81917
81918 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
81919
81920         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
81921         it's not portable and it doesn't work with cross-compiles.
81922         Problem reported by Bruno Haible.  Fix missing-$ typo in
81923         'test "gl_cv_ignore_unused_libraries" ...' that prevented
81924         -zignore from being used with Sun's C compiler.
81925
81926 2006-01-12  Simon Josefsson  <jas@extundo.com>
81927
81928         * lib/base64.c: Fix warning, reported by Bruno Haible
81929         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
81930
81931 2006-01-12  Bruno Haible  <bruno@clisp.org>
81932
81933         * modules/ldd: New file.
81934         * build-aux/ldd.sh.in: New file.
81935         * MODULES.html.sh (Support for building libraries and executables): Add
81936         ldd.
81937
81938 2006-01-12  Bruno Haible  <bruno@clisp.org>
81939
81940         * m4/ldd.m4: New file.
81941
81942 2006-01-12  Bruno Haible  <bruno@clisp.org>
81943
81944         * gnulib-tool (func_import, func_create_testdir): Don't go into an
81945         endless loop while replacing $auxdir with build-aux.
81946
81947 2006-01-11  Simon Josefsson  <jas@extundo.com>
81948
81949         * lib/stdint_.h (SIZE_MAX): Add missing (.
81950
81951 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
81952
81953         Sync from coreutils.
81954         * lib/md5.c: Fix commentary typos.
81955         (alignof, UNALIGNED_P): No need for a GCC-specific version.
81956         * lib/md5.h (__attribute__): Remove; unused.
81957         * lib/sha1.c: Fix commentary to match md5 better.
81958         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
81959         so that we don't need to worry about alignment.  All uses changed.
81960         This merges the 2005-10-28 md5 change into sha1.
81961
81962 2006-01-11  Jim Meyering  <jim@meyering.net>
81963
81964         Sync from coreutils.
81965         * lib/md5.c (OP): Fix spacing.
81966
81967 2006-01-11  Bruno Haible  <bruno@clisp.org>
81968
81969         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81970         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
81971         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
81972
81973 2006-01-11  Bruno Haible  <bruno@clisp.org>
81974
81975         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81976         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
81977         the "early" section as well.
81978
81979 2006-01-11  Bruno Haible  <bruno@clisp.org>
81980
81981         Avoid "ar: no archive members specified" error on MacOS X.
81982         * gnulib-tool (func_modules_add_dummy): New function.
81983         (func_import, func_create_testdir): Invoke it.
81984
81985 2006-01-11  Bruno Haible  <bruno@clisp.org>
81986
81987         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
81988         with $auxdir in AC_CONFIG_FILES statements.
81989
81990 2006-01-11  Bruno Haible  <bruno@clisp.org>
81991
81992         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81993         Initialize also noinst_HEADERS to empty.
81994
81995 2006-01-11  Bruno Haible  <bruno@clisp.org>
81996
81997         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
81998         variables.
81999         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
82000         autoreconf.
82001
82002 2006-01-11  Bruno Haible  <bruno@clisp.org>
82003
82004         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
82005         overridable by the user.
82006         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82007
82008 2006-01-10  Simon Josefsson  <jas@extundo.com>
82009
82010         * modules/sys_socket: New file.
82011
82012 2006-01-10  Simon Josefsson  <jas@extundo.com>
82013
82014         * m4/sys_socket_h.m4: New file.
82015
82016 2006-01-10  Simon Josefsson  <jas@extundo.com>
82017
82018         * lib/socket_.h: New file.
82019
82020 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82021
82022         * modules/readutmp (Maintainer): Add myself.
82023
82024 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82025
82026         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
82027         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
82028         People who are still concerned with buggy memcmp implementations
82029         can invoke gl_FUNC_MEMCMP themselves.
82030
82031 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82032
82033         * lib/regex_internal.h (BITSET_WORD_BITS):
82034         Work around a bug in 64-bit PGC (before version 6.1-2), where the
82035         preprocessor mishandles large unsigned values as if they were signed.
82036         Problem reported by Claudio Fontana in
82037         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
82038
82039 2006-01-10  Jim Meyering  <jim@meyering.net>
82040
82041         Avoid the double-free (first in fts_read, second in fts_close) that
82042         would occur when an `active' directory is made inaccessible (e.g.,
82043         via chmod a-x) during a traversal.
82044         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82045         before returning.  Reproduce this failure by
82046         mkdir -p a/b; cd a; chmod a-x . b
82047         Reported by Stavros Passas.
82048
82049         Sync from coreutils.
82050         * lib/sha1.c: Tweak grammar in a comment.
82051
82052 2006-01-10  Jim Meyering  <jim@meyering.net>
82053
82054         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
82055         Patch by Joerg Sonnenberger.
82056
82057 2006-01-10  Bruno Haible  <bruno@clisp.org>
82058
82059         * modules/readutmp: Depend on module free.
82060         * modules/strtok_r: Depend on module restrict.
82061
82062 2006-01-10  Bruno Haible  <bruno@clisp.org>
82063
82064         * modules/gettext (configure.ac): Add an invocation of
82065         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
82066
82067 2006-01-10  Bruno Haible  <bruno@clisp.org>
82068
82069         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
82070         Reported by Werner Lemberg <wl@gnu.org>.
82071
82072 2006-01-10  Bruno Haible  <bruno@clisp.org>
82073
82074         * lib/localcharset.c: Update from GNU gettext.
82075
82076 2006-01-10  Bruno Haible  <bruno@clisp.org>
82077
82078         * lib/argp.h (__const): Remove macro. Use const instead.
82079         * lib/argp-fmtstream.h (__const): Likewise.
82080         * lib/glob_.h (__const): Remove macro.
82081         * lib/glob-libc.h: Use const instead of __const.
82082
82083 2006-01-10  Bruno Haible  <bruno@clisp.org>
82084
82085         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
82086         variable.
82087         Needed to avoid an automake error regarding the 'gettext' module.
82088
82089 2006-01-09  Simon Josefsson  <jas@extundo.com>
82090
82091         * modules/inet_ntop (Depends-on): Add restrict.
82092
82093 2006-01-09  Simon Josefsson  <jas@extundo.com>
82094
82095         * modules/gc-rijndael-tests (License): Put under LGPL.
82096
82097         * modules/gc-des-tests (License): Likewise.
82098
82099         * modules/gc-arcfour-tests (License): Likewise.
82100
82101         * modules/gc-arctwo-tests (License): Likewise.
82102
82103         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
82104
82105         * modules/gc-hmac-sha1-tests (Files): Likewise.
82106
82107         * modules/gc-hmac-md5-tests (License): Likewise.
82108
82109         * modules/gc-sha1-tests (License): Likewise.
82110
82111         * modules/gc-md5-tests (License): Likewise.
82112
82113         * modules/gc-md4-tests (License): Likewise.
82114
82115         * modules/gc-md2-tests (License): Likewise.
82116
82117         * modules/gc-tests (License): Likewise.
82118
82119         * modules/des-tests (License): Likewise.
82120
82121         * modules/md4-tests (License): Likewise.
82122
82123         * modules/md2-tests (License): Likewise.
82124
82125 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82126
82127         Sync from coreutils:
82128
82129         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
82130         * modules/lib-ignore: New file.
82131         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
82132         chdir-safer.m4, lchmod.m4.
82133         * modules/openat: Add mkdirat.c, openat-priv.h.
82134
82135 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82136
82137         Sync from coreutils.
82138         * m4/lib-ignore.m4: New file.
82139         * m4/lchmod.m4: New file.
82140
82141 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82142
82143         Sync from coreutils.
82144         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
82145         for write access: POSIX says that must fail.
82146         * lib/fts.c (diropen): Likewise.
82147         * lib/save-cwd.c (save_cwd): Likewise.
82148         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
82149         well, for minor improvements on hosts that lack O_DIRECTORY.
82150         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
82151         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
82152         Fall back on chown if open failed with EACCES.
82153
82154         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
82155         Report an error at compile-time if only a 1-second nominal clock
82156         resolution is found.
82157
82158         * lib/lchmod.h: New file.
82159         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
82160         (make_dir_parents): Use lchown rather than chown, and
82161         lchmod rather than chmod.
82162
82163         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
82164         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
82165         "proc" reported by n0dalus.
82166
82167         * lib/mountlist.c: Include <limits.h>.
82168         (dev_from_mount_options)
82169         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
82170         New function.  It no longer assumes "dev=" has the System V meaning
82171         on Linux (since it doesn't).  It also parses "dev=" more carefully.
82172         (read_file_system_list)
82173         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
82174         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
82175         dev= in that case.
82176
82177         * lib/posixtm.h (PDS_PRE_2000): New macro.
82178         * lib/posixtm.c (year): Arg is now syntax_bits rather than
82179         allow_century.  All usages changed.  Reject dates outside the range
82180         1969-1999 if PDS_PRE_2000 is used.
82181
82182 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82183
82184         Sync from coreutils.
82185         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
82186         (Time of day items): Mention the possibility of leap seconds.
82187         Problem reported by Dr. David Alan Gilbert.
82188
82189 2006-01-09  Jim Meyering  <jim@meyering.net>
82190
82191         Sync from coreutils.
82192
82193         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
82194
82195         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
82196
82197         * lib/modechange.c (mode_compile): Reject an invalid mode string
82198         that starts with an octal digit.  From Andreas Gruenbacher.
82199
82200         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
82201         and dup to open_safer and dup_safer, respectively.
82202         (openat_permissive): Fix typo in comment.
82203
82204         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
82205         "gettext.h"; either no longer needed or are guaranteed by openat.h.
82206         (_): Remove; no longer needed.
82207         (openat): Renamed from rpl_openat; no need for rpl_openat
82208         since openat.h renames openat for us.
82209         Replace most of the body with a call to openat_permissive,
82210         to avoid duplicate code.
82211         Port to (probably hypothetical) environments were mode_t is
82212         wider than int.
82213         (openat_permissive): Require mode arg, so that we can check
82214         types better.  Put it just after flags.  Change cwd failure
82215         indicator from pointer-to-bool to pointer-to-errno-value.
82216         All callers changed.
82217         Invoke openat_save_fail and/or openat_restore_fail if
82218         cwd_errno is null, so that openat can call us.
82219         (openat_permissive, fdopendir, fstatat, unlinkat):
82220         Simplify errno handling to avoid some duplicate code,
82221         as it's OK to set errno on success.
82222         * lib/openat.h: Revamp code so that function macros depend on
82223         __OPENAT_PREFIX only, not also on AT_FDCWD.
82224         (openat_ro): Remove.  Caller changed to use openat_permissive.
82225         (openat_permissive): Now a macro, if not a function.
82226         (openat_restore_fail, openat_save_fail): Now always functions,
82227         since mkdirat needs them even if __OPENAT_PREFIX is defined.
82228
82229         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
82230         and openat.c.
82231         * lib/mkdirat.c: Include openat-priv.h.
82232         Remove definitions of macros defined therein.
82233         * lib/openat.c: Likewise.
82234
82235         * lib/mkdirat.c (mkdirat): New file and function.
82236         * lib/openat.h (mkdirat): Declare.
82237
82238         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
82239
82240         * lib/openat.h (openat_permissive): Declare.
82241         (openat_ro): Define.
82242
82243         * lib/openat.c (EXPECTED_ERRNO): New macro.
82244         (openat_permissive): New function -- used in remove.c rewrite.
82245         (all functions): Set errno just before returning, only if there
82246         was an actual failure.
82247         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
82248
82249         Emulate openat-family functions using Linux's procfs, if possible.
82250         Idea and some code based on Ulrich Drepper's glibc changes.
82251
82252         * lib/openat.c: (BUILD_PROC_NAME): New macro.
82253         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
82254         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
82255         before falling back on save_cwd and restore_cwd.
82256         (fdopendir, fstatat, unlinkat): Likewise.
82257
82258         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
82259         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
82260
82261         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
82262         as second argument to va_arg.  Otherwise, some versions of gcc
82263         warn that `if this code is reached, the program will abort'.
82264
82265 2006-01-09  Jim Meyering  <jim@meyering.net>
82266
82267         Sync from coreutils.
82268         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
82269         Require openat-priv.h.
82270
82271 2006-01-09  Bruno Haible  <bruno@clisp.org>
82272
82273         * modules/strnlen (Include): Use strnlen.h.
82274
82275 2006-01-09  Bruno Haible  <bruno@clisp.org>
82276
82277         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
82278
82279 2006-01-09  Bruno Haible  <bruno@clisp.org>
82280
82281         * lib/sysexit_.h (EX_OK): New macro.
82282         Suggested by Martin Lambers <marlam@marlam.de>.
82283
82284 2006-01-09  Bruno Haible  <bruno@clisp.org>
82285
82286         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
82287         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
82288
82289 2006-01-09  Bruno Haible  <bruno@clisp.org>
82290
82291         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
82292         numbers.
82293
82294 2006-01-09  Bruno Haible  <bruno@clisp.org>
82295
82296         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
82297         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
82298         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
82299         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
82300
82301 2006-01-09  Bruno Haible  <bruno@clisp.org>
82302
82303         * build-aux/javacomp.sh.in: New file, moved from lib/.
82304         * modules/javacomp-script (Files): Update.
82305         (configure.ac): Add AC_CONFIG_FILES invocation.
82306         (EXTRA_DIST): Remove variable.
82307
82308         * build-aux/javaexec.sh.in: New file, moved from lib/.
82309         * modules/javaexec (Files): Update.
82310         (configure.ac): Add AC_CONFIG_FILES invocation.
82311         (EXTRA_DIST): Remove javaexec.sh.in.
82312
82313         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
82314         * modules/csharpcomp-script (Files): Update.
82315         (configure.ac): Add AC_CONFIG_FILES invocation.
82316         (EXTRA_DIST): Remove variable.
82317
82318         * build-aux/csharpexec.sh.in: New file, moved from lib/.
82319         * modules/csharpexec (Files): Update.
82320         (configure.ac): Add AC_CONFIG_FILES invocation.
82321         (EXTRA_DIST): Remove csharpexec.sh.in.
82322
82323 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82324
82325         Sync from coreutils.
82326
82327         Add POSIX ACL support
82328         * lib/acl.h (copy_acl, set_acl): Add declarations.
82329         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
82330         systems other than Linux.
82331         (chmod_or_fchmod): New function: use fchmod when possible,
82332         and chmod otherwise.
82333         (file_has_acl): Add a POSIX ACL implementation, with a
82334         Linux-specific subcase.
82335         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
82336         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
82337         acls are unsupported.
82338         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
82339         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
82340         are unsupported.
82341
82342 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82343
82344         Sync from coreutils.
82345         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
82346
82347 2006-01-07  Bruno Haible  <bruno@clisp.org>
82348
82349         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
82350         gl_EARLY.
82351
82352 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82353
82354         * lib/strftime.c (tzname): Don't declare if it is already #defined.
82355         Problem reported for Mingw by Mark Junker.
82356
82357 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82358
82359         * README: Gnulib normally doesn't generate a tarball.
82360
82361 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
82362
82363         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
82364         long int, not int, for nanosecond counts, so that people who are
82365         used to POSIX struct timespec won't be surprised.  Reported by Jim
82366         Meyering.
82367
82368 2005-12-28  Bruno Haible  <bruno@clisp.org>
82369
82370         * build-aux/config.rpath: Update from GNU gettext.
82371
82372 2005-12-16  Jim Meyering  <jim@meyering.net>
82373
82374         * modules/fprintftime: New module.
82375         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
82376
82377 2005-12-16  Jim Meyering  <jim@meyering.net>
82378
82379         * m4/fprintftime.m4: New file.
82380
82381 2005-12-16  Jim Meyering  <jim@meyering.net>
82382
82383         * lib/fprintftime.c, lib/fprintftime.h: New files.
82384
82385 2005-12-15  Simon Josefsson  <jas@extundo.com>
82386
82387         * modules/socklen (configure.ac): Fix M4 macro name, to align with
82388         new m4/socklen.m4.
82389
82390 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82391
82392         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
82393         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
82394
82395 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82396
82397         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
82398         * lib/argp-help.c (fill_in_uparams): Check if the constructed
82399         struct uparams is valid. Fall back to the default values if it is
82400         not.
82401
82402 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82403
82404         * modules/argp (Files): Add argp-pin.c
82405         (Depends-on): dirname
82406         (lib_SOURCES): Add argp-pin.c
82407
82408 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82409
82410         * m4/argp.m4:  Check if program_invocation_name and
82411         program_invocation_short_name are declared and define appropriate
82412         macros if they are not.
82413
82414 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82415
82416         * lib/argp-help.c (__argp_base_name): New function
82417         (__argp_short_program_name): Rewrite using __argp_base_name
82418         * lib/argp-namefrob.h: Define program_invocation_name and
82419         program_invocation_short_name if requested
82420         (__argp_base_name): Add prototype
82421         * lib/argp-parse.c (argp_def): Use gettext wrappers
82422         (argp_default_parser): Use __argp_base_name
82423         * lib/argp-pin.c: New file. Defines program_invocation_name and
82424         program_invocation_short_name on systems that lack them.
82425
82426 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82427
82428         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
82429         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82430         porting problem reported by Georg Schwarz in
82431         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82432
82433 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82434
82435         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
82436         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82437         porting problem reported by Georg Schwarz in
82438         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82439
82440 2005-12-05  Bruno Haible  <bruno@clisp.org>
82441
82442         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
82443         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
82444         Reported by Mark Junker <mjscod@gmx.de>.
82445
82446 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
82447
82448         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
82449         Use implementation from Albert Chin, with some
82450         comments/corrections by Stepan Kasal and myself.
82451
82452 2005-12-02  Bruno Haible  <bruno@clisp.org>
82453
82454         * gnulib-tool (func_import): Accept GPLed build tool modules when
82455         --lgpl is given.
82456         * modules/csharpcomp-script: New file.
82457         * modules/csharpcomp: Depend on it.
82458         * modules/javacomp-script: New file.
82459         * modules/javacomp: Depend on it.
82460         Suggested by Simon Josefsson.
82461
82462 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
82463
82464         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
82465         statement, to work around an HP-UX 10.20 compiler bug reported by
82466         Peter O'Gorman.
82467
82468 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82469
82470         * modules/savedir (Depends-on): Add openat.
82471
82472 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82473
82474         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
82475         (uintmax_t) [defined uintmax_t]: Do not declare.
82476         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
82477         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
82478         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
82479         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
82480         sake of portability to weird hosts that C allows (though we don't
82481         know of any practical examples).
82482
82483         * lib/savedir.h (fdsavedir): New decl.
82484         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
82485         contains most of the former guts of savedir.
82486         (savedir): Use savedirstream.
82487         Include "openat.h".
82488
82489 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82490
82491         * modules/obstack (Files): Add m4/ulonglong.m4.
82492         Problem reported by Davide Angelocola.
82493
82494 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
82495
82496         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
82497         coreutils no longer futzes with rounding modes.
82498
82499 2005-11-14  Jim Meyering  <jim@meyering.net>
82500
82501         * lib/mkstemp-safer.c: Include <config.h>, required for possible
82502         replacement of mkstemp.
82503
82504 2005-11-10  Simon Josefsson  <jas@extundo.com>
82505
82506         * lib/readline.c: Remove EOL.
82507
82508 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82509
82510         * modules/gethrxtime (Depends-on): Add gettime.
82511
82512 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82513
82514         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
82515         or gettimeofday; no longer needed.
82516
82517 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82518
82519         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
82520         time business.
82521         (gethrxtime) [! (HAVE_NANOUPTIME
82522         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
82523         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
82524         our own approximation.
82525
82526 2005-11-08  Eric Blake  <ebb9@byu.net>
82527
82528         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82529
82530 2005-11-08  Eric Blake  <ebb9@byu.net>
82531
82532         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82533
82534 2005-11-04  Bruno Haible  <bruno@clisp.org>
82535
82536         * gnulib-tool: Implement --update mode.
82537
82538 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82539
82540         Fix porting problem reported by Theodoros V. Kalamatianos.
82541         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
82542         Don't assume that futimes failing means we must fail.
82543
82544 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82545
82546         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
82547         variables to suggest the intended function of the PATH_MAX check.
82548
82549 2005-10-30  Kean Johnston  <jkj@sco.com>
82550
82551         Trivial changes to support SCO systems.
82552         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
82553         as PATH_MAX.
82554         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
82555         where __ptr is null when no I/O is pending.
82556
82557 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82558
82559         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
82560         leave errno alone.  Problem reported by Dmitry V. Levin.
82561
82562 2005-10-28  Simon Josefsson  <jas@extundo.com>
82563
82564         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
82565         Test more.
82566
82567         * tests/test-gc-md2.c, tests/test-md2.c: New files.
82568
82569         * modules/md2, modules/md2-tests: New files.
82570
82571 2005-10-28  Simon Josefsson  <jas@extundo.com>
82572
82573         * m4/inet_ntop.m4: More tests.
82574
82575         * m4/gc-md2.m4, md2.m4: New file.
82576
82577 2005-10-28  Simon Josefsson  <jas@extundo.com>
82578
82579         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
82580         "restrict" keywords, as per POSIX.  Protect the function
82581         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
82582         Don't use K&R prototypes.  Check the sprintf return values.
82583         Re-define EAFNOSUPPORT if not present.  Indent.
82584
82585         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
82586         suggested by Bruno Haible <bruno@clisp.org>.
82587
82588         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
82589
82590         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
82591
82592         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
82593         libgcrypt).
82594
82595         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
82596
82597         * lib/md2.h, lib/md2.c: New files.
82598
82599 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
82600
82601         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
82602         errno alone.  Problem reported by Frederic Jolliton.
82603
82604 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
82605
82606         * modules/verify (License): Change from GPL to LGPL.  This is a
82607         tiny module and there are apparently near-equivalents that are
82608         under the BSD license.
82609
82610 2005-10-24  Simon Josefsson  <jas@extundo.com>
82611
82612         * modules/sha1: Relicense to LGPL.
82613
82614 2005-10-24  Simon Josefsson  <jas@extundo.com>
82615
82616         * lib/md4.h: Shrink buffer size, now that we changed the type.
82617
82618 2005-10-23  Simon Josefsson  <jas@extundo.com>
82619
82620         * gnulib-tool (func_import): Fix --tests-base.
82621
82622 2005-10-22  Simon Josefsson  <jas@extundo.com>
82623
82624         * modules/arcfour (Depends-on): Need stdint.
82625
82626 2005-10-22  Simon Josefsson  <jas@extundo.com>
82627
82628         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
82629         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
82630
82631 2005-10-22  Simon Josefsson  <jas@extundo.com>
82632
82633         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
82634         suggested by Bruno Haible <bruno@clisp.org>.
82635
82636 2005-10-22  Simon Josefsson  <jas@extundo.com>
82637
82638         * lib/crc.h: Include stddef.h, for size_t.
82639
82640 2005-10-22  Simon Josefsson  <jas@extundo.com>
82641
82642         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
82643         arcfour_context struct (simplify test vector testing in GNU
82644         Shishi).
82645
82646 2005-10-21  Simon Josefsson  <jas@extundo.com>
82647
82648         * modules/des, modules/des-tests: New files.
82649
82650         * modules/gc-des, modules/gc-des-tests: New files.
82651
82652         * tests/test-des.c, tests/test-gc-des.c: New file.
82653
82654 2005-10-21  Simon Josefsson  <jas@extundo.com>
82655
82656         * modules/arctwo, modules/arctwo-tests: New files.
82657
82658         * tests/test-arctwo.c: New file.
82659
82660         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
82661
82662         * tests/test-gc-arctwo.c: New file.
82663
82664 2005-10-21  Simon Josefsson  <jas@extundo.com>
82665
82666         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
82667         Bruno Haible <bruno@clisp.org>.
82668
82669         * m4/gc-des.m4: New file.
82670
82671 2005-10-21  Simon Josefsson  <jas@extundo.com>
82672
82673         * m4/arctwo.m4: New file.
82674
82675         * m4/gc-arctwo.m4: New file.
82676
82677 2005-10-21  Simon Josefsson  <jas@extundo.com>
82678
82679         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
82680         block.
82681
82682 2005-10-21  Simon Josefsson  <jas@extundo.com>
82683
82684         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
82685         <bruno@clisp.org>.
82686
82687         * lib/hmac-sha1.c (hmac_sha1): Likewise.
82688
82689         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
82690         Bruno Haible <bruno@clisp.org>.
82691
82692         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
82693         <bruno@clisp.org>.
82694
82695 2005-10-21  Simon Josefsson  <jas@extundo.com>
82696
82697         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
82698
82699 2005-10-21  Simon Josefsson  <jas@extundo.com>
82700
82701         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
82702
82703 2005-10-21  Simon Josefsson  <jas@extundo.com>
82704
82705         * lib/des.h, lib/des.c: New files.
82706
82707         * lib/gc-gnulib.c: Support DES.c
82708
82709 2005-10-21  Simon Josefsson  <jas@extundo.com>
82710
82711         * lib/arctwo.h, lib/arctwo.c: New files.
82712
82713         * lib/gc-gnulib.c: Support ARCTWO.
82714
82715 2005-10-21  Simon Josefsson  <jas@extundo.com>
82716
82717         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
82718         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82719
82720 2005-10-21  Simon Josefsson  <jas@extundo.com>
82721
82722         * gnulib-tool (func_import, func_create_testdir): Define automake
82723         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
82724         Makefile.am snippet),
82725         suggested by Bruno Haible <bruno@clisp.org>.
82726
82727         * modules/gc (Makefile.am): Use it.
82728
82729 2005-10-21  Bruno Haible  <bruno@clisp.org>
82730
82731         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
82732         patch.
82733
82734 2005-10-19  Simon Josefsson  <jas@extundo.com>
82735
82736         * tests/test-gc-rijndael.c: New file.
82737
82738         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
82739
82740 2005-10-19  Simon Josefsson  <jas@extundo.com>
82741
82742         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
82743         interface too.
82744
82745 2005-10-19  Simon Josefsson  <jas@extundo.com>
82746
82747         * tests/test-gc-arcfour.c: New file.
82748
82749         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
82750
82751 2005-10-19  Simon Josefsson  <jas@extundo.com>
82752
82753         * modules/gc-md4, modules/gc-md4-tests: New file.
82754
82755         * tests/test-gc-md4.c: New file.
82756
82757 2005-10-19  Simon Josefsson  <jas@extundo.com>
82758
82759         * m4/gc-md4.m4: New file.
82760
82761 2005-10-19  Simon Josefsson  <jas@extundo.com>
82762
82763         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
82764         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
82765         <kasal@ucw.cz>.
82766
82767 2005-10-19  Simon Josefsson  <jas@extundo.com>
82768
82769         * m4/gc-arcfour.m4: New file.
82770
82771         * m4/gc-rijndael.m4: New file.
82772
82773 2005-10-19  Simon Josefsson  <jas@extundo.com>
82774
82775         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
82776
82777 2005-10-19  Simon Josefsson  <jas@extundo.com>
82778
82779         * lib/gc-gnulib.c: Support ARCFOUR.
82780
82781 2005-10-19  Simon Josefsson  <jas@extundo.com>
82782
82783         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
82784         support.
82785
82786         * lib/gc.h: Add ECB enum type.
82787
82788         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
82789
82790 2005-10-18  Simon Josefsson  <jas@extundo.com>
82791
82792         * tests/test-md5.c: New file.
82793
82794         * modules/md5-tests: New file.
82795
82796 2005-10-18  Simon Josefsson  <jas@extundo.com>
82797
82798         * tests/test-md4.c: New file.
82799
82800         * modules/md4, modules/md4-tests: New files.
82801
82802 2005-10-18  Simon Josefsson  <jas@extundo.com>
82803
82804         * m4/md4.m4: New file.
82805
82806 2005-10-18  Simon Josefsson  <jas@extundo.com>
82807
82808         * lib/md4.h, lib/md4.c: New files, based on md5.?.
82809
82810 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
82811
82812         * gnulib-tool (func_create_testdir): Omit the second check whether
82813         BUILT_SOURCES in nonempty.
82814
82815 2005-10-17  Simon Josefsson  <jas@extundo.com>
82816
82817         * tests/test-rijndael.c: New file.
82818
82819 2005-10-17  Simon Josefsson  <jas@extundo.com>
82820
82821         * modules/sha1: Depend on stdint instead of md5.
82822
82823         * modules/md5: Depend on stdint, remove uint32_t.
82824
82825 2005-10-17  Simon Josefsson  <jas@extundo.com>
82826
82827         * modules/gc-sha1-tests: New file.
82828
82829         * tests/test-gc-sha1.c: New file.
82830
82831 2005-10-17  Simon Josefsson  <jas@extundo.com>
82832
82833         * m4/md5.m4: Remove call to uint32_t.m4.
82834
82835 2005-10-17  Simon Josefsson  <jas@extundo.com>
82836
82837         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
82838
82839         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
82840         md5.h.
82841
82842         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
82843
82844         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
82845
82846 2005-10-17  Simon Josefsson  <jas@extundo.com>
82847
82848         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
82849
82850 2005-10-17  Simon Josefsson  <jas@extundo.com>
82851
82852         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
82853
82854 2005-10-17  Simon Josefsson  <jas@extundo.com>
82855
82856         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
82857
82858         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
82859
82860 2005-10-17  Bruno Haible  <bruno@clisp.org>
82861
82862         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
82863         that it can also be used in a test.
82864
82865 2005-10-16  Bruno Haible  <bruno@clisp.org>
82866
82867         * gnulib-tool (func_emit_tests_Makefile_am): Also define
82868         TESTS_ENVIRONMENT, so that individual tests can augment it.
82869
82870         * gnulib-tool (func_create_testdir): Use an intermediate target for
82871         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
82872         macros, like $(ALLOCA_H), which cannot be passed through the command
82873         line.
82874
82875 2005-10-15  Simon Josefsson  <jas@extundo.com>
82876
82877         * modules/rijndael-tests: New file.
82878
82879         * modules/rijndael: New file.
82880
82881 2005-10-15  Simon Josefsson  <jas@extundo.com>
82882
82883         * m4/rijndael.m4: New file.
82884
82885 2005-10-15  Simon Josefsson  <jas@extundo.com>
82886
82887         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
82888
82889         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
82890
82891 2005-10-14  Simon Josefsson  <jas@extundo.com>
82892
82893         * tests/test-arcfour.c: New file.
82894
82895         * modules/arcfour, modules/arcfour-tests: New files.
82896
82897 2005-10-14  Simon Josefsson  <jas@extundo.com>
82898
82899         * m4/arcfour.m4: New file.
82900
82901 2005-10-14  Simon Josefsson  <jas@extundo.com>
82902
82903         * lib/arcfour.h, lib/arcfour.c: New files.
82904
82905 2005-10-14  Roland McGrath  <roland@redhat.com>
82906
82907         Import from libc.  [BZ #1331]
82908         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
82909         macro argument.
82910         Reported by Matej Vela <vela@debian.org>.
82911
82912 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82913
82914         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
82915         include <wchar.h>; no longer needed.
82916
82917 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82918
82919         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
82920
82921 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
82922         and  Ulrich Drepper  <drepper@redhat.com>
82923
82924         Import from libc.
82925         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
82926         instead of inline stream orientation test and two separate
82927         function calls.  Pay no attention to USE_IN_LIBIO.
82928
82929 2005-10-13  Simon Josefsson  <jas@extundo.com>
82930
82931         * modules/gc-hmac-md5-tests: New file.
82932
82933         * tests/test-gc-hmac-sha1.c: New file.
82934
82935         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
82936
82937         * modules/gc-hmac-md5-tests: New file.
82938
82939         * tests/test-gc-md5.c: New file.
82940
82941         * modules/gc-md5-tests: New file.
82942
82943 2005-10-13  Simon Josefsson  <jas@extundo.com>
82944
82945         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
82946         Move memory allocation outside of loop.
82947
82948 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
82949
82950         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
82951         intermediate directory is in a read-only file system.  Problem
82952         reported by Eric Blake.
82953
82954 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
82955
82956         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
82957
82958 2005-10-12  Simon Josefsson  <jas@extundo.com>
82959
82960         * tests/test-hmac-sha1.c: New file.
82961
82962         * modules/hmac-sha1-tests: New file.
82963
82964         * modules/hmac-sha1: New file.
82965
82966 2005-10-12  Simon Josefsson  <jas@extundo.com>
82967
82968         * modules/gc-sha1: New file.
82969
82970 2005-10-12  Simon Josefsson  <jas@extundo.com>
82971
82972         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
82973
82974         * tests/test-gc-pbkdf2-sha1.c: New file.
82975
82976 2005-10-12  Simon Josefsson  <jas@extundo.com>
82977
82978         * modules/gc-md5, modules/gc-hmac-md5: New files.
82979
82980         * modules/gc (Files): Remove md5, memxor and hmac files.
82981
82982 2005-10-12  Simon Josefsson  <jas@extundo.com>
82983
82984         * m4/gc-pbkdf2-sha1.m4: New file.
82985
82986         * m4/gc-hmac-sha1.m4: New file.
82987
82988         * m4/gc-sha1: New file.
82989
82990         * m4/hmac-sha1.m4: New file.
82991
82992 2005-10-12  Simon Josefsson  <jas@extundo.com>
82993
82994         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
82995
82996         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
82997
82998 2005-10-12  Simon Josefsson  <jas@extundo.com>
82999
83000         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
83001         suggested by Bruno Haible <bruno@clisp.org>.
83002
83003 2005-10-12  Simon Josefsson  <jas@extundo.com>
83004
83005         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
83006
83007 2005-10-12  Simon Josefsson  <jas@extundo.com>
83008
83009         * lib/gc-pbkdf2-sha1.c: New file.
83010
83011         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
83012
83013 2005-10-12  Simon Josefsson  <jas@extundo.com>
83014
83015         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
83016
83017         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
83018
83019 2005-10-12  Simon Josefsson  <jas@extundo.com>
83020
83021         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
83022         GC_USE_HMAC_MD5, respectively.
83023
83024         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
83025         (gc_md5): Fix typo.
83026
83027         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
83028
83029         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
83030
83031         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
83032
83033 2005-10-12  Bruno Haible  <bruno@clisp.org>
83034
83035         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
83036         Reported by Stepan Kasal <kasal@ucw.cz>.
83037
83038 2005-10-11  Simon Josefsson  <jas@extundo.com>
83039
83040         * tests/test-crc.c: New file.
83041
83042         * modules/crc, modules/crc-tests: New files.
83043
83044 2005-10-11  Simon Josefsson  <jas@extundo.com>
83045
83046         * m4/crc.m4: New file.
83047
83048 2005-10-11  Simon Josefsson  <jas@extundo.com>
83049
83050         * lib/gc.h: Add gc_hash and gc_hash_buffer.
83051
83052         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
83053
83054         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
83055
83056 2005-10-11  Simon Josefsson  <jas@extundo.com>
83057
83058         * lib/crc.h, lib/crc.c: New files.
83059
83060         * lib/gc.h (gc_hash_buffer): Add doc.
83061
83062 2005-10-11  Bruno Haible  <bruno@clisp.org>
83063
83064         * modules/c-strcasestr: New file.
83065         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
83066
83067 2005-10-11  Bruno Haible  <bruno@clisp.org>
83068
83069         * modules/c-strcase: New file.
83070         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
83071
83072 2005-10-11  Bruno Haible  <bruno@clisp.org>
83073
83074         * lib/strcasecmp.c: Include limits.h.
83075         (strcasecmp): Avoid integer overflow on exotic platforms.
83076         * lib/strncasecmp.c: Include limits.h.
83077         (strncasecmp): Avoid integer overflow on exotic platforms.
83078         Reported by Paul Eggert.
83079
83080 2005-10-11  Bruno Haible  <bruno@clisp.org>
83081
83082         * lib/c-strcasestr.h: New file, from GNU gettext.
83083         * lib/c-strcasestr.c: New file, from GNU gettext.
83084
83085 2005-10-11  Bruno Haible  <bruno@clisp.org>
83086
83087         * lib/c-strcase.h: New file, from GNU gettext.
83088         * lib/c-strcasecmp.c: New file, from GNU gettext.
83089         * lib/c-strncasecmp.c: New file, from GNU gettext.
83090
83091 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
83092
83093         * modules/mempcpy (License): GPL -> LGPL.
83094         * modules/strchrnul (License): Likewise.
83095         * modules/sysexits (License): Likewise.
83096
83097 2005-10-08  Simon Josefsson  <jas@extundo.com>
83098
83099         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
83100
83101 2005-10-07  Simon Josefsson  <jas@extundo.com>
83102
83103         * m4/memxor.m4: Remove gl_C_RESTRICT call.
83104
83105 2005-10-06  Simon Josefsson  <jas@extundo.com>
83106
83107         * tests/test-hmac-md5.c: New file.
83108
83109         * modules/hmac-md5-tests: New file.
83110
83111         * modules/hmac-md5: New file.
83112
83113 2005-10-06  Simon Josefsson  <jas@extundo.com>
83114
83115         * m4/hmac-md5.m4: New file.
83116
83117         * m4/memxor.m4: Require gl_C_RESTRICT.
83118
83119 2005-10-06  Simon Josefsson  <jas@extundo.com>
83120
83121         * lib/memxor.c (memxor): Avoid casts and warnings.
83122
83123 2005-10-06  Simon Josefsson  <jas@extundo.com>
83124
83125         * lib/hmac-md5.c: New file.
83126
83127         * lib/hmac.h: New file.
83128
83129 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83130
83131         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
83132         promotes to int, not unsigned int, to catch the AIX 5.3
83133         compiler bug.
83134
83135 2005-10-05  Simon Josefsson  <jas@extundo.com>
83136
83137         * modules/memxor: New file.
83138
83139         * modules/iconv (Files): Move config.rpath to havelib, it is used
83140         there.
83141
83142         * modules/havelib (Files): Add config.rpath.
83143
83144 2005-10-05  Simon Josefsson  <jas@extundo.com>
83145
83146         * m4/memxor.m4: New file.
83147
83148 2005-10-05  Simon Josefsson  <jas@extundo.com>
83149
83150         * lib/memxor.c (memxor): Fix compiler error.
83151
83152         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
83153         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
83154
83155         * lib/memxor.h, lib/memxor.c: New files.
83156
83157         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
83158         we assume all systems have it, suggested by Jim Meyering
83159         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
83160         any systems lack sys/socket.h; mingw32 is known to lack it, but we
83161         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
83162         same reasons.
83163
83164 2005-10-05  Simon Josefsson  <jas@extundo.com>
83165
83166         * config/srclist.txt: Add glibc bug 1423 for md5.h.
83167
83168 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
83169
83170         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
83171         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
83172         needed, since the source code now assumes these .h files.
83173
83174 2005-10-05  Derek Price  <derek@ximbiot.com>
83175
83176         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
83177
83178 2005-10-05  Bruno Haible  <bruno@clisp.org>
83179
83180         * modules/stdint (License): Change to LGPL.
83181
83182 2005-10-04  Simon Josefsson  <jas@extundo.com>
83183
83184         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
83185         D. Baushke" <mdb@gnu.org>.
83186
83187 2005-10-04  Bruno Haible  <bruno@clisp.org>
83188
83189         * lib/verify.h (verify_true): Provide alternative definition for C++.
83190
83191 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
83192
83193         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
83194         (SSIZE_MAX): New macro, if not already defined.
83195         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
83196         than 2 GiB.
83197
83198 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83199
83200         Sync from coreutils.
83201         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
83202         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
83203         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
83204         ULLONG_MAX doesn't work with 2.7.2.1.
83205
83206 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83207
83208         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
83209         From Ben Pfaff.
83210
83211         * modules/exclude (Depends-on): Depend on verify.
83212         * modules/strtoimax (Depends-on): Likewise.
83213         * modules/utimecmp (Depends-on): Likewise.
83214
83215 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83216
83217         * lib/exclude.c: Include verify.h.
83218         (verify): Remove.  All callers changed to use verify.h's version.
83219         * lib/strtoimax.c: Likewise.
83220         * lib/utimecmp.c: Likewis.e
83221
83222         Sync from coreutils.
83223         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
83224         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
83225         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
83226         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
83227         bother returning ENOSYS if settimeofday or stime fails; just let
83228         them return whatever errno they want to return.
83229         * lib/utimens.c: Include unistd.h, for dup2.
83230         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
83231         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
83232
83233 2005-10-02  Jim Meyering  <jim@meyering.net>
83234
83235         Sync from coreutils.
83236         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
83237         from glibc-2.2.5 that fails for read-only files.
83238
83239 2005-10-02  Jim Meyering  <jim@meyering.net>
83240
83241         Sync from coreutils.
83242         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
83243         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
83244         `#if HAVE_CONFIG_H'.
83245         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
83246         Remove AT_FDCWD test.
83247         Do not consume the fd unless successful.
83248         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
83249         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
83250         block, so that we don't even try to compile it if settimeofday is
83251         available.  This works around a compilation failure on OSF1 V5.1,
83252         due to stime requiring a `long int*' while tv_sec is `int'.
83253
83254 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
83255
83256         Sync from coreutils.
83257         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
83258         against `yes', rather than just testing for nonempty.
83259
83260 2005-10-01  Simon Josefsson  <jas@extundo.com>
83261
83262         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
83263         and Darwin.
83264
83265         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
83266         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
83267         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
83268         freeaddrinfo and gai_strerror are declared by the POSIX headers.
83269         Check if struct addrinfo is declared.
83270
83271 2005-10-01  Simon Josefsson  <jas@extundo.com>
83272
83273         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
83274         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
83275         AI_* and EAI_* definitions.  Protect function declarations.
83276
83277 2005-10-01  Jim Meyering  <jim@meyering.net>
83278
83279         Sync from coreutils.
83280
83281         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
83282         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
83283         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
83284         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83285         in the inet and nsl libraries.  Required on Solaris 5.7.
83286
83287 2005-10-01  Jim Meyering  <jim@meyering.net>
83288
83289         Sync from coreutils.
83290         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83291         in the inet and nsl libraries.  Required on Solaris 5.7.
83292
83293 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
83294
83295         * lib/getdelim.c (getdelim): Remove unused variables.
83296
83297 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
83298
83299         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
83300         so that the code works even with ancient cpp.  Portability problem
83301         with GCC 2.7.2.1 reported by Thomas M.Ott.
83302
83303 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
83304
83305         * modules/regex (Depends-on): Add strcase.
83306
83307         * modules/gethostname (Licence): Change from GPL to LGPL, since
83308         gethostname.c is a trivial implementation of a standard library
83309         function.
83310         * modules/poll (License): Change from GPL to LGPL, since it's
83311         derived from LGPL code.
83312
83313 2005-09-27  Jim Meyering  <jim@meyering.net>
83314
83315         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
83316         HAVE_CONFIG_H.
83317
83318         * lib/intprops.h (signed_type_or_expr__): Define.
83319         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
83320         for unsigned types.
83321
83322 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
83323
83324         * lib/verify.h (verify_expr): Remove, replacing with:
83325         (verify_true): New macro that returns true instead of void.
83326         (verify_type__): Remove.
83327         (verify): Use verify_true rather than verify_type__.
83328
83329 2005-09-26  Bruno Haible  <bruno@clisp.org>
83330
83331         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
83332         is necessary.
83333         (lib_SOURCES): Remove mbchar.c.
83334         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
83335         (Files): Add m4/mbrtowc.m4.
83336         * modules/mbiter: Likewise.
83337         * modules/mbuiter: Likewise.
83338
83339 2005-09-26  Bruno Haible  <bruno@clisp.org>
83340
83341         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
83342         compile mbchar.c if they are not both present.
83343         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
83344         * m4/mbiter.m4 (gl_MBITER): Likewise.
83345         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
83346         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
83347         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
83348
83349 2005-09-25  Jim Meyering  <jim@meyering.net>
83350
83351         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
83352         also uses socklen_t.
83353
83354 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
83355
83356         * lib/utimens.c (ENOSYS): Define if not already defined.
83357         (futimens): Support having a null PATH if the file descriptor
83358         is nonnegative.
83359
83360         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
83361         Remove.
83362         (__attribute): Define to empty unless GCC 3.1 or later.
83363         This works around a core dump on OpenBSD 3.4, which has GCC
83364         2.95.3, which dumps core when given __attribute__(()).  It also
83365         simplifies other tests, since we really don't want to bother with
83366         worrying about which ancient version of GCC supported what.
83367         Original problem reported by Yoann Vandoorselaere, with part of
83368         the fix suggested by Derek Price.
83369
83370 2005-09-24  Jim Meyering  <jim@meyering.net>
83371
83372         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
83373         so we can once again use a positive bitfield width of 1 -- now we
83374         don't have to explain why we were using a bitfield width of 2.
83375
83376 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83377
83378         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
83379         and similarly for the other external symbols.  Problem reported
83380         by James Gallager.
83381
83382         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
83383         bug reported by Jim Meyering.
83384
83385         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
83386         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
83387         not needed, since socklen is a prerequisite module.
83388
83389 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83390
83391         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
83392         Problem reported by Eric Blake.
83393         (getaddrinfo): Initialize se so that it's not garbage.
83394         Redo internal storage allocation so that it doesn't make unportable
83395         assumptions about alignment.
83396         Fix a memory leak.
83397
83398         * lib/utimens.c (futimens): Use futimesat if available.
83399         Prefer it to futimes since it doesn't have the futimes bug.
83400
83401         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
83402         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
83403         Instead, declare a function that returns a pointer to an array,
83404         and use verify_type__ to declare the size of the array.
83405         Problem and germ of a solution reported by Bruno Haible.
83406         (verify_type__): Use 2, not 1, for bitfield size, to avoid
83407         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
83408
83409 2005-09-23  Jim Meyering  <jim@meyering.net>
83410
83411         Sync from coreutils.
83412         Correct build failure (socklen_t not defined) on at least
83413         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
83414         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
83415
83416 2005-09-23  Jim Meyering  <jim@meyering.net>
83417
83418         * modules/getaddrinfo (Depends-on): Add socklen.
83419
83420 2005-09-23  Bruno Haible  <bruno@clisp.org>
83421
83422         * tests/test-verify.c: New file.
83423
83424 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83425
83426         Sync from coreutils.
83427
83428         * modules/argmatch (Depends-on): Add verify.
83429         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
83430         unistd-safer.
83431         * modules/save-cwd (Depends-on): Likewise.
83432
83433         * modules/openat (Files): Add lib/openat-die.c.
83434         (Depends-on): Remove error, exitfail.
83435         Add dirname.
83436
83437         * modules/verify: New file.
83438         * MODULES.html.sh (Diagnostics <assert.h>): New section,
83439         with "verify" module.
83440
83441 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83442
83443         Sync from coreutils.
83444
83445         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
83446         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
83447         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
83448         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
83449         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
83450         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
83451         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
83452         Don't bother checking for string.h, stdlib.h, unistd.h.
83453         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
83454         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
83455         module's job.
83456         * m4/jm-macros.m4 (gl_MACROS): Likewise.
83457         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
83458
83459         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
83460         (gl_GETDATE): Use it.
83461
83462         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
83463
83464 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83465
83466         Sync from coreutils.
83467
83468         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
83469         stat-time.h.
83470         * lib/argmatch.h: Include verify.h
83471         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
83472         (ARGMATCH_ASSERT): Remove; unused.
83473         * lib/canonicalize.c: Assume STDC_HEADERS.
83474         * lib/exclude.c: Include "strcase.h".
83475         * lib/regex_internal.h [!defined _LIBC]: Likewise.
83476         * lib/getusershell.c: Include stdio--.h rather than stdio.h
83477         and stdio-safer.h.
83478         (getusershell): Call fopen, not fopen_safer.
83479         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
83480         Do not include unistd-safer.h.
83481         (save_cwd): Don't call fd_safer; no longer needed
83482         now that we include fcntl--.h.
83483
83484         * lib/getdate.y (relative_time): New type.
83485         (RELATIVE_TIME_0): New constant.
83486         (parser_control): Use relative_time instead of doing it ourselves.
83487         (%union): Add new relative_time rel member.
83488         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
83489         Now typeless.
83490         (relunit, relunit_snumber): Now of type rel.
83491         (zone, rel, relunit, get_date): Adjust to above changes.
83492
83493         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
83494         Do not include unistd-safer.h.
83495         (getloadavg): Don't call fd_safer; no longer needed
83496         now that we include fcntl--.h.
83497
83498         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
83499         (make_dir_parents): Treat ENOSYS like EEXIST.
83500
83501         Improve quality of diagnostics on restore_cwd failure.
83502         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
83503         (make_dir_parents): Last arg is now int * (for errno), not bool *.
83504         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
83505         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
83506         each time through the loop.  Do not diagnose restore_cwd failure;
83507         that is the caller's job (and perhaps the caller does not care).
83508
83509         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
83510         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
83511         If the file already exists but is not a directory, don't bother
83512         to try to make its parents.
83513         Close potential file descriptor leak if we can't chdir("/") (!).
83514         Don't always return true if chdir($PWD) fails; return true only
83515         if the requested action was done successfully (except for the
83516         chdir($PWD)).
83517         Don't log final directory unless we actually made it.
83518         Refactor to avoid duplicate code to fix up permissions.
83519         Don't attempt to fix up parent permissions if chdir($PWD) fails.
83520
83521         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
83522         to make it a bit faster and (I hope) clearer.
83523         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
83524         Fix bug in formats like %2N.
83525
83526         * lib/verify.h: New file.
83527
83528 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83529
83530         Sync from coreutils.
83531         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
83532
83533 2005-09-22  Jim Meyering  <jim@meyering.net>
83534
83535         Sync from coreutils.
83536
83537         * m4/lstat.m4 (gl_FUNC_LSTAT):
83538         Use AC_LIBSOURCES to require lstat.c and lstat.h.
83539         Remove obsolete comment.
83540         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
83541         * m4/xstrtod.m4: Likewise.
83542
83543         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
83544
83545 2005-09-22  Jim Meyering  <jim@meyering.net>
83546
83547         Sync from coreutils.
83548
83549         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
83550
83551         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
83552         the .tm_year member, since otherwise gcc-4.0 would now warn about
83553         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
83554
83555         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
83556         order to avoid an unsuppressible warning from gcc on 64-bit systems.
83557
83558         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
83559         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
83560         when run in a time zone for which daylight savings time is in effect
83561         for the starting date.
83562
83563         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
83564         stop us from restricting permissions of just-created absolute-named
83565         directories.
83566         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
83567         to restore initial working directory.
83568         * lib/mkdir-p.c (make_dir_parents): New parameter:
83569         different_working_dir, to tell caller if/when we change the working
83570         directory and are unable to return to the initial one.
83571         * lib/mkdir-p.h (make_dir_parents): Update prototype.
83572         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
83573         `return false'.  This fixes a bug introduced on 2004-07-30.
83574
83575         * lib/openat.c (fdopendir): Be sure to close the supplied
83576         file descriptor before returning.  This makes our replacement
83577         implementation a little closer to Solaris's, where fdopendir
83578         ties the file descriptor to the returned DIR* pointer.
83579         * lib/openat.c (unlinkat): New function.
83580         * lib/openat.h (unlinkat): Add prototype.
83581         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
83582         (openat_restore_fail): Rename from openat_restore_die.
83583         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
83584
83585         Provide an alternative to exiting immediately upon save_cwd or
83586         restore_cwd failure.  Now, an application can arrange e.g.,
83587         to perform a longjump in that case.
83588         * lib/openat.c: Include dirname.h.
83589         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
83590         (rpl_openat, fdopendir, fstatat): Call openat_save_die
83591         and openat_restore_die rather than calling error directly.
83592         Don't include "error.h" or "exitfail.h"; they're no longer needed.
83593
83594         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
83595         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
83596         define.
83597
83598         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
83599         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
83600                             int utc, int nanoseconds);
83601         Background:
83602         date should not have to allocate a megabyte of virtual memory to
83603         handle a format argument like +%1048575T.  When implemented with
83604         strftime, it must allocate such a buffer, use strftime to fill it
83605         in, print it, then free it.
83606         With fprintftime, it simply prints everything and exits.
83607         With no need for memory allocation, that's one fewer way to fail.
83608         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
83609         optional field width, not before, so we accept %9:z, not %:9z.
83610         (my_strftime): Be sure to use L_('x') for literals.
83611
83612         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
83613         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
83614         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
83615         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
83616         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
83617         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
83618         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
83619         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
83620         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
83621         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
83622         * lib/xgethostname.c, lib/xreadlink.c:
83623         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
83624
83625         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
83626         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
83627         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
83628         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83629         and don't include <sys/file.h>).
83630
83631 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
83632
83633         Sync from coreutils.
83634
83635         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
83636         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
83637         [!LDAV_DONE]: Avoid unused variable warning.
83638
83639 2005-09-21  Bruno Haible  <bruno@clisp.org>
83640
83641         * lib/unicodeio.h (unicode_to_mb): New declaration.
83642
83643 2005-09-20  Derek Price  <derek@ximbiot.com>
83644
83645         * lib/getaddrinfo.c: Don't include <netdb.h> included from
83646         getaddrinfo.h.
83647
83648 2005-09-20  Bruno Haible  <bruno@clisp.org>
83649
83650         * gnulib-tool: Remove trailing slashes from the values specified for
83651         --source-base, --m4-base, --tests-base, --aux-dir.
83652         Suggested by Simon Josefsson <jas@extundo.com>.
83653
83654 2005-09-20  Bruno Haible  <bruno@clisp.org>
83655
83656         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
83657         func_modules_to_filelist, func_import, func_create_testdir): Make all
83658         sorting results locale-independent, so that gnulib-cache.m4 doesn't
83659         change when gnulib-tool is invoked in a different locale.
83660
83661 2005-09-19  Simon Josefsson  <jas@extundo.com>
83662
83663         * m4/socklen.m4: Fix typo.
83664
83665 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83666
83667         Use a consistent style for including <config.h>.
83668         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
83669         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
83670         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
83671         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
83672         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
83673         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
83674         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
83675         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
83676         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
83677         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
83678         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
83679         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
83680         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
83681         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
83682         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
83683         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
83684         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
83685         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
83686         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
83687         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
83688         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
83689         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
83690         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
83691         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
83692         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
83693         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
83694         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
83695         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
83696         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
83697         lib/xstrtoumax.c, lib/yesno.c:
83698         Standardize inclusion of config.h.
83699         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
83700         lib/inttostr.h:  Removed inclusion of config.h from header files.
83701         * lib/inttostr.c:  Adjusted in-tree users.
83702         * lib/timespec.h: Remove superfluous warning to include config.h.
83703         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
83704         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
83705         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
83706         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
83707         config.h with HAVE_CONFIG_H.
83708
83709 2005-09-19  Jim Meyering  <jim@meyering.net>
83710
83711         * modules/pathmax (License): Change to LGPL.
83712
83713 2005-09-19  Derek Price  <derek@ximbiot.com>
83714
83715         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
83716
83717 2005-09-19  Bruno Haible  <bruno@clisp.org>
83718
83719         * gnulib-tool (import): Provide default for --tests-base.
83720
83721 2005-09-19  Bruno Haible  <bruno@clisp.org>
83722
83723         * doc/quote.texi: New file, extracted from gnulib.texi.
83724         * doc/ctime.texi: New file, extracted from gnulib.texi.
83725         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
83726         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
83727         * doc/gnulib.texi: Include them.
83728
83729 2005-09-18  Bruno Haible  <bruno@clisp.org>
83730
83731         Portability fix.
83732         * gnulib-tool (func_readlink): New function.
83733         (func_ln_if_changed): Use it.
83734
83735 2005-09-18  Bruno Haible  <bruno@clisp.org>
83736
83737         * gnulib-tool: Support --with-tests also with --import.
83738         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
83739         (func_import): Use variables $testsbase and $inctests. Emit a
83740         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
83741         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
83742         SUBDIRS += $testsdir.
83743         (func_create_testdir): Update.
83744
83745 2005-09-18  Bruno Haible  <bruno@clisp.org>
83746
83747         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
83748         instead of $dry_run.
83749         (func_cp_if_changed, func_mv_if_changed): Remove functions.
83750         (func_ln_if_changed): Don't handle dry-run here.
83751         (func_import): In dry-run mode, detect more precisely which actions
83752         would be performed, and don't use "...ing" verbs.
83753
83754 2005-09-18  Bruno Haible  <bruno@clisp.org>
83755
83756         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
83757         (func_import): Use join on two temporary files instead of three nested
83758         loops, in order to determine which files are new or old.
83759
83760 2005-09-18  Bruno Haible  <bruno@clisp.org>
83761
83762         * gnulib-tool (func_import): Comment out code that spits out the
83763         new files with --dry-run.
83764
83765 2005-09-18  Bruno Haible  <bruno@clisp.org>
83766
83767         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
83768
83769 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83770
83771         * lib/stat-time.h: New file.
83772         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
83773         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
83774         in a different way.
83775         (timespec_cmp): New function.
83776         * lib/utimecmp.c: Include stat-time.h.
83777         (SYSCALL_RESOLUTION): Depend on whether various struct stat
83778         members exist, not on the obsolescent ST_MTIM_NSEC.
83779         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
83780
83781 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83782
83783         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
83784
83785 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83786
83787         * MODULES.html.sh (File system functions): Add stat-time.
83788         * modules/stat-time: New file.
83789         * modules/timespec (Files): Remove m4/st_mtim.m4; this
83790         is now done in a different way, by the stat-time module.
83791         * modules/utimecmp (Depends-on): Add stat-time.
83792
83793 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
83794
83795         * m4/st_mtim.m4: Remove.  Superseded by...
83796         * m4/stat-time.m4: New file.
83797         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
83798         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
83799
83800 2005-09-15  Derek Price  <derek@ximbiot.com>
83801
83802         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
83803
83804 2005-09-15  Derek Price  <derek@ximbiot.com>
83805
83806         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
83807         * lib/regex_internal.c: Ditto, using this...
83808         (__GNUC_PREREQ): ...new macro.
83809         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
83810         using...
83811         (__GNUC_PREREQ): ...this new macro.
83812
83813         * lib/strstr.h: Include string.h. Define strstr as a macro here.
83814
83815 2005-09-15  Derek Price  <derek@ximbiot.com>
83816             Paul Eggert  <eggert@cs.ucla.edu>
83817
83818         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
83819         changes, consolidating in...
83820         * lib/regex_internal.h: ...this file.
83821
83822 2005-09-13  Jim Meyering  <jim@meyering.net>
83823
83824         * lib/canon-host.c: Filter through gnu indent and reword comments
83825         slightly.
83826         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
83827
83828 2005-09-13  Derek Price  <derek@ximbiot.com>
83829
83830         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
83831         failure.
83832         Reported by Jim Meyering  <jim@meyering.net>.
83833
83834 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83835
83836         * lib/base64.c: Typo.
83837         (base64_encode): Put b64str in initialized data section.
83838
83839 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
83840
83841         Merge glibc and coreutils changes into gnulib, plus a few
83842         extra fixes.
83843         * lib/md5.c: Use #error rather than a string.
83844         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
83845         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
83846         (__attribute__): Define to empty for non recent-GCC.
83847         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
83848         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
83849         Renamed from their non-__ counterparts, with new macros replacing
83850         them if not _LIBC.  Add __THROW attribute.
83851         (rol): Remove.
83852         (struct md5_ctx): Align buffer if using GCC.
83853         * lib/sha1.h (struct sha1_ctx): Likewise.
83854         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
83855         The old name was backwards.
83856         (NOTSWAP): Remove; not used.
83857         (rol): New macro, moved here from md5.h.
83858         (sha1_process_block): Remove a FIXME that doesn't make sense.
83859
83860 2005-09-12  Derek Price  <derek@ximbiot.com>
83861
83862         Return usable errors from canon-host.
83863         * lib/canon-host.h: New file.
83864         * lib/canon-host.c (canon_host): Wrap...
83865         (canon_host_r): ...this new function, which now relies exclusively on
83866         getaddrinfo.
83867         (ch_strerror): New function.
83868         (last_cherror): New global.
83869         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
83870         interface.
83871         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
83872         void *.
83873         (freeaddrinfo): Free ai->ai_canonname when set.
83874
83875 2005-09-12  Derek Price  <derek@ximbiot.com>
83876
83877         Make canon-host require getaddrinfo.
83878         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
83879         AC_LIBSOURCE canon-host.h.  Call...
83880         (gl_PREREQ_CANON_HOST): ...this new function, which requires
83881         gl_GETADDRINFO.
83882         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
83883
83884 2005-09-12  Derek Price  <derek@ximbiot.com>
83885
83886         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
83887         LGPL.
83888         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
83889
83890 2005-09-12  Derek Price  <derek@ximbiot.com>
83891
83892         * lib/gai_strerror.c: Include config.h when available.  Include
83893         getaddrinfo.h before other headers to test interface.
83894         Reported by Larry Jones <lawrence.jones@ugs.com>.
83895
83896 2005-09-12  Derek Price  <derek@ximbiot.com>
83897             Paul Eggert  <eggert@cs.ucla.edu>
83898
83899         * modules/glob (Files): Add glob-libc.h.
83900
83901 2005-09-12  Derek Price  <derek@ximbiot.com>
83902             Paul Eggert  <eggert@cs.ucla.edu>
83903
83904         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
83905         glob_.h, glob-libc.h.
83906         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
83907
83908 2005-09-12  Derek Price  <derek@ximbiot.com>
83909             Paul Eggert  <eggert@cs.ucla.edu>
83910
83911         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
83912         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
83913         protecting things that should be done only in gnulib contexts.
83914         * lib/glob_.h: New file, containing only the glob things needed for
83915         gnulib.
83916         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
83917         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
83918         (glob, globfree, glob_pattern_p): Now defined simply in terms of
83919         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
83920         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
83921         and to respect the namespace rules better.
83922
83923 2005-09-08  Simon Josefsson  <jas@extundo.com>
83924
83925         * modules/socklen: New file.
83926
83927 2005-09-08  Simon Josefsson  <jas@extundo.com>
83928
83929         * m4/socklen.m4: New file.
83930
83931 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83932
83933         * modules/utimens (Files): Add m4/utimbuf.m4, since
83934         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
83935         Reported by Sergey Poznyakoff.
83936
83937 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83938
83939         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
83940         definitions, since that's the preferred style in glibc.
83941         Fix a minor spacing issue, and update copyright notice to match
83942         glibc's.
83943
83944 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83945
83946         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
83947
83948 2005-09-06  Simon Josefsson  <jas@extundo.com>
83949
83950         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
83951         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
83952
83953 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83954
83955         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
83956         warning.
83957
83958 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83959
83960         * config/srclist.txt: Add glibc bug 1302.
83961
83962 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
83963
83964         Change bitset word type from unsigned int to unsigned long int,
83965         as this has better performance on typical 64-bit hosts.
83966         Port bitset code to hosts with unusual word sizes.
83967         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
83968         (build_collating_symbol):
83969         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
83970         argument is a bitset.  This is merely a style issue, but it makes
83971         it clearer that an entire array is expected.
83972         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
83973         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
83974         Port to the case where bitset_word is not the same as unsigned int.
83975         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83976         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
83977         Likewise.
83978         * lib/regexec.c (check_dst_limits_calc_pos_1,
83979         check_subexp_matching_top):
83980         (build_trtable, group_nodes_into_DFAstates):
83981         Likewise.
83982         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
83983         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
83984         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
83985         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
83986         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
83987         * lib/regcomp.c (optimize_subexps, lower_subexp):
83988         Work even if bitset_word has holes in its bitwise representation.
83989         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
83990         * lib/regexec.c (check_dst_limits_calc_pos_1,
83991         check_subexp_matching_top):
83992         Likewise.
83993         * lib/regex_internal.c (re_string_reconstruct):
83994         Don't assume UCHAR_MAX == 255.
83995         * lib/regex_internal.h (bitset_set_all): Likewise.
83996         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
83997         All uses changed.
83998         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
83999         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
84000         All uses changed.
84001         (BITSET_WORD_MAX): New macro.
84002         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
84003         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
84004         (bitset_empty, bitset_copy):
84005         Prefer sizeof (bitset) to multiplying it out ourselves.
84006         (bitset_not_merge): Remove; unused.
84007         (bitset_contain): Return bool, not unsigned int with one bit on.
84008         All callers changed.
84009         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
84010         alignment than re_node_set; do this by defining a new internal
84011         type struct dests_alloc and using it to allocate memory.
84012
84013 2005-09-05  Bruno Haible  <bruno@clisp.org>
84014
84015         * gnulib-tool (func_import): Fix comparison in handling of symbolic
84016         links.
84017
84018 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
84019
84020         * modules/size_max (Makefile.am): Add size_max.h
84021
84022 2005-09-04  Derek Price  <derek@ximbiot.com>
84023
84024         * gnulib-tool (func_import): Fix reversed $symbolic logic.
84025
84026 2005-09-03  Simon Josefsson  <jas@extundo.com>
84027
84028         * gnulib-tool: Fix typo.
84029
84030 2005-09-03  Simon Josefsson  <jas@extundo.com>
84031
84032         * config/srclist.txt: Add glibc bug 1293.
84033
84034 2005-09-03  Derek Price  <derek@ximbiot.com>
84035
84036         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
84037         From Larry Jones <lawrence.jones@ugs.com>.
84038
84039 2005-09-02  Simon Josefsson  <jas@extundo.com>
84040
84041         * modules/socklen: New file.
84042
84043 2005-09-02  Simon Josefsson  <jas@extundo.com>
84044
84045         * modules/havelib: New module.
84046
84047         * modules/gettext, modules/iconv, modules/lock, modules/readline:
84048         Use havelib.
84049
84050 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84051
84052         Check for arithmetic overflow when calculating sizes, to prevent
84053         some buffer-overflow issues.  These patches are conservative, in the
84054         sense that when I couldn't determine whether an overflow was possible,
84055         I inserted a run-time check.
84056         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
84057         macros.
84058         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
84059         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
84060         (re_xnrealloc, re_x2nrealloc): New inline functions.
84061         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
84062         parse_bracket_exp):
84063         (build_equiv_class, build_charclass): Check for arithmetic overflow
84064         in size expression calculations.
84065         * lib/regex_internal.c (re_string_realloc_buffers):
84066         (build_wcs_upper_buffer, re_node_set_add_intersect):
84067         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
84068         (re_dfa_add_node, register_state): Likewise.
84069         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
84070         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
84071         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
84072         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
84073
84074 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84075
84076         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84077         m4/ulonglong.m4.  Problem reported by Martin Lambers.
84078
84079 2005-09-02  Bruno Haible  <bruno@clisp.org>
84080
84081         Support for lib vs. lib64 distinction on biarch platforms.
84082         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
84083         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
84084         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
84085
84086 2005-09-02  Bruno Haible  <bruno@clisp.org>
84087
84088         * gnulib-tool (import): In the other first-use case, provide defaults
84089         as well.
84090
84091 2005-09-02  Bruno Haible  <bruno@clisp.org>
84092
84093         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
84094         patches not yet found in the latest gettext release.
84095
84096 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84097
84098         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
84099         to avoid a collision with bits/local_lim.h in glibc.
84100         All uses changed.  Problem reported by Dmitry V. Levin in
84101         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
84102
84103         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
84104         bugs in int versus size_t comparisons.
84105         (re_string_context_at): Fix bug where the code assumed that
84106         Idx is signed.
84107
84108         Use bool where appropriate.
84109         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
84110         All callers changed.
84111         (calc_eclosure_iter): Likewise, for ROOT arg.
84112         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
84113         (build_charclass_op): Likewise, for NON_MATCH arg.
84114         * lib/regex_internal.c (re_string_allocate, re_string_construct):
84115         (re_string_construct_common): Likewise, for ICASE arg.
84116         * lib/regexec.c (re_search_2_stub, re_search_stub):
84117         Likewise, for RET_LEN arg.
84118         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
84119         (set_regs): Likewise, for FL_BACKTRACK arg.
84120         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
84121         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
84122         (calc_eclosure_iter, parse_bracket_exp):
84123         Use bool for internal variables that are booleans.
84124         * lib/regexec.c (re_search_internal, check_matching,
84125         proceed_next_node):
84126         (set_regs, build_sifted_states, sift_states_bkref):
84127         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
84128         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84129         (find_collation_sequence_value):
84130         Likewise.
84131         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
84132         (re_node_set_compare):
84133         Return bool, not int. All callers changed.
84134         * lib/regexec.c (check_halt_node_context, check_dst_limits):
84135         (build_trtable, check_node_accept): Likewise.
84136         * lib/regex_internal.h: Include stdbool.h.
84137
84138         Fix bugs uncovered when converting to bool.
84139         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
84140         failure instead of charging ahead blindly.
84141         * lib/regex_internal.c (register_state): Likewise.
84142         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
84143         for freeing internal storage.
84144         (group_nodes_into_DFA_states): Use unsigned int, not int, for
84145         bitset pieces used as boolean, to avoid undefined behavior
84146         on hosts that do int overflow checking.
84147
84148 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84149
84150         * config/srclist.txt: Add glibc bugs 1285-1287.
84151
84152 2005-09-01  Jim Meyering  <jim@meyering.net>
84153
84154         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
84155         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
84156         Require gl_STAT_MACROS, too.
84157
84158 2005-09-01  Bruno Haible  <bruno@clisp.org>
84159
84160         * gnulib-tool (import): In the first-use case, provide defaults.
84161
84162 2005-09-01  Bruno Haible  <bruno@clisp.org>
84163
84164         * gnulib-tool (func_import): Remove the .tmp files.
84165
84166 2005-09-01  Bruno Haible  <bruno@clisp.org>
84167
84168         * gnulib-tool (func_import): Fix handling of symbolic links.
84169
84170 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84171
84172         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
84173         old glibc regex code mishandles strings longer than 2**31 bytes.
84174         This patch fixes this when the regex code is used in gnulib
84175         (i.e., outside glibc).
84176
84177         This patch should not affect the use of the regex code inside
84178         glibc.  No doubt this problem also needs to be handled for glibc
84179         as well, but the result will be an incompatible change to the
84180         glibc ABI, and the old ABI will have to be supported too.  That
84181         can be the the subject for another patch.
84182
84183         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
84184         governing whether the rest of this patch is active.  By default,
84185         the macro is disabled and the patch has no effect.
84186         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
84187         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
84188         (struct re_pattern_buffer, re_search, re_search_2, re_match):
84189         (re_match_2, re_set_registers): Use the new types.
84190         * lib/regex_internal.h (Idx, re_hashval_t): New types.
84191         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
84192         New macros.
84193         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
84194         (re_string_context_at, bin_tree_t, re_dfastate_t):
84195         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
84196         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
84197         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
84198         (re_string_char_size_at, re_string_wchar_at):
84199         (re_string_elem_size_at):
84200         Use the new types and macros to port to 64-bit hosts.
84201         Use unsigned types for internal values, so that the code
84202         mostly works even for arrays larger than SSIZE_MAX.
84203         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
84204         (search_duplicated_node, calc_eclosure_iter, fetch_number):
84205         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
84206         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
84207         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
84208         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
84209         (calc_inveclosure, parse_dup_op, build_range_exp):
84210         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
84211         (fetch_number, create_token_tree, mark_opt_subexp):
84212         Likewise.
84213         * lib/regex_internal.c (re_string_construct_common,
84214         create_ci_newstate):
84215         (create_cd_newstate, re_string_allocate, re_string_construct):
84216         (re_string_realloc_buffers, build_wcs_upper_buffer):
84217         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84218         (re_string_reconstruct, re_string_peek_byte_case):
84219         (re_string_fetch_byte_case, re_string_context_at):
84220         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84221         (re_node_set_init_copy, re_node_set_add_intersect):
84222         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84223         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84224         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84225         (re_acquire_state, re_acquire_state_context, register_state):
84226         Likewise.
84227         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
84228         search_cur_bkref_entry):
84229         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
84230         (re_search_internal, re_search_2_stub, re_search_stub)
84231         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
84232         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
84233         (update_cur_sifted_state, check_dst_limits):
84234         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84235         (check_subexp_limits, sift_states_bkref, merge_state_array):
84236         (check_subexp_matching_top, get_subexp, get_subexp_sub):
84237         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
84238         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84239         (expand_bkref_cache, check_node_accept_bytes):
84240         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
84241         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
84242         (acquire_init_state_context, check_halt_node_context):
84243         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
84244         (sift_states_backward, clean_state_log_if_needed):
84245         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
84246         (find_recover_state, transit_state_sb, transit_state_mb):
84247         (transit_state_bkref, build_trtable, match_ctx_clean):
84248         Likewise.
84249         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
84250         to work around an assumption that REG_MISSING is negative.
84251
84252         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
84253         (seek_collating_symbol_entry) [defined _LIBC]:
84254         (lookup_collation_sequence_value) [defined _LIBC]:
84255         (build_range_exp, build_collating_symbol) [defined _LIBC]:
84256         Use prototypes rather than old-style function definitions.
84257         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
84258         (transit_state_sb) [0]:
84259         (find_collation_sequence_value) [defined _LIBC]: Likewise.
84260
84261         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
84262         rm_eo.
84263
84264         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
84265         (optimize_subexps, lower_subexp):
84266         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
84267         since the signed shift might overflow.  Use 1u<<31 instead.
84268         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84269         Likewise.
84270         * lib/regexec.c (check_dst_limits_calc_pos_1,
84271         check_subexp_matching_top): Likewise.
84272
84273         * lib/regcomp.c (optimize_subexps, lower_subexp):
84274         Use CHAR_BIT rather than 8, for clarity.
84275         * lib/regexec.c (check_dst_limits_calc_pos_1):
84276         (check_subexp_matching_top): Likewise.
84277         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
84278         have to worry about portability issues when shifting it left.
84279         Remove no-longer-needed test for table_size > 0.
84280         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
84281         in a word, as the resulting behavior is undefined.
84282         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
84283         in one case, a <= should have been an <, and in another case the
84284         whole test was missing.
84285         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
84286         the standard name CHAR_BIT.
84287         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
84288         this is not true on one's complement and signed-magnitude hosts.
84289
84290         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
84291         next_last_offset.
84292         (struct re_dfa_t): Remove unused member states_alloc.
84293         * lib/regcomp.c (init_dfa): Don't initialize unused members.
84294
84295 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84296
84297         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
84298         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
84299         and large-file glibc and in 32-bit large-file Solaris.
84300
84301 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84302
84303         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
84304         lengths fit in regoff_t; this isn't true if regoff_t is the same
84305         width as size_t.
84306         * lib/regex.c (re_search_internal): 5th arg is LAST_START
84307         (= START + RANGE) instead of RANGE.  This avoids overflow
84308         problems when regoff_t is the same width as size_t.
84309         All callers changed.
84310         (re_search_2_stub): Check for overflow when adding the
84311         sizes of the two strings.
84312         (re_search_stub): Check for overflow when adding START
84313         to RANGE; if it occurs, substitute the extreme value.
84314
84315 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84316
84317         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
84318
84319 2005-08-31  Jim Meyering  <jim@meyering.net>
84320
84321         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
84322         a pointer-to-const.
84323         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
84324         (register_state): Likewise.
84325         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
84326         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84327         (group_nodes_into_DFAstates): Likewise.
84328
84329 2005-08-31  Jim Meyering  <jim@meyering.net>
84330
84331         * check-module: Add a FIXME comment.
84332
84333 2005-08-31  Eric Blake  <ebb9@byu.net>
84334
84335         * modules/unistd-safer (Files): Add unistd--.h.
84336         * modules/stdio-safer (Files): Add stdio--.h.
84337
84338 2005-08-31  Derek Price  <derek@ximbiot.com>
84339
84340         * lib/getdelim.c (getdelim): Return EOF on EOF.
84341         Reported by Larry Jones <lawrence.jones@ugs.com>.
84342
84343 2005-08-31  Bruno Haible  <bruno@clisp.org>
84344
84345         Avoid unnecessary diffs in the generated lib/Makefile.am.
84346         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
84347         the generated files.
84348         (func_import): Don't set cmd.
84349
84350 2005-08-31  Bruno Haible  <bruno@clisp.org>
84351
84352         * lib/strstr.c: Include <stddef.h>, for NULL.
84353         * lib/strcasestr.c: Likewise.
84354         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84355
84356 2005-08-31  Bruno Haible  <bruno@clisp.org>
84357
84358         * gnulib-tool: New option --macro-prefix.
84359         (func_import): Use macro_prefix.
84360         (import): Handle option --macro-prefix.
84361
84362 2005-08-31  Bruno Haible  <bruno@clisp.org>
84363
84364         * gnulib-tool (import): Rename most ac_* variables to cached_*.
84365         Also use new variables cached_lgpl, cached_libtool.
84366
84367 2005-08-31  Bruno Haible  <bruno@clisp.org>
84368
84369         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
84370         always instantiating them.
84371
84372 2005-08-31  Bruno Haible  <bruno@clisp.org>
84373
84374         * gnulib-tool (func_import): Read the previous cached settings
84375         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
84376         earlier added by gnulib but are now dropped. Warn when a gnulib file
84377         overwrites a non-gnulib file.
84378
84379 2005-08-31  Bruno Haible  <bruno@clisp.org>
84380
84381         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
84382         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
84383         projects that don't keep autogenerated files in CVS. Put into
84384         actioncmd only the specified modules, not the transitive closure.
84385
84386 2005-08-31  Bruno Haible  <bruno@clisp.org>
84387
84388         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
84389         Create directories that shall be filled.
84390         (import): Don't look for gl_* macros in configure.ac. Recurse across
84391         all directories containing a gnulib-cache.m4 files, if meaningful.
84392
84393 2005-08-31  Bruno Haible  <bruno@clisp.org>
84394
84395         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
84396         (import): Set seen_libtool when we see gl_LIBTOOL.
84397
84398 2005-08-31  Bruno Haible  <bruno@clisp.org>
84399
84400         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
84401         declaration macro definitions from generated gnulib.m4.
84402
84403 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
84404
84405         * lib/iconvme.h: Add prototype for iconv_alloc.
84406
84407 2005-08-29  Simon Josefsson  <jas@extundo.com>
84408
84409         * lib/iconvme.c: Fix errno.
84410
84411 2005-08-29  Bruno Haible  <bruno@clisp.org>
84412
84413         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
84414         that it works when the directory contains spaces.
84415
84416 2005-08-29  Bruno Haible  <bruno@clisp.org>
84417
84418         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
84419
84420 2005-08-29  Bruno Haible  <bruno@clisp.org>
84421
84422         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
84423         Emit more advice.
84424
84425 2005-08-29  Bruno Haible  <bruno@clisp.org>
84426         and Stepan Kasal  <kasal@ucw.cz>
84427
84428         * check-module: If more parameters are given, check each of them
84429         separately; add more exceptions, as noted by Jim Meyering.
84430         (check_module): New procedure.
84431         (%exempt_header): Now contains all exceptions.
84432
84433 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
84434
84435         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
84436
84437 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84438
84439         * lib/iconvme.c: Split iconv_string into iconv_alloc.
84440
84441 2005-08-28  Bruno Haible  <bruno@clisp.org>
84442
84443         * m4/gnulib-tool.m4: New file.
84444
84445 2005-08-27  Jim Meyering  <jim@meyering.net>
84446
84447         * modules/unistd-safer (Files): Add pipe-safer.c.
84448         * modules/fcntl-safer (Files): Add creat-safer.c.
84449
84450 2005-08-27  Jim Meyering  <jim@meyering.net>
84451
84452         * m4/stdlib-safer.m4: New file.  From coreutils.
84453         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
84454         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
84455         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
84456         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
84457         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
84458
84459 2005-08-27  Jim Meyering  <jim@meyering.net>
84460
84461         * lib/fopen-safer.c: Merge minor changes from coreutils.
84462         * lib/dup-safer.c: Likewise.
84463         * lib/fd-safer.c: Likewise.
84464
84465         Merge from coreutils.
84466         * lib/stdio--.h: New file.
84467         * lib/stdlib--.h: New file.
84468         * lib/mkstemp-safer.c: New file.
84469
84470         GNU tar needs these.
84471         * lib/pipe-safer.c: New file.
84472         * lib/creat-safer.c: New file.
84473         * lib/fcntl--.h (creat): Define to creat_safer.
84474         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
84475         * lib/unistd--.h (pipe): Define to pipe_safer.
84476         * lib/unistd-safer.h: Declare pipe_safer.
84477
84478 2005-08-26  Simon Josefsson  <jas@extundo.com>
84479
84480         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
84481         Haible <bruno@clisp.org>.
84482
84483 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
84484
84485         * lib/regex_internal.h: Remove all references to
84486         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
84487         or better.
84488         (bitset_not, bitset_merge, bitset_not_merge):
84489         (bitset_mask, re_string_allocate, re_string_construct):
84490         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
84491         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
84492         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
84493         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
84494         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84495         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84496         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
84497         (re_acquire_state_context):
84498         Remove unnecessary forward decls.
84499         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
84500         Put __attribute at function definition,
84501         now that the function decl has been removed.
84502         * lib/regex_internal.c (re_string_peek_byte_case):
84503         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
84504         Likewise.
84505
84506 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
84507
84508         * m4/regex.m4: Add AC_PREREQ(2.50).
84509         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
84510
84511 2005-08-25  Simon Josefsson  <jas@extundo.com>
84512
84513         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
84514         __fsetlocking.
84515
84516 2005-08-25  Simon Josefsson  <jas@extundo.com>
84517
84518         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
84519         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
84520         GLIBC specific code.
84521
84522 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84523
84524         Make regex safe for g++.  This fixes one real bug (an "err"
84525         that should have been "*err").  g++ problem reported by
84526         Sam Steingold.
84527         * lib/regex_internal.h (re_calloc): New macro, consistent with
84528         re_malloc etc.  All callers of calloc changed to use re_calloc.
84529         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
84530         not int.  All callers changed.
84531         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
84532         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
84533         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
84534         (find_recover_state): Change "err" to "*err"; this fixes what
84535         appears to be a real bug.
84536         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
84537         versus int.
84538
84539 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84540
84541         * modules/regex (Depends-on): Add malloc, since the code
84542         assumes that !malloc(0) means failure.
84543
84544 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84545
84546         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
84547
84548         alloca modernization/simplification for regex.
84549         * lib/regex.c: Remove portability cruft for alloca.  This no longer
84550         needs to be at the start of the file, and can be moved into
84551         regex_internal.h and simplified.
84552         * lib/regex_internal.h: Include <alloca.h>.
84553         (__libc_use_alloca) [!defined _LIBC]: New macro.
84554         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
84555         now works outside glibc.
84556
84557 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84558
84559         * config/srclist.txt: Add glibc bugs 1241, 1245.
84560
84561 2005-08-25  Jim Meyering  <jim@meyering.net>
84562
84563         * lib/open-safer.c: Include <config.h>.
84564         Otherwise, we'd lose LARGEFILE support in any file using
84565         e.g. "fcntl--.h"
84566
84567 2005-08-25  Bruno Haible  <bruno@clisp.org>
84568
84569         * m4/minmax.m4: Require autoconf 2.52.
84570         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
84571         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
84572         alternatives of translit over the alphabet.
84573         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
84574
84575 2005-08-24  Simon Josefsson  <jas@extundo.com>
84576
84577         * tests/test-getpass.c: New file.
84578
84579 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84580
84581         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
84582         for GNU regex features.
84583
84584 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84585
84586         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
84587         * lib/regex.h (regerror): Likewise.
84588
84589         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
84590         requires this.  (The code never needed it.)
84591
84592         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
84593         All uses of recently-renamed identifiers changed to use the new,
84594         POSIX-compliant names.  The code will build and run just fine
84595         without these changes, but it's better to eat our own dog food
84596         and use the standard-conforming names.
84597
84598         * lib/regex.h: Fix a multitude of POSIX name space violations.
84599         These changes have an effect only for programs that define
84600         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
84601         do not change anything for programs compiled in the normal way.
84602         Also, there is no effect on the ABI.
84603
84604         (_REGEX_SOURCE): New macro.
84605         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
84606         defined and _GNU_SOURCE is not; this fixes a name space violation.
84607
84608         Rename the following macros to obey POSIX requirements.
84609         The old names are still visible as macros if _REGEX_SOURCE is defined.
84610         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
84611         RE_BACKSLASH_ESCAPE_IN_LISTS.
84612         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
84613         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
84614         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
84615         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
84616         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
84617         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
84618         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
84619         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
84620         (REG_INTERVALS): renamed from RE_INTERVALS.
84621         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
84622         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
84623         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
84624         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
84625         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
84626         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
84627         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
84628         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
84629         RE_UNMATCHED_RIGHT_PAREN_ORD.
84630         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
84631         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
84632         (REG_DEBUG): renamed from RE_DEBUG.
84633         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
84634         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
84635         unusual, since we can't clash with the POSIX REG_ICASE.
84636         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
84637         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
84638         (REG_NO_SUB): renamed from RE_NO_SUB.
84639         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
84640         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
84641         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
84642         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
84643         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
84644         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
84645         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
84646         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
84647         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
84648         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
84649         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
84650         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
84651         RE_SYNTAX_POSIX_MINIMAL_BASIC.
84652         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
84653         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
84654         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
84655         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
84656         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
84657         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
84658         (REG_FIXED): Renamed from REGS_FIXED.
84659         (REG_NREGS): Renamed from RE_NREGS.
84660
84661         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
84662         of other REG_* macros, since POSIX says the user is allowed to
84663         #undef these macros selectively.
84664
84665         (reg_errcode_t): Update comment stating what other tables need
84666         to be consistent.
84667
84668         Rename the following enum values to obey POSIX requirements.
84669         The old names are still visible as macros.
84670         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
84671         is not defined, since GNU is supposed to be a superset of POSIX as
84672         much as possible, and since we want reg_errcode_t to be a signed
84673         type for implementation consistency.
84674         (_REG_NOERROR): Renamed from REG_NOERROR.
84675         (_REG_NOMATCH): Renamed from REG_NOMATCH.
84676         (_REG_BADPAT): Renamed from REG_BADPAT.
84677         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
84678         (_REG_ECTYPE): Renamed from REG_ECTYPE.
84679         (_REG_EESCAPE): Renamed from REG_EESCAPE.
84680         (_REG_ESUBREG): Renamed from REG_ESUBREG.
84681         (_REG_EBRACK): Renamed from REG_EBRACK.
84682         (_REG_EPAREN): Renamed from REG_EPAREN.
84683         (_REG_EBRACE): Renamed from REG_EBRACE.
84684         (_REG_BADBR): Renamed from REG_BADBR.
84685         (_REG_ERANGE): Renamed from REG_ERANGE.
84686         (_REG_ESPACE): Renamed from REG_ESPACE.
84687         (_REG_BADRPT): Renamed from REG_BADRPT.
84688         (_REG_EEND): Renamed from REG_EEND.
84689         (_REG_ESIZE): Renamed from REG_ESIZE.
84690         (_REG_ERPAREN): Renamed from REG_ERPAREN.
84691         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
84692         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
84693         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
84694         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
84695
84696         (_REG_RE_NAME, _REG_RM_NAME): New macros.
84697         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
84698         changed.  But support the old name if the new one is not defined
84699         and if _REGEX_SOURCE.
84700
84701         Change the following member names in struct re_pattern_buffer.
84702         The old names are still supported if !_REGEX_SOURCE.
84703         The new names are always supported, regardless of _REGEX_SOURCE.
84704         (re_buffer): Renamed from buffer.
84705         (re_allocated): Renamed from allocated.
84706         (re_used): Renamed from used.
84707         (re_syntax): Renamed from syntax.
84708         (re_fastmap): Renamed from fastmap.
84709         (re_translate): Renamed from translate.
84710         (re_can_be_null): Renamed from can_be_null.
84711         (re_regs_allocated): Renamed from regs_allocated.
84712         (re_fastmap_accurate): Renamed from fastmap_accurate.
84713         (re_no_sub): Renamed from no_sub.
84714         (re_not_bol): Renamed from not_bol.
84715         (re_not_eol): Renamed from not_eol.
84716         (re_newline_anchor): Renamed from newline_anchor.
84717
84718         Change the following member names in struct re_registers.
84719         The old names are still supported if !_REGEX_SOURCE.
84720         The new names are always supported, regardless of _REGEX_SOURCE.
84721         (rm_num_regs): Renamed from num_regs.
84722         (rm_start): Renamed from start.
84723         (rm_end): Renamed from end.
84724
84725         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
84726         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
84727         Prepend __ to parameter names.
84728
84729         Undo yesterday's changes.
84730
84731 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84732
84733         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
84734         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
84735         lib/regex.c.
84736
84737 2005-08-24  Jim Meyering  <jim@meyering.net>
84738
84739         Sync from coreutils.
84740         * m4/fcntl-safer.m4: New file.
84741
84742         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
84743         and object files for this module.
84744
84745 2005-08-24  Jim Meyering  <jim@meyering.net>
84746
84747         Sync from coreutils.
84748         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
84749
84750 2005-08-24  Jim Meyering  <jim@meyering.net>
84751
84752         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
84753         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
84754
84755 2005-08-24  Jim Meyering  <jim@meyering.net>
84756
84757         * modules/fcntl-safer: New module.
84758         * modules/fts (Depends-on): Add fcntl-safer.
84759         * MODULES.html.sh (File descriptor based Input/Output):
84760         Add fcntl-safer.
84761
84762 2005-08-24  Bruno Haible  <bruno@clisp.org>
84763
84764         Support for unit test modules.
84765         * modules/README: Mention tests modules.
84766         * modules/TEMPLATE-TESTS: New file.
84767         * gnulib-tool: New options --extract-tests-module, --with-tests and
84768         --tests-base (unused for the moment).
84769         (testsbase, inctests): New variables.
84770         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
84771         (func_verify_module): Exclude TEMPLATE-TESTS.
84772         (func_verify_nontests_module, func_verify_tests_module): New functions.
84773         (func_get_dependencies): Add implicit dependency for tests modules.
84774         (func_get_tests_module): New function.
84775         (func_modules_transitive_closure): When --with-tests was specified,
84776         include the unit tests as well, unless explicitly avoided.
84777         (func_emit_lib_Makefile_am): Ignore the tests modules here.
84778         (func_emit_tests_Makefile_am): New function.
84779         (func_create_testdir): When --with-tests was specified, emit a
84780         tests/ directory.
84781         * MODULES.html.sh (Future developments): Update.
84782
84783 2005-08-24  Bruno Haible  <bruno@clisp.org>
84784
84785         * modules/tls-tests: New file.
84786         * tests/test-tls.c: New file, from GNU gettext.
84787
84788 2005-08-24  Bruno Haible  <bruno@clisp.org>
84789
84790         * modules/lock-tests: New file.
84791         * tests/test-lock.c: New file, from GNU gettext.
84792
84793 2005-08-24  Bruno Haible  <bruno@clisp.org>
84794
84795         * lib/lock.h: Add multiple inclusion guard.
84796         * lib/tls.h: Add multiple inclusion guard.
84797
84798 2005-08-24  Bruno Haible  <bruno@clisp.org>
84799
84800         * gnulib-tool: Add support for the --aux-dir option to
84801         --create-testdir, --create-megatestdir, --test, --megatest.
84802         (func_create_testdir, func_create_megatestdir): Optionally emit a
84803         AC_CONFIG_AUX_DIR directive.
84804         (create-testdir, create-megatestdir, test, megatest): Provide a
84805         default value for $auxdir.
84806
84807 2005-08-24  Bruno Haible  <bruno@clisp.org>
84808
84809         * gnulib-tool (import): Use compound statement instead of subshell
84810         where possible.
84811
84812 2005-08-24  Bruno Haible  <bruno@clisp.org>
84813
84814         * gnulib-tool (import): Change --aux-dir default to "build-aux".
84815
84816 2005-08-24  Bruno Haible  <bruno@clisp.org>
84817
84818         * gnulib-tool (func_version): Update.
84819
84820 2005-08-24  Bruno Haible  <bruno@clisp.org>
84821
84822         * gnulib-tool (func_import, func_create_testdir,
84823         func_create_megatestdir): Quote all autoconf macro arguments.
84824
84825 2005-08-24  Bruno Haible  <bruno@clisp.org>
84826
84827         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
84828         option --force, because --force causes the aclocal.m4 of each
84829         subdirectory to be newer than the corresponding config.h.in.
84830
84831 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84832
84833         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
84834         All contents moved to gl_REGEX.
84835         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
84836         assume that it does.
84837
84838 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84839
84840         * lib/regex.h (REG_NOSYS)
84841         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
84842         Define, since POSIX requires it as of 2001.
84843         (_REG_ENOSYS)
84844         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
84845         New private symbol, used to keep the enum signed in all cases.
84846         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
84847         Youngman in
84848         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
84849
84850         * lib/regex_internal.c (re_string_skip_chars, register_state):
84851         (calc_state_hash):
84852         Remove forward decls; no longer needed now that we use prototypes.
84853         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
84854         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
84855         (clean_state_log_if_needed): Likewise.
84856
84857 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84858
84859         * config/srclist.txt: Add glibc bugs 1231-1233.
84860
84861 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84862
84863         Fix problems reported by Sam Steingold in
84864         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
84865         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
84866         assumed that reg_errcode_t is a signed type, which is not
84867         necessarily true if _XOPEN_SOURCE is not defined.
84868         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
84869         since some compilers warn about it otherwise.
84870
84871 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84872
84873         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
84874         (init_word_char, create_initial_state, duplicate_node_closure):
84875         (fetch_token, peek_token_bracket, build_range_exp):
84876         (build_collating_symbol): Remove forward decls; no longer needed
84877         now that we use prototypes.
84878
84879         * lib/regcomp.c:
84880         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
84881         (re_compile_fastmap_iter, regcomp, regerror, regfree):
84882         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
84883         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
84884         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
84885         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
84886         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
84887         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
84888         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
84889         (build_range_exp, build_collating_symbol, parse_bracket_exp):
84890         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
84891         (build_charclass, build_charclass_op, fetch_number, create_tree):
84892         (create_token_tree, mark_opt_subexp, duplicate_tree):
84893         Use prototypes rather than old-style definitions.
84894
84895         * lib/regex_internal.c:
84896         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
84897         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
84898         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84899         (re_string_reconstruct, re_string_peek_byte_case):
84900         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
84901         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84902         (re_node_set_init_copy, re_node_set_add_intersect):
84903         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84904         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84905         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84906         (re_acquire_state, re_acquire_state_context, register_state):
84907         (create_ci_newstate, create_cd_newstate, free_state):
84908         Likewise.
84909         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
84910         re_search_2):
84911         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
84912         (re_search_internal, prune_impossible_nodes):
84913         (acquire_init_state_context, check_matching, static):
84914         (check_halt_node_context, check_halt_state_context, proceed_next_node):
84915         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
84916         (update_regs, sift_states_backward, build_sifted_states):
84917         (clean_state_log_if_needed, merge_state_array):
84918         (update_cur_sifted_state, add_epsilon_src_nodes):
84919         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
84920         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
84921         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
84922         (find_recover_state, check_subexp_matching_top, transit_state_mb):
84923         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
84924         (check_arrival, check_arrival_add_next_nodes):
84925         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84926         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84927         (check_node_accept_bytes, check_node_accept, extend_buffers):
84928         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
84929         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
84930         (sift_ctx_init):
84931         Likewise.
84932
84933         * lib/regex_internal.h:
84934         (re_string_allocate, re_string_construct, re_string_reconstruct):
84935         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
84936         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
84937         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
84938         (re_string_context_at, re_string_peek_byte_case):
84939         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
84940         is defined, since we now use prototypes always.
84941
84942         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
84943         C89 or better.  All uses removed.
84944
84945 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84946
84947         * config/srclist.txt: Add glibc bugs 1220-1227.
84948
84949 2005-08-20  Jim Meyering  <jim@meyering.net>
84950
84951         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
84952         of unused local, dfa.
84953
84954 2005-08-20  Bruno Haible  <bruno@clisp.org>
84955
84956         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
84957
84958 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84959
84960         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
84961         (re_node_set_insert_last, re_dfa_add_node):
84962         Rename local variables to avoid GCC shadowing warnings.
84963
84964 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84965
84966         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
84967         [defined lint]: Suppress bogus uninitialized-variable warnings.
84968
84969         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
84970         and let the caller return REG_ESPACE if out of space.  This
84971         removes an uninitialied-variable warning with GCC 4.0.1, and also
84972         avoids taking the address of a local variable.  All callers
84973         changed.
84974
84975 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84976
84977         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
84978         $LIBCSRC/posix/regexec.c.
84979         Add glibc bug 1217 for regcomp.c.
84980
84981 2005-08-19  Jim Meyering  <jim@meyering.net>
84982
84983         * lib/regexec.c (proceed_next_node): Redo local variables to
84984         avoid GCC shadowing warnings.
84985
84986 2005-08-18  Bruno Haible  <bruno@clisp.org>
84987
84988         * lib/strstr.c (strstr): Fix return value in multibyte case.
84989         * lib/strcasestr.c (strcasestr): Likewise.
84990
84991 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84992
84993         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
84994
84995 2005-08-17  Jim Meyering  <jim@meyering.net>
84996
84997         Make the %s format (seconds since the epoch) work for a negative
84998         number and when used with a zero-padded field width, e.g. %015s.
84999
85000         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
85001         label so that it precedes the code to set `digits'.  Otherwise,
85002         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
85003         print `00-22'.  Now, it prints `-0022', as it should.
85004
85005 2005-08-17  Bruno Haible  <bruno@clisp.org>
85006
85007         * modules/strstr (Files): Add m4/mbrtowc.m4.
85008         (Depends-on): Add mbuiter.
85009
85010 2005-08-17  Bruno Haible  <bruno@clisp.org>
85011
85012         * modules/strcasestr: New file.
85013         * MODULES.html.sh (String handling, based on ANSI C 89): Add
85014         strcasestr.
85015
85016 2005-08-17  Bruno Haible  <bruno@clisp.org>
85017
85018         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
85019
85020 2005-08-17  Bruno Haible  <bruno@clisp.org>
85021
85022         * modules/mbuiter: New file.
85023         * MODULES.html.sh (Extended multibyte and wide character utilities):
85024         Add mbuiter.
85025
85026 2005-08-17  Bruno Haible  <bruno@clisp.org>
85027
85028         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
85029         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
85030
85031 2005-08-17  Bruno Haible  <bruno@clisp.org>
85032
85033         * m4/strcasestr.m4: New file.
85034
85035 2005-08-17  Bruno Haible  <bruno@clisp.org>
85036
85037         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
85038         * lib/strstr.c: Completely rewritten, with multibyte locale support.
85039
85040 2005-08-17  Bruno Haible  <bruno@clisp.org>
85041
85042         * lib/strcasestr.h: New file.
85043         * lib/strcasestr.c: New file.
85044
85045 2005-08-17  Bruno Haible  <bruno@clisp.org>
85046
85047         * lib/strcasecmp.c: Use mbuiter.h.
85048
85049 2005-08-17  Bruno Haible  <bruno@clisp.org>
85050
85051         * lib/mbuiter.h: New file.
85052
85053 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
85054
85055         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
85056         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
85057         and gl_GETOPT are both invoked via different paths (as happens
85058         with GNU tar CVS because it uses both argp and getopt), the former
85059         wins.
85060
85061 2005-08-16  Bruno Haible  <bruno@clisp.org>
85062
85063         * modules/tls: New file.
85064         * MODULES.html.sh (Multithreading): Add tls.
85065
85066 2005-08-16  Bruno Haible  <bruno@clisp.org>
85067
85068         * modules/strnlen1: New file.
85069         * MODULES.html.sh (String handling): Add strnlen1.
85070
85071 2005-08-16  Bruno Haible  <bruno@clisp.org>
85072
85073         * modules/strcase (Files): Add m4/mbrtowc.m4.
85074         (Depends-on): Add strnlen1, mbchar.
85075
85076 2005-08-16  Bruno Haible  <bruno@clisp.org>
85077
85078         * modules/mbiter: New file.
85079         * MODULES.html.sh (Extended multibyte and wide character utilities):
85080         Add mbiter.
85081
85082 2005-08-16  Bruno Haible  <bruno@clisp.org>
85083
85084         * modules/mbfile: New file.
85085         * MODULES.html.sh (Extended multibyte and wide character utilities):
85086         Add mbfile.
85087
85088 2005-08-16  Bruno Haible  <bruno@clisp.org>
85089
85090         * modules/mbchar: New file.
85091         * MODULES.html.sh (Extended multibyte and wide character utilities):
85092         New section.
85093
85094 2005-08-16  Bruno Haible  <bruno@clisp.org>
85095
85096         * m4/tls.m4: New file, from GNU gettext.
85097
85098 2005-08-16  Bruno Haible  <bruno@clisp.org>
85099
85100         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
85101         always.
85102         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
85103
85104 2005-08-16  Bruno Haible  <bruno@clisp.org>
85105
85106         * m4/mbiter.m4: New file.
85107
85108 2005-08-16  Bruno Haible  <bruno@clisp.org>
85109
85110         * m4/mbfile.m4: New file.
85111
85112 2005-08-16  Bruno Haible  <bruno@clisp.org>
85113
85114         * m4/mbchar.m4: New file.
85115
85116 2005-08-16  Bruno Haible  <bruno@clisp.org>
85117
85118         * lib/tls.h: New file, from GNU gettext.
85119         * lib/tls.c: New file, from GNU gettext.
85120
85121 2005-08-16  Bruno Haible  <bruno@clisp.org>
85122
85123         * lib/strnlen1.h: New file.
85124         * lib/strnlen1.c: New file.
85125
85126 2005-08-16  Bruno Haible  <bruno@clisp.org>
85127
85128         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
85129         (mbi_init): Update.
85130         (mbi_avail, mbi_advance): Let the iteration end before the terminating
85131         NUL byte, not after it.
85132
85133 2005-08-16  Bruno Haible  <bruno@clisp.org>
85134
85135         * lib/strcase.h (strcasecmp): Add note in comments.
85136         * lib/strncasecmp.c: Use code from strcasecmp.c.
85137         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
85138         (strcasecmp): Work correctly in multibyte locales.
85139
85140 2005-08-16  Bruno Haible  <bruno@clisp.org>
85141
85142         * lib/mbiter.h: New file.
85143
85144 2005-08-16  Bruno Haible  <bruno@clisp.org>
85145
85146         * lib/mbfile.h: New file.
85147
85148 2005-08-16  Bruno Haible  <bruno@clisp.org>
85149
85150         * lib/mbchar.h: New file.
85151         * lib/mbchar.c: New file.
85152
85153 2005-08-16  Bruno Haible  <bruno@clisp.org>
85154
85155         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
85156         the valid ones. Makes the comparison operations transitive:
85157         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
85158         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
85159
85160 2005-08-15  Simon Josefsson  <jas@extundo.com>
85161
85162         * modules/ssize_t (License): Change to 'unlimited'.
85163
85164         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
85165
85166 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
85167
85168         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
85169         Add comments for each pending glibc patch.
85170
85171 2005-08-15  Bruno Haible  <bruno@clisp.org>
85172
85173         * lib/regex.h (__restrict_arr): Don't define to __restrict if
85174         __cplusplus is defined.
85175
85176 2005-08-14  Jim Meyering  <jim@meyering.net>
85177
85178         Sync from coreutils.
85179
85180         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
85181         Use the hash-table-based cycle-detection code not just when
85182         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
85183         Reported by James Youngman in
85184         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
85185         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
85186         FTS_TIGHT_CYCLE_CHECK.
85187         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
85188         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
85189         once again.
85190         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
85191         * lib/fts.c (fd_safer): Remove decl.
85192         Include fcntl--.h rather than unistd-safer.h
85193         (fts_safe_changedir): Don't call fd_safer; no longer needed
85194         now that we include fcntl--.h.
85195
85196 2005-08-12  Simon Josefsson  <jas@extundo.com>
85197
85198         * modules/getndelim2: Use ssize_t module.
85199         * modules/getnline: Likewise.
85200         * modules/safe-read: Likewise.
85201         * modules/xreadlink: Likewise.
85202
85203         * modules/ssize_t: New file.
85204
85205 2005-08-12  Simon Josefsson  <jas@extundo.com>
85206
85207         * m4/readline.m4: Look for termcap, curses or ncurses if required.
85208
85209 2005-08-12  Simon Josefsson  <jas@extundo.com>
85210
85211         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85212         ssize_t.
85213
85214 2005-08-12  Simon Josefsson  <jas@extundo.com>
85215
85216         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
85217         readline, getdelim and check_version.
85218         (Support for systems lacking ISO C 99: Sizes of integer types):
85219         Add size_max.
85220
85221 2005-08-12  Bruno Haible  <bruno@clisp.org>
85222
85223         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
85224
85225 2005-08-11  Simon Josefsson  <jas@extundo.com>
85226
85227         * modules/readline: New file.
85228
85229         * modules/strnlen (Files): Add strnlen.h.
85230
85231 2005-08-11  Simon Josefsson  <jas@extundo.com>
85232
85233         * m4/readline.m4: New file.
85234
85235 2005-08-11  Simon Josefsson  <jas@extundo.com>
85236
85237         * lib/readline.h, readline.c: New file.
85238
85239 2005-08-11  Simon Josefsson  <jas@extundo.com>
85240
85241         * doc/gnulib.texi (Initial import, Finishing touches): Mention
85242         gl_AVOID.
85243
85244 2005-08-11  Bruno Haible  <bruno@clisp.org>
85245
85246         * lib/strnlen.h (strnlen): Change parameter name to match comment.
85247
85248 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
85249
85250         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
85251
85252 2005-08-10  Simon Josefsson  <jas@extundo.com>
85253
85254         * tests/test-iconvme.c: New file.
85255
85256 2005-08-10  Simon Josefsson  <jas@extundo.com>
85257
85258         * m4/strnlen.m4: New file.
85259
85260         * m4/strndup.m4: Don't check for strnlen declaration, done in
85261         strnlen.m4.
85262
85263 2005-08-10  Simon Josefsson  <jas@extundo.com>
85264
85265         * lib/strndup.c: Use strnlen.h.
85266
85267         * lib/strnlen.h: New file.
85268
85269 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85270
85271         * README: Typos.
85272
85273 2005-08-02  Simon Josefsson  <jas@extundo.com>
85274
85275         * modules/readline: New file.
85276
85277 2005-08-02  Simon Josefsson  <jas@extundo.com>
85278
85279         * modules/getdelim: New file.
85280
85281         * modules/getline: Rewrite, don't use getndelim2.
85282
85283 2005-08-02  Simon Josefsson  <jas@extundo.com>
85284
85285         * m4/getline.m4: Separate out getdelim stuff into separate module.
85286
85287         * m4/getdelim.m4: New file.
85288
85289 2005-08-02  Simon Josefsson  <jas@extundo.com>
85290
85291         * lib/getline.h, getline.c: Rewrite.
85292
85293         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
85294
85295 2005-07-31  Bruno Haible  <bruno@clisp.org>
85296
85297         * lib/lock.h (gl_lock_initializer): New macro.
85298         (gl_lock_define_initialized): Use it.
85299         (gl_rwlock_initializer): New macro.
85300         (gl_rwlock_define_initialized): Use it.
85301         (gl_recursive_lock_initializer): New macro.
85302         (gl_recursive_lock_define_initialized): Use it.
85303
85304 2005-07-30  Karl Berry  <karl@gnu.org>
85305
85306         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
85307         Report from Ben Pfaff, regarding getopt.
85308
85309 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
85310
85311         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
85312         normal way.
85313         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
85314         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
85315         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
85316         (gl_GETOPT): Use the new macros.  Most of the implementation
85317         is moved to the new macros.  This is for programs like Emacs
85318         that don't want all the functionality of gl_GETOPT.
85319
85320 2005-07-26  Bruno Haible  <bruno@clisp.org>
85321
85322         * m4/lock.m4: Update from GNU gettext.
85323
85324 2005-07-26  Bruno Haible  <bruno@clisp.org>
85325
85326         * lib/lock.h: Update from GNU gettext.
85327         * lib/lock.c: Update from GNU gettext.
85328
85329 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
85330
85331         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
85332         obsolescent AC_TRY_RUN.  Include the default includes files, for
85333         'exit'.
85334
85335 2005-07-24  Bruno Haible  <bruno@clisp.org>
85336
85337         * modules/visibility: New file.
85338         * MODULES.html.sh (Misc): Add visibility.
85339
85340 2005-07-24  Bruno Haible  <bruno@clisp.org>
85341
85342         * m4/visibility.m4: New file.
85343
85344 2005-07-24  Bruno Haible  <bruno@clisp.org>
85345
85346         * doc/visibility.texi: New file.
85347
85348 2005-07-22  Bruno Haible  <bruno@clisp.org>
85349
85350         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
85351         $(ALLOCA_H), redundant through BUILT_SOURCES.
85352         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
85353         redundant through BUILT_SOURCES.
85354         * modules/byteswap (Makefile.am): Remove explicit dependency on
85355         $(BYTESWAP_H), redundant through BUILT_SOURCES.
85356         * modules/fnmatch (Makefile.am): Remove explicit dependency on
85357         $(FNMATCH_H), redundant through BUILT_SOURCES.
85358         * modules/getopt (Makefile.am): Remove explicit dependency on
85359         $(GETOPT_H), redundant through BUILT_SOURCES.
85360         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
85361         redundant through BUILT_SOURCES.
85362         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
85363         redundant through BUILT_SOURCES.
85364         * modules/stdbool (Makefile.am): Remove explicit dependency on
85365         $(STDBOOL_H), redundant through BUILT_SOURCES.
85366         * modules/stdint (Makefile.am): Remove explicit dependency on
85367         $(STDINT_H), redundant through BUILT_SOURCES.
85368         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
85369         Remove explicit dependency on $(SYSEXITS_H).
85370         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
85371
85372 2005-07-18  Simon Josefsson  <jas@extundo.com>
85373
85374         * lib/check-version.c (check_version): Accept identical versions too.
85375
85376 2005-07-18  Bruno Haible  <bruno@clisp.org>
85377
85378         * modules/lock: New file.
85379         * MODULES.html.sh (Multithreading): New section.
85380
85381 2005-07-18  Bruno Haible  <bruno@clisp.org>
85382
85383         * m4/lock.m4: New file, from GNU gettext.
85384
85385 2005-07-18  Bruno Haible  <bruno@clisp.org>
85386
85387         * lib/lock.h: New file, from GNU gettext.
85388         * lib/lock.c: New file, from GNU gettext.
85389
85390 2005-07-18  Bruno Haible  <bruno@clisp.org>
85391
85392         * lib/lock.h (gl_once_t): New type.
85393         (gl_once_define, gl_once): New macros.
85394         * lib/lock.c (fresh_once): New variable.
85395         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
85396         functions.
85397
85398 2005-07-16  Simon Josefsson  <jas@extundo.com>
85399
85400         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
85401         workaround, suggested by Bruno.
85402
85403 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85404
85405         * modules/xalloc (Depends-on): Add xalloc-die.
85406         * modules/xvasprintf (Depends-on): Add xalloc-die.
85407
85408 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85409
85410         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
85411         with a minor change.
85412
85413 2005-07-15  Bruno Haible  <bruno@clisp.org>
85414
85415         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
85416         When using lib/poll.c, define poll as rpl_poll.
85417
85418 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
85419
85420         * modules/argp (Depends-on): Remove unlocked-io.
85421
85422 2005-07-14  Derek Price  <derek@ximbiot.com>
85423
85424         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
85425         for glob symlink bug.
85426
85427 2005-07-14  Bruno Haible  <bruno@clisp.org>
85428
85429         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
85430         Instead, test for *_unlocked function declarations directly.
85431
85432 2005-07-11  Simon Josefsson  <jas@extundo.com>
85433
85434         * modules/size_max: New file.
85435
85436         * modules/xsize: Depend on size_max module for size_max.m4.
85437
85438 2005-07-11  Simon Josefsson  <jas@extundo.com>
85439
85440         * lib/size_max.h: New file.
85441
85442 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
85443
85444         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
85445         copyright symbol and the year.
85446         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
85447         (version_etc_va): Use parameterized copyright notice.
85448         Reword to conform to the current GNU coding standards.
85449
85450 2005-07-11  Karl Berry  <karl@gnu.org>
85451
85452         * doc/gnulib.texi (Quoting): new node.
85453         (Initial import): more info, from Patrice.
85454
85455 2005-07-11  Bruno Haible  <bruno@clisp.org>
85456
85457         * gnulib-tool (func_usage): Document option --avoid.
85458         (Command line options): Handle --avoid.
85459         (func_acceptable): New function.
85460         (func_modules_transitive_closure): Use it.
85461
85462 2005-07-11  Bruno Haible  <bruno@clisp.org>
85463
85464         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
85465         Reported by Jim Meyering.
85466
85467 2005-07-10  Bruno Haible  <bruno@clisp.org>
85468
85469         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
85470         Needed when size_t is smaller than 'unsigned int'.
85471         Reported by Paul Eggert.
85472
85473 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85474
85475         * modules/argp (Depends-on): Add unlocked-io
85476
85477 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85478
85479         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
85480         block of defines.
85481
85482 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
85483
85484         * config/srclist.txt: Comment out regcomp.c, since we have a porting
85485         fix now.
85486
85487 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
85488         and Paul Eggert  <eggert@cs.ucla.edu>
85489
85490         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
85491         in wint_t, not wchar_t.  Remove now-unnecessary cast.
85492
85493 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85494
85495         * modules/regex (Files): Add lib/regex_internal.c,
85496         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
85497         (Depends-on): Add extensions.
85498         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
85499
85500 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85501
85502         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
85503         pathconf.
85504         * m4/same.m4 (gl_SAME): Likewise.
85505         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
85506
85507         * m4/regex.m4: Adjust to new libc regex implementation.
85508         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
85509         all the .c and .h parts of (the new) regex.
85510         Quote the m4 stuff better.
85511         Check for RE_ICASE bug of old gnulib.
85512         Check for REG_STARTEND of recent libc.
85513         Rename local variables from jm_* to gl_*.
85514         Quote operand of "test -f".
85515         Say "recent enough" version of libc, not "version 2".
85516         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
85517         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
85518         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
85519         Remove check for btowc, isascii.
85520         Require AM_LANGINFO_CODESET.
85521
85522 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85523
85524         * lib/regex.c, regex.h: Sync from libc.
85525         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
85526         * lib/regexec.c:
85527         New files, synced from libc, except that regex_internal.h
85528         currently has a small porting fix.
85529
85530 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85531
85532         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
85533         regex_internal.c, regexec.c.
85534         Add regex_internal.h too, but as a comment, since the libc version
85535         is currently broken in gnulib mode.
85536
85537 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
85538
85539         Support programs like Emacs that use gnulib but not gettext.
85540         * MODULES.html.sh (Internationalization functions): Add gettext-h.
85541         * modules/gettext-h: New file.
85542         * modules/gettext (Files): Remove lib/gettext.h.
85543         (Depends-on): Add gettext-h.
85544         (Makefile.am): Remove lib_SOURCES.
85545         * modules/argmatch, modules/c-stack, modules/closeout:
85546         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
85547         * modules/execute, modules/file-type, modules/getaddrinfo:
85548         * modules/getopt, modules/human, modules/javacomp:
85549         * modules/javaexec, modules/mkdir-p, modules/obstack:
85550         * modules/openat, modules/pagealign_alloc, modules/pipe:
85551         * modules/quotearg, modules/regex, modules/rpmatch:
85552         * modules/unicodeio, modules/userspec, modules/version-etc:
85553         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
85554         * modules/xsetenv:
85555         Depend on gettext-h, not gettext.
85556
85557 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
85558
85559         * gnulib-tool (func_import): Add support for 'public domain' license.
85560         * modules/alloca, modules/atexit, modules/memmove:
85561         Now public domain, not GPL.
85562         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
85563         * modules/realloc, modules/strerror, modules/strtod:
85564         Now LGPL, not GPL.
85565
85566 2005-07-05  Bruno Haible  <bruno@clisp.org>
85567
85568         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
85569         autoconf CVS. Needed for mingw.
85570
85571 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85572
85573         Remove the dependency of the strftime module on the tzset module.
85574         * modules/strftime (Depends-on): Remove dependency on tzset.
85575
85576 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85577
85578         Remove the dependency of the strftime module on the tzset module.
85579         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
85580         gl_FUNC_TZSET_CLOBBER.
85581
85582 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85583
85584         Remove the dependency of the strftime module on the tzset module.
85585         * lib/strftime.c (my_strftime)
85586         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
85587         Copy the input structure, to work around some of the bug with
85588         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
85589         Solaris releases, you should also use the tzset module, but we won't
85590         require it as a dependency any more since we don't want LGPLed code
85591         to depend on GPLed code.
85592
85593 2005-07-02  Jim Meyering  <jim@meyering.net>
85594
85595         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
85596         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
85597         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
85598         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
85599
85600 2005-07-02  Jim Meyering  <jim@meyering.net>
85601
85602         * lib/backupfile.c (backup_args): Change a `0' to NULL.
85603
85604 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
85605
85606         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
85607         declares only 'struct timespec;' (!).
85608
85609 2005-07-01  Jim Meyering  <jim@meyering.net>
85610
85611         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
85612         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
85613         * lib/save-cwd.c, tempname.c:
85614         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85615         and don't include <sys/file.h>).
85616
85617 2005-06-29  Jim Meyering  <jim@meyering.net>
85618
85619         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
85620         type name.  Use the variable name instead.
85621         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
85622         Likewise.
85623
85624 2005-06-28  Simon Josefsson  <jas@extundo.com>
85625
85626         * modules/check-version (Files): Add check-version.m4.
85627
85628 2005-06-28  Simon Josefsson  <jas@extundo.com>
85629
85630         * m4/check-version.m4: New file, suggested by Jim Meyering
85631         <jim@meyering.net>.
85632
85633 2005-06-28  Simon Josefsson  <jas@extundo.com>
85634
85635         * lib/check-version.h, lib/check-version.c: New files.
85636
85637 2005-06-28  Simon Josefsson  <jas@extundo.com>
85638
85639         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
85640         collision with global variable.  Better indentation.  Don't
85641         increment buffer pointer beyond buffer end.  Based on comments
85642         from Paul Eggert <eggert@cs.ucla.edu>.
85643
85644         * lib/base64.h: Indent.
85645
85646 2005-06-28  Simon Josefsson  <jas@extundo.com>
85647
85648         * doc/gnulib.texi (Library version handling): New section.
85649
85650 2005-06-28  Jim Meyering  <jim@meyering.net>
85651
85652         * check-module (find_included_lib_files): Hard-code another
85653         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
85654         but modules/fts-lgpl (correctly) does not list those files.
85655
85656         * modules/canonicalize (Files): Add lib/pathmax.h.
85657
85658 2005-06-25  Simon Josefsson  <jas@extundo.com>
85659
85660         * modules/check-version: New file.
85661
85662 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
85663
85664         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
85665         initializer of struct addrinfo, as an indication that we don't
85666         care how many members the structure has.
85667
85668 2005-06-24  Derek Price  <derek@ximbiot.com>
85669         and Bruno Haible  <bruno@clisp.org>
85670
85671         Remove stat module & update lstat.
85672         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
85673         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85674         * m4/stat.m4: Remove this file.
85675
85676 2005-06-24  Derek Price  <derek@ximbiot.com>
85677         and Bruno Haible  <bruno@clisp.org>
85678
85679         Remove stat module & update lstat.
85680         * lib/stat.c: Remove this file...
85681         (slash_aware_lstat): ...moving this content and its support...
85682         * lib/lstat.c (rpl_lstat): ...into here.
85683         * lib/lstat.h: New file.
85684
85685 2005-06-24  Derek Price  <derek@ximbiot.com>
85686         and Bruno Haible  <bruno@clisp.org>
85687
85688         Remove stat module & update lstat.
85689         * config/srclist.txt (libc sources): Remove stat.
85690
85691 2005-06-24  Derek Price  <derek@ximbiot.com>
85692         and Bruno Haible  <bruno@clisp.org>
85693
85694         Remove stat module & update lstat.
85695         * MODULES.html.sh (stat): Remove.
85696         * MODULES.html: Regenerated.
85697         * modules/lstat (Description): Correct function name.
85698         (Files): Add "lstat.h".
85699         (Depends-on): Remove stat, add xalloc, stat-macros.
85700         * modules/stat: Remove this file.
85701         (Include): Add "lstat.h", remove <sys/stat.h>.
85702
85703 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
85704
85705         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
85706         (ranged_convert): Don't save conversion in a temporary struct.
85707         This causes a warning with GCC 4.0.0, and anyway in the typical
85708         case it's not worth the extra 100 bytes or so of code.
85709         (ranged_convert, __mktime_internal): When calling a function via a
85710         pointer P, use P () rather than (*P) (), as we now assume C89 or
85711         better.
85712
85713 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85714
85715         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
85716         "who -r" failed to give output.  Problem reported by Tim Waugh.
85717
85718         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
85719         (xcalloc): Use it to avoid needless tests.
85720         Problem reported by Jim Meyering.
85721
85722 2005-06-20  Derek Price  <derek@ximbiot.com>
85723
85724         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
85725         unnecessary for Autoconfs > 2.59c.
85726
85727 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85728
85729         * lib/argp.h (__option_is_short): Check upper limit of
85730         __key. Isprint() requires its argument to have the value
85731         of an unsigned char or EOF.
85732
85733 2005-06-16  Jim Meyering  <jim@meyering.net>
85734
85735         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
85736         when either N or S is zero.
85737
85738 2005-06-16  Derek Price  <derek@ximbiot.com>
85739
85740         * m4/bison.m4: Declare YACC & YFLAGS precious.
85741
85742 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
85743
85744         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
85745         multibyte string or pattern, fall back on unibyte matching.
85746         Problem reported by James Youngman.
85747
85748 2005-06-08  Bruno Haible  <bruno@clisp.org>
85749
85750         * modules/csharpcomp: New file.
85751         * MODULES.html.sh (C#): Add csharpcomp.
85752
85753 2005-06-08  Bruno Haible  <bruno@clisp.org>
85754
85755         * m4/csharpcomp.m4: New file, from GNU gettext.
85756
85757 2005-06-08  Bruno Haible  <bruno@clisp.org>
85758
85759         * lib/csharpcomp.h: New file, from GNU gettext.
85760         * lib/csharpcomp.c: New file, from GNU gettext.
85761         * lib/csharpcomp.sh.in: New file, from GNU gettext.
85762
85763 2005-06-08  Bruno Haible  <bruno@clisp.org>
85764
85765         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
85766         warning on mingw.
85767
85768 2005-06-07  Derek Price  <derek@ximbiot.com>
85769
85770         Sync from CVS.
85771         * lib/glob_.h: Indent nested #ifdef.
85772
85773 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85774
85775         Sync from coreutils.
85776         Use "file name" when talking about file names, instead of "filename"
85777         or "path", as per the GNU coding standards.
85778         * lib/mkdir-p.c: Renamed from makepath.c.
85779         (make_dir_parents): Renamed from make_path.  All callers changed.
85780         * lib/mkdir-p.h: Likewise.  All includers changed.
85781         * lib/filenamecat.c: Renamed from path-concat.c.
85782         (file_name_concat): Renamed from path_concat.  All callers changed.
85783         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
85784         * lib/filenamecat.h: Likewise.  All includers changed.
85785         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
85786         in comments or local variable names.
85787         * lib/basename.c: Likewise.
85788         * lib/canonicalize.c, canonicalize.h: Likewise.
85789         * lib/dirname.c, dirname.h: Likewise.
85790         * lib/euidaccess.c: Likewise.
85791         * lib/exclude.c: Likewise
85792         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
85793         * lib/fsusage.c, fsuage.h: Likewise.
85794         * lib/fts.c, fts_.h: Likewise.
85795         * lib/getcwd.c: Likewise.
85796         * lib/getloadavg.c: Likewise.
85797         * lib/mkstemp.c: Likewise.
85798         * lib/mountlist.c, mountlist.h: Likewise.
85799         * lib/openat.c, openat.h: Likewise.
85800         * lib/readlink-stub.c: Likewise.
85801         * lib/readutmp.c, readutmp.h: Likewise.
85802         * lib/rename.c: Likewise.
85803         * lib/rmdir.c: Likewise.
85804         * lib/same.c: Likewise.
85805         * lib/savedir.c: Likewise.
85806         * lib/stripslash.c: Likewise.
85807         * lib/tempname.c: Likewise.
85808         * lib/xreadlink.c: Likewise.
85809         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
85810         All uses changed.
85811         * lib/exclude.h: Likewise.
85812
85813         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
85814         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85815         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
85816         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85817         * lib/pathmax.h: Include <limits.h> unconditionally, since other
85818         files have been getting away with it for years (MORE/BSD 4.3
85819         is extinct now).
85820         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
85821         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85822
85823         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
85824         Define to 256, not 255, as per modern POSIX.
85825
85826 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85827
85828         Sync from coreutils.
85829         Use "file name" when talking about file names, instead of "filename"
85830         or "path", as per the GNU coding standards.
85831         * MODULES.html.sh: mkdir-p renamed from makepath.
85832         filenamecat renamed from path-concat.
85833         * modules/filenamecat: Renamed from modules/path-concat.
85834         (Files): filenamecat.h and filenamecat.c renamed from
85835         path-concat.h and path-concat.c.
85836         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
85837         (Include): filenamecat.h, not path-concat.h.
85838         * modules/mkdir-p: Renamed from modules/makepath.
85839         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
85840         makepath.c.
85841         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
85842         (Include): mkdir-p.h, not makepath.h.
85843
85844 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85845
85846         Sync from coreutils.
85847         * m4/mkdir-p.m4: Renamed from makepath.m4.
85848         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
85849         Rename files from makepath.c to mkdir-p.c, and from
85850         makepath.h to mkdir-p.h.
85851         * m4/filenamecat.m4: Renamed from path-concat.m4.
85852         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
85853         Rename files from path-concat.c to filenamecat.c,
85854         and from path-concat.h to filenamecat.h.
85855         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
85856         "file name" in local variables or comments.
85857         * m4/rename.m4: Likewise.
85858
85859 2005-06-01  Bruno Haible  <bruno@clisp.org>
85860
85861         * modules/csharpexec: New file.
85862         * MODULES.html.sh (C#): New section.
85863
85864 2005-06-01  Bruno Haible  <bruno@clisp.org>
85865
85866         * m4/csharp.m4: New file, from GNU gettext.
85867         * m4/csharpexec.m4: New file, from GNU gettext.
85868
85869 2005-06-01  Bruno Haible  <bruno@clisp.org>
85870
85871         * lib/csharpexec.h: New file, from GNU gettext.
85872         * lib/csharpexec.c: New file, from GNU gettext.
85873         * lib/csharpexec.sh.in: New file, from GNU gettext.
85874
85875 2005-05-31  Derek Price  <derek@ximbiot.com>
85876             Paul Eggert  <eggert@cs.ucla.edu>
85877
85878         Sync from cvs.
85879         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85880
85881 2005-05-31  Derek Price  <derek@ximbiot.com>
85882             Paul Eggert  <eggert@cs.ucla.edu>
85883
85884         Sync from cvs.
85885         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85886
85887 2005-05-29  Derek Price  <derek@ximbiot.com>
85888
85889         * config/srclist.txt (glob_.h, glob.c): Add these files.
85890
85891 2005-05-29  Derek Price  <derek@ximbiot.com>
85892
85893         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
85894         * modules/glob: New file.
85895         * modules/getlogin_r: Add link to POSIX spec in description.
85896
85897 2005-05-29  Derek Price  <derek@ximbiot.com>
85898             Paul Eggert  <eggert@cs.ucla.edu>
85899
85900         * m4/glob.m4: New file.
85901
85902 2005-05-29  Derek Price  <derek@ximbiot.com>
85903             Paul Eggert  <eggert@cs.ucla.edu>
85904
85905         * lib/glob_.h, lib/glob.c: New files.
85906
85907 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85908
85909         * modules/fts (Files): Remove m4/inttypes-pri.m4.
85910         * modules/fts-lgpl (Depends-on): Remove gettext.
85911
85912 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85913
85914         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
85915         and don't require gt_INTTYPES_PRI.
85916
85917 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85918
85919         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
85920
85921         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
85922         the configuration hassle isn't worth it.
85923         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
85924         (LONGEST_MODIFIER, PRIuMAX): Remove.
85925
85926 2005-05-27  Bruno Haible  <bruno@clisp.org>
85927
85928         * lib/getlogin_r.h: Remove second include of <stddef.h>.
85929
85930 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
85931
85932         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
85933         _POSIX_PTHREAD_SEMANTICS for Solaris.
85934
85935 2005-05-25  Derek Price  <derek@ximbiot.com>
85936
85937         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
85938
85939 2005-05-25  Derek Price  <derek@ximbiot.com>
85940             Paul Eggert  <eggert@cs.ucla.edu>
85941
85942         * modules/getlogin_r, m4/getlogin_r.m4: New files.
85943         * lib/getlogin_r.c, getlogin_r.h: New files.
85944
85945 2005-05-25  Bruno Haible  <bruno@clisp.org>
85946             Derek Price  <derek@ximbiot.com>
85947
85948         * lib/getlogin_r.h: Simplify API documentation.
85949
85950 2005-05-23  Derek Price  <derek@ximbiot.com>
85951
85952         * modules/minmax (Files): Add m4/minmax.m4.
85953         (configure.ac): Add gl_MINMAX.
85954
85955 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
85956
85957         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
85958         so that unistd-safer.h (GPL'ed code) need not be included.
85959
85960 2005-05-22  Bruno Haible  <bruno@clisp.org>
85961
85962         * m4/minmax.m4: New file.
85963         Based on a patch by Derek Price <derek@ximbiot.com>.
85964
85965 2005-05-22  Bruno Haible  <bruno@clisp.org>
85966
85967         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
85968         (INT64_MIN): Fix definition.
85969         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
85970
85971         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
85972         NEED_SIGNED_INT_TYPES.
85973
85974         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
85975         HAVE_SYSTEM_INTTYPES.
85976
85977 2005-05-22  Bruno Haible  <bruno@clisp.org>
85978
85979         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
85980         Also include <sys/param.h> if it defines MIN, MAX.
85981         Based on a patch by Derek Price <derek@ximbiot.com>.
85982
85983 2005-05-21  Jim Meyering  <jim@meyering.net>
85984
85985         * modules/fts (Files): Add m4/inttypes-pri.m4.
85986         (Depends-on): Add lstat and remove gettext.  Alphabetize.
85987
85988 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85989
85990         New fts module.
85991         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
85992         (setup_dir, free_dir): New functions.
85993         (enter_dir, leave_dir): Define trivial
85994         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
85995         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
85996         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
85997         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
85998         Move to fts-cycle.c.
85999         (fts_open): Use setup_dir.
86000         (fts_close): Use free_dir.
86001         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
86002         This adds a label and some gotos, but the alternatives were messier.
86003         Check for memory allocation failure when entering a dir.
86004         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
86005         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
86006         (FTS): New member fts_cycle, that is a union that contains the
86007         old active_dir_ht and cycle_state.  All uses changed to mention
86008         fts_cycle.ht and fts_cycle.state.
86009         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
86010         fts.c, with the following changes:
86011         (setup_dir, free_dir): New functions.
86012         (enter_dir): Now returns bool.  Return true if successful, false
86013         if memory exhausted.  All callers changed.
86014         Do not bother partly cleaning up on
86015         memory allocation failure; that is free_dir's job.
86016         However, free ad if hash_insert fails, to avoid memory leak.
86017         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
86018         fts->fts_options to see which union member to use.
86019
86020 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86021
86022         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
86023         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
86024
86025 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86026
86027         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
86028
86029 2005-05-20  Jim Meyering  <jim@meyering.net>
86030
86031         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
86032         Now a macro, to pacify GCC.
86033
86034 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86035
86036         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
86037         of -1.
86038
86039 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86040
86041         * lib/chown.c (rpl_chown): Return -1 on failure.
86042
86043 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86044
86045         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
86046         Don't check for stddef.h.
86047         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
86048         don't use its results.
86049         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
86050         since we include them unconditionally.  Don't require
86051         AM_STDBOOL_H, since stdbool is a prerequisite.
86052         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
86053         since we assume C89 or better.
86054         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
86055         as we don't use their results.
86056         Don't check for fchdir, memmove, memset, strrchr, as we use
86057         them unconditionally.
86058         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
86059         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
86060
86061 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86062
86063         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
86064         Include <stddef.h> unconditionally, since we assume C89 now.
86065         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
86066         * lib/fts.c: Include fts_.h first, to check interface.
86067         Do not include intprops.h; no longer needed.
86068         Include cycle-check.h and hash.h, since fts_.h no longer does.
86069         Remove unnecessary casts of closedir to void.
86070         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
86071         decide whether to decrement nlinks.
86072         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
86073         (FTS): Use struct hash_table * instead of Hash_table, so that
86074         we no longer need to include hash.h here.
86075
86076 2005-05-18  Jim Meyering  <jim@meyering.net>
86077
86078         * modules/dirfd (License): Change to LGPL.  Most of the code
86079         is already in the public domain.
86080
86081 2005-05-18  Jim Meyering  <jim@meyering.net>
86082
86083         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
86084         Reported by Yoann Vandoorselaere.
86085
86086 2005-05-17  Jim Meyering  <jim@meyering.net>
86087
86088         * m4/fts.m4: New file, from coreutils.
86089
86090 2005-05-17  Jim Meyering  <jim@meyering.net>
86091
86092         * lib/fts.c, lib/fts_.h: New files, from coreutils.
86093
86094 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86095
86096         Sync from coreutils.
86097         * m4/unlinkdir.m4: New file.
86098
86099 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86100
86101         Sync from coreutils.
86102         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
86103         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
86104         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
86105         White space changes only.
86106         * lib/makepath.c (make_path): Port to hosts where leading "//" is
86107         special.
86108         * lib/yesno.c: Include getline.h, not ctype.h.
86109         (yesno): Don't remove leading white space; POSIX doesn't allow it.
86110         Use getline to remove arbitrary restriction on response length.
86111
86112 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86113
86114         * config/srclist-update: Spell out "Street" in FSF postal
86115         mail address; this is the style the FSF seems to prefer.
86116
86117         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
86118         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
86119         this updates FSF postal mail address.
86120
86121         Sync from coreutils.
86122         * modules/unlinkdir: New file.
86123         * modules/yesno (Depends-on): Add getline.
86124         * MODULES.html.sh (File system functions): Add unlinkdir.
86125
86126 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86127
86128         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
86129         lib/strsep.h:
86130         Change the initial comment to refer to GPL, not LGPL.
86131         gnulib-tool will change it to LGPL as needed.
86132
86133         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
86134         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
86135         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
86136         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
86137         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
86138         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
86139         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
86140         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
86141         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
86142         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
86143         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
86144         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
86145         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
86146         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
86147         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
86148         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
86149         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
86150         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
86151         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
86152         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
86153         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
86154         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
86155         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
86156         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
86157         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
86158         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
86159         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
86160         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
86161         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
86162         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
86163         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
86164         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
86165         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
86166         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
86167         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
86168         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
86169         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
86170         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
86171         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
86172         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
86173         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
86174         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
86175         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
86176         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
86177         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
86178         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
86179         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
86180         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
86181         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
86182         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
86183         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86184         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
86185         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
86186         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
86187         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
86188         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
86189         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
86190         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
86191         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
86192         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
86193         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
86194         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
86195         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
86196         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
86197         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
86198         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
86199         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
86200         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
86201         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
86202         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
86203         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
86204         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
86205         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
86206         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
86207         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
86208         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
86209         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
86210         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
86211         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
86212         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
86213         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
86214         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
86215         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
86216         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
86217         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
86218         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
86219         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
86220         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
86221         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
86222         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
86223         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
86224         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
86225         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
86226         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
86227         lib/yesno.c, lib/yesno.h:
86228         Update FSF postal mail address.
86229
86230 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86231
86232         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
86233         tests/test-memmem.c, tests/test-stpncpy.c:
86234         Update FSF postal mail address.
86235
86236 2005-05-13  Bruno Haible  <bruno@clisp.org>
86237
86238         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
86239         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
86240         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
86241         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
86242         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
86243         Add support for 64-bit integers in the MSVC compiler.
86244
86245 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86246
86247         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
86248
86249 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
86250
86251         * gnulib-tool (func_import): Sort and uniquify recommended includes.
86252
86253 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
86254
86255         * doc/getdate.texi (General date syntax): Don't say that date
86256         date --iso-8601=ns generates acceptable dates; it doesn't yet.
86257         Problem reported by Nic Ferrier.
86258
86259 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86260
86261         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
86262         specified in ai_socktype. Fix invalid ai_protocol
86263         check. ai_protocol is usually set to 0 or depending on
86264         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
86265         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
86266         ai_socktype / ai_protocol in the returned addrinfo structure.
86267
86268 2005-05-10  Simon Josefsson  <jas@extundo.com>
86269
86270         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
86271         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86272
86273 2005-05-10  Karl Berry  <karl@gnu.org>
86274
86275         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
86276         (from http://www.gnu.org/licenses).
86277         * doc/COPYING.LIB: also rename to COPYING.LESSER.
86278         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
86279         fdl.texi suffices.
86280
86281 2005-05-10  Karl Berry  <karl@gnu.org>
86282
86283         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
86284         (COPYING.DOC): remove.
86285
86286         * config/srclist-update: new FSF address.
86287
86288 2005-05-10  Derek Price  <derek@ximbiot.com>
86289
86290         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
86291         possible.
86292
86293 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86294             Bruno Haible  <bruno@clisp.org>
86295
86296         * modules/inet_ntop: New file.
86297         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86298         inet_ntop.
86299
86300 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86301             Bruno Haible  <bruno@clisp.org>
86302
86303         * m4/inet_ntop.m4: New file.
86304
86305 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86306             Bruno Haible  <bruno@clisp.org>
86307
86308         * lib/inet_ntop.h: New file.
86309         * lib/inet_ntop.c: New file, from glibc with modifications.
86310
86311 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
86312
86313         * modules/time_r (License): Change to LGPL.
86314         * modules/extensions (License): Change to LGPL.  Actually,
86315         the license is more permissive than that, but currently gnulib-tool
86316         doesn't know how to handle more-permissive licenses.
86317
86318         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
86319         Problem reported by Dave Love.
86320
86321 2005-05-08  Jim Meyering  <jim@meyering.net>
86322
86323         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
86324         blank.
86325
86326 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86327
86328         * modules/argmatch (Depends-on): Add stdbool.
86329         * modules/backupfile (Depends-on): Likewise.
86330         * modules/chdir-long (Depends-on): Likewise.
86331         * modules/closeout (Depends-on): Likewise.
86332         * modules/cycle-check (Depends-on): Likewise.
86333         * modules/dirname (Depends-on): Likewise.
86334         * modules/fnmatch (Depends-on): Likewise.
86335         * modules/fsusage (Depends-on): Likewise.
86336         * modules/fwriteerror (Depends-on): Likewise.
86337         * modules/getcwd (Depends-on): Likewise.
86338         * modules/getloadavg (Depends-on): Likewise.
86339         * modules/hard-locale (Depends-on): Likewise.
86340         * modules/makepath (Depends-on): Likewise.
86341         * modules/mountlist (Depends-on): Likewise.
86342         * modules/nanosleep (Depends-on): Likewise.
86343         * modules/posixtm (Depends-on): Likewise.
86344         * modules/quotearg (Depends-on): Likewise.
86345         * modules/readtokens (Depends-on): Likewise.
86346         * modules/readtokens0 (Depends-on): Likewise.
86347         * modules/readutmp (Depends-on): Likewise.
86348         * modules/save-cwd (Depends-on): Likewise.
86349         * modules/strftime (Depends-on): Likewise.
86350         * modules/userspec (Depends-on): Likewise.
86351         * modules/utimecmp (Depends-on): Likewise.
86352         * modules/xgetcwd (Depends-on): Likewise.
86353         * modules/xnanosleep (Depends-on): Likewise.
86354         * modules/xstrtod (Depends-on): Likewise.
86355         * modules/yesno (Depends-on): Likewise.
86356
86357 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
86358
86359         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
86360         needless checks.
86361
86362 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86363
86364         Merge from coreutils.  Among other things,
86365         add bulletproofing for cases where stdin, stdout, or stderr are closed.
86366         * lib/fd-safer.c: New file.
86367         * lib/fcntl-safer.h, open-safer.c: Remove.
86368         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
86369         * lib/dup-safer.c: Include unistd-safer.h first.
86370         Don't include errno.h.
86371         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
86372         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
86373         * lib/file-type.c: Rely on file-type.h change.
86374         * lib/getloadavg.c: Include unistd-safer.h.
86375         (getloadavg): Use safer open.
86376         * lib/getusershell.c: Include "stdio-safer.h".
86377         (getusershell): Use safer fopen.
86378         * lib/long-options.c (long_options): Use NULL rather than 0.
86379         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
86380         'free'.
86381         * lib/modechange.c: Likewise.
86382         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
86383         (MODE_DONE): New constant.
86384         (struct mode_change): Remove 'next' member.
86385         (make_node_op_equals): New function; like the old one of the
86386         same name, except it allocates an array.
86387         (mode_compile, mode_create_from_ref): Use it.
86388         (mode_compile): Allocate result as an array, not a linked list.
86389         Parse octal string ourself, so that we catch mistakes like "+0".
86390         (mode_adjust): Arg is an array, not a linked list.
86391         * lib/modechange.c: Include stat-macros.h, xalloc.h.
86392         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
86393         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
86394         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
86395         Remove.  This is now stat-macros.h's job.
86396         (talloc): Remove.  All callers replaced by xalloc, so that
86397         our invokers don't have to worry about reporting memory failures.
86398         (make_node_op_equals): Remove.
86399         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86400         New constants.
86401         (struct mode_change): Moved here from modechange.h.
86402         (mode_append_entry): Remove.
86403         (mode_compile): Remove MASKED_OPS arg, since it encouraged
86404         apps to have incorrect behavior.  Use simpler algorithm for head
86405         and tail.  Don't futz with umask; that's now the job of mode_adjust.
86406         Detect more invalid usages rather than having somewhat-random behavior.
86407         Don't insert an "a=" action, as that leads to incorrect behavior.
86408         (mode_compile, mode_create_from_ref): Return NULL on error instead
86409         of an enum, since now there's only one way to have an error.  All
86410         callers changed.
86411         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
86412         at the correct time.  Simplify calculation of "+u" and its ilk.
86413         Don't mishandle "+X".
86414         (mode_free): Remove "register" and localize decls.
86415         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86416         (struct mode_change): Move to modechange.c; callers don't
86417         need to see this stuff.
86418         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
86419         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
86420         (mode_change, mode_adjust): Reflect the new signatures noted above.
86421         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
86422         that might redefine system include files.
86423         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
86424         (my_usleep): Use NULL rather than (void *) 0.
86425         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
86426         Use siginterrupt to specify that system calls should be interrupted.
86427         (rpl_nanosleep): Move initialization of suspended closer to call of
86428         my_usleep.
86429         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
86430         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
86431         (desirable_utmp_entry): New function.
86432         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
86433         using x2nrealloc, to simplify logic.
86434         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
86435         size calculation.  Do not assume utmp file is a regular file.
86436         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
86437         (READ_UTMP_CHECK_PIDS): New constant.
86438         * lib/save-cwd.c: Include unistd-safer.h.
86439         (save_cwd): Use fd_safer.
86440         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
86441         [!_LIBC] Include "stat-macros.h" instead.
86442         * lib/unistd-safer.h (fd_safer): New decl.
86443
86444 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86445
86446         * modules/getloadavg (Depends-on): Add unistd-safer.
86447         * modules/getusershell (Depends-on): Add stdio-safer.
86448         * modules/lstat (Depends-on): Remove xalloc.
86449         * modules/mkstemp (Depends-on): Add stat-macros.
86450         * modules/modechange (Depends-on): Remove xstrtol.
86451         Add stat-macros, xalloc.
86452         * modules/save-cwd (Depends-on): Add unistd-safer.
86453         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
86454         * modules/unistd-safer (Files): Add lib/fd-safer.c
86455         (Makefile.am): Remove lib_SOURCES.
86456
86457         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
86458         Remove fcntl-safer; unistd-safer supersedes it.
86459
86460 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86461
86462         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
86463         AC_HEADER_STAT.
86464         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
86465         (gl_PREREQ_CHOWN): Remove.
86466         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
86467         it.  Don't require AC_HEADER_STAT.
86468         (gl_PREREQ_LSTAT): Remove.
86469         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
86470         Don't require AC_HEADER_STAT.
86471         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
86472         (gl_PREREQ_RMDIR): Remove.
86473         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
86474         mention stat-macros.h or AC_HEADER_STAT, since we'll make
86475         the stat-macros module a prerequisite.
86476         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
86477         * m4/filemode.m4 (gl_FILEMODE): Likewise.
86478         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
86479         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
86480         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
86481         variable names.
86482         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
86483         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
86484         variable prefixes.
86485         * m4/fcntl-safer.m4: Remove.
86486         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
86487         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
86488         Invoke gl_PREREQ_FD_SAFER.
86489         (gl_PREREQ_FD_SAFER): New macro.
86490         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
86491         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
86492         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
86493         Remove duplicate call to AC_LIBOBJ(readutmp).
86494         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
86495
86496         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
86497         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
86498
86499 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86500
86501         * MODULES.html.sh (Misc): Add byteswap.
86502
86503 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86504
86505         * modules/getcwd (Depends-on): Add extensions.
86506         * modules/openat (Depends-on): Likewise.
86507
86508 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86509
86510         * modules/byteswap: New file.
86511
86512 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86513
86514         * m4/byteswap.m4: New file.
86515
86516 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86517
86518         * lib/byteswap_.h: New file.
86519
86520 2005-04-25  Karl Berry  <karl@gnu.org>
86521
86522         * m4/gettext.m4: Update from GNU gettext 0.14.4.
86523
86524 2005-04-25  Albert Chin  <china@thewrittenword.com>
86525
86526         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
86527         Toolkit C bug.
86528
86529 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
86530
86531         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
86532         (func_ln_if_changed): Remove forcibly for no error message
86533         in case file does not exist.
86534
86535 2005-04-19  Simon Josefsson  <jas@extundo.com>
86536
86537         * gnulib-tool (Options): Make --symlink mean --symbolic.
86538
86539 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
86540
86541         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
86542
86543 2005-04-16  Simon Josefsson  <jas@extundo.com>
86544
86545         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
86546
86547 2005-04-15  Simon Josefsson  <jas@extundo.com>
86548
86549         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
86550
86551 2005-04-15  Simon Josefsson  <jas@extundo.com>
86552
86553         * gnulib-tool: Rename --symlink to --symbolic.
86554
86555 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
86556
86557         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
86558         symbolic links to files instead of copying/moving.  Add --aux-dir,
86559         specifying directory relative --dir where auxiliary build tools
86560         are placed.
86561
86562 2005-04-14  Bruno Haible  <bruno@clisp.org>
86563
86564         * modules/allocsa (License): Change to LGPL.
86565         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86566
86567 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
86568
86569         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
86570         that "UTC +1 second" continues to work.  Problem reported
86571         by Dmitry V. Levin.
86572         (relunit_snumber): New rule.
86573         (relunit): Use it.
86574
86575 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
86576
86577         * lib/getdate.y (universal_time_zone_table): New constant.
86578         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
86579         universal_time_zone_table.
86580         (lookup_zone): Prefer universal_time_zone_table to
86581         local_time_zone_table, so that "GMT" time stamps are allowed in
86582         London during the summer.  Problem reported by Ian Abbott.
86583
86584 2005-04-12  Jim Meyering  <jim@meyering.net>
86585
86586         * lib/human.c (humblock): Set *options even when returning due to
86587         xstrtoumax conversion failure.  Thanks to a used-uninitialized
86588         warning from gcc-4.
86589
86590 2005-04-09  Jim Meyering  <jim@meyering.net>
86591
86592         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
86593         -Wuninitialized: initialize tm0.tm_year.
86594
86595 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
86596
86597         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
86598         count, since there's no maximum.  All uses changed.
86599         Add member dsts_seen.
86600         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
86601         not being INT_MAX.
86602         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
86603         Use pc_rels_seen to decide whether a date is absolute.
86604
86605         * lib/getdate.y (number): Don't overwrite year.
86606         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
86607         check.
86608
86609 2005-04-02  Simon Josefsson  <jas@extundo.com>
86610
86611         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
86612         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
86613
86614 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
86615
86616         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
86617         where no absolute path name can be longer than PATH_MAX.
86618
86619 2005-03-27  Jim Meyering  <jim@meyering.net>
86620
86621         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
86622
86623 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
86624
86625         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
86626         "one's complement" -> "ones' complement" in comment, as per Knuth.
86627         "value of type" -> "type or expression" in comment.
86628         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
86629
86630 2005-03-26  Jim Meyering  <jim@meyering.net>
86631
86632         Comment nits.
86633         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
86634         Correct typos: s/or/of/.
86635
86636 2005-03-26  Jim Meyering  <jim@meyering.net>
86637
86638         * modules/check-include-files: Move to ../ and rename to...
86639         * check-module: ...this.
86640
86641 2005-03-25  Jim Meyering  <jim@meyering.net>
86642
86643         * modules/xvasprintf (Files): Add xalloc.h.
86644
86645 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
86646
86647         * modules/gettext (Files): config/config.rpath ->
86648         build-aux/config.rpath
86649         * modules/iconv (Files): Likewise.
86650         Problem reported by Oskar Liljeblad.
86651
86652 2005-03-23  Jim Meyering  <jim@meyering.net>
86653
86654         * modules/check-include-files: New script to check for
86655         missing dependencies, multiple includes, etc.
86656
86657         * modules/c-strtold (Depends-on): Add xalloc.
86658         * modules/c-strtod (Depends-on): Add xalloc.
86659         * modules/hash (Depends-on): Add xalloc.
86660         (Files): Remove lib/xalloc.h.
86661
86662         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
86663         * modules/userspec (Files): Add lib/inttostr.h.
86664
86665 2005-03-23  Jim Meyering  <jim@meyering.net>
86666
86667         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
86668
86669 2005-03-22  Jim Meyering  <jim@meyering.net>
86670
86671         * modules/stat-macros: New module.
86672         * modules/canonicalize, modules/euidaccess, modules/file-type,
86673         * modules/filemode, modules/lchown, modules/makepath,
86674         * modules/rmdir, modules/stat: Depend on new stat-macros module
86675         rather than listing lib/stat-macros.h manually.
86676         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
86677
86678 2005-03-22  Jim Meyering  <jim@meyering.net>
86679
86680         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
86681
86682 2005-03-22  Bruno Haible  <bruno@clisp.org>
86683
86684         * config/srclist.txt: Replace target directory 'config' with
86685         'build-aux'.
86686         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
86687         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
86688         ../build-aux/.
86689
86690 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
86691
86692         * modules/chdir-long (Depends-on): Add mempcpy.
86693
86694         * modules/acl, modules/backupfile, modules/c-strtod,
86695         modules/c-strtold, modules/canon-host, modules/canonicalize,
86696         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
86697         modules/exclude, modules/exitfail, modules/file-type,
86698         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
86699         modules/getdate, modules/getline, modules/getpagesize,
86700         modules/getpass, modules/getugroups, modules/group-member,
86701         modules/hard-locale, modules/hash, modules/human, modules/idcache,
86702         modules/inttostr, modules/long-options, modules/makepath,
86703         modules/md5, modules/memcasecmp, modules/memcoll,
86704         modules/modechange, modules/mountlist, modules/path-concat,
86705         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
86706         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
86707         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
86708         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
86709         modules/strftime, modules/strndup, modules/strverscmp,
86710         modules/timespec, modules/unlocked-io, modules/userspec,
86711         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
86712         modules/yesno:
86713         Remove lib_SOURCES line from Makefile.am section, as this is now
86714         done automatically by the corresponding Autoconf macro.
86715
86716 2005-03-21  Jim Meyering  <jim@meyering.net>
86717
86718         Changes imported from coreutils.
86719
86720         * lib/cycle-check.c: Don't include xalloc.h.
86721
86722         * lib/path-concat.c: Don't include assert.h.
86723         (path_concat): Remove assertion that would have triggered
86724         for ABASE starting with more than one slash.
86725         Reported by Andreas Schwab.
86726
86727         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
86728         properly when ABASE is an absolute file name.
86729         Correct the description of this function.
86730         Include <assert.h>.
86731         Add an assertion and a test driver.
86732         This fixes a bug introduced on 2004-07-02.
86733         Andreas Schwab reported the resulting failure of cp --parents:
86734         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
86735
86736 2005-03-21  Jim Meyering  <jim@meyering.net>
86737
86738         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
86739         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
86740
86741 2005-03-21  Jim Meyering  <jim@meyering.net>
86742         and  Paul Eggert  <eggert@cs.ucla.edu>
86743
86744         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
86745         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
86746         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
86747         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
86748         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
86749         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
86750         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
86751         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
86752         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
86753         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
86754         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
86755         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
86756         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
86757         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
86758         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
86759         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
86760         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
86761         for these modules.
86762
86763 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
86764
86765         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
86766         (which shouldn't happen), generate nothing instead of returning 0
86767         immediately, so that nstrftime (NULL, ...) doesn't return 0.
86768
86769 2005-03-16  Bruno Haible  <bruno@clisp.org>
86770
86771         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
86772         HAVE_LONGLONG_64BIT.
86773
86774 2005-03-16  Bruno Haible  <bruno@clisp.org>
86775
86776         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
86777         HAVE_LONGLONG_64BIT.
86778
86779 2005-03-16  Bruno Haible  <bruno@clisp.org>
86780
86781         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
86782         HAVE_LONGLONG_64BIT.
86783
86784 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86785
86786         * lib/strftime.c (my_strftime): Prepend space to format so that we can
86787         reliably distinguish strftime failure from empty output on POSIX
86788         hosts.
86789
86790 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86791
86792         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
86793         (iconv_string): Don't guess a size-zero buffer, as that might cause
86794         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
86795         result would be 'too large', where 'too large' is (heuristically)
86796         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
86797         overflow concerns.  This will prevent some unwanted malloc failures
86798         when the inputs are very large.
86799
86800 2005-03-15  Karl Berry  <karl@gnu.org>
86801
86802         * config/srclist.txt (config.rpath): from gettext.
86803         * config/config.rpath: update.
86804
86805 2005-03-15  Bruno Haible  <bruno@clisp.org>
86806
86807         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
86808         to 'negate'.
86809
86810         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
86811         variable.
86812
86813         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
86814         results.
86815
86816 2005-03-14  Simon Josefsson  <jas@extundo.com>
86817
86818         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
86819         <fx@gnu.org>.
86820
86821 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
86822
86823         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
86824         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
86825         intprops.h.
86826         * lib/strtol.c: Likewise.
86827
86828 2005-03-14  Jim Meyering  <jim@meyering.net>
86829
86830         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
86831         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
86832         to be nonzero so that we (and caller) can detect the difference
86833         between a valid zero-length expansion and an error return, even
86834         when the underlying strftime fails before writing anything into
86835         that location.
86836
86837 2005-03-14  Bruno Haible  <bruno@clisp.org>
86838
86839         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
86840         Update from GNU gettext 0.14.3.
86841
86842 2005-03-10  Jim Meyering  <jim@meyering.net>
86843
86844         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
86845
86846 2005-03-10  Jim Meyering  <jim@meyering.net>
86847
86848         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
86849         so that this module works on systems without fchdir.
86850
86851 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
86852
86853         Factor int-properties macros into a single file, except for
86854         glibc-related files.
86855         * lib/intprops.h: New file.
86856         * lib/getloadavg.c: Include it instead of limits.h.
86857         (INT_STRLEN_BOUND): Remove.
86858         * lib/human.c: Include intprops.h.
86859         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
86860         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
86861         302/1000.
86862         * lib/inttostr.h: Include intprops.h instead of limits.h.
86863         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
86864         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
86865         for consistency with intprops.h.
86866         (time_t_is_integer, twos_complement_arithmetic): Use them.
86867         * lib/sig2str.h: Include <signal.h>, intprops.h.
86868         (INT_STRLEN_BOUND): Remove.
86869         * lib/strftime.c (TYPE_SIGNED): Remove.
86870         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
86871         * lib/strtol.c: Adjust comments to match intprops.h.
86872         * lib/userspec.c: Include intprops.h.
86873         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
86874         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
86875         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
86876         instead of rolling our own expressions.
86877         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
86878
86879         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
86880         instead of int.
86881         (my_strftime): Do not mishandle years close to INT_MAX, by doing
86882         the right thing even if adding 1900 would overflow.  Similarly
86883         for tm_mon + 1 and tm_yday + 1.
86884         Make %Y always equivalent to %C%y, and similarly for %G and %g.
86885         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
86886         (DO_SIGNED_NUMBER): New macro.
86887         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
86888
86889 2005-03-07  Bruno Haible  <bruno@clisp.org>
86890
86891         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
86892
86893 2005-03-07  Bruno Haible  <bruno@clisp.org>
86894
86895         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
86896
86897 2005-03-04  Derek R. Price  <derek@ximbiot.com>
86898
86899         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
86900         (func_import): Only replace files via --import when they have actually
86901         changed.
86902
86903 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86904
86905         * m4/mmap-anon.m4: New file.
86906         * m4/pagealign_alloc.m4: New file.
86907
86908 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86909             Bruno Haible  <bruno@clisp.org>
86910
86911         * modules/pagealign_alloc: New file.
86912         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
86913
86914 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86915             Bruno Haible  <bruno@clisp.org>
86916
86917         * lib/pagealign_alloc.h: New file.
86918         * lib/pagealign_alloc.c: New file.
86919
86920 2005-03-03  Bruno Haible  <bruno@clisp.org>
86921
86922         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
86923         Use an all-permissive copyright notice, recommended by RMS.
86924
86925 2005-03-02  Bruno Haible  <bruno@clisp.org>
86926
86927         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
86928         of AIX, the replacement has to be done only after <string.h> is
86929         included, therefore not in config.h. stpncpy.h does the replacement,
86930         and stpncpy.c uses it.
86931
86932 2005-03-02  Bruno Haible  <bruno@clisp.org>
86933
86934         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
86935         stpncpy.c uses it.
86936
86937 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86938
86939         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
86940         The workaround isn't strictly needed for POSIX conformance, and
86941         it's too much of a pain to configure and maintain.  We'll ask
86942         people to fix their kernels instead.
86943         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
86944         (NANOSLEEP_BUG_WORKAROUND): Remove.
86945         (xnanosleep): Remove the workaround.
86946
86947 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86948
86949         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
86950         Reported by Derek Price.
86951         (Include): Add "timespec.h".
86952
86953         * modules/xnanosleep (Depends-on): Remove gethrxtime.
86954
86955 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86956
86957         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
86958         to detect nanosleep bug.
86959
86960 2005-03-01  Bruno Haible  <bruno@clisp.org>
86961
86962         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
86963
86964 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
86965
86966         * modules/gethrxtime: New file.
86967         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
86968         (Depends-on): Add gethrxtime.
86969         (configure.ac): Add gl_XNANOSLEEP.
86970         (Makefile.am): Remove lib_SOURCES line.
86971
86972 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86973
86974         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
86975         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
86976
86977 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86978
86979         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
86980         * lib/timespec.h (gettime): Return void, since it always
86981         succeeds now.  All uses changed.
86982         * lib/gettime.c (gettime): Likewise.
86983         [HAVE_NANOTIME]: Prefer nanotime.
86984         Assume gettimeofday succeeds, as POSIX requires.
86985         Assime time () succeeds, since other code already does.
86986         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
86987         (timespec_subtract): Remove.
86988         (NANOSLEEP_BUG_WORKAROUND): New constant.
86989         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
86990         things considerably.  Use it only on GNU/Linux hosts, since the
86991         workaround shouldn't be needed elsewhere.
86992
86993 2005-02-24  Bruno Haible  <bruno@clisp.org>
86994
86995         * modules/gettext (Files): Add m4/glibc2.m4.
86996
86997 2005-02-24  Bruno Haible  <bruno@clisp.org>
86998
86999         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
87000         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
87001         * m4/progtest.m4:
87002         Update from GNU gettext 0.14.2.
87003         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
87004
87005 2005-02-24  Bruno Haible  <bruno@clisp.org>
87006
87007         * lib/localcharset.c: Update from GNU gettext 0.14.2.
87008         * lib/config.charset: Update from GNU gettext 0.14.2.
87009
87010 2005-02-24  Bruno Haible  <bruno@clisp.org>
87011
87012         * lib/gettext.h: Update from GNU gettext 0.14.2.
87013
87014 2005-02-23  Simon Josefsson  <jas@extundo.com>
87015
87016         * m4/iconvme.m4: New file.
87017
87018 2005-02-23  Jim Meyering  <jim@meyering.net>
87019
87020         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
87021         change.
87022         Thanks to Bruno Haible for catching it.
87023
87024 2005-02-22  Simon Josefsson  <jas@extundo.com>
87025
87026         * modules/iconvme: New file.
87027
87028         * MODULES.html.sh: Add iconvme.
87029
87030 2005-02-22  Simon Josefsson  <jas@extundo.com>
87031
87032         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
87033
87034 2005-02-22  Simon Josefsson  <jas@extundo.com>
87035
87036         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
87037
87038 2005-02-22  Jim Meyering  <jim@meyering.net>
87039
87040         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
87041         s/ifndef/ifdef/.
87042
87043 2005-02-20  Neil Conway  <neilc@samurai.com>
87044
87045         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
87046         returned by OSX/Darwin if the specified buffer is not large
87047         enough for the hostname.
87048
87049 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87050
87051         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
87052         pass it to _help, otherwise the latter coredumps trying to
87053         dereference state.root_argp.
87054
87055 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87056
87057         * modules/chdir-long (Depends-on): Add memrchr.
87058         * modules/memrchr (Files): Add lib/memrchr.h.
87059         (Include): "memrchr.h".
87060
87061 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87062
87063         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
87064
87065 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87066
87067         * lib/memrchr.h: New file.
87068         * lib/chdir-long.c: Include it.
87069         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
87070         Don't bother including stddef.h.
87071
87072 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
87073
87074         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
87075         inclusion.
87076         Include <sys/types.h>, for dev_t.
87077         (ME_DUMMY, ME_REMOTE): Move from here....
87078         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
87079         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
87080         Dmitry V. Levin.
87081         Include mountlist.h first, to test the interface.
87082
87083 2005-01-29  Bruno Haible  <bruno@clisp.org>
87084
87085         * lib/progname.c (program_name): Initialize.
87086         Needed when linking statically on MacOS X.
87087
87088 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87089
87090         Sync from coreutils.
87091         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
87092         (Depends-on): Add c-strtod.
87093         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
87094
87095 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87096
87097         Sync from coreutils.
87098         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
87099
87100         Remove files that are specific to coreutils.
87101         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
87102
87103 2005-01-28  Bruno Haible  <bruno@clisp.org>
87104
87105         * modules/javacomp: New file.
87106         * MODULES.html.sh (Java): Add javacomp.
87107
87108 2005-01-28  Bruno Haible  <bruno@clisp.org>
87109
87110         * m4/javacomp.m4: New file, from GNU gettext.
87111
87112 2005-01-28  Bruno Haible  <bruno@clisp.org>
87113
87114         * lib/javacomp.sh.in: New file, from GNU gettext.
87115         * lib/javacomp.h: New file, from GNU gettext.
87116         * lib/javacomp.c: New file, from GNU gettext.
87117
87118 2005-01-26  Simon Josefsson  <jas@extundo.com>
87119
87120         * lib/gai_strerror.c: Use GPL in header.
87121
87122 2005-01-26  Bruno Haible  <bruno@clisp.org>
87123
87124         * modules/javaexec: New file.
87125         * MODULES.html.sh (Java): Add javaexec.
87126
87127 2005-01-26  Bruno Haible  <bruno@clisp.org>
87128
87129         * m4/javaexec.m4: New file, from GNU gettext.
87130
87131 2005-01-26  Bruno Haible  <bruno@clisp.org>
87132
87133         * lib/javaexec.sh.in: New file, from GNU gettext.
87134         * lib/javaexec.h: New file, from GNU gettext.
87135         * lib/javaexec.c: New file, from GNU gettext.
87136
87137 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87138
87139         * modules/lchown (Depends-on): Remove lchown.h
87140
87141 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87142
87143         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
87144         must be defined if the header file was not found, in order
87145         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
87146
87147 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87148
87149         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
87150         initializers for struct pentry_state.
87151         (__argp_error): Check return value of __asprintf
87152         (__argp_failure): Translate error message
87153
87154         * lib/argp-parse.c: Removed braces around the expansion of N_()
87155
87156 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
87157
87158         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
87159         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
87160         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
87161         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
87162         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
87163         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
87164         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
87165         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
87166         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
87167         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
87168         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
87169         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
87170         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
87171         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
87172         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
87173         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
87174         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
87175         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
87176         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
87177         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
87178         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
87179         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
87180         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
87181         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
87182         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
87183         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
87184         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
87185         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
87186         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
87187         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
87188         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
87189         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
87190         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
87191         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
87192         xstrtol.m4, xstrtoumax.m4, yesno.m4:
87193         Use an all-permissive copyright notice, recommended by RMS.
87194
87195 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
87196
87197         * modules/chdir-long (Depends-on): Remove mempcpy.
87198
87199 2005-01-21  Jim Meyering  <jim@meyering.net>
87200
87201         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
87202         same value as for Solaris 9.
87203
87204         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
87205         component length.  This included changing the parameter to be
87206         of type `char *' rather than `char const *'.
87207         * lib/chdir-long.h (chdir_long): Update prototype.
87208
87209         * lib/openat.c (fdopendir, fstatat): New functions.
87210         * lib/openat.h: Include headers required for use of DIR and struct
87211         stat.
87212         [AT_SYMLINK_NOFOLLOW]: Define.
87213         (fdopendir, fstatat): Add prototypes.
87214
87215 2005-01-21  Bruno Haible  <bruno@clisp.org>
87216
87217         * modules/classpath: New file.
87218         * MODULES.html.sh (Java): Add classpath.
87219
87220 2005-01-21  Bruno Haible  <bruno@clisp.org>
87221
87222         * lib/classpath.h: New file, from GNU gettext.
87223         * lib/classpath.c: New file, from GNU gettext.
87224
87225 2005-01-20  Simon Josefsson  <jas@extundo.com>
87226
87227         * modules/version-etc-fsf: New file.
87228
87229 2005-01-20  Simon Josefsson  <jas@extundo.com>
87230
87231         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
87232         * lib/version-etc.c: Remove version_etc_copyright.
87233         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
87234         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
87235
87236 2005-01-20  Simon Josefsson  <jas@extundo.com>
87237
87238         * lib/base64.h (isbase64): Add.
87239
87240         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
87241         using a unsigned prototype, don't inline.
87242         (base64_decode): Use it.
87243
87244 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87245
87246         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
87247         it.
87248
87249 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87250
87251         * lib/save-cwd.c (save_cwd): Remove code to support the case
87252         where fchdir is missing or flaky.
87253
87254 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87255
87256         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
87257
87258 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
87259
87260         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
87261         AC_LIBSOURCES now does this.
87262         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
87263         with new ullong_max module.
87264
87265 2005-01-19  Bruno Haible  <bruno@clisp.org>
87266
87267         * modules/sh-quote: New file.
87268         * MODULES.html.sh (Executing programs): Add sh-quote.
87269
87270 2005-01-19  Bruno Haible  <bruno@clisp.org>
87271
87272         * lib/sh-quote.h: New file, from GNU gettext.
87273         * lib/sh-quote.c: New file, from GNU gettext.
87274
87275 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87276
87277         Merge from coreutils.
87278         * m4/ullong_max.m4: New file.
87279         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
87280         (gl_MACROS): Assume localeconv exists.
87281
87282 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87283
87284         Merge changes from coreutils, as described below in several
87285         changelogs dated today.
87286
87287         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
87288         (O_DIRECTORY): Remove; not needed here, since "." must be
87289         a directory.  All uses removed.
87290         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
87291         universal on Suns, and we also need to test for IRIX.
87292         Revamp code to use 'if' rather than '#if'.
87293         Avoid unnecessary comparison of cwd->desc to 0.
87294
87295         * lib/utimens.c (futimens): Robustify the previous patch, by checking
87296         for known valid error numbers rather than observed invalid ones.
87297
87298 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87299
87300         * modules/ullong_max: New file.
87301
87302         * modules/chdir-long, modules/openat: New files.
87303         * modules/save-cwd (Depends-on): Depend on chdir-long.
87304         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
87305
87306 2005-01-18  Jim Meyering  <jim@meyering.net>
87307
87308         Merge from coreutils.
87309         * m4/chdir-long.m4, m4/openat.m4: New files.
87310         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
87311         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
87312         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
87313         is sane and DOES follow symlinks.  Besides, testing 20 different
87314         systems found no broken chown implementations.
87315         Prompted by a change in rsync's copy of this macro.
87316         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
87317
87318         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
87319
87320         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
87321         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
87322         NULL-means-set-to-current-time semantics.
87323         Remove temporary file immediately, rather than waiting
87324         for configure's at-exit trap code to do it.
87325
87326 2005-01-18  Jim Meyering  <jim@meyering.net>
87327
87328         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87329
87330         * lib/utimens.c (futimens): Account for the fact that futimes
87331         can also fail with errno == ENOSYS or errno == ENOENT.
87332         Patch from Dmitry V. Levin.
87333
87334         Change the name of the robust chdir function from chdir to chdir_long.
87335         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
87336         (restore_cwd): Use chdir_long, not chdir.
87337         * lib/chdir-long.c: Renamed from chdir.c.
87338         * lib/chdir-long.h: Renamed from chdir.h.
87339         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
87340         Hurd.
87341
87342 2005-01-18  Bruno Haible  <bruno@clisp.org>
87343
87344         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
87345         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
87346         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
87347         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
87348         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
87349         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
87350         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
87351         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
87352         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
87353         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
87354         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
87355         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
87356         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
87357         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
87358         Use an all-permissive copyright notice, recommended by RMS.
87359
87360 2005-01-18  Bob Proulx  <bob@proulx.com>
87361
87362         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
87363         simplify offsetof() macro construct to avoid compile failure with
87364         native HP-UX 11.0 ANSI C compiler.
87365
87366 2005-01-17  Bruno Haible  <bruno@clisp.org>
87367
87368         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
87369         redundant because stpncpy.m4 takes care of it.
87370
87371 2005-01-17  Bruno Haible  <bruno@clisp.org>
87372
87373         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
87374
87375 2005-01-17  Bruno Haible  <bruno@clisp.org>
87376
87377         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
87378         used.
87379
87380 2005-01-17  Bruno Haible  <bruno@clisp.org>
87381
87382         * lib/fwriteerror.h (fwriteerror): Change specification to include
87383         fclose.
87384         * lib/fwriteerror.c: Include <stdbool.h>.
87385         (fwriteerror): At the end, close the file stream. Record whether
87386         stdout was already closed.
87387
87388 2005-01-17  Bruno Haible  <bruno@clisp.org>
87389
87390         * lib/execute.c (environ): Declare if needed.
87391         * lib/pipe.c (environ): Likewise.
87392         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
87393
87394 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87395
87396         * modules/argp: Depend on vsnprintf
87397
87398 2005-01-10  Jim Meyering  <jim@meyering.net>
87399
87400         * modules/closeout (Depends-on): Add atexit.
87401
87402 2005-01-06  Bruno Haible  <bruno@clisp.org>
87403
87404         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
87405
87406 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
87407
87408         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
87409         definitions to be after all include files, to avoid collisions.
87410         Problem reported by Bob Proulx.
87411
87412 2005-01-04  Jim Meyering  <jim@meyering.net>
87413
87414         Changes imported from coreutils.
87415         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
87416         as the mkstemp template, use a temporary directory and an
87417         8.3-friendly template to avoid trouble on systems like DJGPP.
87418         Reported by Juan M. Guerrero via Stepan Kasal.
87419         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
87420         close. Remove the temporary directory right away, rather than waiting
87421         for configure's at-exit trap code to do it.
87422         Suggestion from Stepan Kasal.
87423
87424 2005-01-01  Simon Josefsson  <jas@extundo.com>
87425
87426         * gnulib-tool: Print #include directives when --import'ing.
87427
87428 2004-12-28  Simon Josefsson  <jas@extundo.com>
87429
87430         * tests/test-base64.c: Include required header files.  Remove
87431         unused variables.
87432
87433 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87434
87435         * modules/error (Depends-on): Remove gettext.
87436
87437 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87438
87439         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
87440         not needed.  This removes a dependency on the gettext module.
87441         [defined _LIBC]: Do not include <libintl.h>; not needed.
87442
87443 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87444
87445         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
87446         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
87447
87448 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87449
87450         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
87451         HAVE_DECL_STRTOLD.
87452
87453 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87454
87455         * modules/getdate (Depends-on): Remove alloca-opt.
87456
87457 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87458
87459         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
87460
87461 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87462
87463         * lib/argp-parse.c: Include <stddef.h>.
87464         (alignof, alignto): New macros.
87465         (parser_init): Don't assume that void * is aligned sufficiently
87466         for struct option.
87467
87468         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
87469         need to extend the stack.
87470         (YYINITDEPTH): New macro, so that the initial stack isn't overly
87471         large.
87472
87473 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87474
87475         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
87476
87477 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87478
87479         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
87480         (2004-10-24) change.  Apparently this was a false alarm.
87481
87482         * modules/getdate: Depend on alloca-opt, not alloca.
87483
87484 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87485
87486         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
87487         Remove now-obsolete comment about AIX.
87488         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
87489         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
87490         (YYMAXDEPTH): New macro.
87491
87492 2004-12-18  Simon Josefsson  <jas@extundo.com>
87493
87494         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
87495
87496 2004-12-18  Bruno Haible  <bruno@clisp.org>
87497
87498         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
87499
87500 2004-12-18  Bruno Haible  <bruno@clisp.org>
87501
87502         * lib/fatal-signal.c (fatal_signals): Make non-const.
87503         (init_fatal_signals): New function.
87504         (uninstall_handlers, install_handlers): Ignore signals that were set to
87505         SIG_IGN.
87506         (at_fatal_signal): Call init_fatal_signals.
87507         (init_fatal_signal_set): Likewise. Ignore signals that were set to
87508         SIG_IGN.
87509         Reported by Paul Eggert.
87510
87511 2004-12-18  Bruno Haible  <bruno@clisp.org>
87512
87513         * doc/alloca.texi: New file.
87514         * doc/alloca-opt.texi: New file.
87515
87516 2004-12-17  Jim Meyering  <jim@meyering.net>
87517
87518         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
87519         Otherwise, install-sh could exit with improper exit status when
87520         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
87521
87522 2004-12-16  Simon Josefsson  <jas@extundo.com>
87523
87524         * tests/test-base64.c: Add license.
87525
87526 2004-12-15  Stepan Kasal  <address@hidden>
87527
87528         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
87529
87530 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
87531
87532         * modules/getcwd (Files): Add m4/d-ino.m4.
87533         Suggested by Mark D. Baushke.
87534
87535 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87536
87537         * lib/getdate.y (textint): New member "negative".
87538         (time_zone_hhmm): New function.
87539         Expect 14 shift-reduce conflicts, not 13.
87540         (o_colon_minutes): New rule.
87541         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
87542         (yylex): Set the "negative" member of signed numbers.
87543
87544 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87545
87546         * doc/getdate.texi (Time of day items, Time zone items):
87547         Describe new formats +00:00, UTC+00:00.
87548
87549 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
87550
87551         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
87552         spurious "-l"s.  Problem reported by Stepan Kasal.
87553
87554 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
87555
87556         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
87557         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
87558
87559 2004-12-04  Simon Josefsson  <jas@extundo.com>
87560
87561         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
87562         Vandoorselaere <yoann@prelude-ids.org>.
87563
87564 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87565
87566         Changes imported from coreutils.
87567         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
87568         exist.
87569         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
87570
87571 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87572
87573         Changes imported from coreutils.
87574         * lib/hard-locale.c: Assume <locale.h> exists.
87575         Include "strdup.h".
87576         (GLIBC_VERSION): New macro.
87577         (hard_locale): Assume setlocale exists.
87578         Rewrite to avoid #ifdef.
87579         Use strdup rather than malloc + strcpy.
87580         * lib/human.c: Assume <locale.h> exists.
87581         (human_readable): Assume localeconv exists.
87582
87583 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87584
87585         * modules/hard-locale (Depends-on): Add strdup.
87586
87587 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
87588
87589         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
87590         convert T2, not T.  (Imported from libc.)
87591
87592 2004-11-30  Simon Josefsson  <jas@extundo.com>
87593
87594         * modules/restrict (License): Change to LGPL.
87595
87596 2004-11-30  Simon Josefsson  <jas@extundo.com>
87597
87598         * m4/restrict.m4: Add copyright and copying conditions.
87599
87600 2004-11-30  Simon Josefsson  <jas@extundo.com>
87601
87602         * m4/base64.m4: New file.
87603
87604 2004-11-30  Simon Josefsson  <jas@extundo.com>
87605
87606         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
87607         base64.
87608
87609         * tests/test-base64.c: New file.
87610
87611         * modules/base64: New file.
87612
87613 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87614
87615         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
87616         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
87617
87618         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
87619
87620 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87621
87622         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
87623         (__getcwd.c): Don't restore errno; glibc doesn't.
87624         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
87625         first, falling back to our code only if its results look suspicious.
87626         Ensure that the resulting buffer is only as large as necessary.
87627
87628         * lib/readutmp.c: Include readutmp.h first.
87629         Include <errno.h>, since readutmp.h no longer does that.
87630         * lib/readutmp.h: Don't include <errno.h>,
87631         <sys/param.h>, <time.h>; not needed to establish interface.
87632         (errno): Remove decl.
87633         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
87634         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
87635         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
87636
87637 2004-11-28  Simon Josefsson  <jas@extundo.com>
87638
87639         * lib/base64.h, base64.c: New file.
87640
87641 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
87642
87643         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
87644
87645 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
87646
87647         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
87648         (Depends-on): Remove pathmax, same.  Add mempcpy.
87649         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
87650         (Makefile.am): Append getcwd.h to lib_SOURCES.
87651         (Include): Add getcwd.h.
87652         (Maintainer): Change from Jim Meyering to "all, glibc",
87653         since getdate now uses intended-for-glibc code.
87654         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
87655         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
87656
87657 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87658
87659         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
87660         HP's ANSI C compiler.
87661         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
87662         Declaring int functions causes warnings on some modern systems and
87663         shouldn't be needed to compile on ancient ones.
87664         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
87665         defined.
87666
87667         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
87668         with the following changes.
87669         (__set_errno): Parenthesize properly.
87670         Include <stdbool.h>.
87671         (MIN, MAX, MATCHING_INO): New macros.
87672         (__getcwd): Define with prototype, not K&R form.
87673         Use heuristics to allocate default buffer on stack if possible.
87674         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
87675         behavior, and to avoid the PATH_MAX limit when computing
87676         ../../../../...
87677         Use MATCHING_INO to compare inode number to file.
87678         Check for arithmetic overflow in size calculations.
87679         Fix bug in reallocation of dot array that caused getcwd to fail
87680         on directories nested deeper than 75.
87681         Be more careful about saving errno on error.
87682         Do not use realloc; use only free+malloc, as this is a bit
87683         more flexible and avoids a needless copy operation.
87684         Do not inspect st_dev and st_ino for symbolic links; POSIX
87685         doesn't specify the latter.
87686         Check for closedir errors.
87687         Avoid needless casts.
87688         Use "#ifdef weak_alias" around weak_alias, to be like other
87689         glibc code.
87690         The following changes to getcwd.c have effect only when used in
87691         gnulib; they have no effect inside glibc proper.
87692         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
87693         as alloca isn't used.
87694         (alloca, __alloca): Likewise.
87695         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
87696         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87697         unconditionally, as gnulib assumes C89 or better.
87698         Do not include <sys/param.h>.
87699         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
87700         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
87701         better.
87702         (NULL) [!defined NULL]: Remove; we assume C89 or better.
87703         Include <dirent.h> in a way that is compatible with modern Autoconf.
87704         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
87705         New macros, if not already defined.
87706         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
87707         Use "_LIBC", not "defined _LIBC", for consistency.
87708         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
87709         a mempcpy module.
87710         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
87711         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
87712         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
87713         credit only to Jim Meyering and adjust the copyright dates.
87714         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
87715         <stdlib.h>, <unistd.h>, "pathmax.h".
87716         Instead, include "xgetcwd.h" (first) and "getcwd.h".
87717         (INITIAL_BUFFER_SIZE): Remove.
87718         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
87719
87720 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87721
87722         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
87723         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
87724         Use the _ONCE methods, for efficiency.
87725         Check for fcntl.h.  In test program, include <errno.h>
87726         and <fcntl.h> if available.  Remove old K&R cruft from
87727         test program.  Check for common errors in GNU/Linux,
87728         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
87729         don't do AC_LIBOBJ, as that's getcwd.m4's job.
87730         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
87731         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
87732         name accordingly.
87733         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
87734         accommodate new getcwd.c.
87735         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
87736         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
87737         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
87738         that's all we need now.
87739
87740 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87741
87742         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
87743         argp-parse.c depends on getopt internals, that means we should
87744         always use our getopt, to be on the safe side.
87745         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
87746         order not to spoil the result of an eventual previous invocation
87747         of gl_GETOPT_SUBSTITUTE.
87748
87749 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87750
87751         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
87752         redefinition warnings. To avoid them, include the defines
87753         in `#if !defined __need_getopt ... #endif'. The only place
87754         where __getopt_argv_const is used is in definitions
87755         of getopt_long and getopt_long_only below, which are as well
87756         protected by `#ifndef __need_getopt'.
87757         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
87758         __need_getopt after including <stdio.h> and <unistd.h> These
87759         headers might have defined it.
87760
87761 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87762
87763         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
87764
87765 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87766
87767         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
87768         (futimens): New function, which uses futimes if available.
87769         (futimens, utimens): Support timespec==NULL, with same semantics
87770         as utime and utimens.
87771         * lib/utimens.h (futimens): New decl.
87772
87773 2004-11-23  Jim Meyering  <jim@meyering.net>
87774
87775         * lib/getopt_.h: Remove trailing blanks.
87776
87777 2004-11-23  Jim Meyering  <jim@meyering.net>
87778
87779         * lib/__fpending.c: Add comment.
87780
87781 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
87782
87783         * modules/canonicalize (Depends-on): Add xreadlink.
87784         Problem reported by James Youngman.
87785
87786 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
87787
87788         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
87789         New macros.
87790         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
87791         optopt): Use them instead of invoking ## directly; otherwise, the
87792         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
87793
87794 2004-11-19  Bruno Haible  <bruno@clisp.org>
87795
87796         * lib/strtok_r.c: Move comments from here...
87797         * lib/strtok_r.h: ... to here.
87798
87799 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87800
87801         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
87802         implementations that mishandle size_t overflow.
87803
87804 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87805
87806         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
87807         might fail.  Problem reported by Yoann Vandoorselaere.
87808         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
87809         implementations that mishandle size_t overflow.
87810
87811 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87812
87813         * modules/canon-host (Depends-on): Add strdup.
87814
87815 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87816
87817         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
87818
87819 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87820
87821         * lib/canon-host.c: Include "strdup.h".
87822         (canon_host): Use getaddrinfo if available, so that IPv6 works.
87823         Use strdup instead of malloc/strcpy to duplicate strings.
87824
87825         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
87826         (human_space_before_unit): New constant.
87827         * lib/human.c (human_readable): Support it.
87828
87829         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
87830         (xgetcwd): Set errno correctly when failing.
87831         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
87832         the failure is actually due to a PATH_MAX problem.
87833
87834         Further getopt changes to make it more likely that glibc will
87835         buy the changes back.
87836         * lib/getopt.c (POSIXLY_CORRECT): New constant.
87837         (getopt): Use it, so to preserve glibc semantic
87838         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
87839         when compiling for libc.
87840         * lib/getopt_.h (__getopt_argv_const): Bring it back.
87841         (getopt_long, getopt_long_only): Use it.
87842
87843         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87844         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
87845         (getopt): Argv is now char * const *, as per standard.
87846         (_getopt_internal_r, _getopt_internal): Argv is now char **,
87847         not char *__getopt_argv_const *.
87848         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87849         _getopt_long_only_r): Likewise.
87850         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
87851         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87852         _getopt_long_r, _getopt_long_only_r): Likewise.
87853         * lib/getopt_.h (__getopt_argv_const): Remove.
87854         (getopt): Argv is now char * const *, as per standard.
87855
87856         * lib/getdate.y (tORDINAL): New token.
87857         (day, relunit): Allow it for relative times.
87858         (relative_time_table): Use tORDINAL for ordinals.
87859
87860 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87861
87862         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
87863         Document that "second" isn't allowed as an ordinal number.
87864
87865 2004-11-16  Jim Meyering  <jim@meyering.net>
87866
87867         * modules/closeout (Depends-on): Add fpending.
87868
87869 2004-11-15  Jim Meyering  <jim@meyering.net>
87870
87871         * lib/closeout.c: Include "__fpending.h" once again.
87872         Include <stdbool.h>.
87873         (close_stdout): Don't fail just because stdout was closed initially,
87874         since some programs don't write to stdout in the normal course of
87875         operation (other than --version and --help), and we don't want this
87876         function to make e.g. `touch file >&-' fail.
87877         But do fail if it was closed and someone has tried to write to it.
87878         E.g., `printf foo >&-' must fail.
87879
87880 2004-11-13  Jim Meyering  <jim@meyering.net>
87881
87882         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
87883
87884 2004-11-12  Simon Josefsson  <jas@extundo.com>
87885
87886         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
87887         small doc fix is still pending.
87888
87889 2004-11-11  Simon Josefsson  <jas@extundo.com>
87890
87891         * modules/strtok_r: New file.
87892
87893         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87894         strtok_r.
87895
87896 2004-11-11  Simon Josefsson  <jas@extundo.com>
87897
87898         * m4/strtok_r.m4: New file.
87899
87900         * m4/getopt.m4: Replace opterr.
87901
87902 2004-11-11  Simon Josefsson  <jas@extundo.com>
87903
87904         * lib/strtok_r.h, strtok_r.c: New file.
87905
87906 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87907
87908         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
87909         of replacing opterr, getopt, etc.  This should handle the
87910         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
87911
87912 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87913
87914         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
87915         we can stop lying to compilers about the constness of argv when we
87916         are compiled outside glibc.
87917         (getopt, getopt_long, getopt_long_only): Use it.
87918         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87919         _getopt_internal, getopt): Likewise.
87920         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87921         _getopt_long_only_r): Likewise.
87922         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87923         _getopt_long_r, _getopt_long_only_r): Likewise.
87924
87925         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
87926         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
87927         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
87928         the other external symbols.
87929         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
87930         declaration, since the above renaming now works around collisions.
87931
87932 2004-11-11  Jim Meyering  <jim@meyering.net>
87933
87934         * lib/linebreak.c: Remove trailing blanks.
87935         * lib/alloca_.h: Likewise.
87936         * lib/acosl.c: Likewise.
87937         * lib/euidaccess.c: Likewise.
87938         * lib/allocsa.h: Likewise.
87939
87940 2004-11-10  Simon Josefsson  <jas@extundo.com>
87941
87942         * m4/getaddrinfo.m4: New file.
87943
87944 2004-11-10  Simon Josefsson  <jas@extundo.com>
87945
87946         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
87947
87948 2004-11-10  Simon Josefsson  <jas@extundo.com>
87949
87950         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87951         getaddrinfo.
87952
87953         * modules/getaddrinfo: New file.
87954
87955 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87956
87957         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
87958
87959 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87960
87961         * lib/mktime.c (SHR): New macro, which is a portable
87962         substitute for >> that should work even on Crays.
87963         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
87964         Problem reported by Mark D. Baushke in
87965         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
87966         * lib/getdate.y (SHR): Likewise.
87967         (tm_diff): Use it.
87968         * lib/strftime.c (SHR): Likewise.
87969         (tm_diff): Use it.
87970         * lib/quotearg.c (struct quoting_options): Use unsigned int for
87971         quote_these_too, so that right shifts are well defined.  All uses
87972         changed.
87973
87974 2004-11-10  Jim Meyering  <jim@meyering.net>
87975
87976         Ensure that no close failure goes unreported.
87977         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
87978         return early when it seems there's nothing to flush.
87979         Don't include __fpending.h.
87980
87981 2004-11-10  Jim Meyering  <jim@meyering.net>
87982
87983         * modules/closeout (Depends-on): Remove fpending.
87984
87985 2004-11-10  Jim Meyering  <jim@meyering.net>
87986
87987         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
87988
87989 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87990
87991         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
87992         gl_FUNC_STRFTIME.
87993         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
87994         and AC_REQUIRE when possible, to avoid duplicate checks.
87995         Check for <wchar.h>.
87996
87997 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87998
87999         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
88000
88001 2004-11-09  Bruno Haible  <bruno@clisp.org>
88002
88003         * m4/sockpfaf.m4: New file.
88004
88005 2004-11-05  Bruno Haible  <bruno@clisp.org>
88006
88007         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
88008         Reported by Mark D. Baushke <mdb@cvshome.org>.
88009
88010 2004-11-04  Bruno Haible  <bruno@clisp.org>
88011
88012         2004-09-11  Bruno Haible  <bruno@clisp.org>
88013                 * allocsa.valgrind: New file.
88014         2004-02-06  Bruno Haible  <bruno@clisp.org>
88015                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
88016                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
88017                 Reported by Christopher Seip <chris.seip@hp.com>.
88018
88019 2004-11-04  Bruno Haible  <bruno@clisp.org>
88020
88021         * modules/allocsa (Files): Add lib/allocsa.valgrind.
88022         (Makefile.am): Distribute it.
88023
88024 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
88025
88026         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
88027         with errno == ERANGE if the buffer is too small.
88028         Problem reported by Mark D. Baushke.
88029
88030 2004-11-03  Albert Chin  <china@thewrittenword.com>
88031             Paul Eggert  <eggert@cs.ucla.edu>
88032
88033         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
88034         equivalent, substitute $ac_type for equivalent type rather than
88035         blindly using uint32_t *always* which won't work if uint32_t is not
88036         available.  Define _UINT32_T to work around typedef of uint32_t if
88037         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
88038         2.5.1.
88039
88040 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88041
88042         * m4/jm-macros.m4: Sync from coreutils.
88043         (gl_MACROS): Check for mbrlen, for pathchk.
88044         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
88045
88046 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88047
88048         * lib/xreadlink.c (MAXSIZE): New macro.
88049         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
88050         size does not exceed MAXSIZE.  Avoid cast.
88051         As suggested by Mark D. Baushke in
88052         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
88053         if readlink fails with buffer size just under MAXSIZE, try again
88054         with MAXSIZE.
88055
88056 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88057
88058         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
88059
88060 2004-11-02  Derek R. Price  <derek@ximbiot.com>
88061         and  Paul Eggert  <eggert@cs.ucla.edu>
88062
88063         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
88064         (get_date): Overparenthesize to avoid GCC warning.
88065
88066 2004-11-02  Bruno Haible  <bruno@clisp.org>
88067
88068         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
88069         returns void.
88070
88071 2004-11-02  Bruno Haible  <bruno@clisp.org>
88072
88073         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
88074         function returns void.
88075
88076 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88077
88078         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
88079         fflush_unlocked, flockfile, funlockfile, funlockfile,
88080         fputs_unlocked, putc_unlocked.
88081
88082 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88083
88084         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88085         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
88086         already declared.
88087
88088 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88089
88090         * modules/getdate (Files): Add doc/getdate.texi.
88091         (Depends-on): Add setenv, xalloc.
88092
88093 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88094
88095         * lib/getdate.y: Add support for TZ="foo" within a date string.
88096         Fix some bugs near time_t boundaries.  Reject dates with
88097         out-of-range components, e.g., "Sept 31".
88098         Include <stdlib.h>, "setenv.h", "xalloc.h".
88099         (ISDIGIT_LOCALE): Remove; unused.
88100         Note that the TZ and time functions used here are not reentrant.
88101         (mktime_ok, get_tz): New functions.
88102         (TZBUFSIZE): New constant.
88103         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
88104         This requires that we sometimes generate our own TZ="XXX..." setting.
88105
88106 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88107
88108         * doc/getdate.texi: New file, from coreutils with modifications for
88109         the new TZ parsing.
88110
88111 2004-10-27  Derek R. Price  <derek@ximbiot.com>
88112
88113         * lib/mktime.c (not_equal_tm): Remove redundant check.
88114
88115 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88116
88117         * modules/regex (lib_SOURCES): Add regex.c.
88118         Reported by James Youngman in
88119         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
88120
88121 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88122
88123         * lib/getdate.y: Use Bison 1.875 features, and some minor
88124         code cleanups.  This change does not affect semantics.
88125         Don't include <stdlib.h>; no longer needed.
88126         Don't include unlocked-io.h; only the "#if TEST" code uses
88127         stdio, and performance isn't crucial there.
88128         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
88129         Bison 1.875 features as described below.
88130         All uses of "PC." replaced by "pc->".
88131         (YYSTYPE): Add a forward declaration.
88132         (yylex, yyerror): Use full prototypes in forward decls.
88133         Use "%pure-parser" rather than obsolescent "%pure_parser".
88134         Use %parse-param and %lex-param instead of obsolescent
88135         YYPARSE_PARAM and YYLEX_PARAM.
88136         (meridian_table, month_and_day_table, time_units_table,
88137         relative_time_table, time_zone_table, military_table,
88138         lookup_zone, lookup_word, get_date):
88139         Use NULL instead of 0 where appropriate.
88140         (to_hour): Avoid abort (), to avoid a dependency on
88141         stdlib.h.
88142         (yyerror, yylex): Now accepts parser_control * arg.
88143         (main) [TEST]: Use '\0' rather than 0 for char.
88144
88145 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88146
88147         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
88148
88149 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88150
88151         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
88152         It's now the caller's responsibility to handle the case where
88153         !HAVE_GETPAGESIZE && !defined getpagesize.
88154
88155         * lib/mktime.c (leapyear): Arg is long int, not int.
88156
88157 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
88158
88159         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
88160
88161 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
88162
88163         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
88164         missing.  Problem reported by James Youngman.
88165
88166 2004-10-16  Simon Josefsson  <jas@extundo.com>
88167
88168         * gnulib-tool: Fix comments.  Fix parse problem.
88169         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
88170
88171 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
88172
88173         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
88174         implementation of getopt_long.  Problem reported by Alexander Taler in:
88175         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
88176
88177 2004-10-15  Bruno Haible  <bruno@clisp.org>
88178
88179         * gnulib-tool: Untabify. Initialize supplied_libname.
88180         (func_usage): More homogenous output.
88181         (func_modules_transitive_closure, func_modules_to_filelist,
88182         func_emit_lib_Makefile_am): New functions.
88183         (func_import): New function, extracted from big case statement. Use
88184         func_get_license, func_modules_transitive_closure,
88185         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
88186         opt_lgpl. Don't use test -a, as it's not portable.
88187         (func_create_testdir): Use func_modules_transitive_closure,
88188         func_modules_to_filelist, func_emit_lib_Makefile_am.
88189
88190 2004-10-15  Bruno Haible  <bruno@clisp.org>
88191
88192         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
88193
88194 2004-10-15  Bruno Haible  <bruno@clisp.org>
88195
88196         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
88197         the portions belonging to each module.
88198         Suggested by Derek Robert Price <derek@ximbiot.com>.
88199
88200 2004-10-12  Simon Josefsson  <jas@extundo.com>
88201
88202         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88203         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
88204         to real functions.
88205
88206 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88207
88208         * modules/vsnprintf: New file.
88209
88210 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88211
88212         * m4/vsnprintf.m4: New file.
88213
88214 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88215
88216         * lib/vsnprintf.h: New file.
88217         * lib/vsnprintf.c: New file.
88218
88219 2004-10-11  Bruno Haible  <bruno@clisp.org>
88220
88221         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
88222         vsnprintf.
88223
88224 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
88225
88226         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
88227
88228 2004-10-07  Bruno Haible  <bruno@clisp.org>
88229
88230         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
88231         fits into the provided buffer.
88232
88233 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
88234
88235         * lib/diacrit.c, diacrit.h: Add GPL notice.
88236
88237         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
88238         notice.
88239         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
88240         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
88241         This avoids a potential constant-folding bug.
88242
88243 2004-10-05  Bruno Haible  <bruno@clisp.org>
88244
88245         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
88246         for the declaration of strsep.
88247
88248 2004-10-05  Bruno Haible  <bruno@clisp.org>
88249
88250         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
88251
88252 2004-10-04  Simon Josefsson  <jas@extundo.com>
88253
88254         * modules/memmem: New file.
88255         * tests/test-memmem.c: New file.
88256         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
88257
88258 2004-10-04  Simon Josefsson  <jas@extundo.com>
88259
88260         * m4/memmem.m4: New file.
88261
88262 2004-10-04  Simon Josefsson  <jas@extundo.com>
88263
88264         * lib/memmem.h: New file.
88265         * lib/memmem.c: New file, taken from glibc.
88266
88267 2004-10-04  Simon Josefsson  <jas@extundo.com>
88268
88269         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
88270         '#ifdef USE_UNLOCKED_IO'.
88271
88272 2004-10-04  Simon Josefsson  <jas@extundo.com>
88273
88274         * config/srclist.txt: Add memmem from glibc.
88275
88276 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88277
88278         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
88279
88280         * modules/argmatch, modules/argp, modules/closeout, modules/error,
88281         modules/exclude, modules/getdate, modules/getline,
88282         modules/getndelim2, modules/getpass, modules/getpass-gnu,
88283         modules/getusershell, modules/linebuffer, modules/md5,
88284         modules/mountlist, modules/posixtm, modules/readtokens,
88285         modules/readutmp, modules/regex, modules/sha1,
88286         modules/version-etc, modules/yesno:
88287         Remove dependency on unlocked-io.
88288
88289 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88290
88291         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
88292
88293         * m4/unlocked-io.m4: Add copyright notice.
88294         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
88295
88296 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88297
88298         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
88299         * lib/xmalloc.c (xmemdup): Likewise.
88300         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
88301         XFREE): Remove these long-obsolescent macros.
88302         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
88303         * lib/xstrdup.c: Remove.
88304
88305         * lib/regex.c (re_comp): Cast gettext return value to char *,
88306         Problem reported by Martin Neitzel via Mark D. Baushke.
88307
88308 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88309
88310         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
88311         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
88312         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
88313         regex.c, sha1.c, version-etc.c, yesno.c:
88314         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
88315         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
88316         the includer's responsibility.
88317
88318         Sync from coreutils.
88319
88320         * lib/modechange.c (mode_compile): Don't decrement a pointer that
88321         points to the start of a string, as the C Standard says the
88322         resulting behavior is undefined.
88323
88324         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
88325         simple -> simple_backups, numbered_existing ->
88326         numbered_existing_backups, numbered -> numbered_backups
88327         to avoid shadowing problems.  All uses changed.
88328         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
88329         * lib/backupfile.c (check_extension, numbered_backup):
88330         Rename locals to avoid shadowing 'basename'.
88331         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
88332         once.
88333
88334         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
88335         * lib/.cvsignore: Add getopt.h.
88336
88337 2004-10-04  Bruno Haible  <bruno@clisp.org>
88338
88339         * modules/README: New file.
88340         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
88341         not a module.
88342
88343 2004-10-02  Jim Meyering  <jim@meyering.net>
88344
88345         * lib/dirfd.h, getpagesize.h: Add copyright notice.
88346
88347 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88348
88349         * modules/strsep: New file.
88350
88351 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88352
88353         * m4/strsep.m4: New file.
88354
88355 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88356
88357         * lib/strsep.h: New file.
88358         * lib/strsep.c: New file.
88359
88360 2004-10-01  Simon Josefsson  <jas@extundo.com>
88361
88362         * lib/snprintf.c (snprintf): Handle size==0.
88363
88364 2004-10-01  Simon Josefsson  <jas@extundo.com>
88365             Bruno Haible  <bruno@clisp.org>
88366
88367         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
88368         (snprintf): Declare 'args'.
88369
88370 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
88371
88372         * lib/snprintf.c: Remove comments as to why each header is needed.
88373
88374 2004-10-01  Bruno Haible  <bruno@clisp.org>
88375
88376         * MODULES.html.sh: Add strsep.
88377
88378 2004-09-30  Simon Josefsson  <jas@extundo.com>
88379
88380         * modules/snprintf: New file.
88381
88382 2004-09-30  Simon Josefsson  <jas@extundo.com>
88383
88384         * m4/snprintf.m4: New file.
88385
88386 2004-09-30  Simon Josefsson  <jas@extundo.com>
88387
88388         * lib/snprintf.h, lib/snprintf.c: New files.
88389
88390 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88391
88392         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
88393         (hol_entry_help): Never translate an empty string.
88394         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
88395         * lib/argp.h (OPTION_NO_TRANS): New option.
88396
88397 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88398
88399         * modules/argp (Maintainer): Replace Simon Josefsson
88400         by Sergey Poznyakoff.
88401
88402 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88403
88404         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
88405         changes merged back into glibc.
88406
88407 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88408
88409         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
88410
88411 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
88412
88413         * lib/xvasprintf.c: Include xalloc.h.
88414         (xvasprintf): Use xalloc_die, not xmalloc_die.
88415
88416 2004-09-29  Bruno Haible  <bruno@clisp.org>
88417
88418         * modules/alloca-opt: New file, derived from modules/alloca.
88419         * modules/allocsa: Depend on alloca-opt instead of alloca.
88420         * modules/setenv: Likewise.
88421         * modules/vasnprintf: Likewise.
88422         * MODULES.html.sh: Add alloca-opt.
88423
88424 2004-09-28  Simon Josefsson  <jas@extundo.com>
88425
88426         * gnulib-tool: New parameter --lgpl, to asseert that modules are
88427         LGPL, and to replace license template from GPL to LGPL.
88428
88429 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88430
88431         * modules/dummy: Change license to LGPL.
88432
88433 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88434
88435         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
88436
88437 2004-09-24  Simon Josefsson  <jas@extundo.com>
88438
88439         * modules/minmax (License): Change from GPL to LGPL.
88440
88441 2004-09-23  Simon Josefsson  <jas@extundo.com>
88442
88443         * gnulib-tool (--import): Typo.
88444
88445 2004-09-23  Simon Josefsson  <jas@extundo.com>
88446
88447         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
88448
88449 2004-09-22  Bruno Haible  <bruno@clisp.org>
88450
88451         * modules/*: Add 'License' field.
88452         * gnulib-tool: Accept --extract-license option.
88453         (func_get_license): New function.
88454
88455 2004-09-21  Bruno Haible  <bruno@clisp.org>
88456
88457         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
88458         Reported by Simon Josefsson.
88459
88460 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88461
88462         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
88463         gl_AC_TYPE_LONG_LONG.
88464
88465 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88466
88467         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
88468
88469 2004-09-18  Simon Josefsson  <jas@extundo.com>
88470         and  Paul Eggert  <eggert@cs.ucla.edu>
88471
88472         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
88473         calls with autoreconf.  Define GL_LIB.
88474
88475 2004-09-14  Karl Berry  <karl@gnu.org>
88476
88477         * config/srclist.txt: unsync setenv.c, sigh.
88478
88479 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88480
88481         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
88482         Problem reported by Bruno Haible in:
88483         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
88484
88485 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88486
88487         * config/srclist.txt: Comment out argp-pvh.c.
88488
88489 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
88490
88491         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
88492         in case some system header has #define'd it.  Problem reported by
88493         Soeren D. Schulze in
88494         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
88495
88496 2004-09-09  Karl Berry  <karl@gnu.org>
88497
88498         * regex.[ch]: delete from the root.  These were supposed to be
88499                 synced with emacs cvs, but this has not happened for about
88500                 a year, and anyway nothing else uses emacs regex.[ch].
88501                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
88502                 lib/regex[.ch] is untouched.
88503
88504 2004-09-09  Bruno Haible  <bruno@clisp.org>
88505
88506         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
88507
88508 2004-09-09  Bruno Haible  <bruno@clisp.org>
88509
88510         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
88511         modifications.
88512         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
88513
88514 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88515
88516         * modules/xvasprintf: New file.
88517         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
88518
88519 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88520
88521         * lib/xvasprintf.h: New file.
88522         * lib/xvasprintf.c: New file.
88523         * lib/xasprintf.c: New file.
88524
88525 2004-09-08  Bruno Haible  <bruno@clisp.org>
88526
88527         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
88528
88529 2004-09-08  Bruno Haible  <bruno@clisp.org>
88530
88531         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
88532         length is > INT_MAX.
88533         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
88534         more.
88535
88536 2004-09-08  Bruno Haible  <bruno@clisp.org>
88537
88538         * lib/stdint_.h: New file, taken from GNU clisp.
88539
88540 2004-09-08  Bruno Haible  <bruno@clisp.org>
88541             Oskar Liljeblad  <oskar@osk.mine.nu>
88542
88543         * modules/stdint: New file.
88544         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
88545
88546 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88547
88548         Import from coreutils.
88549         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
88550         strings on unbounded length.  alloca's performance benefits aren't
88551         that important here.
88552         (V_STRDUP): Remove.
88553         (parse_with_separator): New function, with most of the internals
88554         of the old parse_user_spec.  Allow user to omit both user and group,
88555         for compatibility with FreeBSD.
88556         Clone only the user name, not the entire spec.
88557         Do not set *uid, *gid unless entirely successful.
88558         Avoid memory leak in some failing cases.
88559         Fix regression for USER.GROUP reported by Dmitry V. Levin in
88560         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
88561         (parse_user_spec): Rewrite to use parse_with_separator.
88562
88563 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88564
88565         * modules/userspec: Don't depend on alloca.
88566
88567 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88568
88569         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
88570
88571 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
88572
88573         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
88574         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
88575         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
88576
88577 2004-08-16  Simon Josefsson  <jas@extundo.com>
88578
88579         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
88580         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
88581         Add --dry-run for --import.
88582         Let user provided command line parameters override configure.ac
88583         settings.
88584
88585 2004-08-12  Simon Josefsson  <jas@extundo.com>
88586
88587         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
88588         as discussed with Paul Eggert in threads rooted at
88589         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
88590         and
88591         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
88592         Before, the test was empty, and relied on ELIDE_CODE in source
88593         code.)
88594         (gl_PREREQ_GETOPT): New macro.
88595         (gl_GETOPT): Use them.
88596
88597 2004-08-12  Simon Josefsson  <jas@extundo.com>
88598
88599         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
88600         * lib/getopt_.h: Renamed from getopt.h.
88601
88602 2004-08-12  Simon Josefsson  <jas@extundo.com>
88603
88604         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
88605         Change default library name from libfoo to libgnu.
88606         Now, if you have a configure.ac that says:
88607                 gl_SOURCE_BASE(gl)
88608                 gl_M4_BASE(gl/m4)
88609                 gl_MODULES(error getopt etcetera)
88610                 gl_INIT
88611         you can import all you need by running:
88612                 ../gnulib/gnulib-tool --import
88613
88614         * modules/getopt (Files): Rename getopt.h to getopt_.h.
88615         (Makefile.am): Rewrite, use logic from argz.
88616         (Include): Use <getopt.h> instead of "getopt.h".
88617
88618 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88619
88620         * modules/argp (Files): Add m4/unlocked-io.m4.
88621         (Depends-on): Add extensions.
88622
88623 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88624
88625         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
88626         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
88627         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
88628         Check for program_invocation_name, program_invocation_short_name,
88629         flockfile, funlockfile, features.h, _getopt_long_only_r.
88630
88631 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88632
88633         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
88634         its complicated substitute.
88635         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
88636         and program_invocation_name.
88637         (__argp_basename) [!_LIBC]: Remove; the only use was
88638         replaced by its body.
88639         (__argp_short_program_name): Change condition from
88640         !defined __argp_short_program_name to
88641         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
88642         to match argp-namefrob.h.
88643         (__argp_failure): Don't assume strerror_r returns char *.
88644         * lib/argp-parse.c (N_): Define unconditionally.
88645         (argp_default_options): Fill out initializers with 0 to avoid
88646         gcc warnings.
88647
88648 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88649
88650         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
88651         getopt1.c.
88652
88653 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88654
88655         Merge from coreutils.
88656
88657         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
88658
88659         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
88660         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
88661
88662 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88663
88664         Merge from coreutils.
88665
88666         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
88667         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
88668         for Reliant Unix 5.43.
88669
88670         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
88671         (union fooround): Use uintmax_t, not long int.
88672         The rest is a merge from libc:
88673         [defined _LIBC]: Include <shlib-compat.h>.
88674         (_obstack) [defined _LIBC]: Remove after 2.3.4.
88675
88676         * lib/settime.c (settime): Recode to avoid warning with
88677         Sun Forte C 6U2.
88678
88679         * lib/strverscmp.c: Convert to UTF-8.
88680
88681 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88682
88683         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
88684         m4/uintmax_t.m4.
88685
88686 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88687
88688         * modules/xalloc-die: New file.
88689         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
88690
88691         * modules/md5 (Files): Add m4/uint32_t.m4.
88692         * modules/sha1: Renamed from modules/sha.
88693         (Files):
88694         Rename lib/sha.h to lib/sha1.h.
88695         Rename lib/sha.c to lib/sha1.c.
88696         Rename m4/sha.m4 to m4/sha1.m4.
88697         (lib_SOURCES): Likewise.
88698         (configure.ac): Rename gl_SHA to gl_SHA1.
88699         (Include): sha.h -> sha1.h.
88700
88701 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88702
88703         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
88704         * m4/sha1.m4: Renamed from sha.m4.
88705         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
88706
88707 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88708
88709         * lib/obstack.h (obstack_empty_p):
88710         Don't assume that chunk->contents is suitably aligned.
88711         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
88712         Likewise. Problem reported by Benno in
88713         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
88714
88715         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
88716         readable.  This could be improved further but it'd take some work.
88717
88718 2004-08-08  Simon Josefsson  <jas@extundo.com>
88719
88720         * modules/xgethostname (Depends-on): Remove exit and error (not
88721         used).
88722
88723         * modules/getpass-gnu: Add getpass.h.
88724         (Depends-on): Add stdbool.
88725         * modules/getpass: Add getpass.h.
88726
88727 2004-08-08  Simon Josefsson  <jas@extundo.com>
88728
88729         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
88730         Check getpass declaration.
88731
88732 2004-08-08  Simon Josefsson  <jas@extundo.com>
88733
88734         * lib/xgethostname.c: Don't include error.h (not used).
88735
88736         * lib/getpass.h: Add.
88737         * lib/getpass.c: Include getpass.h first.
88738
88739 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
88740
88741         * lib/xalloc-die.c: New file.
88742         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
88743         All uses removed.
88744         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
88745         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
88746         xalloc-die.c.
88747         (_, N_, xalloc_die): Move to xalloc-die.c.
88748         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
88749         so that we needn't mess with xalloc_msg_memory_exhausted.
88750
88751         * lib/sha1.h: Renamed from sha.h.
88752         (SHA1_H): Renamed from _SHA_H.
88753         (sha1_ctx): Renamed from sha_ctx.
88754         (sha1_init_ctx): Renamed from sha_init_ctx.
88755         (sha1_process_block): Renamed from sha_process_block.
88756         (sha1_process_bytes): Renamed from sha_process_bytes.
88757         (sha1_finish_ctx): Renamed from sha_finish_ctx.
88758         (sha1_read_ctx): Renamed from sha_read_ctx.
88759         (sha1_stream): Renamed from sha_stream.
88760         (sha1_buffer): Renamed from sha_buffer.
88761         * lib/sha1.c: Likewise; renamed from sha.c.
88762         Do not include <sys/types.h>.
88763         Include <stddef.h> rather than <stdlib.h>.
88764
88765 2004-08-08  Bruno Haible  <bruno@clisp.org>
88766
88767         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
88768         FILESYSTEM_PREFIX_LEN.
88769         * lib/progreloc.c: Likewise.
88770         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
88771
88772 2004-08-06  Simon Josefsson  <jas@extundo.com>
88773
88774         * modules/progname (Depends-on): Don't depend on stdbool.
88775
88776 2004-08-06  Simon Josefsson  <jas@extundo.com>
88777
88778         * modules/getsubopt: New file.
88779         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88780         getsubopt.
88781
88782 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88783
88784         More merge from coreutils.
88785
88786         * m4/utimens.m4, m4/utimecmp.m4: New files.
88787         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
88788         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
88789         prereq.m4, sha.m4: Import changes from coreutils.
88790
88791 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88792
88793         More merge from coreutils.
88794         * modules/raise, modules/readtokens0, modules/utimens:
88795         * modules/utimecmp, module/xnanosleep: New files.
88796         * modules/strftime: Add lib/strftime.h.
88797         Change include from <time.h> to "strftime.h".
88798         * modules/yesno: Add lib/yesno.h.
88799         * modules/backupfile: Remove lib/addext.c.
88800         * modules/euidaccess: Add stat-macros.h.
88801         * modules/canonicalize, modules/euidaccess,
88802         modules/filemode, modules/lchown, modules/makepath,
88803         modules/rmdir, modules/stat: Likewise.
88804
88805 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88806
88807         Merge from tar.
88808         * lib/argp-help.c (make_hol, hol_append): Don't assume that
88809         SIZE_MAX is a valid preprocessor constant.
88810         (__argp_basename): Change from "#ifndef _LIBC"
88811         to "#ifndef __argp_short_program_name", so that
88812         we don't compile these functions for tar.
88813
88814         More merges from coreutils.
88815         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
88816         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
88817         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
88818         * lib/addext.c: Remove; no longer needed.
88819         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
88820         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
88821         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
88822         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
88823         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
88824         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
88825         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
88826         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
88827         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
88828         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88829         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
88830         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
88831         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
88832         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
88833         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
88834         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
88835         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
88836         Import changes from coreutils.
88837
88838 2004-08-05  Simon Josefsson  <jas@extundo.com>
88839
88840         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
88841
88842 2004-08-05  Simon Josefsson  <jas@extundo.com>
88843
88844         * m4/getsubopt.m4: New file.
88845
88846 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88847
88848         Merge from coreutils.
88849
88850         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
88851         * m4/getcwd-path-max.m4: New files.
88852
88853         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
88854         FILESYSTEM_PREFIX_LEN ->
88855         FILE_SYSTEM_PREFIX_LEN.
88856         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
88857         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
88858         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
88859         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
88860
88861         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
88862         prerequisite modules now handle the DOS stuff.
88863         Don't check for unistd.h.
88864
88865 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88866
88867         Merge from coreutils.
88868
88869         * lib/.gdb-history: Remove; this doesn't belong here.
88870
88871         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
88872         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
88873         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
88874         * lib/getcwd.c: New files.
88875
88876         * lib/dirname.h: Include <stdbool.h>.
88877         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
88878         for consistency with POSIX terminology.  All uses changed.
88879         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
88880         (strip_trailing_slashes): Use bool for booleans.
88881         * lib/stripslash.c (strip_trailing_slashes): Likewise.
88882
88883         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
88884         sometimes returns a positive errno value even when it succeeds.
88885         (print_errno_message) [!LIBC]: Fall back on strerror if
88886         __strerror_r fails.
88887
88888         * lib/path-concat.c (mempcpy): Don't define if a system header defines
88889         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
88890         (longest_relative_suffix): New function.
88891         (path_concat): Use it.  Assume first argument is not NULL.
88892         Port to DOS.  Omit redundant separators.
88893         Report an error instead of returning NULL.
88894         Use mempcpy instead of memcpy.
88895         (xpath_concat): Remove: not declared or used.
88896
88897         * lib/same.h: Include <stdbool.h>
88898         (same_name): Return bool, not int.
88899         * lib/same.c (same_name): Likewise.
88900         (errno): Don't declare; we assume C89 or better now.
88901
88902         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
88903         if not already defined.
88904
88905         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
88906         * lib/dup-safer.c (errno): Likewise.
88907
88908 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88909
88910         Merge from coreutils.
88911         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
88912         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
88913         * modules/path-concat: Don't depend on strdup.
88914
88915 2004-08-03  Simon Josefsson  <jas@extundo.com>
88916
88917         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
88918         * lib/progname.h: Don't include stdbool.h.
88919
88920 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88921
88922         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
88923         * MODULES.html.sh (func_all_modules): Remove fatal.
88924
88925 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88926
88927         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
88928
88929 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88930
88931         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
88932         working.
88933
88934 2004-08-02  Simon Josefsson  <jas@extundo.com>
88935
88936         * lib/getsubopt.h: New file, with comments from Bruno Haible.
88937         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
88938         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
88939
88940 2004-08-01  Simon Josefsson  <jas@extundo.com>
88941
88942         * lib/xgetdomainname.c: Include stdlib.h, for free().
88943
88944 2004-07-19  Bruno Haible  <bruno@clisp.org>
88945
88946         * MODULES.html.sh (func_all_modules): Add dummy.
88947
88948 2004-07-16  Simon Josefsson  <jas@extundo.com>
88949
88950         * modules/dummy: New file.
88951
88952 2004-07-16  Simon Josefsson  <jas@extundo.com>
88953
88954         * lib/dummy.c: New file.
88955
88956 2004-07-16  Bruno Haible  <bruno@clisp.org>
88957
88958         * lib/backupfile.h: Add extern "C" for C++.
88959         * lib/closeout.h: Likewise.
88960         * lib/copy-file.h: Likewise.
88961         * lib/findprog.h: Likewise.
88962         * lib/full-write.h: Likewise.
88963         * lib/pathname.h: Likewise.
88964         * lib/progname.h: Likewise.
88965         * lib/stpcpy.h: Likewise.
88966         * lib/stpncpy.h: Likewise.
88967         * lib/strcase.h: Likewise.
88968         * lib/strstr.h: Likewise.
88969         * lib/xalloc.h: Likewise.
88970
88971         * lib/mbswidth.h: Add extern "C" for C++.
88972         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
88973
88974 2004-07-13  Robert Millan  <robertmh@gnu.org>
88975
88976         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
88977
88978 2004-07-09  Simon Josefsson  <jas@extundo.com>
88979
88980         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
88981         failed without this.)
88982
88983 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88984
88985         * modules/chown (Files): Add lib/fchown-stub.c, since
88986         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
88987
88988 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88989
88990         * lib/fchown-stub.c: New file.
88991
88992 2004-06-24  Jim Meyering  <jim@meyering.net>
88993
88994         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
88995
88996 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88997
88998         * modules/argz: Omit "#include".
88999
89000         * MODULES.html.sh (func_all_modules): Add calloc, to match
89001         2004-06-01 addition of calloc module.
89002
89003 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89004
89005         * m4/argz.m4: New file, which is autoupdated from libtool.
89006
89007 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89008
89009         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
89010         libtool.
89011
89012 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89013
89014         * config/srclist-update: Don't insist on "USA." before the
89015         close-comment, as libtool omits the period and puts the */ on a
89016         separate line.
89017         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
89018         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
89019
89020 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
89021
89022         * modules/argz: New file.
89023         * MODULES.html.sh (func_all_modules): Add argz.
89024
89025 2004-06-12  Jim Meyering  <jim@meyering.net>
89026         and  Paul Eggert  <eggert@cs.ucla.edu>
89027
89028         * modules/hash (Files): Add lib/xalloc.h.
89029         * modules/pipe (Depends-on): Add wait-process.
89030         * modules/stat (Depends-on): Add xalloc.
89031         * modules/userspec (Files): Add lib/userspec.h.
89032         * modules/xstrto
89033
89034         Upgrade from gettext-0.13.
89035         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
89036         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
89037         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
89038
89039 2004-06-10  Jim Meyering  <jim@meyering.net>
89040
89041         * lib/calloc.c: New file.
89042
89043 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
89044
89045         * lib/getdate.y (yylex): Allow space between sign and number.
89046         Problem reported by Dan Jacobson.
89047
89048 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89049
89050         Merge from coreutils CVS.
89051
89052         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
89053         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
89054         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
89055         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
89056         xstrtol.m4: Fix copyright date and/or serial number.
89057
89058         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
89059         See if we need an fchown replacement.
89060         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
89061         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
89062         and use the replacement function if we detect either defect.
89063
89064         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
89065         gl_UTIMECMP.
89066
89067 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89068         and  Jim Meyering  <jim@meyering.net>
89069
89070         Merge from coreutils CVS.
89071
89072         * lib/stat-macros.h: New file, with contents from file-type.h
89073         and coreutils' system.h.
89074         * lib/file-type.c: Include "stat-macros.h".
89075         * lib/file-type.h (file_type): Move all macro definitions to new file,
89076         stat-macros.h.
89077
89078         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
89079         Wrap old code with this conditional.
89080         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
89081         function that does not dereference symlinks.
89082         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
89083
89084         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
89085         dependency problems.
89086         (xreadlink): Accept new arg SIZE, for efficiency.
89087         All decls and uses changed.
89088         * lib/xreadlink.h: Include <stddef.h>, for size_t.
89089
89090         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
89091         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
89092
89093         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
89094         sysexits.h.
89095
89096 2004-06-01  Jim Meyering  <jim@meyering.net>
89097
89098         * m4/calloc.m4: New file.
89099
89100 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
89101
89102         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
89103         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
89104         Also, fix a typo in a diagnostic.
89105
89106 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89107
89108         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
89109         or AC_FUNC_REALLOC.
89110
89111 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89112
89113         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
89114         macros to be defined.
89115         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
89116         the allocator returns NULL because the requested size is zero.
89117
89118 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
89119
89120         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
89121         var.  Add comment explaining why libc still defines it.  This
89122         merges the following patch from glibc:
89123         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
89124
89125 2004-05-20  Andreas Schwab  <schwab@suse.de>
89126
89127         * m4/free.m4: Replace free if it not known to work, not the other
89128         way round.
89129
89130 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
89131
89132         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
89133         present in glibc since revision 1.1 of this file.
89134         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
89135         obstack_alignment_mask, obstack_alloc, obstack_base,
89136         obstack_blank, obstack_blank_fast, obstack_chunk_size,
89137         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
89138         obstack_grow0, obstack_init, obstack_int_grow,
89139         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
89140         obstack_next_free, obstack_object_size, obstack_ptr_grow,
89141         obstack_ptr_grow_fast, obstack_room): Remove declarations of
89142         nonexistent functions.
89143
89144 2004-05-18  Karl Berry  <karl@gnu.org>
89145
89146         * config/srclist.txt: break link for vasnprintf.c.
89147
89148 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89149
89150         Port obstack to the AS/400, where pointers are 16 bytes wide and
89151         you cannot cast an integer to a valid pointer.  This patch is
89152         currently waiting to be integrated into glibc; see
89153         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
89154
89155         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
89156         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
89157         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
89158         (struct obstack): temp member is now a union of a pointer and
89159         an integer, instead of an integer.  All integer uses changed.
89160         This does not affect the physical layout of struct obstack,
89161         except on hosts (like the AS/400) where the size or alignment of
89162         void * is greater than that of ptrdiff_t.
89163         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
89164         __STDC__)]: Store temporary in pointer member of union, not
89165         integer member.
89166         * lib/obstack.c: Include <stddef.h>, for offsetof.
89167         (struct fooalign): Remove; it doesn't need a name.
89168         (union fooround): Change double to long double, and add void *.
89169         (DEFAULT_ALIGNMENT): Use offsetof to compute.
89170         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
89171         not a macro.  Hence the values are always int; so remove all
89172         casts-to-int in uses.
89173
89174 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89175
89176         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
89177         we can get this patch merged into glibc.
89178
89179 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89180             Paul Eggert  <eggert@cs.ucla.edu>
89181
89182         * m4/argp: Depend on alloca.
89183
89184 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89185             Paul Eggert  <eggert@cs.ucla.edu>
89186
89187         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
89188         freecoding.
89189
89190 2004-05-17  Bruno Haible  <bruno@clisp.org>
89191
89192         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
89193         precision that consists of a '.' followed by an empty digit string.
89194         Patch by Tor Lillqvist <tml@iki.fi>.
89195
89196 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89197
89198         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
89199         for backward compatibility with older code.  We need our own
89200         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
89201         it under some other name, and our alloca.h will define it.
89202
89203 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89204             Derek Price  <derek@ximbiot.com>
89205
89206         * lib/alloca.c: Include <alloca.h>, to get our interface.
89207         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
89208         include <alloca.h> first.  Use C89 prototype for alloca; this
89209         requires including <stddef.h> for size_t.  Use extern "C" if C++.
89210         Use #elif for simplicity, since we can assume C89 now.
89211         Don't try to source the system alloca.h since it will not be found
89212         and to prevent recursively including its replacement.
89213         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
89214         * lib/regex.c: Likewise.
89215
89216 2004-05-16  Derek Price  <derek@ximbiot.com>
89217             Paul Eggert  <eggert@cs.ucla.edu>
89218
89219         getline cleanup.  This changes the getndelim2 API: both order of
89220         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
89221         no delimiter).
89222
89223         * lib/getline.c: Don't include stddef.h or stdio.h, since our
89224         interface does that.
89225         (getline): Always use getdelim, so that we don't have two
89226         copies of this code.
89227         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
89228         if available.
89229         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
89230         (GETNDELIM2_MAXIMUM): New macro.
89231         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
89232         instead of the old practice of delim2==0.  All callers changed.
89233         Return -1 on overflow, instead of returning junk.
89234         Do not set *linesize unless allocation succeeds.
89235         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
89236         that we include sys/types.h.
89237         * lib/getnline.h: Likewise.
89238         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
89239         (getndelim2): Reorder arguments.
89240         * lib/getnline.c (getnline, getndelim):
89241         Don't discard the NMAX argument.
89242         (getnline): Invoke getndelim, to avoid code duplication.
89243         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
89244         of (size_t) -1 by callers of the getnline family.
89245
89246 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89247
89248         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
89249         Check for gettimeofday.
89250         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
89251         Check for settimeofday, stime.
89252
89253 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89254
89255         * lib/nanosleep.c (suspended): Change its type from int to
89256         sig_atomic_t volatile.
89257         (first_call): Make it private to rpl_nanosleep, and have it
89258         be zero initially as that's a bit faster.
89259         (my_usleep): Round up fractional times instead of truncating them,
89260         as this is the usual meaning for 'sleep'.
89261
89262         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
89263         doesn't work.
89264         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
89265         (ENOSYS): Define if not defined.
89266         (settime): Fall back on stime if it exists and settimeofday fails.
89267         But don't bother with fallbacks if a method fails with errno == EPERM.
89268
89269 2004-05-11  Jim Meyering  <jim@meyering.net>
89270
89271         Prior to this change, the save_cwd caller required read access to the
89272         current directory on most systems (ones with the fchdir function).
89273
89274         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
89275         fails, try write-only, and finally, resort to using xgetcwd.
89276
89277 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
89278
89279         * lib/obstack.c, obstack.h: Import changes from libc.
89280
89281 2004-04-28  Bruno Haible  <bruno@clisp.org>
89282
89283         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
89284         also implicitly appends .exe to executables.
89285         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
89286         accepts Windows pathnames.
89287         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89288         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89289         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89290         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89291         Reported by Derek Robert Price <derek@ximbiot.com>.
89292
89293 2004-04-21  Karl Berry  <karl@gnu.org>
89294
89295         * config/srclist.txt (localcharset.c): break sync.
89296
89297 2004-04-20  Paul Eggert  <eggert@twinsun.com>
89298
89299         * m4/host-os.m4: Add a copyright notice.
89300
89301 2004-04-20  Jim Meyering  <jim@meyering.net>
89302
89303         Change UTILS_ to gl_ in AC_DEFINE'd names.
89304         Change utils_- and jm_-prefixed variables, too.
89305         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
89306         UTILS_FUNC_MKDIR_TRAILING_SLASH.
89307         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
89308
89309         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
89310         Don't emit trailing blanks.
89311         Also rename jm_-prefixed variables to have gl_ prefix.
89312
89313         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
89314         Also rename jm_-prefixed variables to have gl_ prefix.
89315
89316         * m4/jm-macros.m4: Reflect the renamings.
89317         * m4/prereq.m4: Likewise.
89318
89319 2004-04-20  Jim Meyering  <jim@meyering.net>
89320
89321         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
89322         memory.
89323
89324 2004-04-20  Jim Meyering  <jim@meyering.net>
89325             Bruno Haible  <bruno@clisp.org>
89326
89327         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
89328         memory when realloc fails.
89329
89330 2004-04-19  Jim Meyering  <jim@meyering.net>
89331
89332         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
89333         now that readutmp.c may call `free (0)'.
89334
89335 2004-04-19  Bruno Haible  <bruno@clisp.org>
89336
89337         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
89338         * m4/inttypes_h.m4: Likewise.
89339         * m4/stdint_h.m4: Likewise.
89340         * m4/intmax_t.m4: Likewise.
89341         * m4/uintmax_t.m4: Likewise.
89342
89343 2004-04-18  Jim Meyering  <jim@meyering.net>
89344
89345         * m4/prereq.m4: Don't forbid jm_ prefix.
89346
89347         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
89348         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
89349         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
89350         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
89351         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
89352         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
89353         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
89354         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
89355         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
89356         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
89357         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
89358         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
89359         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
89360         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
89361         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
89362         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
89363         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
89364         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
89365         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
89366
89367 2004-04-18  Jim Meyering  <jim@meyering.net>
89368
89369         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
89370         failure, don't leak memory and do call END_UTMP_ENT.
89371
89372 2004-04-16  Jim Meyering  <jim@meyering.net>
89373
89374         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
89375         coreutils' stat program.
89376         (gl_PREREQ): Don't require jm_PREREQ_STAT.
89377
89378 2004-04-11  Paul Eggert  <eggert@twinsun.com>
89379
89380         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
89381         C89.
89382         (CHAR_BIT): Remove, since we assume C89.
89383         Include <stdint.h> if available, as per current Autoconf CVS advice.
89384
89385 2004-03-31  Jim Meyering  <jim@meyering.net>
89386
89387         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
89388         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
89389         * m4/xalloc.m4: Likewise.
89390
89391 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89392
89393         Merge from coreutils.
89394
89395         * m4/inttostr.m4: New file.
89396         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
89397         Require AM_STDBOOL_H and gl_TIMESPEC instead.
89398         Require gl_CLOCK_TIME.
89399         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
89400
89401 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89402
89403         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
89404         not bool, to be more consistent with Unix conventions.
89405         Suggested by Bruno Haible.
89406
89407         Merge from coreutils.
89408
89409         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
89410         * lib/umaxtostr.c: New files.
89411
89412         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
89413         the usual <time.h> dance.
89414         (get_date): Change signature to support fractional time stamps.
89415         All callers changed.
89416         * lib/getdate.y: Include "getdate.h" first, as we can now
89417         assume C89 and don't need to worry about 'const'.
89418         Similarly, include "unlocked-io.h" near start, not in middle.
89419         Include <limits.h>.
89420         (textint.value): Use long int rather than int.
89421         (textint.digits): Use size_t rather than int.
89422         (BILLION, LOG10_BILLION): New constants.
89423         (parser_control): New member rel_ns.  Members day_ordinal,
89424         time_zone, month, day, hour, minutes, rel_year, rel_month,
89425         rel_day, rel_hour, rel_minutes, rel_seconds
89426         are now long int, not int.  Member seconds is now struct timespec,
89427         not int.  New member timespec_seen.  Members dates_seen, days_seen,
89428         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
89429         not int.
89430         (%union.intval): Now long int, not int.
89431         New member timespec.
89432         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
89433         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
89434         (spec): Now is a timespec or an item list.
89435         (timespec, items): New nonterminals.
89436         (time, rel, relunit, number, get_date):
89437         Add support for fractional seconds.
89438         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
89439         (gmtime, localtime, mktime): Remove decls; not needed with C89.
89440         (to_hour): First arg is now long int, not int.
89441         (to_year): Returns long int, not int.
89442         Don't treat year -70 like 70.
89443         (tm_diff): Returns long int, not int.
89444         (lookup_word): Use bool instead of int when appropriate.
89445         (yylex): Use size_t for count, not int.
89446         Detect overflow when parsing large integer constants.
89447         Add support for fractions.
89448         (get_date): Make pointers 'const' if possible.
89449         Use more-portable code to detect integer overflow.
89450         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
89451         Don't use ctime; it's not reliable if the year has >4 digits.
89452
89453         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
89454         This is for compatibility with BSD.
89455
89456         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
89457         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
89458         From coreutils' system.h.
89459
89460         * lib/userspec.c: Don't include "posixver.h".
89461         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
89462         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
89463         compatible extension.  Simplify code by removing a boolean int
89464         that was always nonzero if a string was nonnull.
89465
89466 2004-03-30  Jim Meyering  <jim@meyering.net>
89467
89468         Merge from coreutils.
89469
89470         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
89471         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
89472         on some systems one must include <grp.h> before it.
89473         Reported by Christian Krackowizer.
89474
89475 2004-03-30  Jim Meyering  <jim@meyering.net>
89476
89477         Merge from coreutils.
89478
89479         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
89480
89481         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
89482         an empty input stream.
89483
89484         * lib/readtokens.c: Include <stdbool.h>.
89485         (readtoken): Use `size_t' rather than int/long.
89486         All callers adjusted.
89487         Use `bool' rather than `int' where appropriate.
89488         Use memset rather than an explicit loop.
89489         Use x2nrealloc rather than xrealloc.
89490         Allow the use of `\0' as a delimiter.
89491         (readtokens): Likewise.
89492         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
89493
89494 2004-03-30  Jim Meyering  <jim@meyering.net>
89495
89496         * m4/realloc.m4: Remove file, since now it does no more than
89497         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
89498         the `configure.ac' section of module/realloc.
89499         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
89500
89501 2004-03-30  Bruno Haible  <bruno@clisp.org>
89502
89503         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
89504         nonnull.
89505
89506 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89507
89508         Merge changes to getloadavg.c from coreutils and Emacs.
89509
89510         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
89511         Define to an expression, not to the empty string.
89512         Include cloexec.h and xalloc.h.
89513         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
89514         Use set_cloexec_flag rather than rolling our own.
89515         * lib/cloexec.c, lib/cloexec.h: New files.
89516
89517 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89518
89519         * m4/cloexec.m4: New file.
89520
89521 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89522
89523         * lib/getopt.h: Sync with libc CVS.
89524
89525 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89526             Bruno Haible  <bruno@clisp.org>
89527
89528         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
89529         mbswidth.
89530
89531 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89532             Bruno Haible  <bruno@clisp.org>
89533
89534         * lib/mbswidth.h: Include <wchar.h> only if
89535         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
89536         <wchar.h>.
89537         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
89538
89539 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89540
89541         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
89542         Sync with libc CVS.
89543         * lib/getopt_int.h: New file, also synced from libc.
89544
89545 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89546
89547         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
89548         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
89549         Bring back getopt.c, getopt.h, getopt1.c.
89550
89551 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89552
89553         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
89554         All uses changed.  Check for sa_sigaction member; this fixes
89555         a bug first reported by Jason Andrade in
89556         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89557
89558 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89559
89560         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
89561         '#if' expressions.  Unlike the code it replaces, it does not
89562         depend on (defined _SC_PAGESIZE).  However, it does depend on
89563         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
89564         first reported by Jason Andrade in
89565         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89566
89567 2004-02-25  Simon Josefsson  <jas@extundo.com>
89568
89569         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
89570
89571 2004-02-25  Simon Josefsson  <jas@extundo.com>
89572
89573         * lib/strdup.h: New file.
89574         * lib/strdup.c: Include it.
89575         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
89576         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
89577
89578 2004-02-23  Karl Berry  <karl@gnu.org>
89579
89580         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
89581         (from fencepost.gnu.org:/gd/gnuorg).
89582
89583 2004-02-23  Karl Berry  <karl@gnu.org>
89584
89585         * config/srclistvars.sh (GNUORG) [karl]: redefine.
89586         * config/srclist.txt: add maintain/standards documents.
89587
89588 2004-02-18  Bruno Haible  <bruno@clisp.org>
89589
89590         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
89591         Reported by Derek Robert Price <derek@ximbiot.com>.
89592
89593 2004-02-16  Karl Berry  <karl@gnu.org>
89594
89595         * config/mkinstalldirs, install-sh: update from automake.
89596
89597 2004-02-06  Karl Berry  <karl@gnu.org>
89598
89599         * m4/po.m4: update from gettext 0.14.1.
89600
89601 2004-02-06  Karl Berry  <karl@gnu.org>
89602
89603         * lib/config.charset: update from gettext 0.14.1.
89604
89605 2004-02-05  Paul Eggert  <eggert@twinsun.com>
89606
89607         Add comments and code, prompted by suggestions from Bruno Haible
89608         for sh-quote.
89609         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
89610         describing the enum quoting_style values.
89611         * lib/quotearg.c (quotearg_alloc): New function.
89612         (quotearg_buffer_restyled): Treat lone { and } as special.
89613         Treat = as special.  Work around bug with older shells
89614         that "see" a '\' that is really the 2nd byte of a multibyte char.
89615         Quote empty string with shell_quoting_style.
89616
89617 2004-02-03  Bruno Haible  <bruno@clisp.org>
89618
89619         * m4/pipe.m4: New file, from GNU gettext.
89620
89621 2004-02-03  Bruno Haible  <bruno@clisp.org>
89622
89623         * lib/pipe.h: New file, from GNU gettext.
89624         * lib/pipe.c: New file, from GNU gettext.
89625
89626 2004-01-27  Bruno Haible  <bruno@clisp.org>
89627
89628         * m4/execute.m4: New file, from GNU gettext.
89629
89630 2004-01-27  Bruno Haible  <bruno@clisp.org>
89631
89632         * lib/execute.h: New file, from GNU gettext.
89633         * lib/execute.c: New file, from GNU gettext.
89634         * lib/w32spawn.h: New file, from GNU gettext.
89635
89636 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89637
89638         Merge from diffutils.
89639
89640         * lib/file-type.c (file_type): Add typed memory objects.
89641         * lib/file-type.h (S_TYPEISTMO): New macro.
89642
89643         * lib/c-stack.h (c_stack_action): Remove argv argument.
89644         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
89645         (die): Don't calculate message unless segv_action returns.
89646         (get_stack_location, min_address_from_argv, max_address_from_argv,
89647         volatile stack_base, volatile_stack_size): Remove.
89648         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
89649         that every segmentation violation is a stack overflow.  (Ouch!)
89650         See Debian bug 136249 (still outstanding) for more info about why
89651         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
89652
89653 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89654
89655         Exit-status fix from coreutils.
89656
89657         Use exit_failure consistently in place of EXIT_FAILURE,
89658         so that program exit statuses are consistent on failure.
89659
89660         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
89661         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
89662         * lib/argmatch.h: Comment fix to match the above.
89663         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
89664         Now a macro referring to exit_failure, instead of a separate
89665         variable.  Include "exitfail.h" to get it.
89666         * lib/xstrtol.h: Include "exitfail.h".
89667         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
89668
89669         * lib/long-options.c (parse_long_options): Use prototype
89670         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
89671         for clarity.
89672
89673 2004-01-21  Jim Meyering  <jim@meyering.net>
89674
89675         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
89676         so as not to conflict with a different-sized __mktime_internal
89677         function in GNU libc.
89678         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
89679         Problem building statically-linked `ls' reported by Michael Brunnbauer.
89680
89681 2004-01-20  Karl Berry  <karl@gnu.org>
89682
89683         * config/config.guess: update from config.
89684
89685         * config/srclistvars.sh: GNUWWWLICENSES for karl.
89686
89687 2004-01-20  Bruno Haible  <bruno@clisp.org>
89688
89689         Safer stack allocation.
89690         * lib/setenv.c: Include allocsa.h.
89691         (alloca): Remove fallback definition.
89692         (freea): Remove macro.
89693         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
89694         instead of freea.
89695
89696 2004-01-20  Bruno Haible  <bruno@clisp.org>
89697
89698         * m4/eealloc.m4: New file, from GNU gettext.
89699
89700 2004-01-20  Bruno Haible  <bruno@clisp.org>
89701
89702         * m4/allocsa.m4: New file, from GNU gettext.
89703
89704 2004-01-20  Bruno Haible  <bruno@clisp.org>
89705
89706         * lib/xallocsa.h: New file, from GNU gettext.
89707         * lib/xallocsa.c: New file, from GNU gettext.
89708
89709 2004-01-20  Bruno Haible  <bruno@clisp.org>
89710
89711         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
89712
89713 2004-01-20  Bruno Haible  <bruno@clisp.org>
89714
89715         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
89716         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
89717         specially.
89718
89719 2004-01-20  Bruno Haible  <bruno@clisp.org>
89720
89721         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
89722         patch.
89723
89724 2004-01-20  Bruno Haible  <bruno@clisp.org>
89725
89726         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
89727
89728 2004-01-20  Bruno Haible  <bruno@clisp.org>
89729
89730         * lib/eealloc.h: New file.
89731
89732 2004-01-20  Bruno Haible  <bruno@clisp.org>
89733
89734         * lib/binary-io.h: Avoid warnings on Cygwin.
89735
89736 2004-01-20  Bruno Haible  <bruno@clisp.org>
89737
89738         * lib/allocsa.h: New file, from GNU gettext.
89739         * lib/allocsa.c: New file, from GNU gettext.
89740
89741 2004-01-18  Karl Berry  <karl@gnu.org>
89742
89743         * doc/gpl.texi, doc/lgpl.texi: new files.
89744
89745 2004-01-18  Karl Berry  <karl@gnu.org>
89746
89747         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
89748         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
89749
89750 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89751
89752         Merge from coreutils.
89753
89754         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
89755         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
89756         (gl_DEFAULT_POSIX2_VERSION): Move
89757         the documentation from 'configure' into 'config.hin',
89758         so that 'configure --help' isn't burdened by it and
89759         we don't have to worry about its formatting there.
89760         Reword the documentation so that it's more succinct
89761         and can be run together into a single paragraph.
89762         * m4/same.m4 (gl_SAME): Check for pathconf.
89763
89764 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89765
89766         Merge from coreutils.
89767
89768         * lib/posixver.c: Include posixver.h.
89769
89770         * lib/same.c: Include <stdbool.h>, <limits.h>.
89771         (_POSIX_NAME_MAX): Define if not defined.
89772         (MIN): New macro.
89773         (same_name): If file names are silently truncated, report
89774         that the file names are the same if they are the same after
89775         the silent truncation.
89776
89777         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
89778         conversion function.
89779         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
89780         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
89781         longer needed.
89782
89783 2004-01-15  Jim Meyering  <jim@meyering.net>
89784
89785         Merge from coreutils.
89786
89787         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
89788         if no library is required.
89789         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
89790         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
89791         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
89792         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
89793         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
89794         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
89795         value, $ac_cv_search_crypt, if it's "none required".
89796         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
89797         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
89798         not gl_FUNC_GETLOADAVG.
89799         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
89800         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
89801
89802 2004-01-15  Jim Meyering  <jim@meyering.net>
89803
89804         Merge from coreutils.
89805
89806         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
89807         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
89808         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
89809
89810         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
89811         optional configure-time default.
89812
89813         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89814
89815         * lib/xreadlink.c (xreadlink): Correct outdated comment.
89816
89817 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
89818
89819         Merge from coreutils.
89820
89821         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
89822         value, $ac_cv_search_nanosleep, if it's "none required".
89823
89824 2004-01-14  Paul Eggert  <eggert@twinsun.com>
89825
89826         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
89827         with like-named macro in fnmatch.c.
89828         (EXT): Use an internal constant instead.
89829
89830         Merge fnmatch patches from glibc.
89831         * lib/fnmatch.c (mbsinit): Remove define.
89832         Add libc_hidden_ver (__fnmatch, fnmatch).
89833         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
89834         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
89835
89836 2004-01-14  Karl Berry  <karl@gnu.org>
89837
89838         * config/install-sh: update from automake.
89839
89840 2004-01-13  Karl Berry  <karl@gnu.org>
89841
89842         * config/install-sh: update from automake.
89843
89844 2004-01-09  Karl Berry  <karl@gnu.org>
89845
89846         * config/install-sh: update from automake.
89847
89848 2004-01-05  Karl Berry  <karl@gnu.org>
89849
89850         * config/config.{sub,guess}: update from config.
89851
89852 2003-12-31  Karl Berry  <karl@gnu.org>
89853
89854         * config/depcomp: update from automake.
89855
89856 2003-12-14  Karl Berry  <karl@gnu.org>
89857
89858         * lib/config.charset: update from gettext-runtime.
89859
89860 2003-12-03  Paul Eggert  <eggert@twinsun.com>
89861
89862         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
89863         Bug reported by Alfred M. Szmidt.
89864
89865 2003-12-03  Bruno Haible  <bruno@clisp.org>
89866
89867         * m4/gettext.m4: Upgrade from gettext-0.13.
89868         * m4/po.m4: Upgrade from gettext-0.13.
89869         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
89870         * m4/intmax.m4: New file, from gettext-0.13.
89871         * m4/printf-posix.m4: New file, from gettext-0.13.
89872
89873 2003-11-29  Karl Berry  <karl@gnu.org>
89874
89875         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
89876
89877 2003-11-25  Paul Eggert  <eggert@twinsun.com>
89878             Bruno Haible  <bruno@clisp.org>
89879
89880         * lib/printf-parse.h: Don't include sys/types.h.
89881         (ARG_NONE): New macro.
89882         (char_directive): Change type of *arg_index fields to size_t.
89883         * lib/printf-parse.c: Don't include sys/types.h.
89884         (SSIZE_MAX): Remove macro.
89885         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
89886         Remove unnecessary overflow check.
89887         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
89888         fields.
89889
89890 2003-11-25  Bruno Haible  <bruno@clisp.org>
89891
89892         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
89893
89894 2003-11-25  Bruno Haible  <bruno@clisp.org>
89895
89896         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
89897         gt_TYPE_SSIZE_T.
89898
89899 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89900
89901         * modules/alloca: Remove dependency on xalloc.
89902
89903 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89904
89905         * lib/alloca.c: Remove dependency on xalloc module.
89906         (xalloc_die): Remove.
89907         (memory_full) [!defined emacs]: New macro.
89908         [!defined emacs]: Don't include xalloc.h.
89909         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
89910         address arithmetic overflows.  Change datatypes a bit to avoid
89911         unnecessary casts.
89912
89913 2003-11-22  Jim Meyering  <jim@meyering.net>
89914
89915         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
89916         s/size/size_t/.
89917
89918 2003-11-21  Karl Berry  <karl@gnu.org>
89919
89920         * config/config.{sub,guess}: update from config.
89921
89922 2003-11-18  Karl Berry  <karl@gnu.org>
89923
89924         * config/config.{sub,guess}: update from config.
89925
89926         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
89927
89928 2003-11-17  Paul Eggert  <eggert@twinsun.com>
89929
89930         * README: Mention that S+T cannot overflow if S is the size of
89931         an existing object and T is sufficiently small.
89932
89933 2003-11-17  Jim Meyering  <jim@meyering.net>
89934
89935         On systems without utime and without a utimes function capable of
89936         dealing with a NULL struct utimbuf* argument, this utime replacement
89937         could -- in unusual circumstances -- leak a file descriptor.
89938         * lib/utime.c: Include <unistd.h> and <errno.h>.
89939         (utime_null): Be sure to close `fd' and to preserve errno.
89940         Reported by Geoff Collyer via Arnold Robbins.
89941
89942 2003-11-17  Bruno Haible  <bruno@clisp.org>
89943
89944         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
89945         (Depends-on): Add xsize.
89946
89947 2003-11-17  Bruno Haible  <bruno@clisp.org>
89948
89949         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
89950
89951 2003-11-17  Bruno Haible  <bruno@clisp.org>
89952
89953         * lib/vasnprintf.c (alloca): Remove fallback definition.
89954         (freea): Remove definition.
89955         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
89956         Reported by Paul Eggert.
89957
89958 2003-11-16  Paul Eggert  <eggert@twinsun.com>
89959             Bruno Haible  <bruno@clisp.org>
89960
89961         Protect against address arithmetic overflow.
89962         * lib/printf-args.h: Include stddef.h.
89963         (arguments): Change type of field 'count' to size_t.
89964         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
89965         'unsigned int' where appropriate.
89966         * lib/printf-parse.h: Include sys/types.h.
89967         (char_directive): Change type of *arg_index fields to ssize_t.
89968         (char_directives): Change type of fields 'count', max_*_length to
89969         size_t.
89970         * lib/printf-parse.c: Include sys/types.h and xsize.h.
89971         (SSIZE_MAX): Define fallback value.
89972         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
89973         instead of 'int' where appropriate. Check a_allocated, d_allocated
89974         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
89975         * lib/vasnprintf.c: Include xsize.h.
89976         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
89977         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
89978         overflow. Avoid wraparound when converting a width or precision from
89979         decimal to binary.
89980
89981 2003-11-16  Bruno Haible  <bruno@clisp.org>
89982
89983         Update from GNU gettext.
89984         * lib/printf-parse.c: Generalize to it can be compiled for wide
89985         strings.
89986         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
89987         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
89988         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
89989         SNPRINTF): New macros.
89990         Don't include <alloca.h> if the file is used inside libintl.
89991         (local_wcslen): New function, for Solaris 2.5.1.
89992         (VASNPRINTF): Use it instead of wcslen.
89993
89994 2003-11-16  Bruno Haible  <bruno@clisp.org>
89995
89996         * lib/xsize.h (xmax): New function.
89997         (xsum, xsum3, xsum4): Declare as "pure" functions.
89998
89999 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90000
90001         * modules/xalloc (Files): Undo latest change, since xalloc.h
90002         no longer needs SIZE_MAX or PTRDIFF_MAX.
90003
90004 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90005
90006         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
90007         gl_PTRDIFF_MAX.
90008
90009 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90010
90011         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
90012         "return", to pacify some unknown compiler.  Problem reported
90013         by Joerg Schilling.
90014
90015 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90016
90017         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
90018         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
90019         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
90020         heuristic is just as accurate as far as we know, and it removes a
90021         dependency on size_max.m4 and ptrdiff_max.m4.
90022
90023 2003-11-11  Bruno Haible  <bruno@clisp.org>
90024
90025         * modules/xsize (Files): Add m4/size_max.m4.
90026         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
90027
90028 2003-11-11  Bruno Haible  <bruno@clisp.org>
90029
90030         * m4/size_max.m4: New file.
90031         * m4/ptrdiff_max.m4: New file.
90032         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
90033         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
90034         (gl_XALLOC): Invoke it.
90035
90036 2003-11-11  Bruno Haible  <bruno@clisp.org>
90037
90038         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
90039         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
90040         defined.
90041
90042 2003-11-10  Paul Eggert  <eggert@twinsun.com>
90043
90044         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
90045         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
90046         rejected some allocations of exactly SIZE_MAX - 2 bytes.
90047         From Bruno Haible.
90048         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
90049         not (size_t) -1, since it's defined here.
90050
90051 2003-11-09  Karl Berry  <karl@gnu.org>
90052
90053         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
90054
90055 2003-11-06  Paul Eggert  <eggert@twinsun.com>
90056
90057         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
90058         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
90059         Reject sizes of exactly SIZE_MAX bytes.
90060         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
90061         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
90062
90063 2003-11-05  Bruno Haible  <bruno@clisp.org>
90064
90065         * lib/xsize.h: Include limits.h, to avoid a possible collision with
90066         SIZE_MAX defined in <limits.h> on Solaris.
90067
90068 2003-11-04  Jim Meyering  <jim@meyering.net>
90069
90070         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
90071         variable names, rather than @VAR@.
90072         * modules/poll: Likewise.
90073
90074 2003-11-04  Bruno Haible  <bruno@clisp.org>
90075
90076         * modules/xsize: New file.
90077         * modules/linebreak: Depend on xsize.
90078         * MODULES.html.sh (func_all_modules): Add xsize.
90079
90080 2003-11-04  Bruno Haible  <bruno@clisp.org>
90081
90082         * m4/xsize.m4: New file.
90083
90084 2003-11-04  Bruno Haible  <bruno@clisp.org>
90085
90086         * lib/xsize.h: New file.
90087         * lib/linebreak.c: Include xsize.h.
90088         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
90089         argument for overflow.
90090         Suggested by Paul Eggert.
90091
90092 2003-11-03  Karl Berry  <karl@gnu.org>
90093
90094         * config/config.{guess,sub}: update from config.
90095
90096 2003-11-03  Jim Meyering  <jim@meyering.net>
90097
90098         * modules/userspec (lib_SOURCES): Add userspec.h.
90099         (Include): Add "userspec.h".
90100         Improve description.
90101
90102 2003-11-03  Jim Meyering  <jim@meyering.net>
90103
90104         * lib/userspec.c: Include "userspec.h".
90105         * lib/userspec.h: New file.
90106
90107 2003-11-03  Bruno Haible  <bruno@clisp.org>
90108
90109         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
90110
90111 2003-11-03  Bruno Haible  <bruno@clisp.org>
90112
90113         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
90114         available, to avoid (extremely rare) race condition.
90115         Suggested by Paul Eggert.
90116
90117 2003-11-02  Karl Berry  <karl@gnu.org>
90118
90119         * config/srclist.txt (vasprintf.c): sync broken, sigh.
90120
90121 2003-10-31  Paul Eggert  <eggert@twinsun.com>
90122
90123         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
90124         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
90125         (read_filesystem_list): Set and use me_type_malloced.
90126         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
90127         whatever the type happens to be), for brevity and consistency.
90128         Check for size calculation overflow on Alphas running OSF/1.
90129
90130 2003-10-31  Jim Meyering  <jim@meyering.net>
90131
90132         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
90133
90134         * lib/linebuffer.c: Include <string.h> for declaration of memset.
90135
90136 2003-10-30  Paul Eggert  <eggert@twinsun.com>
90137             Bruno Haible  <bruno@clisp.org>
90138
90139         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
90140         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
90141
90142 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
90143
90144         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
90145         netbsd*-gnu*.  Suggested by Robert Millan.
90146
90147 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90148
90149         * modules/group-member: Depend on stdbool.
90150
90151 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90152
90153         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
90154
90155 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90156
90157         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
90158         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
90159         after the 'gnu' in these cases.  This fixes some bugs in the
90160         previous change, and is based on suggestions by Robert Millan.
90161
90162 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90163
90164         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
90165         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
90166         no longer needed.
90167         * lib/quotearg.c (quotearg_n_options): Use it.
90168         * lib/group-member.c: Include <stdbool.h>.
90169         (free_group_info): Arg is now const *; don't free arg.
90170         (get_group_info): Now returns bool and accepts struct group_info *,
90171         rather than returning a malloc'ed struct group_info *.
90172         All uses changed.  Check for overflow in internal size calculation.
90173
90174         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
90175         rather than xmalloc/xrealloc.
90176         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
90177         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
90178         conformance bug: the old code used a pointer after freeing the
90179         storage that it addressed.
90180         * lib/hash.c (hash_initialize): Simplify the code by using
90181         xalloc_oversized rather than doing it by hand.
90182         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
90183         the buffer preserved.  Use free and xmalloc instead.
90184         * lib/quotearg.c (quotearg_n_options): Likewise.
90185         Use a simpler test for size overflow.  Don't use xalloc_oversized
90186         because unsigned int might be wider than size_t (!); this suggests
90187         that we should switch from unsigned int to size_t for slot numbers.
90188
90189 2003-10-28  Paul Eggert  <eggert@twinsun.com>
90190
90191         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
90192         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
90193         NetBSD kernels.  Requested by Richard Stallman.
90194
90195 2003-10-27  Paul Eggert  <eggert@twinsun.com>
90196
90197         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
90198         to allocate the returned structure.  Do not allocate a subarray,
90199         as x2nrealloc will do that.
90200         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
90201         instead of xnrealloc.
90202         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
90203
90204 2003-10-27  Bruno Haible  <bruno@clisp.org>
90205
90206         * lib/stdbool_.h: Better support for BeOS.
90207
90208 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90209
90210         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
90211         now uses inline.
90212
90213 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90214
90215         * lib/xalloc.h (xalloc_oversized): New static inline function, for
90216         callers that want to do their own size-overflow checking.  Include
90217         <stdbool.h>, since xalloc_oversized returns bool.
90218         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
90219         to use xalloc_oversized.
90220
90221         Add two functions x2realloc, x2nrealloc, for programs that grow
90222         arrays dynamically by doubling their sizes.
90223         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
90224         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
90225         New functions.
90226
90227         Port to C99 semantics for 'inline' of external functions.
90228         Bug reported by Bruno Haible.
90229         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
90230         with the old contents of xnmalloc.
90231         (xnmalloc, xmalloc): Use it.
90232         (xnrealloc_inline): New static inline function,
90233         with the old contents of xnrealloc.
90234         (xnrealloc, xrealloc): Use it.
90235
90236         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
90237         that.
90238
90239 2003-10-26  Karl Berry  <karl@gnu.org>
90240
90241         * config/srclist.txt (COPYING.DOC): no longer available from
90242         /gd/gnuorg; don't know where the ultimate source is.
90243
90244 2003-10-25  Paul Eggert  <eggert@twinsun.com>
90245
90246         Fix several address-calculation bugs in the hash modules,
90247         plus some minor code cleanup.
90248
90249         * lib/hash.h: Include <stdbool.h>, for bool.
90250         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
90251         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
90252         hash_get_n_entries, hash_get_max_bucket_length,
90253         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
90254         hash_rehash): Use size_t rather than unsigned.
90255         * lib/hash.c (struct hash_table, hash_get_n_buckets,
90256         hash_get_n_buckets_used, hash_get_n_entries,
90257         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
90258         hash_get_entries, hash_do_for_each, hash_string, is_prime,
90259         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
90260         Likewise.
90261         (SIZE_MAX): Define if not defined.
90262         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
90263         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
90264         hash_print):
90265         Use const * when possible.
90266         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
90267         (check_tuning): Fix bug: if tuning parameters were very close to
90268         0 or 1, rounding errors could have caused subscript violations.
90269         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
90270         (hash_initialize): Add 'fail:' label
90271         to free table and return NULL, and use it to simplify code.
90272         Use calloc rather than clearing the storage ourself.
90273         (hash_initialize, hash_rehash): Check for arithmetic overflow in
90274         buffer size calculations.
90275         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
90276         Include <stddef.h>, for size_t.
90277         * lib/hash-pjw.c (hash_pjw): Likewise.
90278         Switch to method described by Bruno Haible.
90279         Include <limits.h>, for CHAR_BIT.
90280         (SIZE_BITS): New macro.
90281
90282 2003-10-23  Paul Eggert  <eggert@twinsun.com>
90283
90284         * m4/getline.m4 (AM_FUNC_GETLINE):
90285         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
90286         hosts.  Problem reported by Derek Robert Price in
90287         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
90288         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
90289         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
90290
90291 2003-10-21  Paul Eggert  <eggert@twinsun.com>
90292
90293         * lib/getndelim2.c (getndelim2): When size calculation overflows,
90294         ceiling the allocation at NMAX bytes rather than silently
90295         discarding input bytes before NMAX is reached.  This makes
90296         a difference only if NMAX exceeds SIZE_MAX / 2.
90297
90298         * lib/obstack.c: Merge from glibc.
90299         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
90300         Add libc_hidden_def (_obstack_newchunk).
90301         (_obstack_free) [! defined _LIBC]: Remove.
90302         [defined _LIBC]: Make a strong alias from obstack_free, rather than
90303         a clone of the function body.
90304         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
90305         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
90306
90307         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
90308         glibc.
90309         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
90310         arg to memcpy.
90311
90312         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
90313         (obstack_ptr_grow_fast, obstack_int_grow_fast):
90314         Don't use lvalue casts, as GCC plans to remove support for them
90315         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
90316         was also present in the non-GCC version, indicating that this
90317         code had always been buggy and had never been widely used.
90318         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
90319         Use the fast variant of each macro, rather than copying the
90320         definiens of the fast variant; that way, we'll be more likely to
90321         catch future bugs in the fast variants.
90322
90323 2003-10-20  Bruno Haible  <bruno@clisp.org>
90324
90325         * modules/wait-process: New file.
90326         * MODULES.html.sh (func_all_modules): Add wait-process.
90327
90328 2003-10-20  Bruno Haible  <bruno@clisp.org>
90329
90330         * m4/wait-process.m4: New file.
90331
90332 2003-10-20  Bruno Haible  <bruno@clisp.org>
90333
90334         * lib/wait-process.h: New file, from GNU gettext.
90335         * lib/wait-process.c: New file, from GNU gettext.
90336
90337 2003-10-19  Jim Meyering  <jim@meyering.net>
90338
90339         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
90340         HPUX 10.20.
90341
90342 2003-10-18  Karl Berry  <karl@gnu.org>
90343
90344         * config/config.guess: update from config.
90345
90346 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90347
90348         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
90349         (getgroups): First arg is int, not size_t.
90350         Don't let 'free' mangle errno.
90351
90352 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90353
90354         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
90355
90356 2003-10-16  Karl Berry  <karl@gnu.org>
90357
90358         * config/config.{guess,sub}: update from config.
90359
90360 2003-10-16  Jim Meyering  <jim@meyering.net>
90361
90362         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
90363         memcpy.
90364
90365 2003-10-15  Paul Eggert  <eggert@twinsun.com>
90366
90367         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
90368         (SIZE_MAX): Remove.
90369         (new_exclude, add_exclude_file): Initial size no longer needs to
90370         be a power of 2.
90371         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
90372         our own address arithmetic overflow checking.
90373
90374         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
90375         (fnmatch): Do not alloca more than 2000 wide characters;
90376         instead, use malloc for large buffers.
90377         Check for address arithmetic overflow, and return -1
90378         with errno set to ENOMEM in that case.
90379         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
90380         (NEW_PATTERN): Do not alloca more than 8000 bytes;
90381         instead, return -1.  Check for address arithmetic overflow.
90382
90383 2003-10-14  Paul Eggert  <eggert@twinsun.com>
90384
90385         Handle invalid suffixes and overflow independently, so that
90386         callers can treat them independently as needed.  Fix some bugs in
90387         suffix handling, e.g., "100k@" was not diagnosed as an invalid
90388         suffix for a human-readable blocksize.  The major caller-visible
90389         change is the addition of a new
90390         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
90391         that both overflow and suffix chars were found.
90392
90393         * lib/human.c (humblock): Don't check separately for invalid suffix
90394         char; that is xstrtoumax's job (now that its bug is fixed).
90395         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
90396         INTMAX_MAX]: New macros.
90397         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
90398         TYPE_MAXIMUM): New macros.
90399         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
90400         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
90401         if overflow occurs, as it's what __strtol does and it's more useful
90402         in practice.
90403         (__xstrtol): If __strtol reports some error other than ERANGE,
90404         reflect it to the caller as LONGINT_INVALID.  If it reports
90405         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
90406         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
90407         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
90408         value.
90409         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
90410         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
90411         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
90412         [defined UINTMAX_MAX]: New macros.
90413
90414 2003-10-14  Bruno Haible  <bruno@clisp.org>
90415
90416         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
90417
90418 2003-10-14  Bruno Haible  <bruno@clisp.org>
90419
90420         * m4/sig_atomic_t: New file, from GNU gettext.
90421         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
90422
90423 2003-10-14  Bruno Haible  <bruno@clisp.org>
90424
90425         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
90426         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
90427         Also use volatile where needed.
90428
90429 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90430
90431         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
90432         Change maintainer from Bruno Haible to 'all'.
90433
90434 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90435
90436         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
90437
90438 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90439
90440         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
90441         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
90442         and define in terms of the other primitives.
90443         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
90444         (SIZE_MAX): Define if not already defined.
90445         (array_size_overflow): New function.
90446         (xalloc_die): Abort instead of exiting if 'error' returns.
90447         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
90448         (xmalloc, xrealloc): Use them.
90449         (xcalloc): Check for address arithmetic overflow.
90450         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
90451         a bit faster than strcpy.
90452
90453 2003-10-10  Simon Josefsson  <jas@extundo.com>
90454
90455         * modules/argp (Depends-on): Add restrict and strcase.
90456
90457 2003-10-10  Simon Josefsson  <jas@extundo.com>
90458
90459         * m4/argp.m4: Add AC_C_INLINE.
90460
90461 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90462
90463         Merge getpass from libc, plus a few fixes.
90464
90465         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
90466         Include <stdbool.h>.
90467         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
90468         __fsetlocking to empty.
90469         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
90470         do include <bits/libc-lock.h>.
90471         Do not include <fcntl.h>; not needed.
90472         [_LIBC]: Include <wchar.h>.
90473         (NOTCANCEL_MODE): New macro.
90474         (flockfile, funlockfile) [_LIBC]: New macros.
90475         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
90476         [!_LIBC]: New macros.
90477         (call_fclose): New function.
90478         (getpass): Use it.  Save tty stream separately; this simplifies the
90479         code and makes it more reliable if stdin happens to equal stdout.
90480         Invoke __fsetlocking on tty.
90481         Handle thread cancellation if needed.
90482         Namespace cleanup (use __tcgetattr, __getline).
90483         Use bool for Booleans.
90484         [USE_IN_LIBIO]: Handle wide streams.
90485         [!_LIBC]: Unconditionally do the fseek, since we don't know what
90486         stream might go where.
90487
90488         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
90489         doesn't have to include <stdio.h> before us.
90490         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
90491         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
90492         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
90493         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
90494         if not declared, so that we can use getpass.c code from libc without
90495         rewriting it.
90496         (flockfile, ftrylockfile, funlockfile): New macros.
90497
90498 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90499
90500         * modules/getpass: Depend on stdbool.
90501
90502 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90503
90504         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
90505
90506 2003-10-07  Karl Berry  <karl@gnu.org>
90507
90508         * config/config.{guess,sub}: update from config.
90509
90510 2003-10-06  Jim Meyering  <jim@meyering.net>
90511             Bruno Haible  <bruno@clisp.org>
90512
90513         This lets translators provide better translations for the
90514         "Written by ..." part of --version output.
90515         * lib/version-etc.h: Include stdarg.h.
90516         (version_etc_copyright): Declare as readonly.
90517         (version_etc): Make this function variadic with a NULL-terminated list
90518         of author name strings.
90519         (version_etc_va): New declaration.
90520         * lib/version-etc.c: Include stdarg.h, stdlib.h.
90521         (version_etc_copyright): Declare as readonly.
90522         (version_etc_va): New function. Provide a different translatable string
90523         for each possible number of authors < 10. Abbreviate when there are 10
90524         authors or more.
90525         (version_etc): Make this function variadic. Call version_etc_va.
90526         Suggestion from Gary V. Vaughan.
90527
90528         * lib/long-options.h (parse_long_options): Change prototype: the
90529         authors string is moved to the end and becomes variadic.
90530         * lib/long-options.c: Include stdarg.h.
90531         (parse_long_options): Make this function variadic, too.
90532         Call version_etc_va, not version_etc.
90533
90534 2003-10-06  Bruno Haible  <bruno@clisp.org>
90535
90536         * modules/version-etc-2: Remove file.
90537         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
90538
90539 2003-10-06  Bruno Haible  <bruno@clisp.org>
90540
90541         * modules/fatal-signal: New file.
90542         * MODULES.html.sh (func_all_modules): Add fatal-signal.
90543
90544 2003-10-06  Bruno Haible  <bruno@clisp.org>
90545
90546         * m4/fatal-signal.m4: New file.
90547         * m4/signalblocking.m4: New file, from GNU gettext.
90548
90549 2003-10-06  Bruno Haible  <bruno@clisp.org>
90550
90551         * lib/version-etc-2.h: Remove file.
90552         * lib/version-etc-2.c: Remove file.
90553
90554 2003-10-06  Bruno Haible  <bruno@clisp.org>
90555
90556         * lib/fatal-signal.h: New file, from GNU gettext.
90557         * lib/fatal-signal.c: New file, from GNU gettext.
90558
90559 2003-10-05  Paul Eggert  <eggert@twinsun.com>
90560
90561         * README: Rework advice for preventing empty .o files.
90562         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
90563         not <sys/types.h>.
90564
90565 2003-10-04  Karl Berry  <karl@gnu.org>
90566
90567         * lib/argp*: update from libc.
90568
90569 2003-10-04  Karl Berry  <karl@gnu.org>
90570
90571         * config/config.{guess,sub}: update from config.
90572
90573 2003-10-02  Bruno Haible  <bruno@clisp.org>
90574
90575         * modules/lchown (Include): Add lchown.h.
90576         * modules/time_r (Include): Use "..." syntax.
90577         * modules/xgetdomainname (Include): Add xgetdomainname.h.
90578
90579 2003-10-01  Simon Josefsson  <jas@extundo.com>
90580
90581         * MODULES.html.sh (func_all_modules): Move gethostname from section
90582         'based on' to section 'lacking' POSIX:2001.
90583
90584 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
90585
90586         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
90587         to output mode on the same stream.
90588
90589 2003-09-29  Paul Eggert  <eggert@twinsun.com>
90590
90591         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
90592         Fix arg typo in previous patch.
90593
90594 2003-09-28  Jim Meyering  <jim@meyering.net>
90595
90596         * lib/error.c: Correct cpp indentation.
90597
90598 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90599
90600         * modules/free: New file.
90601
90602 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90603
90604         * m4/free.m4: New file.
90605
90606 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90607
90608         * lib/minmax.h (MIN, MAX)
90609         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
90610         Omit the special code that used __typeof__, since we worry that
90611         it could be more trouble than it's worth.  See:
90612         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
90613         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
90614
90615         * lib/free.c: New file.
90616
90617 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
90618
90619         Trivial fixes to Makefile.am parts of module listings.
90620         * modules/strstr: Append strstr.h to lib_SOURCES.
90621         * modules/strcase: Likewise, for strcase.h.
90622
90623 2003-09-27  Karl Berry  <karl@gnu.org>
90624
90625         * config/mkinstalldirs: update from automake.
90626
90627 2003-09-26  Paul Eggert  <eggert@twinsun.com>
90628
90629         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
90630         (error_tail): Do not loop, reallocating temporary buffer, since
90631         the output cannot contain more wide characters than the input
90632         contains bytes, the size must be big enough already.  This avoids
90633         one potential size overflow calculation.  Check for size overflow
90634         when calculating temporary buffer size.  Free temporary buffer
90635         when done, if it was allocated with malloc; this plugs a memory
90636         leak.  Remove casts from void * to pointers, that are no longer
90637         needed now that we're assuming C89 or better.
90638
90639         Merge error changes from glibc.
90640
90641         * lib/error.c, error.h: Update copyright notice header to match glibc.
90642         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
90643         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
90644         Disable cancellation while printing error.
90645         * lib/error.h: Prepend __ to parameter names.
90646
90647 2003-09-26  Jim Meyering  <jim@meyering.net>
90648
90649         * lib/error.c (error_tail): Move some declarations
90650         into inner scope where the local variables are used.
90651
90652 2003-09-26  Bruno Haible  <bruno@clisp.org>
90653
90654         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
90655         stpncpy().
90656         Don't define stpncpy through config.h; it's now done through stpncpy.h.
90657
90658 2003-09-26  Bruno Haible  <bruno@clisp.org>
90659
90660         * lib/stpncpy.h (gnu_stpncpy): New declaration.
90661         (stpncpy): Define as alias for gnu_stpncpy.
90662         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
90663
90664 2003-09-25  Simon Josefsson  <jas@extundo.com>
90665
90666         * lib/xgetdomainname.h: New file.
90667         * lib/xgetdomainname.c: New file.
90668
90669 2003-09-25  Simon Josefsson  <jas@extundo.com>
90670             Bruno Haible  <bruno@clisp.org>
90671
90672         * modules/getdomainname: New file.
90673         * modules/xgetdomainname: New file.
90674         * MODULES.html.sh (func_all_modules): Add getdomainname,
90675         xgetdomainname.
90676
90677 2003-09-25  Simon Josefsson  <jas@extundo.com>
90678             Bruno Haible  <bruno@clisp.org>
90679
90680         * m4/getdomainname.m4: New file.
90681
90682 2003-09-25  Simon Josefsson  <jas@extundo.com>
90683             Bruno Haible  <bruno@clisp.org>
90684
90685         * lib/getdomainname.h: New file.
90686         * lib/getdomainname.c: New file.
90687
90688 2003-09-25  Karl Berry  <karl@gnu.org>
90689
90690         * lib/argp-fmtstream.c, argp-help.c: update from libc.
90691
90692 2003-09-25  Karl Berry  <karl@gnu.org>
90693
90694         * config/install-sh: update from automake.
90695
90696 2003-09-25  Bruno Haible  <bruno@clisp.org>
90697
90698         * modules/version-etc-2: New file, from modules/version-etc with
90699         modifications.
90700         * MODULES.html.sh (func_all_modules): Add version-etc-2.
90701
90702 2003-09-25  Bruno Haible  <bruno@clisp.org>
90703
90704         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
90705         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
90706
90707 2003-09-24  Simon Josefsson  <jas@extundo.com>
90708
90709         * modules/xgethostname: Add xgethostname.h.
90710
90711 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90712
90713         * lib/linebuffer.c (freebuffer): Don't free the argument, just
90714         the buffer associated with the argument.  Bug reported by
90715         Simon Josefsson.
90716
90717 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90718
90719         * README: Document assumptions that 'int' is at least 32 bits
90720         wide, that integer arithmetic is 2's complement without overflow,
90721         that there are no holes in integer values, that adding sizes of
90722         two nonoverlapping objects can't overflow, and that all-bits-zero
90723         yields scalar zero.  Fix spelling and capitalization typos.
90724
90725 2003-09-19  Karl Berry  <karl@gnu.org>
90726
90727         * lib/argp.h: update from libc.
90728
90729 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90730
90731         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
90732         to avoid spurious warnings like "AC_RUN_IFELSE was called before
90733         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
90734
90735 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90736
90737         * gnulib-tool: Use "test -h", not "test -L", for portability
90738         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
90739         (tags_regexp): Remove, since \| doesn't conform to POSIX.
90740         (sed_extract_prog): Issue s commands one-by-one, rather than
90741         using \| in one s command.
90742
90743 2003-09-16  Paul Eggert  <eggert@twinsun.com>
90744
90745         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
90746         input error, instead of returning NULL the next time we are called
90747         (and therefore losing track of errno).
90748
90749 2003-09-16  Bruno Haible  <bruno@clisp.org>
90750
90751         * gnulib-tool (func_create_testdir): Warn about duplicated
90752         dependencies.
90753
90754 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90755
90756         * modules/argmatch, modules/fatal, modules/obstack,
90757         modules/xalloc, modules/xgethostname: Sort dependencies by
90758         importance, not alphabetically.
90759
90760 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90761
90762         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
90763         fails, so that the caller gets the proper errno.
90764
90765         * lib/readutmp.c (read_utmp): Likewise.
90766         Check for fstat error.  Close stream and free storage
90767         when failing.
90768
90769 2003-09-14  Karl Berry  <karl@gnu.org>
90770
90771         * config/srclist.txt (strdup.c): disable for c89 changes.
90772
90773 2003-09-14  Jim Meyering  <jim@meyering.net>
90774
90775         * lib/getloadavg.c: Correct cpp indentation.
90776         * lib/strdup.c: Likewise.
90777         * lib/vasnprintf.c: Likewise.
90778
90779 2003-09-14  Bruno Haible  <bruno@clisp.org>
90780
90781         * modules/fwriteerror: New file.
90782         * MODULES.html.sh (func_all_modules): Add fwriteerror.
90783
90784 2003-09-14  Bruno Haible  <bruno@clisp.org>
90785
90786         * lib/fwriteerror.h: New file.
90787         * lib/fwriteerror.c: New file.
90788
90789 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90790
90791         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
90792         modules/xgethostname, modules/xalloc: Depend on exit.
90793
90794 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90795
90796         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
90797
90798         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
90799         and AC_MINIX, too, so that their extensions are available.
90800
90801         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
90802         This macro has been superseded by gl_BACKUPFILE.
90803
90804         More patches to assume C89 or better.
90805
90806         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
90807
90808         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
90809         unconditionally.
90810         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
90811         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
90812         Include <string.h>, <stdlib.h> unconditionally.
90813         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
90814         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
90815         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
90816         headers or for string.h.
90817         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
90818         or strtoul.
90819
90820         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
90821         headers.
90822         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
90823         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90824         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
90825         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
90826         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90827         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
90828         memcpy, memset.
90829         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
90830         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
90831         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
90832         strtol.
90833         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
90834         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
90835         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
90836         strtoul.
90837
90838 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90839
90840         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
90841         * lib/obstack.c [!defined _LIBC]: Likewise.
90842         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
90843         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
90844         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
90845
90846         More changes to assume C89 or better.
90847
90848         * lib/error.c (error_tail): Assume vprintf.
90849
90850         * lib/argmatch.c (getenv): Remove decl.
90851         * lib/progreloc.c (get_full_program_name): Define via prototype.
90852         * lib/setenv.c (clearenv): Likewise.
90853         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
90854         needed.
90855         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
90856         (malloc, memcpy): Remove decls.
90857         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
90858         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
90859         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90860         (memcpy): Remove macro.
90861         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
90862         (__P): Remove.  All uses removed.
90863         (PTR): Remove.  All uses changed to void *.
90864         (CHAR_BIT, NULL): Remove.
90865         (spaces, zeros, memset_space, memset_zero)
90866         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
90867         Remove.
90868         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
90869         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
90870         Define with prototype.
90871         Remove now-unnecessary prototype decl.
90872         (extra_args_spec): Assume ANSI C.  All uses changed.
90873         (extra_args_spec_iso): Remove.
90874         (my_strftime, emacs_strftimeu): Define via prototype.
90875         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
90876         unconditionally.
90877         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
90878         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
90879         (strtoul, strtol): Remove decls.
90880         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
90881         LONG_MAX): Remove.
90882         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90883         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
90884         (LOCALE_PARAM_PROTO): New macro.
90885         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
90886         (INTERNAL (strtol), strtol): Define with a prototype.
90887         (PARAMS): Remove.  All uses removed.
90888         * lib/tempname.c: Include <string.h> unconditionally.
90889         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
90890         * lib/xgethostname.c (main): Define with a prototype.
90891         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
90892         Include <stdlib.h> unconditionally.
90893         (calloc, malloc, realloc, free): Remove decls.
90894         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
90895         Include <stdlib.h> unconditionally.  Sort include file names.
90896         (strtod): Remove.
90897         (xstrtod): Define with a prototype.
90898         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
90899         (strtol, strtoul): Remove decls.
90900
90901 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90902
90903         More patches to assume C89 or better.
90904         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
90905         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
90906         string.h, memchr, STDC_HEADERS.
90907
90908 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90909
90910         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
90911         Include <stdlib.h>, <string.h> unconditionally.
90912         Remove now-unnecessary cast to char *.
90913         * lib/strnlen.c: Include <string.h> unconditionally.
90914         * lib/yesno.c (yesno): Define with a prototype.
90915
90916 2003-09-11  Bruno Haible  <bruno@clisp.org>
90917
90918         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
90919
90920 2003-09-10  Jim Meyering  <jim@meyering.net>
90921
90922         * lib/error.c: Correct indentation of cpp directives.
90923
90924 2003-09-10  Bruno Haible  <bruno@clisp.org>
90925
90926         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
90927         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
90928         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
90929         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
90930         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
90931         <stdlib.h> and <string.h> checks.
90932         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
90933         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
90934
90935 2003-09-10  Bruno Haible  <bruno@clisp.org>
90936
90937         * lib/strcspn.c: Include <string.h> unconditionally.
90938         * lib/strpbrk.c: Include <string.h> unconditionally.
90939         * lib/strstr.c: Include <string.h> unconditionally.
90940         * lib/unicodeio.c: Include <string.h> unconditionally.
90941         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
90942         * lib/unsetenv.c: Likewise.
90943         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
90944         * lib/yesno.c: Include <stdlib.h> unconditionally.
90945         (rpmatch): Add prototype.
90946
90947 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90948
90949         More patches to assume C89 or better.
90950         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
90951         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
90952         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
90953         or for string.h.
90954         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
90955         stdlib.h.
90956         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
90957         C headers.
90958         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
90959         string.h.
90960         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
90961         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
90962         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
90963         or for string.h.
90964         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
90965         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
90966         C headers.
90967         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
90968         memcpy.
90969         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
90970         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
90971         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
90972         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
90973         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
90974         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
90975         string.h, free.
90976         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
90977         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
90978         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
90979         C headers, or for string.h.
90980         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
90981         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
90982         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
90983         headers, memory.h, stdlib.h, string.h, strings.h.
90984         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
90985         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
90986         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
90987         strchr.
90988         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
90989         headers, memory.h, string.h.
90990         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
90991         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
90992         free.
90993         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
90994         headers.
90995         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
90996         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
90997         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
90998         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
90999         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
91000
91001 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91002
91003         More K&R removal.
91004
91005         * lib/acosl.c (main): Use a prototype.
91006         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
91007         tanl.c: Likewise.
91008
91009         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
91010
91011         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
91012         (getopt, etopt_long, getopt_long_only, _getopt_internal)
91013         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
91014         with a prototype.
91015         * lib/getopt.c (const): Remove macro.
91016         Include <string.h> unconditionally.
91017         (my_index): Remove; all uses changed to strchr.
91018         (strlen): Remove decl.
91019         (exchange): Remove forward decl; no longer needed.
91020         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
91021         Define with prototype.
91022         * lib/getopt1.c (const): Remove macro.
91023         (getopt_long, getopt_long_only, main): Define with prototype.
91024
91025         * lib/getugroups.c: Include <string.h> unconditionally.
91026
91027         * lib/getusershell.c: Include <stdlib.h> unconditionally.
91028         (getusershell, setusershell, endusershell, readname, main):
91029         Define with prototypes.
91030
91031         * lib/group-member.c: Include group-member.h first.
91032         Include <stdlib.h> unconditionally.
91033
91034         * lib/hard-locale.c: Include hard-locale.h first.
91035         Include <stdlib.h>, <string.h> unconditionally.
91036
91037         * lib/hash.c (free, malloc): Remove decls.
91038         Include <stdlib.h> unconditionally.
91039
91040         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
91041         (getenv): Do not declare.
91042
91043         * lib/idcache.c: Include <string.h> unconditionally.
91044
91045         * lib/long-options.c: Include long-options.h first, to test interface.
91046         Include <stdlib.h> unconditionally.
91047
91048         * lib/makepath.c: Include makepath.h first, to test interface.
91049         Include <stdlib.h> and <string.h> unconditionally.
91050
91051         * lib/linebuffer.c: Include <stdlib.h>.
91052         (free): Remove decl.
91053
91054         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
91055         stddef.h. rpl_malloc returns void *, not char *.
91056         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
91057         prototype.
91058
91059         * lib/md5.h: Include <limits.h> unconditionally.
91060         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
91061         (__P): Remove; all uses removed.
91062         * lib/md5.c: Include "md5.h" first.
91063         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
91064         md5_buffer, md5_process_bytes, md5_process_block):
91065         Define with prototypes.
91066         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
91067         * lib/sha.c: Include "sha.h" first.
91068         Include <stdlib.h>, <string.h> unconditionally.
91069
91070         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
91071         * lib/memcmp.c (__ptr_t): Likewise.
91072         * lib/memrchr.c (__ptr_t): Likewise.
91073         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
91074         Include <string.h> unconditionally.
91075         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
91076         * lib/memchr.c: Include <stdlib.h> unconditionally.
91077         * lib/memchr.c (LONG_MAX): Remove.
91078         * lib/memrchr.c (LONG_MAX): Likewise.
91079         * lib/memchr.c (__memchr): Define via a prototype.
91080         * lib/memrchr.c (__memrchr): Likewise.
91081         * lib/memcmp.c (__P): Remove, and remove all uses.
91082         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
91083         Remove forward decls; no longer needed.
91084         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
91085         Use types required by C89 in prototype.
91086
91087         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
91088         * lib/savedir.c: Likewise.
91089         * lib/mkdir.c (free): Remove decl.
91090         * lib/rmdir.c (rmdir): Define with a prototype.
91091         * lib/savedir.c: Include savedir.h first, to test interface.
91092
91093         * lib/mktime.c (STDC_HEADERS): Remove.
91094         Include <stdlib.h>, <string.h> unconditionally.
91095
91096         * lib/modechange.c: Include <stdlib.h> unconditionally.
91097         (malloc): Remove decl.
91098
91099         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
91100         (free): Remove decl.
91101
91102         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
91103         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
91104         (This type really should be intptr_t, but that's a C99ism.)
91105         (_obstack_memcpy): Remove: all uses changed to memcpy.
91106         Include <string.h> unconditionally.
91107         (struct obstack): Assume __STDC__ for types of members
91108         chunkfun, freefun, extra_arg.
91109         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
91110         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
91111         obstack_begin, obstack_specify_allocation,
91112         obstack_specify_allocation_with_arg, obstack_chunkfun,
91113         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
91114         Remove unprototyped decls and the macros that use them.
91115         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
91116         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
91117         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
91118         (defined __STDC__ && __STDC__)]:
91119         Remove nonprototyped code.
91120         Include <stdlib.h> unconditionally.
91121         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
91122         _obstack_allocated_p, _obstack_free, obstack_free,
91123         _obstack_memory_used, print_and_abort):
91124         Define using prototypes.
91125         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
91126         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
91127         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
91128         obstack_next_free, obstack_object_size, obstack_room) [0]:
91129         Remove unused, unprototyped code.
91130
91131         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
91132
91133         * lib/physmem.c (physmem_total, physmem_available, main): Define
91134         with prototypes.
91135
91136         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
91137         (main): Define with a prototype.
91138
91139         * lib/posixver.c (getenv): Remove decl.
91140
91141         * lib/putenv.c (malloc): Returns void *, not char *.
91142         Include <string.h> unconditionally.
91143         (strchr, memcpy, NULL): Do not define.
91144
91145         * lib/readtokens.c: Include readtokens.h first, to test interface.
91146         Include <stdlib.h>, <string.h> unconditionally.
91147         (init_tokenbuffer): Define with a prototype.
91148
91149         * lib/regex.c (PARAMS): Remove.  All uses removed.
91150         All uses of _RE_ARGS removed, too.
91151         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
91152         unconditionally.
91153         (bzero): Assume memset exists.
91154         (memcmp, memcpy, NULL): Remove.
91155         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
91156         char, or assignments to local vars of type signed char.
91157         (init_syntax_once, PREFIX(extract_number_and_incr),
91158         PREFIX(print_partial_compiled_pattern),
91159         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
91160         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
91161         PREFIX(regex_grow_registers), PREFIX(regex_compile),
91162         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
91163         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
91164         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
91165         wcs_compile_range, byte_compile_range, truncate_wchar,
91166         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
91167         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
91168         count_mbs_length, wcs_re_match_2_internal,
91169         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
91170         PREFIX(alt_match_null_string_p),
91171         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
91172         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
91173         regfree, PREFIX(extract_number)): Define with prototype.  Remove
91174         now-unnecessary declaration, if any.
91175         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
91176         regcomp, regexec):
91177         Remove now-unnecessary casts among pointer types.
91178         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
91179
91180         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
91181         (free): Remove decl.
91182
91183         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
91184
91185         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
91186         (free): Remove decl.
91187
91188         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
91189         * lib/xgetcwd.c: Likewise.
91190
91191         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
91192         (free): Remove decl.
91193
91194         * lib/strchrnul.c (strchrnul): Define with a prototype.
91195         Fix bug: c_in was not converted to char before searching.
91196
91197         The following changes are not K&R related:
91198
91199         * lib/group-member.h: Include <sys/types.h>, so that this file is
91200         self-contained.
91201         * lib/makepath.h: Likewise.
91202
91203         * lib/getusershell.c (readname, default_index, line_size, readname):
91204         Use size_t, not int, for sizes.
91205         (readname): If the size overflows, report an error instead of
91206         looping forever.
91207
91208 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91209
91210         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
91211         libc.
91212
91213 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91214
91215         * README: New section: portability guidelines.
91216
91217 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91218
91219         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
91220         C89 spec.
91221
91222 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91223
91224         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
91225
91226 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91227
91228         Assume C89 or better; remove K&R cruft.
91229         A few of these changes were first proposed by Derek Robert Price
91230         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
91231
91232         * lib/addext.c: Include <string.h> unconditionally.
91233         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
91234         Don't declare getenv or malloc.
91235
91236         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
91237         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
91238         (NULL): Remove.
91239         (find_stack_direction, alloca): Use prototypes.
91240
91241         * lib/atexit.c (atexit): Define using a prototype.
91242
91243         * lib/basename.c, dirname.c, stripslash.c:
91244         Include <string.h> unconditionally.
91245
91246         * lib/bcopy.c: Include <stddef.h>.
91247         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
91248
91249         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
91250
91251         * lib/error.h (error, error_at_line, error_print_progname)
91252         [! (defined (__STDC__) && __STDC__)]: Remove decls.
91253         * lib/error.c: Include error.h first, to check interface.
91254         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91255         (VA_START): Remove; all uses changeed to va_start.
91256         (exit, strerror): Remove decls.
91257         (error_print_progname): Prototype uncondionally.
91258         Don't include <errno.h>; no longer needed.
91259         (private_strerror): Remove.
91260         (error_tail): Always define.
91261         (error, error_at_line): Assume C89 or better; always use prototypes.
91262         * lib/fatal.c: Include "fatal.h" first, to test interface.
91263         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91264         (VA_START): Remove; all uses changed to va_start.
91265         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
91266         this case.
91267         (exit): Remove decl.
91268         (fatal): Prototype unconditionally.  Assume va_start works.
91269         Abort at end, to pacify gcc.
91270
91271         * lib/euidaccess.c (main): Define with a prototype.
91272
91273         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
91274
91275         * lib/exitfail.c: Include <stdlib.h> unconditionally.
91276
91277         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
91278         prototypes.
91279         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
91280         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
91281         (getenv): Remove decl.
91282         (fnmatch): Define using a prototype.
91283         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
91284         (FCT): Define using a prototype.
91285
91286         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
91287
91288         * lib/gethostname.c: Include <stddef.h>.
91289         (gethostname): Define with prototype.  Length is size_t, not int.
91290
91291 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91292
91293         Assume C89 or better; remove K&R cruft.
91294         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
91295         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
91296         string.h, getenv, malloc.
91297         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
91298         headers.
91299         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
91300         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
91301         do not check for strerror.
91302         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
91303         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
91304         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
91305         do not check for doprnt or vprintf.
91306         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
91307         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
91308
91309 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91310
91311         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
91312         getversion.c should have been removed then, but was accidentally
91313         preserved.
91314
91315         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
91316         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
91317
91318 2003-09-08  Karl Berry  <karl@gnu.org>
91319
91320         * config/config.sub, config.guess, srclistvars.sh: update from savannah
91321                 config, forget about prep.
91322
91323         * config/depcomp, missing: update from automake.
91324
91325 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91326
91327         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
91328         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91329
91330 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91331
91332         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
91333         copy_tm_result.  Bug reported by Simon Josefsson in
91334         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91335
91336 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91337
91338         * m4/time_r.m4: New file.
91339         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
91340         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
91341         is. Check for timegm declaration.
91342         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
91343         Do not check for gmtime_r.
91344         Replace mktime if __mktime_internal does not exist and if mktime
91345         hasn't been replaced already.
91346
91347 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91348
91349         * lib/time_r.c, lib/time_r.h: New files.
91350
91351         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
91352         __localtime_r.
91353         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
91354         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
91355
91356         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
91357         __gmtime_r.
91358         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
91359         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
91360         Include <time_r.h>.
91361
91362         * lib/timegm.c: Switch to glibc implementation, with the following
91363         changes:
91364         [defined HAVE_CONFIG_H]: Include <config.h>.
91365         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
91366         (__mktime_internal) [!defined _LIBC]: New decl.
91367         (__gmtime_r) [!defined _LIBC]: New macro and function.
91368         (timegm): Use a prototype, since gnulib assumes C89.
91369         Do not bother declaring tmp to be const, as it's not really usefu.
91370         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
91371         (timegm): Declare only if HAVE_DECL_TIMEGM.
91372
91373 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91374
91375         * MODULES.html.sh (func_all_modules): Add time_r.
91376         * modules/time_r: New file.
91377         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
91378         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
91379
91380 2003-09-03  Paul Eggert  <eggert@twinsun.com>
91381
91382         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
91383         Bug reported by Lute Kamstra in
91384         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
91385
91386         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
91387         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
91388         course with correspondingly smaller numbers for tomorrow and
91389         yesterday.  From Tadayoshi Funaba.  Originally installed into
91390         sh-utils on 1999-08-07, but the patch got lost (I guess during the
91391         coreutils merge?).
91392
91393 2003-08-31  Simon Josefsson  <jas@extundo.com>
91394
91395         * modules/timegm: New file.
91396         * MODULES.html.sh (func_all_modules): Add timegm.
91397
91398 2003-08-31  Simon Josefsson  <jas@extundo.com>
91399
91400         * m4/timegm.m4: New file.
91401
91402 2003-08-31  Simon Josefsson  <jas@extundo.com>
91403
91404         * lib/timegm.h: New file.
91405         * lib/timegm.c: New file.  Based on
91406         wget-1.8.2/src/http.c:mktime_from_utc.
91407
91408 2003-08-31  Karl Berry  <karl@gnu.org>
91409
91410         * lib/argp.h: update from libc.
91411
91412 2003-08-28  Bruno Haible  <bruno@clisp.org>
91413
91414         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
91415         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
91416         followed by '#define fnmatch fnmatch_posix' gives an error.
91417
91418 2003-08-28  Bruno Haible  <bruno@clisp.org>
91419
91420         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
91421         warning on QNX, which defines O_BINARY to 000000.
91422
91423 2003-08-27  Jim Meyering  <jim@meyering.net>
91424
91425         * m4/mkstemp.m4: Require that the system mkstemp be able to create
91426         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
91427         would fail after 32.  Reported by Danny Levinson.  Details here:
91428         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
91429
91430 2003-08-24  Bruno Haible  <bruno@clisp.org>
91431
91432         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
91433         MSVC7 <stdio.h> is included later.
91434
91435 2003-08-22  Simon Josefsson  <jas@extundo.com>
91436
91437         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
91438
91439 2003-08-20  Karl Berry  <karl@gnu.org>
91440
91441         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
91442
91443 2003-08-20  Bruno Haible  <bruno@clisp.org>
91444
91445         * modules/progname: New file.
91446         * MODULES.html.sh (func_all_modules): Add progname.
91447
91448 2003-08-20  Bruno Haible  <bruno@clisp.org>
91449
91450         * lib/progname.h: New file, from GNU gettext.
91451         * lib/progname.c: New file, from GNU gettext.
91452         * lib/progreloc.c: New file, from GNU gettext.
91453
91454 2003-08-19  Jim Meyering  <jim@meyering.net>
91455
91456         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
91457         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
91458
91459 2003-08-19  Bruno Haible  <bruno@clisp.org>
91460
91461         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
91462         more.
91463
91464 2003-08-19  Bruno Haible  <bruno@clisp.org>
91465
91466         * lib/xstrdup.c: Assume <string.h> exists.
91467
91468 2003-08-18  Paul Eggert  <eggert@twinsun.com>
91469
91470         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
91471         in makefile rules.
91472
91473 2003-08-18  Jim Meyering  <jim@meyering.net>
91474
91475         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
91476         * m4/lib-ld.m4: Likewise.
91477
91478 2003-08-18  Jim Meyering  <jim@meyering.net>
91479
91480         * lib/setenv.h: Indent nested cpp directive.
91481         * lib/vasnprintf.c: Remove trailing blanks.
91482
91483 2003-08-17  Simon Josefsson  <jas@extundo.com>
91484
91485         * modules/xstrndup: New file.
91486         * MODULES.html.sh (func_all_modules): Add xstrndup.
91487
91488 2003-08-17  Simon Josefsson  <jas@extundo.com>
91489
91490         * modules/argp: Fix autoconf macro name. Add more dependencies.
91491
91492 2003-08-17  Simon Josefsson  <jas@extundo.com>
91493
91494         * m4/xstrndup.m4: New file.
91495
91496 2003-08-17  Simon Josefsson  <jas@extundo.com>
91497
91498         * m4/argp.m4: New file.
91499
91500 2003-08-17  Simon Josefsson  <jas@extundo.com>
91501             Bruno Haible  <bruno@clisp.org>
91502
91503         * lib/xstrndup.h: New file.
91504         * lib/xstrndup.c: New file.
91505
91506 2003-08-17  Bruno Haible  <bruno@clisp.org>
91507
91508         * modules/strndup (Files, Include): Add lib/strndup.h.
91509
91510 2003-08-17  Bruno Haible  <bruno@clisp.org>
91511
91512         * modules/euidaccess (Files): Add lib/euidaccess.h.
91513
91514 2003-08-17  Bruno Haible  <bruno@clisp.org>
91515
91516         * lib/strndup.h: New file.
91517
91518 2003-08-17  Bruno Haible  <bruno@clisp.org>
91519
91520         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
91521         like AC_GNU_SOURCE.
91522         * modules/extensions (configure.ac): Comment out the invocation of
91523         gl_USE_SYSTEM_EXTENSIONS.
91524
91525 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91526
91527         Merges from coreutils, etc.
91528         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
91529         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
91530         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
91531         fixing a typo.
91532         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
91533         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
91534
91535 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91536
91537         Document merge from coreutils.
91538         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
91539         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
91540         * modules/utime: Add m4/utimes-null.m4.
91541
91542 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91543
91544         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
91545         space, undoing this 2003-08-12 change:
91546         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91547
91548 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91549
91550         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
91551         strtoul.c from libc, undoing this 2003-08-12 change:
91552         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91553
91554 2003-08-16  Jim Meyering  <jim@meyering.net>
91555
91556         Merges from coreutils.
91557         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
91558         prefix.  Adjust cache variables similarly.  Create 500 rather than
91559         just 300 files, to exercise bug on Darwin6.5, too.
91560         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
91561         $missing_dir.
91562         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
91563         AM_SYS_POSIX_TERMIOS.
91564         Reported by mkc@mathdogs.com.
91565         Also change use of $am_cv_sys_posix_termios
91566         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
91567         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
91568         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
91569         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
91570         in /proc/mounts until it finds one with matching device number.  This
91571         is unnecessary when the FILE argument *is* a mount point.  No stat call
91572         is necessary in that case.  So, disable the statvfs-testing code on
91573         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
91574         as RedHat bug# 84846.
91575         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91576         to 1MB, so as not to render systems with no stack size limit (e.g.,
91577         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91578         Include <unistd.h>.  On some systems,
91579         it is required for the definition of _SC_PAGESIZE.
91580
91581 2003-08-16  Jim Meyering  <jim@meyering.net>
91582
91583         Merge from coreutils.
91584         * lib/xstrtoimax.c: #else #if -> #elif.
91585         * lib/xstrtoumax.c: Likewise.
91586
91587 2003-08-16  Jim Meyering  <jim@meyering.net>
91588
91589         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
91590         * m4/utimes.m4: Removed.
91591         * m4/utimes-null.m4: Renamed from utimes.m4.
91592
91593         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91594         to 1MB, so as not to render systems with no stack size limit (e.g.,
91595         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91596         Include <unistd.h>.  On some systems,
91597         it is required for the definition of _SC_PAGESIZE.
91598
91599 2003-08-16  Jim Meyering  <jim@meyering.net>
91600         and Paul Eggert  <eggert@cs.ucla.edu>
91601
91602         Merges from coreutils, etc.
91603
91604         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
91605         using the latest version from cvs.  This avoids problems with #line
91606         directives using a vendor (Sun) compiler.
91607         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
91608         Don't set GETGROUPS_LIB here; now it's
91609         done via getgroups.m4's wrapper function.
91610         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
91611         rather than just in sh-util/configure.in, so that the
91612         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
91613         same.
91614         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
91615         AC_FUNC_GETLOADAVG where to find getloadavg.c.
91616         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
91617         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
91618         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
91619         Remove code that is now done by the newly-required macros.
91620         Append $(EXEEXT) to DF_PROG.
91621         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
91622         Do not invoke or require the following here,
91623         since prereq.m4 or some gnulib .m4 now does this for us:
91624         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
91625         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
91626         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
91627         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
91628         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
91629         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
91630         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
91631         AC_FUNC_OBSTACK.
91632         Do not replace the following functions, as this is now the job
91633         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
91634         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
91635         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
91636         atexit getpass, strdup, getpagesize.
91637         Replace 'raise'.
91638         Do not check for the following functions, as this is now the job
91639         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
91640         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
91641         setregid.
91642         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
91643         Check for sys/sysctl.h.
91644         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
91645         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
91646         of checking for ssize_t ourselves.
91647
91648         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
91649         Require every macro that gnulib/modules/* suggests for us.
91650         (jm_PREREQ_ADDEXT): New macro.
91651         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
91652         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
91653
91654         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
91655         (gl_PHYSMEM): Use it.
91656         Also check for `table' function.
91657         Check for new headers and functions.
91658         Add check for sys/sysmp.h.
91659         With suggestions from Kaveh Ghazi.
91660         Ignore headers that are present but cannot be compiled.  This
91661         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
91662         C 5.4.
91663
91664 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91665
91666         Document merge from coreutils.
91667         * modules/userspec: Depend on posixver.
91668         * modules/strftime: Depend on tzset.
91669
91670 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91671
91672         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
91673         rather than tab, after '#' in shell-script copyright notices.
91674         Suggested by Bruno Haible.
91675
91676 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91677
91678         * config/srclist-update: Use three spaces, rather than tab, after '#'
91679         in shell-script copyright notices.  Suggested by Bruno Haible.
91680         Remove unnecessary parenthesization in regular expression.
91681
91682 2003-08-15  Jim Meyering  <jim@meyering.net>
91683
91684         Merge from coreutils.
91685         * lib/xgethostname.c: Include <stdlib.h>.
91686         (xghostname): Don't exit for anything other than memory-related
91687         failure; just return NULL.
91688         * lib/userspec.c: Include "posixver.h".
91689         (parse_user_spec): Accept `.' as a separator only
91690         in pre-POSIX-200112 mode.
91691         * lib/strtoimax.c: Use #elif rather than #else #if.
91692         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
91693         Remove function, now that we can rely on a working tzset function.
91694         [!_LIBC]: Ensure that the required autoconf test has been run.
91695         [!defined _NL_CURRENT && HAVE_STRFTIME]:
91696         Use underlying_strftime for %r.
91697         * lib/sha.c: Merge in some clean-up and optimization changes from
91698         glibc.
91699         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
91700         Ensure that it is a multiple of 64.
91701         Rearrange loop exit tests so as to avoid performing an
91702         additional fread after encountering an error or EOF.
91703         * lib/realloc.c: Update copyright date.
91704
91705 2003-08-15  Jim Meyering  <jim@meyering.net>
91706         and Paul Eggert  <eggert@twinsun.com>
91707
91708         Merge from coreutils.
91709         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
91710         member but strut utmpx does not.  Needed for AIX 4.3.3.
91711         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
91712
91713 2003-08-15  Jim Meyering  <jim@meyering.net>
91714         and Paul Eggert  <eggert@cs.ucla.edu>
91715
91716         Merges from coreutils, etc.
91717         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
91718         Require gl_FUNC_TZSET_CLOBBER.
91719         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
91720         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
91721         members.
91722
91723 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91724
91725         Help the merge from coreutils.
91726         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
91727         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
91728         * m4/tzset.m4: Use it too.
91729
91730 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91731
91732         * modules/tzset: New file.
91733
91734 2003-08-14  Jim Meyering  <jim@meyering.net>
91735
91736         Merges from coreutils.
91737         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
91738         variable names, rather than @FNMATCH_H@.
91739         * modules/alloca: Likewise for $(ALLOCA_H).
91740
91741         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
91742         the three copies of the literal target, `fnmatch.h'.
91743         * modules/alloca (alloca.h): Likewise.
91744
91745 2003-08-14  Jim Meyering  <jim@meyering.net>
91746
91747         Merge from coreutils.
91748         * m4/tzset.m4: New file.
91749         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
91750         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
91751         otherwise, AIX 5.1 systems would end up using the latter.
91752         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
91753         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
91754         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
91755         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
91756
91757 2003-08-14  Jim Meyering  <jim@meyering.net>
91758
91759         Merge from coreutils.
91760         * lib/obstack.h: Whitespace changes.
91761         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
91762         and xcalloc return values.
91763         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
91764         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
91765         hang on OSF/1 5.1 for DIR on both local and remote file systems.
91766         Reported by (and fix confirmed by) Nelson H. F. Beebe.
91767         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91768         error from mntctl.
91769         Use mntctl's return value to drive the entry-processing loop, since
91770         we can't rely on the value of the vmt_length member in the last
91771         entry.  On some systems doing so could result in exhausting
91772         virtual memory.  Based in part on a patch from Mike Jetzer.
91773
91774 2003-08-14  Jim Meyering  <jim@meyering.net>
91775         and Paul Eggert  <eggert@twinsun.com>
91776
91777         Merges from coreutils, plus other fixes.
91778         * lib/physmem.c: Merge in portability changes from gcc/libiberty
91779         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
91780         for credits and details.  Thanks to Kaveh Ghazi for helping
91781         to keep these files in sync.
91782         (ARRAY_SIZE): Define it.
91783         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
91784         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
91785         (memcasecmp): Don't assume size_t fits in unsigned int.
91786         Remove casts and duplicate code.
91787         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
91788         (memcpy): Remove definition.
91789         Merge in some clean-up and optimization changes from glibc.
91790         [BLOCKSIZE]: Move definition to top of file.
91791         Ensure that it is a multiple of 64.
91792         Rearrange loop exit tests so as to avoid performing an
91793         additional fread after encountering an error or EOF.
91794         * lib/md5.h (md5_uintptr): Define.
91795         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
91796         return to the initial working directory.  Preserve errno
91797         for caller.
91798         * lib/idcache.c: Include "xalloc.h".
91799         (xmalloc, xrealloc): Remove decls.
91800         (getuser): Remove casts no longer required in C89.
91801         * lib/human.c: Include stdio.h, for sprintf.
91802         * lib/group-member.c: Include "xalloc.h".
91803         (xmalloc, xrealloc): Remove decls.
91804         (get_group_info): Remove casts no longer required in C89.
91805         * lib/getusershell.c (readname): Remove casts no longer required in
91806         C89.
91807         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
91808         * lib/getline.c: Whitespace fix, from coreutils.
91809
91810 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91811
91812         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
91813         Check for isascii.
91814
91815         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91816         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91817         Undo previous (whitespace-only) change.
91818
91819 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91820
91821         * lib/exclude.c: Include <ctype.h>
91822         (IN_CTYPE_DOMAIN): New macro.
91823         (is_space): New fn.
91824         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
91825         and empty lines.
91826
91827         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91828         Undo previous (whitespace-only) change.
91829
91830 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91831
91832         * config/srclist-update: Change update back to the old behavior,
91833         leaving whitespace alone.  Use one 'sed' command rather than a
91834         pipeline.
91835         (fixlicense): Now a variable, not a function.
91836         (remove_trailing_blanks): Remove.
91837         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
91838         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91839         Undo previous (whitespace-only) change.
91840
91841 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91842
91843         Merge from coreutils.
91844         * modules/euidaccess: Add lib_SOURCES, include for new
91845         file euidaccess.h
91846
91847 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91848
91849         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91850         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91851         Normalize leading white space and remove trailing white space.
91852
91853         Merge from coreutils
91854         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
91855
91856         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
91857         0.12.1.  These files are now being upgraded automatically by
91858         ../config/srclist-update.
91859
91860 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91861
91862         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91863         Normalize leading white space and remove trailing white space.
91864         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
91865         notice, as per ../config/srclist-update.
91866
91867         Merge from coreutils.
91868         * lib/euidaccess.h: New file.
91869         * lib/euidaccess.c: Include it.
91870         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
91871         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
91872         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
91873
91874 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91875
91876         * config/srclist-update: Add copyright notice.
91877         (remove_id_lines, remove_trailing_blanks): New constants.
91878         (fixfile): Use them to normalize spacing a bit in copied files.
91879         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91880         Normalize leading white space and remove trailing white space.
91881
91882         * config/texinfo.tex: Sync with texinfo.
91883
91884         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
91885         strtoul.c from libc, to merge coreutils whitespace changes.
91886
91887         * config/srclist.txt: Get the following m4 files from gettext:
91888         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
91889         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
91890         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
91891         wint_t.m4.
91892
91893 2003-08-12  Karl Berry  <karl@gnu.org>
91894
91895         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
91896         been made.
91897
91898 2003-08-11  Paul Eggert  <eggert@twinsun.com>
91899
91900         * modules/gnu-source, m4/gnu-source.m4:
91901         Remove; we're assuming Autoconf 2.54 or later now.
91902         Suggested by Bruno Haible.
91903         * MODULES.html.sh (func_all_modules): Remove gnu-source.
91904
91905 2003-08-11  Bruno Haible  <bruno@clisp.org>
91906
91907         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
91908
91909 2003-08-11  Bruno Haible  <bruno@clisp.org>
91910
91911         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
91912         (vasnprintf): Use it instead of wcslen.
91913
91914 2003-08-11  Bruno Haible  <bruno@clisp.org>
91915
91916         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
91917         value to ensure that _Bool promotes to int. Use #define for _Bool when
91918         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
91919
91920 2003-08-10  Karl Berry  <karl@gnu.org>
91921
91922         * lib/regex.h: update from libc (whitespace fix).
91923
91924 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91925
91926         Merge some files from coreutils.  These changes were
91927         originally made by Jim Meyering.
91928         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
91929         many older Unixes require this.
91930         * lib/alloca.c (alloca): Remove cast to argument of free;
91931         no longer needed in C89.
91932         * lib/alloca_.h, regex.h: Fix white space to match
91933         what GNU indent does.
91934
91935 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91936
91937         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
91938         apparently Emacs's Unicode mode got confused before my 2003-08-05
91939         checkin.
91940
91941 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91942
91943         * m4/extensions.m4: New file.
91944         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
91945         Require gl_USE_SYSTEM_EXTENSIONS.
91946         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
91947         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
91948
91949 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91950
91951         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
91952         * modules/extensions, modules/gnu-source: New files.
91953         * modules/timespec, modules/unlocked-io: Depend on extensions.
91954
91955 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91956
91957         * modules/restrict: New file.
91958         * MODULES.html.sh (func_all_modules): Add restrict.
91959         * modules/regex: Depend on restrict.
91960
91961 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91962
91963         * m4/restrict.m4: New file.
91964         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
91965
91966 2003-08-07  Bruno Haible  <bruno@clisp.org>
91967
91968         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
91969         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
91970
91971 2003-08-07  Bruno Haible  <bruno@clisp.org>
91972
91973         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
91974         makes the module 'getndelim2' compatible with the module 'getline'.
91975
91976 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91977
91978         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
91979         byte with "\201" to avoid glitches when editing that source file
91980         with multi-gnome-terminal.
91981
91982 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91983
91984         * lib/bumpalloc.h: Remove.
91985
91986 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91987
91988         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
91989         * modules/bumpalloc: Remove.
91990
91991 2003-08-04  Paul Eggert  <eggert@twinsun.com>
91992
91993         * lib/getloadavg.c: Change copyright notice and spacing to conform to
91994         GNU coding style.
91995
91996         Merge from coreutils.
91997         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
91998         1. From glibc.
91999         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
92000         from Karl Berry, implemented by Jim Meyering.
92001         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
92002         from Dmitry V. Levin.
92003         Remove anachronistic cast of xrealloc.
92004         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
92005         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
92006         type. Otherwise, it wouldn't compile with at least /bin/cc on
92007         ymp-cray-unicos9.0.2.X.
92008         Combine two mostly-identical uses of alloca into one.
92009         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
92010
92011 2003-08-04  Dave Love  <d.love@dl.ac.uk>
92012
92013         [From Emacs.]
92014
92015         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
92016         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
92017         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
92018         obsolete NLIST_NAME_UNION.
92019         [__GNU__]: Undef BSD and FSCALE.
92020         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
92021
92022 2003-08-03  Paul Eggert  <eggert@twinsun.com>
92023
92024         * lib/stdbool_.h (_Bool): Make it signed char, instead of
92025         an enum type, so that it's guaranteed to promote to int.  See:
92026         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
92027
92028 2003-08-03  Karl Berry  <karl@gnu.org>
92029
92030         * config/depcomp: update from automake.
92031
92032 2003-07-31  Paul Eggert  <eggert@twinsun.com>
92033
92034         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
92035         (strerror): Don't assume that a printable int fits in 14 bytes.
92036
92037 2003-07-31  Bruno Haible  <bruno@clisp.org>
92038
92039         * modules/getpass-gnu: New file.
92040         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
92041
92042 2003-07-31  Bruno Haible  <bruno@clisp.org>
92043
92044         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
92045
92046 2003-07-24  Karl Berry  <karl@gnu.org>
92047
92048         * config/missing: update from automake.
92049
92050 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
92051             Bruno Haible  <bruno@clisp.org>
92052
92053         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
92054         * lib/getline.c (getline, getdelim): Likewise.
92055         Remove _GNU_SOURCE define; now it's defined in config.h through
92056         m4/getline.m4.
92057
92058 2003-07-23  Karl Berry  <karl@gnu.org>
92059
92060         * config/config.sub: update from prep.
92061
92062 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92063
92064         * modules/xalloc (Depends-on): Add exitfail.
92065         * modules/xmemcoll: Likewise.
92066
92067 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92068
92069         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
92070         over-parenthesization in macros.
92071
92072         Sync with coreutils.
92073
92074         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
92075         required by C99.
92076
92077         Use `exit_failure' for xalloc and xmemcoll instead of their own
92078         private exit-failure variables.
92079         * lib/xalloc.h (xalloc_exit_failure): Remove.
92080         * lib/xmalloc.c: Likewise.  Include exitfail.h.
92081         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
92082         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
92083         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
92084         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
92085
92086 2003-07-20  Jim Meyering  <jim@meyering.net>
92087
92088         * modules/closeout (Depends-on): Add exitfail.
92089         Suggestion from Bruno Haible.
92090
92091 2003-07-19  Karl Berry  <karl@gnu.org>
92092
92093         * config/config.sub: update from prep.
92094
92095 2003-07-18  Paul Eggert  <eggert@twinsun.com>
92096
92097         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
92098         Remove.
92099         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
92100         to test that it can stand by itself.  Include "exitfail.h".
92101         Clients should set exit_failure instead.
92102         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
92103
92104 2003-07-18  Bruno Haible  <bruno@clisp.org>
92105
92106         * modules/getndelim2: New file.
92107         * modules/getline: Share files with module getndelim2.
92108         * modules/getnline: Depend on getndelim2 instead of sharing files with
92109         it. Add getnline.c to lib_SOURCES.
92110         * MODULES.html.sh (func_all_modules): Add getndelim2.
92111
92112 2003-07-18  Bruno Haible  <bruno@clisp.org>
92113
92114         * m4/getndelim2.m4: New file.
92115         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
92116         invoke gl_PREREQ_GETNDELIM2.
92117         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
92118         gl_PREREQ_GETNDELIM2.
92119         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
92120         gl_GETNDELIM2.
92121
92122 2003-07-18  Bruno Haible  <bruno@clisp.org>
92123
92124         * lib/getndelim2.h: New file.
92125         * lib/getndelim2.c: Make into a module of its own. Include config.h,
92126         getndelim2.h.
92127         (getndelim2): Make non-static. Change return type to ssize_t.
92128         * lib/getline.h: Change argument names.
92129         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
92130         * lib/getnline.c: Include getndelim2.h.
92131
92132 2003-07-18  Andreas Schwab  <schwab@suse.de>
92133
92134         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
92135
92136 2003-07-17  Karl Berry  <karl@gnu.org>
92137
92138         * config/config.sub: update from prep.
92139
92140 2003-07-17  Bruno Haible  <bruno@clisp.org>
92141
92142         * modules/getnline: New file.
92143         * modules/getline: Add lib/getndelim2.c to source file list.
92144         * MODULES.html.sh (func_all_modules): Add getnline.
92145
92146 2003-07-17  Bruno Haible  <bruno@clisp.org>
92147
92148         * m4/getnline.m4: New file.
92149
92150 2003-07-17  Bruno Haible  <bruno@clisp.org>
92151
92152         * m4/Makefile.am.in: Remove file.
92153         * m4/Makefile.am: Remove file.
92154         * m4/Makefile.in: Remove file.
92155
92156 2003-07-17  Bruno Haible  <bruno@clisp.org>
92157
92158         * lib/getnline.h: New file.
92159         * lib/getnline.c: New file.
92160         * lib/getndelim2.c: New file, extracted from getline.c.
92161         (getndelim2): Renamed from getdelim2, with added nmax argument.
92162         * lib/getline.c: Include getndelim2.c.
92163         (getdelim2): Moved out to getndelim2.c.
92164         (getline, getdelim): Update.
92165
92166 2003-07-17  Bruno Haible  <bruno@clisp.org>
92167
92168         * lib/Makefile.am: Remove file.
92169         * lib/Makefile.in: Remove file.
92170
92171 2003-07-17  Bruno Haible  <bruno@clisp.org>
92172
92173         * configure.in: Remove file.
92174         * Makefile.in: Remove file.
92175
92176 2003-07-17  Bruno Haible  <bruno@clisp.org>
92177
92178         * MODULES.html.sh: Put the </BODY> right before </HTML>.
92179
92180 2003-07-16  Karl Berry  <karl@gnu.org>
92181
92182         * config/srclist-update: was running fixlicense twice, which caused
92183                 texinfo.tex to be nullified for some reason.  Simplify,
92184                 $gplsrc is no longer needed as far as I can see?
92185
92186 2003-07-16  Jim Meyering  <jim@meyering.net>
92187
92188         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
92189
92190 2003-07-15  Paul Eggert  <eggert@twinsun.com>
92191
92192         * config/srclist.txt: Get the following files from gettext-runtime/intl
92193         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
92194         ref-del.sin.  From Bruno Haible.
92195         * config/srclist-update (fixfile): Change grep pattern again, since the
92196         previous fix didn't work (there was another trailing $).  Use
92197         '[$]' to escape the $s.
92198
92199 2003-07-15  Karl Berry  <karl@gnu.org>
92200
92201         * lib/vasnprintf.c: update from gettext.
92202
92203 2003-07-15  Karl Berry  <karl@gnu.org>
92204
92205         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
92206         gets expanded when surrounded by '$'.
92207
92208 2003-07-15  Jim Meyering  <jim@meyering.net>
92209
92210         * modules/save-cwd: Don't depend on error.  From Derek Price.
92211
92212 2003-07-15  Jim Meyering  <jim@meyering.net>
92213
92214         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
92215
92216 2003-07-14  Simon Josefsson  <jas@extundo.com>
92217
92218         * modules/mempcpy: New file.
92219         * MODULES.html.sh (func_all_modules): Add mempcpy.
92220
92221 2003-07-14  Simon Josefsson  <jas@extundo.com>
92222
92223         * m4/mempcpy.m4: New file.
92224
92225 2003-07-14  Simon Josefsson  <jas@extundo.com>
92226
92227         * lib/mempcpy.h: New file.
92228         * lib/mempcpy.c: New file.
92229
92230 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92231
92232         * modules/getdate, modules/posixtm: Depend on mktime.
92233
92234 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92235
92236         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
92237         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
92238         unicodeio.c, unicodeio.h, unlocked-io.h:
92239         Switch from LGPL to GPL.
92240
92241 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92242
92243         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
92244         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
92245         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
92246         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
92247         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
92248         updated automatically by ../config/srclist-update.  This changes
92249         their license from LPGL to GPL.
92250
92251 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92252
92253         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
92254         assumed to refer to the root of the most recent stable gettext version.
92255         * config/srclistvars.sh: Add defaults for eggert.
92256         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
92257         Match "This program" as well as "The program".  This is needed
92258         for gettext.
92259
92260 2003-07-14  Jim Meyering  <jim@meyering.net>
92261
92262         Don't emit diagnostics.  Let callers do that.
92263         * lib/save-cwd.c: Don't include "error.h".
92264         (save_cwd): Don't call error.  Ensure that errno is valid
92265         when returning nonzero.
92266
92267         * lib/save-cwd.h (restore_cwd): Update prototype.
92268         * lib/save-cwd.c (restore_cwd): Remove two parameters.
92269         Simplify.  Don't call error upon failure.  Let callers do that.
92270         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
92271         when auditing is enabled.  But don't bother updating the #if.
92272
92273 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
92274
92275         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
92276         it breaks C++ compilation.
92277         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
92278
92279 2003-07-10  Simon Josefsson  <jas@extundo.com>
92280
92281         * modules/strchrnul (Makefile.am): Add strchrnul.h.
92282
92283 2003-07-10  Jim Meyering  <jim@meyering.net>
92284
92285         * m4/clock_time.m4: Remove trailing blank.
92286         * m4/intmax_t.m4: Likewise.
92287
92288 2003-07-10  Jim Meyering  <jim@meyering.net>
92289
92290         * lib/vasnprintf.c: Remove trailing blanks.
92291         Make cpp indentation consistent.
92292
92293 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92294
92295         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
92296         posixver.c, strftime.c, strnlen.c, strverscmp.c:
92297         Switch from LGPL to GPL.
92298
92299 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92300
92301         * config/srclist.txt: Sort sublists.  Add
92302         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
92303         that differ from gnulib for one reason or another; we'd like this list
92304         to be smaller but for now let's document what we have.
92305
92306 2003-07-08  Paul Eggert  <eggert@twinsun.com>
92307
92308         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
92309         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
92310         and sweeter "eval x=$x".
92311         * config/srclist.txt: Get lib/argp* from glibc.
92312
92313 2003-07-07  Paul Eggert  <eggert@twinsun.com>
92314
92315         * lib/mktime.c: Fix some boundary cases and remove need for floating
92316         point.
92317
92318         Issue a compile-time diagnostic if time_t is floating point, or if
92319         two's complement arithmetic is not in effect, or if arithmetic
92320         right shift does not propagate the sign.  These assumptions were
92321         all in the original code but they weren't checked.
92322
92323         (TIME_T_MIDPOINT, verify): New macros.
92324         (__isleap): Remove; it has integer overflow problems.
92325         (leapyear): New function, without those problems.
92326         (ydhms_tm_diff): Remove; splitting into two parts.
92327         (ydhms_diff): New function, containing the arithmetic part of
92328         the old ydhms_tm_diff function.  Issue a compile-time
92329         diagnostic if we are not using C99 integer division.
92330         Avoid casts when possible.
92331         (guess_time_tm): New function, containing the checking part of
92332         the old ydhms_tm_diff function.  Return the new value, rather than
92333         the difference between it and the old.  Accept a new argument T
92334         so that *T specifies the old value.  Check for overflow in the result.
92335
92336         (__mktime_internal): Use a time_t offset, not a long int offset.
92337         This undoes the 2003-06-04 change, which is no longer needed now
92338         that we have better overflow checking.
92339         (localtime_offset): Likewise.
92340
92341         (__mktime_internal): Avoid harmful overflow on hosts where time_t
92342         and long are 64-bit but int is only 32-bit.
92343         (ydhms_diff): Use long int to store year1 and yday1.
92344         Issue a compile-time diagnostic if long int is not wide enough.
92345
92346         (__mktime_internal): Use long int to store adjusted year and yday.
92347         Use plain C rather than preprocessor commands, if that doesn't
92348         affect efficiency.
92349         Check for overflow (and try to repair) after each probe
92350         rather than checking only at the very end.  This avoids some bugs
92351         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
92352         does not equal GMT offset at maximum time).
92353         Use integer to check for overflow rather than floating point; this
92354         is more portable to non-IEEE hosts, and is a tad faster.
92355         When we detect that we are oscillating between two values,
92356         don't check whether tm_isdst has the requested value, since
92357         we already know the answer.  When tm_isdst has the wrong value,
92358         use a different heuristic to find the right one, based on the
92359         extreme values actually observed in practice in tz2003a,
92360         rather than the (overly optimistic) "previous 3 calendar quarters".
92361
92362         (not_equal_tm, print_tm, check_result): Use "const T" rather than
92363         "T const" to accommodate glibc style.
92364         (check_result): Use less-confusing report format.  "long" -> "long int.
92365         (main): Likewise.
92366         Don't loop if the iteration overflows time_t.
92367         Allow a negative step in the iteration.
92368
92369 2003-07-06  Karl Berry  <karl@gnu.org>
92370
92371         * config/depcomp: update from automake.
92372         * config/config.sub: update from prep.
92373
92374 2003-07-03  Karl Berry  <karl@gnu.org>
92375
92376         * config/config.guess: update from prep.
92377
92378 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92379
92380         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
92381         xreadlink.c now includes it unconditionally.
92382
92383 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92384
92385         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
92386         having it depend on HAVE_SYS_TYPES_H.
92387
92388 2003-07-01  Bruno Haible  <bruno@clisp.org>
92389
92390         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
92391         <sys/types.h> should be sufficient.
92392         Reported by Paul Eggert.
92393
92394 2003-06-26  Karl Berry  <karl@gnu.org>
92395
92396         * config/depcomp: update from automake.
92397
92398 2003-06-26  Bruno Haible  <bruno@clisp.org>
92399
92400         * modules/human: Depend on module stdbool.
92401
92402 2003-06-25  Bruno Haible  <bruno@clisp.org>
92403
92404         * modules/readlink: New file.
92405         * modules/xreadlink: Depend on it.
92406         * MODULES.html.sh (func_all_modules): Add readlink.
92407
92408 2003-06-25  Bruno Haible  <bruno@clisp.org>
92409
92410         * m4/readlink.m4: New file.
92411
92412 2003-06-25  Bruno Haible  <bruno@clisp.org>
92413
92414         * lib/readlink.c: New file.
92415
92416 2003-06-22  Karl Berry  <karl@gnu.org>
92417
92418         * config/srclist.txt: update mkinstalldirs from automake.
92419         * config/mkinstalldirs: update.
92420
92421 2003-06-22  Bruno Haible  <bruno@clisp.org>
92422
92423         Portability to mingw32.
92424         * m4/ssize_t.m4: New file, from GNU gettext.
92425         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
92426         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
92427
92428 2003-06-22  Bruno Haible  <bruno@clisp.org>
92429
92430         * modules/safe-read: Add m4/ssize_t.m4.
92431         * modules/xreadlink: Add m4/ssize_t.m4.
92432
92433 2003-06-20  Bruno Haible  <bruno@clisp.org>
92434
92435         Assume C89, so PARAMS isn't needed.
92436         * lib/unicodeio.h (PARAMS): Remove.
92437         * lib/unicodeio.c: Don't use PARAMS.
92438
92439 2003-06-18  Karl Berry  <karl@gnu.org>
92440
92441         * config/config.{guess,sub}: update from prep.
92442
92443 2003-06-18  Jim Meyering  <jim@meyering.net>
92444
92445         Merge changes from coreutils.
92446         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
92447         Remove explicit declarations of xmalloc and realloc.
92448         Include xalloc.h.
92449         (read_utmp): Remove anachronistic cast of xmalloc.
92450
92451 2003-06-17  Paul Eggert  <eggert@twinsun.com>
92452
92453         Assume C89, so PARAMS isn't needed.
92454         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
92455         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
92456         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
92457         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
92458         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
92459         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
92460         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
92461         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
92462         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
92463         lib/xstrtod.h, lib/xstrtol.h: Likewise.
92464         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
92465         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
92466         no longer needed. Anyway, config.h should always be included before any
92467         other file.
92468
92469 2003-06-11  Simon Josefsson  <jas@extundo.com>
92470
92471         * modules/sysexits: New file.
92472         * MODULES.html.sh (func_all_modules): Add sysexits.
92473
92474 2003-06-11  Simon Josefsson  <jas@extundo.com>
92475
92476         * lib/sysexit_.h: New file.
92477
92478 2003-06-11  Derek Price  <derek@ximbiot.com>
92479
92480         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
92481         necessary.
92482
92483 2003-06-11  Bruno Haible  <bruno@clisp.org>
92484
92485         * m4/sysexits.m4: New file.
92486
92487 2003-06-10  Simon Josefsson  <jas@extundo.com>
92488
92489         * lib/argp.h: New file, from glibc.
92490         * lib/argp-ba.c: New file, from glibc.
92491         * lib/argp-eexst.c: New file, from glibc.
92492         * lib/argp-fmtstream.c: New file, from glibc.
92493         * lib/argp-fmtstream.h: New file, from glibc.
92494         * lib/argp-fs-xinl.c: New file, from glibc.
92495         * lib/argp-help.c: New file, from glibc.
92496         * lib/argp-namefrob.h: New file, from glibc.
92497         * lib/argp-parse.c: New file, from glibc.
92498         * lib/argp-pv.c: New file, from glibc.
92499         * lib/argp-pvh.c: New file, from glibc.
92500         * lib/argp-xinl.c: New file, from glibc.
92501
92502 2003-06-10  Simon Josefsson  <jas@extundo.com>
92503
92504         * modules/strchrnul: New file.
92505
92506 2003-06-10  Simon Josefsson  <jas@extundo.com>
92507
92508         * modules/argp: New file.
92509
92510 2003-06-10  Simon Josefsson  <jas@extundo.com>
92511
92512         * m4/strchrnul.m4: New file.
92513
92514 2003-06-10  Simon Josefsson  <jas@extundo.com>
92515
92516         * lib/strchrnul.h: New file.
92517         * lib/strchrnul.c: New file.
92518
92519 2003-06-10  Bruno Haible  <bruno@clisp.org>
92520
92521         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
92522
92523 2003-06-07  Karl Berry  <karl@gnu.org>
92524
92525         * config/config.{guess,sub}: update from prep.
92526
92527 2003-06-07  Jim Meyering  <jim@meyering.net>
92528
92529         * modules/strtod: Use $(...) notation, not @...@ for
92530         AC_REPLACE'd variables.
92531         * modules/localcharset: Likewise.
92532
92533 2003-06-07  Jim Meyering  <jim@meyering.net>
92534
92535         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
92536         in place of my name in the copyright comment.
92537         Remove definition and uses of __P.
92538
92539         From coreutils.
92540         * lib/stat.c: Don't declare xmalloc explicitly.
92541         Instead, include "xalloc.h".
92542         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
92543         xrealloc, and xcalloc return values.
92544         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
92545         Improve comment.
92546         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
92547
92548 2003-06-07  Bruno Haible  <bruno@clisp.org>
92549
92550         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
92551         avoid AC_CONFIG_LINKS.
92552         * modules/fnmatch (Makefile.am): Use explicit creation rule for
92553         fnmatch.h, to avoid AC_CONFIG_LINKS.
92554         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
92555
92556 2003-06-07  Bruno Haible  <bruno@clisp.org>
92557
92558         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
92559         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
92560         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92561         directory.
92562         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
92563         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92564         directory.
92565
92566 2003-06-06  Jim Meyering  <jim@meyering.net>
92567
92568         Merge from coreutils.
92569         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
92570         Consolidate declarations and initializations of *_base* locals.
92571
92572         Merge from coreutils.
92573         This avoids a core dump on systems without GNU putenv,
92574         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
92575         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
92576         (unsetenv): New static function, from GNU libc.
92577         (rpl_putenv): Use it.
92578
92579         * lib/modechange.c: Remove trailing blanks.
92580
92581         Merge from coreutils.
92582         * lib/fsusage.c: Remove declaration of statfs.
92583         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
92584
92585         * lib/posixtm.c: Include <stdbool.h> unconditionally.
92586
92587 2003-06-06  Jim Meyering  <jim@meyering.net>
92588
92589         * lib/stdbool_.h: Renamed from stdbool.h.in.
92590
92591 2003-06-06  Jim Meyering  <jim@meyering.net>
92592             Bruno Haible  <bruno@clisp.org>
92593
92594         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
92595         Adjust Makefile.am snippet not to redirect directly to target.
92596         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
92597
92598 2003-06-05  Paul Eggert  <eggert@twinsun.com>
92599
92600         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
92601         mismatch, look in future quarters as well as past.  This fixes a
92602         bug when processing fall-backwards gaps immediately after a long
92603         period of daylight-saving time.
92604
92605         * lib/mktime.c: Assume freestanding C89 or better.
92606         (HAVE_LIMITS_H): Remove.  Assume it's 1.
92607         (__P): Remove; not used.
92608         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
92609         (mktime, not_equal_tm, print_tm, check_result,
92610         main): Use prototypes.  Use const * where appropriate.
92611         (main): Fix typo in testing code that uncovered by above changes.
92612         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
92613
92614 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92615
92616         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
92617         locale.h, localeconv.  This merges changes from coreutils.
92618
92619         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
92620         It can be removed after the next Autoconf is released.
92621         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
92622         needed.
92623
92624 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92625
92626         * lib/mktime.c: Fix Debian bug 177940
92627         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
92628         (localtime_offset): Now long int, not time_t, because we want it
92629         to be guaranteed to be signed.  All uses changed.
92630         (__mktime_internal): If overflow would occur when adding offset,
92631         don't add it.
92632
92633         Merge 'human' changes from coreutils.  Rewrite to support
92634         locale-specific notations like thousands separators.
92635         * lib/human.c: Simplify authorship notice.
92636         Include human.h immediately after config.h.
92637         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
92638         <limits.h>: Do not include, since human.h does.
92639         (SIZE_MAX, UINTMAX_MAX): New macros.
92640         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
92641         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
92642         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
92643         (power_letter): Renamed from suffixes.
92644         (generate_suffix_backwards): Remove.
92645         (adjust_value): Now takes int style (because of human.h changes)
92646         and long double value (for greater precision on some platforms).
92647         (group_number): New function.
92648         (human_readable): Use it.  Use integer options, not enum.
92649         Put the options before the sizes in the arg list.
92650         Support all the new options.
92651         The old human_readable function has been removed;
92652         use inttostr.h instead.
92653         (human_readable, default_block_size, humblock):
92654         Use uintmax_t, not int, for block sizes.
92655         (human_readable_inexact, block_size_types): Remove.
92656         (block_size_opts): New constant.
92657         (human_options): Renamed from human_block_size, with new signature
92658         that allows block sizes up to UINTMAX_MAX.  All callers changed.
92659         * lib/human.h: Add copyright and authorship notice.
92660         Include <limits.h> and <stdbool.h> unconditionally.
92661         (PARAMS): Remove.  All uses removed.
92662         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
92663         (enum human_inexact_style): Remove tag; now a nameless enum.
92664         (human_floor, human_ceiling, human_round_to_even): Now have
92665         values 2, 0, 1 rather than -1, 1, 0.
92666         (human_group_digits, human_suppress_point_zero, human_autoscale,
92667         human_base_1024, human_SI, human_B): New constants.
92668         (human_readable_inexact, human_block_size): Remove.
92669         (human_readable): Size args are now uintmax_t, not int.
92670         (human_options): New decl.
92671
92672         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
92673         unnecessary now that we assume C89 or better.  This change
92674         imported from coreutils.
92675
92676         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92677         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
92678         in the 2003-05-30 sync from glibc.
92679
92680         .h files should stand alone, but we shouldn't include <sys/types.h>
92681         if we can get away with just <stddef.h>.
92682
92683         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
92684         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
92685         rather than <sys/types.h>, as we merely need size_t.
92686         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
92687         to get size_t.
92688         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
92689         Include <stdio.h>, to get FILE.
92690         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
92691         memcasecmp.h has included <stddef.h> and all we need is size_t.
92692         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
92693         our interface, instead of including <sys/types.h>
92694
92695 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92696
92697         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
92698         now, as glibc mktime is buggy on non-glibc systems.
92699
92700 2003-06-03  Karl Berry  <karl@gnu.org>
92701
92702         * config/config.sub: update from prep.
92703
92704 2003-06-02  Paul Eggert  <eggert@twinsun.com>
92705
92706         [from coreutils]
92707         Fix some minor time-related bugs with POSIX time arguments.
92708         Some valid time stamps were being rejected (notably -1, and
92709         time stamps before 1900 on 64-bit hosts).  And some invalid
92710         time stamps were being accepted, e.g. September 31.
92711
92712         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
92713         that we can return (time_t) -1 successfully.
92714         * lib/posixtm.c: Likewise.
92715         [HAVE_STDBOOL_H]: Include <stdbool.h>.
92716         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
92717         (t): Remove static var.
92718         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
92719         of static var.  All uses changed.
92720         (year): Do not reject years before 1900; they can occur with
92721         64-bit time_t.
92722         (posix_time_parse): Do not check for out-of-range components;
92723         that is now the caller's responsibility, since our checks were
92724         only approximations.
92725         (posixtime): Use mktime to check for out-of-range components,
92726         since it knows them exactly.
92727         If mktime returns (time_t) -1, check whether an error actually occurred
92728         by invoking localtime on -1.
92729         (main) [TEST_POSIXTIME]: Check for input data errors, and report
92730         posixtime failures better.
92731         Improve the test data (in comments only).
92732
92733 2003-06-02  Karl Berry  <karl@gnu.org>
92734
92735         * config/mkinstalldirs (version): new variable.
92736         (--version): new option.
92737         (usage): improve message.
92738
92739 2003-05-30  Karl Berry  <karl@gnu.org>
92740
92741         * lib/mktime.c: update from libc.
92742
92743 2003-05-30  Bruno Haible  <bruno@clisp.org>
92744
92745         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
92746         * config/config.rpath: Upgrade to gettext-0.12.1.
92747
92748 2003-05-30  Bruno Haible  <bruno@clisp.org>
92749
92750         * m4/gettext.m4: Upgrade to gettext-0.12.1.
92751         * m4/nls.m4: New file, from gettext-0.12.1.
92752         * m4/po.m4: New file, from gettext-0.12.1.
92753         * m4/progtest.m4: Upgrade to gettext-0.12.1.
92754
92755 2003-05-30  Bruno Haible  <bruno@clisp.org>
92756
92757         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
92758         * lib/localcharset.h: Likewise.
92759         * lib/localcharset.c: Likewise.
92760
92761 2003-05-29  Karl Berry  <karl@gnu.org>
92762
92763         * config/config.rpath: update from gettext.
92764
92765 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92766
92767         Assume the headers required for C89 freestanding compilers.
92768         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
92769         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
92770         * m4/human.m4 (gl_HUMAN): Likewise.
92771         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
92772         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
92773         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92774         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
92775         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92776         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
92777
92778 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92779
92780         Assume the headers required for C89 freestanding compilers.
92781         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
92782         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
92783         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
92784         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
92785         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
92786         define, since <limits.h> is guaranteed to do that.
92787         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
92788         * lib/exclude.c: Include <stdbool.h> unconditionally.
92789         * lib/tempname.c: Include <stddef.h> unconditionally.
92790         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
92791         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
92792         <stddef.h> does that.
92793         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
92794         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
92795         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
92796         needed.
92797         * lib/xstrtol.c: Likewise.
92798         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
92799         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
92800
92801         * lib/addext.c (addext): Use assignment rather than cast, to avoid
92802         warnings on some platforms.
92803
92804         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92805         arbitrarily.
92806
92807 2003-05-26  Jim Meyering  <jim@meyering.net>
92808
92809         Merge in a change from coreutils:
92810         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
92811         that is guaranteed to be `no'.  Use `no_such_member' to indicate
92812         that condition, rather than `-1' which is slightly misleading.
92813         Change the name of the cache variable to have the gl_ prefix.
92814         Prompted by a patch from Richard Dawe for DJGPP.
92815
92816 2003-05-24  Karl Berry  <karl@gnu.org>
92817
92818         * config/config.guess: update from prep.
92819
92820 2003-05-22  Karl Berry  <karl@gnu.org>
92821
92822         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
92823
92824 2003-05-20  Karl Berry  <karl@gnu.org>
92825
92826         * config/config.guess: update from prep.
92827
92828 2003-05-18  Karl Berry  <karl@gnu.org>
92829
92830         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
92831         might actually be set by the user.
92832
92833         * config/depcomp, install-sh, mdate-sh: update from automake.
92834
92835 2003-05-17  Bruno Haible  <bruno@clisp.org>
92836
92837         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
92838         invalid expansion for AC_EGREP_CPP.
92839         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
92840         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
92841         Suggested by Akim Demaille <akim@epita.fr> in
92842         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
92843
92844 2003-05-12  Jim Meyering  <jim@meyering.net>
92845
92846         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
92847         the space-padded-by-default conversion specifiers, %e, %k, %l.
92848
92849 2003-05-12  Bruno Haible  <bruno@clisp.org>
92850
92851         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
92852         the string is longer than 4 KB.
92853
92854 2003-05-11  Karl Berry  <karl@gnu.org>
92855
92856         * config/config.{guess,sub}: update from prep.
92857
92858 2003-05-09  Bruno Haible  <bruno@clisp.org>
92859
92860         * modules/error: Add m4/strerror_r.m4 to file list.
92861
92862 2003-05-03  Bruno Haible  <bruno@clisp.org>
92863
92864         Upgrade to Unicode-4.0.
92865         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
92866         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
92867         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
92868         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
92869         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
92870         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
92871         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
92872         Change width of U+E0100..U+E01EF from 1 to 0.
92873
92874 2003-04-25  Jim Meyering  <jim@meyering.net>
92875
92876         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
92877         of type size_t, not int.
92878
92879 2003-04-25  Bruno Haible  <bruno@clisp.org>
92880
92881         * lib/copy-file.c: Include <stddef.h>, for size_t.
92882
92883 2003-04-21  Paul Eggert  <eggert@twinsun.com>
92884
92885         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
92886         code which expansion is under static control.  Patch imported from
92887         Akim Demaille's patch to Bison; see
92888         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
92889
92890 2003-04-14  Bruno Haible  <bruno@clisp.org>
92891
92892         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
92893
92894 2003-04-11  Jim Meyering  <jim@meyering.net>
92895
92896         Merge changes from Coreutils.
92897
92898         2003-03-22  Jim Meyering  <jim@meyering.net>
92899
92900         * lib/strftime.c (widen): Cast alloca return value to proper type.
92901
92902         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
92903
92904         From GNU libc.
92905         * lib/strftime.c (my_strftime): Handle very large width
92906         specifications for numeric values correctly.  Improve checks for
92907         overflow.
92908
92909         2003-01-19  Jim Meyering  <jim@meyering.net>
92910
92911         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
92912         definitions.
92913         (nl_get_alt_digit) [! defined my_strftime]: Define.
92914         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
92915         _nl_get_alt_digit and _nl_get_walt_digit.
92916
92917         * lib/strftime.c (my_strftime): Merge in locale-related changes from
92918         libc. These changes have no effect outside of _LIBC.
92919
92920 2003-04-10  Bruno Haible  <bruno@clisp.org>
92921
92922         * modules/findprog: New file.
92923         * MODULES.html.sh (func_all_modules): Add it.
92924
92925 2003-04-10  Bruno Haible  <bruno@clisp.org>
92926
92927         * m4/findprog.m4: New file.
92928         * m4/eaccess.m4: New file.
92929
92930 2003-04-10  Bruno Haible  <bruno@clisp.org>
92931
92932         * lib/findprog.h: New file, from GNU gettext.
92933         * lib/findprog.c: New file, from GNU gettext.
92934
92935 2003-04-05  Jim Meyering  <jim@meyering.net>
92936
92937         Merge changes from Coreutils.
92938
92939         * lib/exclude.h (PARAMS): Remove definition and uses.
92940         * lib/exclude.c: Remove uses of `PARAMS'.
92941
92942         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
92943         Add test-cases for DOS filenames. Declare program_name.
92944         (main): Set up program_name.  Patch by Rich Dawe.
92945
92946         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92947         error from mntctl.
92948         Use mntctl's return value to drive the entry-processing loop, since
92949         we can't rely on the value of the vmt_length member in the last
92950         entry.  On some systems doing so could result in exhausting
92951         virtual memory.  Based in part on a patch from Mike Jetzer.
92952
92953 2003-04-04  Bruno Haible  <bruno@clisp.org>
92954
92955         * modules/linebreak: New file.
92956         * MODULES.html.sh (func_all_modules): Add it.
92957
92958 2003-04-04  Bruno Haible  <bruno@clisp.org>
92959
92960         * m4/linebreak.m4: New file.
92961
92962 2003-04-04  Bruno Haible  <bruno@clisp.org>
92963
92964         * lib/linebreak.h: New file, from GNU gettext.
92965         * lib/linebreak.c: New file, from GNU gettext with slight
92966         modifications.
92967         * lib/lbrkprop.h: New file, from GNU gettext.
92968
92969 2003-04-03  Bruno Haible  <bruno@clisp.org>
92970
92971         * modules/utf8-ucs4: New file.
92972         * modules/utf16-ucs4: New file.
92973         * modules/ucs4-utf8: New file.
92974         * modules/ucs4-utf16: New file.
92975         * MODULES.html.sh (func_all_modules): Add them.
92976
92977 2003-04-03  Bruno Haible  <bruno@clisp.org>
92978
92979         * m4/utf-ucs4.m4: New file.
92980         * m4/ucs4-utf.m4: New file.
92981
92982 2003-04-03  Bruno Haible  <bruno@clisp.org>
92983
92984         * lib/utf8-ucs4.h: New file, from GNU gettext.
92985         * lib/utf16-ucs4.h: New file, from GNU gettext.
92986         * lib/ucs4-utf8.h: New file, from GNU gettext.
92987         * lib/ucs4-utf16.h: New file, from GNU gettext.
92988
92989 2003-04-02  Bruno Haible  <bruno@clisp.org>
92990
92991         * modules/binary-io: New file.
92992         * MODULES.html.sh (func_all_modules): Add it.
92993
92994 2003-04-02  Bruno Haible  <bruno@clisp.org>
92995
92996         * lib/binary-io.h: New file, from GNU gettext.
92997
92998 2003-04-01  Bruno Haible  <bruno@clisp.org>
92999
93000         * modules/pathname: New file.
93001         * MODULES.html.sh (func_all_modules): Add it.
93002
93003 2003-04-01  Bruno Haible  <bruno@clisp.org>
93004
93005         * lib/pathname.h: New file, from GNU gettext.
93006         * lib/concatpath.c: New file, from GNU gettext.
93007
93008 2003-03-30  Bruno Haible  <bruno@clisp.org>
93009
93010         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
93011
93012 2003-03-30  Bruno Haible  <bruno@clisp.org>
93013
93014         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
93015         function chown() doesn't exist.
93016
93017 2003-03-28  Bruno Haible  <bruno@clisp.org>
93018
93019         * modules/copy-file: New file.
93020         * MODULES.html.sh (func_all_modules): Add it.
93021
93022 2003-03-28  Bruno Haible  <bruno@clisp.org>
93023
93024         * m4/copy-file.m4: New file.
93025
93026 2003-03-28  Bruno Haible  <bruno@clisp.org>
93027
93028         * lib/copy-file.h: New file, from GNU gettext.
93029         * lib/copy-file.c: New file, from GNU gettext.
93030
93031 2003-03-18  Jim Meyering  <jim@meyering.net>
93032
93033         * lib/quote.c (quote_n): Fix typo in comment.
93034
93035 2003-03-18  Bruno Haible  <bruno@clisp.org>
93036
93037         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
93038         checking.
93039         * m4/onceonly_2_57.m4: Likewise.
93040
93041 2003-03-17  Bruno Haible  <bruno@clisp.org>
93042
93043         * m4/onceonly.m4: Require autoconf 2.54 or newer.
93044         (m4_quote): Remove macro.
93045         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
93046
93047 2003-03-14  Jim Meyering  <jim@meyering.net>
93048
93049         Merge changes from Coreutils.
93050         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
93051         to be const, in order to avoid warnings.
93052         (obstack_room): Likewise.
93053         (obstack_empty_p): Likewise.
93054
93055 2003-03-14  Bruno Haible  <bruno@clisp.org>
93056
93057         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
93058         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
93059
93060 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93061
93062         Merge changes from Bison.
93063         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
93064         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
93065         when compiling Bison 1.875's `bitset bset = obstack_alloc
93066         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
93067         * lib/hash.c: Include <stdbool.h> unconditionally.
93068
93069 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93070
93071         * m4/onceonly.m4 (m4_quote): New macro.
93072         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
93073         Quote AC_FOREACH variable-expansions properly.
93074
93075 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93076
93077         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
93078
93079 2003-03-09  Paul Eggert  <eggert@twinsun.com>
93080
93081         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
93082         Reported by Bruce Becker; see:
93083         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
93084
93085 2003-03-03  Paul Eggert  <eggert@twinsun.com>
93086             Bruno Haible  <bruno@clisp.org>
93087
93088         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
93089         Reported by John Hughes, see
93090         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
93091
93092 2003-02-20  Bruno Haible  <bruno@clisp.org>
93093
93094         * MODULES.html.sh (func_all_modules): Add poll.
93095
93096 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93097
93098         * modules/poll: New file.
93099
93100 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93101
93102         * lib/poll_.h: New file.
93103         * lib/poll.c: New file.
93104
93105 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93106
93107         * m4/poll.m4: New file.
93108
93109 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93110
93111         * modules/mathl: New file.
93112
93113 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93114
93115         * lib/mathl.h: New file.
93116         * lib/acosl.c: New file.
93117         * lib/asinl.c: New file.
93118         * lib/atanl.c: New file.
93119         * lib/ceill.c: New file.
93120         * lib/cosl.c: New file.
93121         * lib/expl.c: New file.
93122         * lib/floorl.c: New file.
93123         * lib/frexpl.c: New file.
93124         * lib/ldexpl.c: New file.
93125         * lib/logl.c: New file.
93126         * lib/sincosl.c: New file.
93127         * lib/sinl.c: New file.
93128         * lib/sqrtl.c: New file.
93129         * lib/tanl.c: New file.
93130         * lib/trigl.c: New file.
93131         * lib/trigl.h: New file.
93132
93133 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93134
93135         * m4/mathl.m4: New file.
93136
93137 2003-02-18  Bruno Haible  <bruno@clisp.org>
93138
93139         * MODULES.html.sh (func_all_modules): Add mathl.
93140
93141 2003-02-17  Bruno Haible  <bruno@clisp.org>
93142
93143         * modules/mkdtemp: New module.
93144         * MODULES.html.sh (func_all_modules): Add it.
93145
93146 2003-02-17  Bruno Haible  <bruno@clisp.org>
93147
93148         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
93149
93150 2003-02-17  Bruno Haible  <bruno@clisp.org>
93151
93152         * lib/mkdtemp.h: New file, from GNU gettext.
93153         * lib/mkdtemp.c: New file, from GNU gettext.
93154
93155 2003-02-02  Jim Meyering  <jim@meyering.net>
93156
93157         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
93158         e.g. glibc-2.2.93.
93159
93160 2003-01-31  Bruno Haible  <bruno@clisp.org>
93161
93162         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
93163         'rpl_rename'.
93164         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
93165         'rpl_strnlen'.
93166         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
93167         'rpl_strtod'.
93168         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
93169         'rpl_utime'.
93170
93171 2003-01-31  Bruno Haible  <bruno@clisp.org>
93172
93173         * lib/rename.c: #undef rename before defining rpl_rename.
93174         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
93175
93176 2003-01-30  Bruno Haible  <bruno@clisp.org>
93177
93178         * modules/vasnprintf, modules/vasprintf: New modules.
93179         * MODULES.html.sh (func_all_modules): Add them.
93180
93181 2003-01-30  Bruno Haible  <bruno@clisp.org>
93182
93183         * m4/signed.m4: New file, from GNU gettext.
93184         * m4/longdouble.m4: New file, from GNU gettext.
93185         * m4/wchar_t.m4: New file, from GNU gettext.
93186         * m4/wint_t.m4: New file, from GNU gettext.
93187         * m4/vasnprintf.m4: New file.
93188         * m4/vasprintf.m4: New file.
93189
93190 2003-01-30  Bruno Haible  <bruno@clisp.org>
93191
93192         * lib/printf-args.h: New file, from GNU gettext.
93193         * lib/printf-args.c: New file, from GNU gettext.
93194         * lib/printf-parse.h: New file, from GNU gettext.
93195         * lib/printf-parse.c: New file, from GNU gettext.
93196         * lib/vasnprintf.h: New file, from GNU gettext.
93197         * lib/vasnprintf.c: New file, from GNU gettext.
93198         * lib/asnprintf.c: New file, from GNU gettext.
93199         * lib/vasprintf.h: New file, from GNU gettext with modifications.
93200         * lib/vasprintf.c: New file, from GNU gettext.
93201         * lib/asprintf.c: New file, from GNU gettext.
93202
93203 2003-01-29  Bruno Haible  <bruno@clisp.org>
93204
93205         * modules/stpncpy: New module.
93206         * MODULES.html.sh (func_all_modules): Add it.
93207
93208 2003-01-29  Bruno Haible  <bruno@clisp.org>
93209
93210         * m4/stpncpy.m4: New file.
93211
93212 2003-01-29  Bruno Haible  <bruno@clisp.org>
93213
93214         * lib/stpncpy.h: New file, from GNU gettext with modifications.
93215         * lib/stpncpy.c: New file, from GNU gettext with modifications.
93216
93217 2003-01-28  Bruno Haible  <bruno@clisp.org>
93218
93219         * modules/c-ctype: New module.
93220         * MODULES.html.sh (func_all_modules): Add it.
93221
93222 2003-01-28  Bruno Haible  <bruno@clisp.org>
93223
93224         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
93225         Paul Eggert.
93226         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
93227         Paul Eggert.
93228
93229 2003-01-27  Bruno Haible  <bruno@clisp.org>
93230
93231         * modules/xsetenv: New module.
93232         * MODULES.html.sh (func_all_modules): Add it.
93233
93234 2003-01-27  Bruno Haible  <bruno@clisp.org>
93235
93236         * lib/xsetenv.h: New file, from GNU gettext.
93237         * lib/xsetenv.c: New file, from GNU gettext.
93238
93239 2003-01-23  Jim Meyering  <jim@meyering.net>
93240
93241         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
93242         from working on systems without dirfd (at least Irix and OSF1/Tru64).
93243
93244 2003-01-23  Bruno Haible  <bruno@clisp.org>
93245
93246         * modules/minmax: New module.
93247         * MODULES.html.sh (func_all_modules): Add it.
93248
93249 2003-01-23  Bruno Haible  <bruno@clisp.org>
93250
93251         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
93252         Eggert.
93253
93254 2003-01-22  Bruno Haible  <bruno@clisp.org>
93255
93256         * modules/exit: New module.
93257         * MODULES.html.sh (func_all_modules): Add it.
93258
93259 2003-01-22  Bruno Haible  <bruno@clisp.org>
93260
93261         * lib/exit.h: New file, from GNU gettext.
93262
93263 2003-01-19  Bruno Haible  <bruno@clisp.org>
93264
93265         * gnulib-tool: Recognize option --extract-maintainer.
93266         (func_get_maintainer): New function.
93267         * modules/*: Add Maintainer entry.
93268
93269 2003-01-16  Jim Meyering  <jim@meyering.net>
93270
93271         * m4/regex.m4: The `regex' struct is both input and output.
93272         Initialize it before each use.  Patch by Tim Waugh.
93273
93274 2003-01-16  Bruno Haible  <bruno@clisp.org>
93275
93276         * MODULES.html.sh: Add a table of contents. Add the module name as
93277         leftmost column. Add hyperlinks.
93278
93279 2003-01-15  Bruno Haible  <bruno@clisp.org>
93280
93281         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
93282
93283 2003-01-15  Bruno Haible  <bruno@clisp.org>
93284
93285         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
93286         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
93287         suffix.
93288
93289 2003-01-15  Bruno Haible  <bruno@clisp.org>
93290
93291         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
93292
93293 2003-01-15  Bruno Haible  <bruno@clisp.org>
93294
93295         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
93296         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
93297
93298 2003-01-14  Jim Meyering  <jim@meyering.net>
93299
93300         * lib/same.c (same_name): Tweak a comment.
93301
93302 2003-01-14  Bruno Haible  <bruno@clisp.org>
93303
93304         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
93305         when a string comparison is sufficient.
93306
93307 2003-01-14  Bruno Haible  <bruno@clisp.org>
93308
93309         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
93310         'unsigned int'.
93311
93312 2003-01-14  Bruno Haible  <bruno@clisp.org>
93313
93314         * lib/hash-pjw.c: Add comment about low quality of this function.
93315
93316 2003-01-13  Bruno Haible  <bruno@clisp.org>
93317
93318         * modules/stpcpy: Distribute lib/stpcpy.h.
93319         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
93320
93321 2003-01-13  Bruno Haible  <bruno@clisp.org>
93322
93323         * modules/*: Add a description.
93324         * modules/strpbrk: Fix Makefile.am snippet.
93325         * modules/strtoimax: Fix dependencies.
93326         * modules/strtoumax: Likewise.
93327
93328 2003-01-13  Bruno Haible  <bruno@clisp.org>
93329
93330         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
93331         * modules/alloca (Makefile.am): All object files depend on alloca.h.
93332         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
93333
93334 2003-01-13  Bruno Haible  <bruno@clisp.org>
93335
93336         * gnulib-tool (func_create_testdir): Store config/* files in the main
93337         directory.
93338         * config.rpath: Move to ...
93339         * config/config.rpath: ... here.
93340         * modules/gettext: Contains config/config.rpath, not config.rpath.
93341         * modules/iconv: Likewise.
93342
93343 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93344
93345         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93346         to avoid collisions with libcurses and libreadline.
93347
93348         * m4/getstr.m4: Remove.
93349         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
93350
93351 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93352
93353         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93354         to avoid collisions with libcurses and libreadline.
93355
93356         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
93357         * lib/getstr.h, getstr.c: Remove.
93358         * lib/getline.c: Include "getline.h", to check interface.
93359         Move body of old getstr.c here: this defines MIN_CHUNK and
93360         declares getdelim2, which is renamed from getstr.
93361         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
93362
93363         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
93364         All uses changed.
93365         * lib/linebuffer.h: Likewise.
93366         (readline): Remove backward-compatibility macro.
93367
93368 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93369
93370         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93371         to avoid collisions with libcurses and libreadline.
93372         * getstr: Remove.
93373         * MODULES.html.sh: Remove getstr.
93374         * modules/getline: Depend on unlocked-io, not getstr.
93375
93376 2003-01-12  Jim Meyering  <jim@meyering.net>
93377
93378         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
93379
93380 2003-01-10  Bruno Haible  <bruno@clisp.org>
93381
93382         * modules/alloca: Change Makefile.am requirements. Simplify Include
93383         requirements. Add lib/alloca_.h to file list.
93384
93385 2003-01-10  Bruno Haible  <bruno@clisp.org>
93386
93387         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
93388
93389 2003-01-10  Bruno Haible  <bruno@clisp.org>
93390
93391         * lib/alloca_.h: New file.
93392         * lib/getdate.y: Unconditionally include alloca.h.
93393         * lib/makepath.c: Likewise.
93394         * lib/setenv.c: Likewise.
93395         * lib/userspec.c: Likewise.
93396
93397 2003-01-09  Karl Berry  <karl@gnu.org>
93398
93399         * MODULES.html.sh: include `dirname $0` in PATH, to find
93400         gnulib-tool.
93401
93402 2003-01-09  Bruno Haible  <bruno@clisp.org>
93403
93404         * modules/stdbool: Change configure.ac, Makefile.am requirements.
93405         Simplify Include requirements. Add lib/stdbool.h.in to file list.
93406
93407 2003-01-09  Bruno Haible  <bruno@clisp.org>
93408
93409         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
93410
93411 2003-01-09  Bruno Haible  <bruno@clisp.org>
93412
93413         * lib/stdbool.h.in: New file.
93414
93415 2003-01-09  Bruno Haible  <bruno@clisp.org>
93416
93417         * gnulib-tool (func_all_modules): Ignore files ending in ~.
93418         * MODULES.html.sh: Likewise.
93419
93420 2003-01-08  Jim Meyering  <jim@meyering.net>
93421
93422         * lib/full-write.c: Undefine and define-away `const' after inclusion
93423         of errno.h, not before.  Suggestion from Bruno Haible.
93424
93425 2003-01-08  Bruno Haible  <bruno@clisp.org>
93426
93427         * modules/full-read: Depend on full-write.
93428
93429 2003-01-08  Bruno Haible  <bruno@clisp.org>
93430
93431         * lib/safe-read.c: Include specification header first, to ensure its
93432         selfcontainedness.
93433         * lib/full-write.c: Likewise.
93434
93435 2003-01-07  Jim Meyering  <jim@meyering.net>
93436
93437         * lib/full-write.c: Rework so that it may serve to define full_read,
93438         too.
93439         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
93440
93441 2003-01-07  Bruno Haible  <bruno@clisp.org>
93442
93443         * lib/strtoimax.c: Include <stdint.h> as an alternative to
93444         <inttypes.h>.
93445         * lib/xstrtol.h: Likewise.
93446         * lib/xstrtoimax.c: Likewise.
93447         * lib/xstrtoumax.c: Likewise.
93448         * lib/human.h: Likewise.
93449
93450         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
93451         on systems that have <inttypes.h> but not <stdint.h>.
93452
93453 2003-01-07  Bruno Haible  <bruno@clisp.org>
93454
93455         * MODULES.html.sh: Add copyright notice.
93456         (missed_files): Omit CVS directory entries.
93457         (func_module): Make it work with sed-3.02.
93458         * MODULES.txt: Remove file.
93459
93460 2003-01-06  Jim Meyering  <jim@meyering.net>
93461
93462         * lib/version-etc.c: Update year in translatable copyright string.
93463
93464 2003-01-03  Karl Berry  <karl@gnu.org>
93465
93466         * config/config.{guess,sub}: update from prep.
93467
93468 2003-01-02  Karl Berry  <karl@gnu.org>
93469
93470         * doc/COPYING.DOC: belatedly updated to 1.2.
93471
93472 2003-01-01  Karl Berry  <karl@gnu.org>
93473
93474         * gnulib-tool (func_verify_module): report module name $module in
93475         error message, not $1.
93476         * gnulib-tool (create-testdir): don't complain if destdir couldn't
93477         be created, only if it doesn't exist.
93478         * gnulib-tool (last_checkin_date): don't expand the $Date here.
93479
93480 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93481
93482         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
93483
93484 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93485
93486         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
93487         memcmp if strcoll doesn't work.
93488
93489 2002-12-31  Bruno Haible  <bruno@clisp.org>
93490
93491         * lib/utime.c (utime_null): No need to call ftruncate if the file was
93492         nonempty.
93493
93494 2002-12-31  Bruno Haible  <bruno@clisp.org>
93495
93496         * lib/memcoll.c (STRCOLL): New macro.
93497         (memcoll): Use it.
93498
93499 2002-12-31  Bruno Haible  <bruno@clisp.org>
93500
93501         * lib/localcharset.h: New file.
93502         * lib/localcharset.c: Include it.
93503         * lib/unicodeio.c: Likewise.
93504
93505 2002-12-31  Bruno Haible  <bruno@clisp.org>
93506
93507         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
93508         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
93509
93510 2002-12-31  Bruno Haible  <bruno@clisp.org>
93511
93512         * lib/getline.h: Include <stddef.h>, for size_t.
93513
93514         * lib/unicodeio.h: Include <stddef.h>, for size_t.
93515         * lib/unicodeio.c: Don't include <stddef.h>.
93516
93517 2002-12-31  Bruno Haible  <bruno@clisp.org>
93518
93519         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
93520         HAVE_TM_ZONE.
93521
93522 2002-12-24  Karl Berry  <karl@gnu.org>
93523
93524         * config/config.guess: update from prep.
93525
93526 2002-12-24  Bruno Haible  <bruno@clisp.org>
93527
93528         General infrasructure.
93529         * m4/README: Rewritten.
93530         * m4/onceonly.m4: New file.
93531         * m4/onceonly_2_57.m4: New file.
93532
93533         Module atexit.
93534         * m4/atexit.m4: New file.
93535
93536         Module strtod.
93537         * m4/strtod.m4: New file.
93538
93539         Module strtol.
93540         * m4/strtol.m4: New file.
93541
93542         Module strtoul.
93543         * m4/strtoul.m4: New file.
93544
93545         Module memchr.
93546         * m4/memchr.m4: New file.
93547
93548         Module memcmp.
93549         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
93550         (jm_FUNC_MEMCMP): Invoke it.
93551
93552         Module memcpy.
93553         * m4/memcpy.m4: New file.
93554
93555         Module memmove.
93556         * m4/memmove.m4: New file.
93557
93558         Module memset.
93559         * m4/memset.m4: New file.
93560
93561         Module strcspn.
93562         * m4/strcspn.m4: New file.
93563
93564         Module strpbrk.
93565         * m4/strpbrk.m4: New file.
93566
93567         Module strstr.
93568         * m4/strstr.m4: New file.
93569
93570         Module strerror.
93571         * m4/strerror.m4: New file.
93572
93573         Module mktime.
93574         * m4/mktime.m4: Renamed from jm-mktime.m4.
93575         (gl_PREREQ_MKTIME): New macro.
93576         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
93577
93578         Module malloc.
93579         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
93580         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
93581         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
93582
93583         Module realloc.
93584         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
93585         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
93586         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
93587
93588         Module strftime.
93589         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
93590         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
93591         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
93592         gl_TM_GMTOFF.
93593         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
93594
93595         Module xalloc.
93596         * m4/xalloc.m4: New file.
93597
93598         Module alloca.
93599         * m4/alloca.m4: New file.
93600
93601         Module putenv.
93602         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
93603         (jm_FUNC_PUTENV): Invoke it.
93604
93605         Module setenv.
93606         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
93607         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
93608         when invoked twice.
93609         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
93610         gt_FUNC_SETENV.
93611
93612         Module memrchr.
93613         * m4/memrchr.m4: New file.
93614
93615         Module stpcpy.
93616         * m4/stpcpy.m4: New file.
93617
93618         Module strcase.
93619         * m4/strcase.m4: New file.
93620
93621         Module strdup.
93622         * m4/strdup.m4: New file.
93623
93624         Module strnlen.
93625         * m4/strnlen.m4: New file.
93626
93627         Module strndup.
93628         * m4/strndup.m4: New file.
93629
93630         Module xstrtod.
93631         * m4/xstrtod.m4: New file.
93632
93633         Module xstrtol.
93634         * m4/xstrtol.m4: New file.
93635
93636         Module getdate.
93637         * m4/getdate.m4: New file.
93638
93639         Module unlocked-io.
93640         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
93641         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
93642         * m4/jm-glibc-io.m4n: Remove file.
93643
93644         Module long-options.
93645         * m4/long-options.m4: New file.
93646
93647         Module md5.
93648         * m4/md5.m4: New file.
93649
93650         Module sha.
93651         * m4/sha.m4: New file.
93652
93653         Module getstr.
93654         * m4/getstr.m4: New file.
93655
93656         Module getline.
93657         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
93658         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
93659         <sys/types.h>, for size_t. Use the function name gnu_getline, not
93660         simply getline. Infoke gl_PREREQ_GETLINE.
93661
93662         Module obstack.
93663         * m4/obstack.m4: New file.
93664
93665         Module hash.
93666         * m4/hash.m4: New file.
93667
93668         Module readtokens.
93669         * m4/readtokens.m4: New file.
93670
93671         Module strverscmp.
93672         * m4/strverscmp.m4: New file.
93673
93674         Module stdbool.
93675         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
93676         OSF/1.
93677
93678         Module strtoll.
93679         * m4/strtoll.m4: New file.
93680
93681         Module strtoull.
93682         * m4/strtoull.m4: New file.
93683
93684         Module strtoimax.
93685         * m4/strtoimax.m4: New file.
93686
93687         Module strtoumax.
93688         * m4/strtoumax.m4: New file.
93689
93690         Module xstrtoimax.
93691         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
93692         jm_AC_PREREQ_XSTRTOIMAX.
93693         Moved the strtol prerequisites to strtol.m4.
93694         Moved the strtoll prerequisites to strtoll.m4.
93695         Moved the strtoimax prerequisites to strtoimax.m4.
93696
93697         Module xstrtoumax.
93698         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
93699         jm_AC_PREREQ_XSTRTOUMAX.
93700         Moved the strtoul prerequisites to strtoul.m4.
93701         Moved the strtoull prerequisites to strtoull.m4.
93702         Moved the strtoumax prerequisites to strtoumax.m4.
93703
93704         Module chown.
93705         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
93706         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
93707
93708         Module dup2.
93709         * m4/dup2.m4: New file.
93710
93711         Module ftruncate.
93712         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
93713         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
93714
93715         Module getgroups.
93716         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
93717         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
93718
93719         Module gettimeofday.
93720         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
93721         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
93722         gl_PREREQ_GETTIMEOFDAY.
93723
93724         Module mkdir.
93725         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
93726         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
93727
93728         Module mkstemp.
93729         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
93730         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
93731         jm_AC_TYPE_UINTMAX_T.
93732         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
93733
93734         Module stat.
93735         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
93736         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
93737
93738         Module lstat.
93739         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
93740         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
93741
93742         Module timespec.
93743         * m4/timespec.m4 (gl_TIMESPEC): New macro.
93744         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
93745         * m4/st_mtim.m4: Indentation.
93746
93747         Module nanosleep.
93748         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
93749         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
93750         gl_PREREQ_NANOSLEEP.
93751
93752         Module regex.
93753         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
93754         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
93755         (gl_REGEX): New macro.
93756
93757         Module rename.
93758         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
93759         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
93760
93761         Module rmdir.
93762         * m4/rmdir.m4: New file.
93763
93764         Module utime.
93765         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
93766         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
93767         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
93768
93769         Module dirname.
93770         * m4/dirname.m4: New file.
93771
93772         Module getopt.
93773         * m4/getopt.m4: New file.
93774
93775         Module unistd-safer.
93776         * m4/unistd-safer.m4: New file.
93777
93778         Module fnmatch.
93779         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
93780         declaration.
93781         (gl_PREREQ_FNMATCH_EXTRA): New macro.
93782         (gl_FUNC_FNMATCH_POSIX): New macro.
93783         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
93784         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
93785         simply fnmatch.
93786
93787         Module exclude.
93788         * m4/exclude.m4: New file.
93789
93790         Module human.
93791         * m4/human.m4: New file.
93792
93793         Module acl.
93794         * m4/acl.m4: Nop.
93795
93796         Module backupfile.
93797         * m4/backupfile.m4: New file.
93798         * m4/d-ino.m4: Indentation.
93799
93800         Module fsusage.
93801         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
93802         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
93803         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
93804
93805         Module dirfd.
93806         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
93807         requirements.
93808
93809         Module euidaccess.
93810         * m4/euidaccess.m4: New file.
93811
93812         Module file-type.
93813         * m4/file-type.m4: New file.
93814
93815         Module fileblocks.
93816         * m4/fileblocks.m4: New file.
93817
93818         Module filemode.
93819         * m4/filemode.m4: New file.
93820
93821         Module isdir.
93822         * m4/isdir.m4: New file.
93823
93824         Module lchown.
93825         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
93826         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
93827
93828         Module makepath.
93829         * m4/makepath.m4: New file.
93830
93831         Module modechange.
93832         * m4/modechange.m4: New file.
93833
93834         Module mountlist.
93835         * m4/mountlist.m4: New file.
93836         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
93837         Indentation.
93838
93839         Module path-concat.
93840         * m4/path-concat.m4: New file.
93841
93842         Module pathmax.
93843         * m4/pathmax.m4: New file.
93844
93845         Module same.
93846         * m4/same.m4: New file.
93847
93848         Module save-cwd.
93849         * m4/save-cwd.m4: New file.
93850
93851         Module savedir.
93852         * m4/savedir.m4: New file.
93853
93854         Module xgetcwd.
93855         * m4/xgetcwd.m4: New file.
93856         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
93857
93858         Module xreadlink.
93859         * m4/xreadlink.m4: New file.
93860
93861         Module safe-read.
93862         * m4/safe-read.m4: New file.
93863
93864         Module safe-write.
93865         * m4/safe-write.m4: New file.
93866
93867         Module closeout.
93868         * m4/closeout.m4: New file.
93869
93870         Module stdio-safer.
93871         * m4/stdio-safer.m4: New file.
93872
93873         Module getpass.
93874         * m4/getpass.m4: New file.
93875
93876         Module getugroups.
93877         * m4/getugroups.m4: New file.
93878
93879         Module group-member.
93880         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
93881         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
93882
93883         Module idcache.
93884         * m4/idcache.m4: New file.
93885
93886         Module userspec.
93887         * m4/userspec.m4: New file.
93888
93889         Module gettime.
93890         * m4/clock_time.m4: New file.
93891         * m4/gettime.m4: New file.
93892
93893         Module settime.
93894         * m4/settime.m4: New file.
93895
93896         Module posixtm.
93897         * m4/posixtm.m4: New file.
93898
93899         Module gethostname.
93900         * m4/gethostname.m4: New file.
93901
93902         Module canon-host.
93903         * m4/canon-host.m4: New file.
93904
93905         Module gettext.
93906         * m4/codeset.m4: New file, from gettext-0.11.5.
93907         * m4/gettext.m4: New file, from gettext-0.11.5.
93908         * m4/glibc21.m4: New file, from gettext-0.11.5.
93909         * m4/iconv.m4: New file, from gettext-0.11.5.
93910         * m4/intdiv0.m4: New file, from gettext-0.11.5.
93911         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
93912         * m4/inttypes.m4: New file, from gettext-0.11.5.
93913         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
93914         * m4/isc-posix.m4: New file, from gettext-0.11.5.
93915         * m4/lcmessage.m4: New file, from gettext-0.11.5.
93916         * m4/lib-ld.m4: New file, from gettext-0.11.5.
93917         * m4/lib-link.m4: New file, from gettext-0.11.5.
93918         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
93919         * m4/progtest.m4: New file, from gettext-0.11.5.
93920         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
93921         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
93922         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
93923
93924         Module localcharset.
93925         * m4/localcharset.m4: New file.
93926
93927         Module hard-locale.
93928         * m4/hard-locale.m4: New file.
93929
93930         Module mbswidth.
93931         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
93932         onceonly macros.
93933         * m4/mbrtowc.m4: Add comment.
93934
93935         Module memcasecmp.
93936         * m4/memcasecmp.m4: New file.
93937
93938         Module memcoll.
93939         * m4/memcoll.m4: New file.
93940
93941         Module unicodeio.
93942         * m4/unicodeio.m4: New file.
93943
93944         Module rpmatch.
93945         * m4/rpmatch.m4: New file.
93946
93947         Module yesno.
93948         * m4/yesno.m4: New file.
93949
93950         Module exitfail.
93951         * m4/exitfail.m4: New file.
93952
93953         Module c-stack.
93954         * m4/c-stack.m4 (gl_C_STACK): New macro.
93955         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
93956
93957         Module error.
93958         * m4/error.m4 (gl_ERROR): New macro.
93959         (jm_PREREQ_ERROR): Use onceonly macros.
93960
93961         Module fatal.
93962         * m4/fatal.m4: New file.
93963
93964         Module getloadavg.
93965         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
93966         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
93967
93968         Module getpagesize.
93969         * m4/getpagesize.m4: New file.
93970
93971         Module getusershell.
93972         * m4/getusershell.m4: New file.
93973
93974         Module physmem.
93975         * m4/physmem.m4: New file.
93976
93977         Module posixver.
93978         * m4/posixver.m4: New file.
93979
93980         Module quotearg.
93981         * m4/quotearg.m4: New file.
93982
93983         Module quote.
93984         * m4/quote.m4: New file.
93985
93986         Module readutmp.
93987         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
93988
93989         Module sig2str.
93990         * m4/sig2str.m4: New file.
93991
93992         Other.
93993         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
93994         ulonglong.m4.
93995         * m4/intmax_t.m4: New file.
93996         * m4/d-type.m4: Indentation.
93997         * m4/jm-macros.m4: Update.
93998         * m4/prereq.m4 (jm_PREREQ): Update.
93999         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
94000         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
94001         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
94002         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
94003         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
94004         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
94005         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
94006         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
94007         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
94008         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
94009         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
94010         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
94011         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
94012         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
94013         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
94014         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
94015         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
94016         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
94017         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
94018
94019 2002-12-24  Bruno Haible  <bruno@clisp.org>
94020
94021         * MODULES.txt: Update according to m4/ changes.
94022
94023         Module gettext.
94024         * config.rpath: New file, from gettext-0.11.5.
94025
94026         * modules/*: New module descriptions.
94027         * gnulib-tool: New file.
94028         * MODULES.html.sh: New file.
94029
94030 2002-12-21  Karl Berry  <karl@gnu.org>
94031
94032         * doc/fdl.texi: update to version 1.2.
94033
94034 2002-12-19  Karl Berry  <karl@gnu.org>
94035
94036         * config/config.guess: update from prep.
94037
94038 2002-12-18  Bruno Haible  <bruno@clisp.org>
94039
94040         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
94041         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
94042
94043 2002-12-17  Bruno Haible  <bruno@clisp.org>
94044
94045         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
94046         stdlib.h, string.h.
94047
94048 2002-12-17  Bruno Haible  <bruno@clisp.org>
94049
94050         * lib/canon-host.c (strdup): Remove unused declaration.
94051
94052         * lib/fsusage.c: Include full_read.h.
94053         (get_fs_usage): Use full_read instead of safe_read.
94054
94055         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
94056
94057 2002-12-12  Karl Berry  <karl@gnu.org>
94058
94059         * config/config.guess: update from prep.
94060
94061 2002-12-11  Bruno Haible  <bruno@clisp.org>
94062
94063         * m4/setenv.m4: New file, from gettext-0.11.5.
94064
94065 2002-12-11  Bruno Haible  <bruno@clisp.org>
94066
94067         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
94068         not unsetenv().
94069         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
94070         modifications:
94071
94072         2002-12-11  Bruno Haible  <bruno@clisp.org>
94073
94074                 * setenv.c (alloca): Fall back to malloc.
94075                 (freea): New macro.
94076                 (setenv): Use freea() to free memory allocated with alloca().
94077
94078         2002-11-13  Bruno Haible  <bruno@clisp.org>
94079
94080                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
94081                 function declarations.
94082                 * unsetenv.c (unsetenv): Likewise.
94083
94084         2002-03-04  Bruno Haible  <bruno@clisp.org>
94085
94086                 Portability to AIX 4.3.3.
94087                 * unsetenv.c: New file, extracted from setenv.c.
94088                 * setenv.c: Move the unsetenv() function to unsetenv.c.
94089
94090         2001-12-20  Bruno Haible  <bruno@clisp.org>
94091
94092                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
94093                 use malloc instead. For SunOS 4.
94094
94095         2001-12-11  Bruno Haible  <bruno@clisp.org>
94096
94097                 * setenv.c: Declare alloca.
94098                 (compar_fn_t): New typedef.
94099                 (KNOWN_VALUE, STORE_VALUE): Use it.
94100
94101         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
94102         setenv.h.
94103
94104 2002-12-10  Paul Eggert  <eggert@twinsun.com>
94105
94106         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
94107         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
94108         Choose values that are less likely to collide with system fnmatch
94109         options.
94110         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
94111         defined (e.g., a pure POSIX system).
94112         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
94113         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
94114
94115 2002-12-06  Paul Eggert  <eggert@twinsun.com>
94116
94117         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
94118         a pain in practice to deal with generated m4 files.  This change
94119         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
94120
94121         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
94122         and jm-glibc-io.m4, as they are no longer a special case.
94123         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
94124         kludge and the auto-generation stuff.  Check only whether the
94125         functions are declared, not whether they exist, since older hosts
94126         that don't declare the functions can't use the optimization anyway.
94127
94128 2002-12-06  Jim Meyering  <jim@meyering.net>
94129
94130         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
94131
94132         Merge in changes from libc's misc/error.c, in preparation
94133         for the merge of gnulib's changes back into libc.
94134
94135         * lib/error.c (_): Define only if not already defined.
94136         Move definition to follow all #include directives.
94137         Include unlocked-io.h only if !_LIBC.
94138         [_LIBC]: Include <libio/libioP.h>.
94139         [USE_IN_LIBIO]: Include <libio/iolibio.h>
94140         (fflush): Tweak definition to use INTUSE.
94141         (putc): Define.
94142
94143 2002-12-05  Paul Eggert  <eggert@twinsun.com>
94144
94145         * lib/alloca.c [defined emacs]: Include "lisp.h".
94146         (xalloc_die) [defined emacs]: New macro.
94147         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
94148         [! defined emacs]: Include <xalloc.h>.
94149         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
94150         (pointer): Typedef to POINTER_TYPE *.
94151         (malloc): Remove decl; we now always use xmalloc.
94152         (alloca): Use old-style definition, since Emacs needs this.
94153         Check for arithmetic overflow when computing combined size.
94154
94155 2002-12-04  Paul Eggert  <eggert@twinsun.com>
94156
94157         Do not generate unlocked-io.h automatically, since it's easier to
94158         maintain it by hand.
94159
94160         * lib/unlocked-io.h: New file, from GNU diffutils,
94161         but with proper copyright notice and attribution.
94162         * lib/gen-uio: Remove.
94163         * lib/Makefile.am: Add copyright notice.
94164         (libfetish_a_SOURCES): Add unlocked-io.h.
94165         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
94166         (DISTCLEANFILES, io_functions): Remove macros.
94167         (EXTRA_DIST): Remove gen_uio.
94168         (unlocked-io.h): Remove rule.
94169
94170 2002-12-04  Jim Meyering  <jim@meyering.net>
94171
94172         Reflect the fact that stat.c and lstat.c are no longer generated.
94173         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
94174         (DISTCLEANFILES): Likewise.
94175         (EXTRA_DIST): Likewise.
94176         (all_local): Don't depend on stat.c or lstat.c.
94177         (stat.c, lstat.c): Remove rules.
94178         (EXTRA_DIST): Remove xstat.in.
94179
94180         * lib/xstat.in: Remove file.  Contents moved into stat.c.
94181         * lib/stat.c: New file.  Contents mostly from xstat.in.
94182         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
94183         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
94184
94185         * lib/safe-read.c: Rework so that it may serve to define safe_write,
94186         too.
94187         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
94188
94189 2002-12-03  Jim Meyering  <jim@meyering.net>
94190
94191         * lib/safe-read.c, safe-write.c: Change variable names and comments,
94192         but not semantics, to minimize the differences between these two files.
94193         (safe_read): Change comment to mention SAFE_READ_ERROR.
94194
94195         * lib/safe-read.c (IS_EINTR): Define.
94196         (safe_read): Use IS_EINTR in place of in-function cpp directives.
94197
94198 2002-12-02  Jim Meyering  <jim@meyering.net>
94199
94200         * lib/safe-read.c (EINTR): Define.
94201         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94202         (INT_MAX): Provide fallback.
94203         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
94204
94205         * lib/safe-read.h (SAFE_READ_ERROR): Define.
94206
94207 2002-12-02  Bruno Haible  <bruno@clisp.org>
94208
94209         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
94210         Define, taken from safe-read.c.
94211         (INT_MAX): Provide fallback.
94212         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
94213         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
94214
94215         * lib/safe-read.c (EINTR): Remove definition.
94216         (safe_read): Don't use EINTR if it is absent.
94217
94218 2002-12-01  Jim Meyering  <jim@meyering.net>
94219
94220         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
94221         zero.
94222         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
94223
94224 2002-11-27  Paul Eggert  <eggert@twinsun.com>
94225
94226         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
94227         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
94228         with `if (! (value < limit)) abort ();', for readability.
94229
94230 2002-11-26  Karl Berry  <karl@gnu.org>
94231
94232         * lib/strdup.c: copy from libc again, with jim's ok.
94233         * lib/.cppi-disable: re-add strdup.c
94234
94235 2002-11-25  Karl Berry  <karl@gnu.org>
94236
94237         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
94238         instead of "strtol.c".
94239
94240 2002-11-25  Karl Berry  <karl@gnu.org>
94241
94242         * config/install-sh: update from automake for variable quoting, $0 in
94243         error msgs, etc.
94244
94245         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
94246         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
94247         entry.
94248
94249 2002-11-25  Jim Meyering  <jim@meyering.net>
94250
94251         * lib/mktime.c: Sync from libc, now that it has the latest fix.
94252
94253 2002-11-24  Karl Berry  <karl@gnu.org>
94254
94255         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
94256         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
94257
94258 2002-11-24  Jim Meyering  <jim@meyering.net>
94259
94260         Update from coreutils:
94261
94262         * lib/mktime.c: Merge in changes from libc.
94263
94264         Avoid a link-time failure on some Linux systems.
94265         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
94266         (otherwise).
94267         (__mon_yday): Declare with the STATIC attribute.
94268         (__mktime_internal): Likewise.
94269         Based on a report from Greg Schafer.
94270
94271 2002-11-23  Jim Meyering  <jim@meyering.net>
94272
94273         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
94274         Use `unsigned', not `int', as type of index.
94275
94276         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
94277
94278         * lib/fsusage.c: Remove unneeded parentheses around operands of
94279         `defined'.
94280
94281 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94282
94283         * lib/quotearg.h: Allow multiple inclusion by surrounding with
94284         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
94285         so that we can be included first.
94286         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
94287         * lib/quotearg.c: Include quotearg.h immediately after config.h.
94288         No need to include stddef.h or sys/types.h any more.
94289         Surround local include files with "", not "<>".
94290         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
94291         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
94292         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
94293         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
94294         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
94295         (ISPRINT): Remove; no longer needed now that we assume C89.
94296
94297         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
94298         Preserve errno.
94299
94300         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
94301         quotearg_char): Use SIZE_MAX rather than
94302         (size_t) -1 when we are talking about "infinity".
94303
94304         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
94305
94306 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94307
94308         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
94309         hint that one should use `if (! x) abort ();' rather than `assert
94310         (x);', and anyway it's one less thing to worry about configuring.
94311         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
94312         hash_rehash, hash_insert): Use abort rather than assert.
94313
94314 2002-11-22  Bruno Haible  <bruno@clisp.org>
94315
94316         * lib/safe-read.h: Assume C89. Add comments.
94317         (safe_read): Change return type to size_t.
94318         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
94319         byte counts > SSIZE_MAX correctly.
94320         * lib/safe-write.h: New file.
94321         * lib/safe-write.c: New file.
94322         * lib/full-read.h: New file.
94323         * lib/full-read.c: New file.
94324         * lib/full-write.h: Assume C89. Add comments.
94325         * lib/full-write.c: Include safe-write.h.
94326         (full_write): Rewritten to use safe_write.
94327         Suggested by Jim Meyering and Paul Eggert.
94328
94329 2002-11-21  Jim Meyering  <jim@meyering.net>
94330
94331         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
94332
94333         Merge in changes from the coreutils.
94334
94335         2002-09-25  Paul Eggert  <eggert@twinsun.com>
94336         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
94337         <stdint.h>.
94338         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
94339         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
94340         int.  Work more efficiently if X is the same width as uintmax_t.
94341         Do not compare X to -1, to avoid bogus compiler warning.
94342         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
94343         Don't assume that f_frsize and f_bsize are the same type.
94344
94345         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
94346         warning on FreeBSD.
94347
94348         * lib/makepath.c (make_path): Restore umask *before* creating the final
94349         component.
94350         (make_path): Minor reformatting.
94351
94352         * lib/xmalloc.c: Adjust to work with new autoconf macros,
94353         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
94354         HAVE_MALLOC/HAVE_REALLOC.
94355
94356         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
94357         dummy ones.  At least on GNU/Linux systems, `auto' means something
94358         else.
94359         From Michael Stone.
94360
94361 2002-11-21  Bruno Haible  <bruno@clisp.org>
94362
94363         Remove case insensitive option matching.
94364         * lib/argmatch.h (argcasematch): Remove declaration.
94365         (ARGCASEMATCH): Remove macro.
94366         (__xargmatch_internal): Remove case_sensitive argument.
94367         (XARGMATCH): Update.
94368         (XARGCASEMATCH): Remove macro.
94369         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
94370         case_sensitive argument.
94371         (argcasematch): Remove function.
94372         (__xargmatch_internal): Remove case_sensitive argument.
94373         (main): Use XARGMATCH instead of XARGCASEMATCH.
94374
94375         * lib/xmalloc.c: Change compile-time error message. Add comment about
94376         required autoconf version.
94377
94378 2002-11-20  Paul Eggert  <eggert@twinsun.com>
94379
94380         Merge argmatch cleanups from Bison.  Assume C89.
94381
94382         * lib/argmatch.c: Include config.h here, not in argmatch.h.
94383         Include stdlib.h, for EXIT_FAILURE.
94384         Always include <string.h>, since we assume C89.
94385         (EXIT_FAILURE): Remove pre-C89 bug workaround.
94386         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
94387         Include <stddef.h> instead, since it's all we need for size_t.
94388         (PARAMS): Remove.  All uses removed.
94389         (ARRAY_CARDINALITY): Do not bother to #undef.
94390         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
94391         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94392         Remove unnecessary parentheses.
94393         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94394         Insert necessary parentheses.
94395         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
94396         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
94397
94398 2002-11-19  Bruno Haible  <bruno@clisp.org>
94399
94400         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
94401         * lib/mbswidth.h: Include <stddef.h>, for size_t.
94402
94403         * lib/mbswidth.h (PARAMS): Remove macro.
94404         (mbswidth, mbsnwidth): Use ANSI C function declarations.
94405         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
94406
94407         * lib/gcd.h (PARAMS): Remove macro.
94408         (gcd): Use ANSI C function declarations.
94409         * lib/gcd.c (gcd): Likewise.
94410
94411 2002-11-15  Bruno Haible  <bruno@clisp.org>
94412
94413         * lib/strcspn.c: Include <stddef.h>.
94414         (strcspn): Use ANSI C function declaration. Change return type to
94415         size_t. Use NULL.
94416         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
94417         (strpbrk): Use NULL.
94418         * lib/strpbrk.h (PARAMS): Remove macro.
94419         (strpbrk): Use ANSI C function declaration.
94420         * lib/strstr.c: Don't include <sys/types.h>.
94421         * lib/strstr.h (PARAMS): Remove macro.
94422         (strstr): Use ANSI C function declarations.
94423
94424 2002-11-14  Karl Berry  <karl@gnu.org>
94425
94426         * config/mkinstalldirs: `do' on separate line, instead of
94427         `for var; do'.
94428
94429 2002-11-06  Bruno Haible  <bruno@clisp.org>
94430
94431         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
94432         * lib/gcd.c (gcd): Likewise.
94433
94434 2002-11-05  Bruno Haible  <bruno@clisp.org>
94435
94436         * lib/gcd.h: New file, from gettext-0.11.5.
94437         * lib/gcd.c: New file, from gettext-0.11.5.
94438
94439 2002-11-05  Bruno Haible  <bruno@clisp.org>
94440
94441         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94442         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94443         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94444         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94445
94446         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
94447         <libintl.h>.
94448         * lib/makepath.c: Include gettext.h instead of <locale.h> and
94449         <libintl.h>.
94450
94451         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
94452         * lib/human.c: Include gettext.h instead of <libintl.h>.
94453         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
94454         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
94455         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
94456         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
94457         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
94458         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
94459         (textdomain): Remove definition.
94460         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
94461
94462         * lib/long-options.c: Remove include of <libintl.h> and definition of
94463         _.
94464         * lib/same.c: Remove include of <libintl.h> and definition of _.
94465
94466 2002-11-04  Owen Taylor  <otaylor@redhat.com>
94467
94468         * lib/config.charset: A few additions for Solaris.
94469
94470 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94471
94472         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
94473         * lib/localcharset.c (locale_charset): Declare as extern "C".
94474
94475 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94476
94477         * lib/config.charset: msdos in uk_UA uses CP1125.
94478
94479 2002-11-04  Bruno Haible  <bruno@clisp.org>
94480
94481         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
94482         * lib/strcase.h: New file, from GNU gettext-0.11.5.
94483         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
94484         * lib/strstr.h: New file, from GNU gettext-0.11.5.
94485         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
94486
94487 2002-11-04  Bruno Haible  <bruno@clisp.org>
94488
94489         * lib/localcharset.c (locale_charset): Don't return an empty string.
94490
94491 2002-11-04  Bruno Haible  <bruno@clisp.org>
94492
94493         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
94494         aliases.
94495
94496 2002-11-04  Bruno Haible  <bruno@clisp.org>
94497
94498         * lib/config.charset: Update for newest glibc. Add canonical names
94499         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
94500
94501 2002-11-04  Bruno Haible  <bruno@clisp.org>
94502
94503         * lib/config.charset: Add support for NetBSD.
94504
94505 2002-11-04  Bruno Haible  <bruno@clisp.org>
94506
94507         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
94508
94509 2002-11-01  Bruno Haible  <bruno@clisp.org>
94510
94511         * configure.in: Add AC_CONFIG_AUX_DIR call.
94512         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
94513         test/Makefile.
94514         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
94515
94516 2002-09-28  Karl Berry  <karl@gnu.org>
94517
94518         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
94519         installed automake until the next release, since changes have been
94520         made.
94521
94522 2002-09-25  Karl Berry  <karl@gnu.org>
94523
94524         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
94525         * lib/getopt*: copy from libc/posix.
94526         * lib/gettext.h: copy from gettext.
94527         * lib/.cppi-disable: add strdup.c, gettext.h.
94528
94529 2002-09-25  Karl Berry  <karl@gnu.org>
94530
94531         * config/srclist.txt: enable gettext.h check.
94532         * config/config.{guess,sub}: update from prep.
94533         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
94534                 from automake 1.6.3.
94535         See srclist*.
94536
94537 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
94538
94539         * regex.c (PATFETCH): Remove the translating fetch.
94540         (PATFETCH_RAW): Rename to PATFETCH.
94541         (set_image_of_range): New fun.
94542         (SET_RANGE_TABLE_WORK_AREA): Use it.
94543         (regex_compile): Don't translate the pattern chars so eagerly.
94544         Only do it when inserting an `exactn' bytecode or when handling
94545         a char-range.
94546         (mutually_exclusive_p): Avoid empty statement.
94547
94548 2002-07-06  Jim Meyering  <meyering@lucent.com>
94549
94550         * m4/README: Don't mention Makefile.am.in.
94551         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
94552
94553 2002-07-01  Jim Meyering  <meyering@lucent.com>
94554
94555         * lib/c-stack.c: Include sys/time.h.
94556         From Volker Borchert.
94557
94558 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94559
94560         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
94561
94562 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94563
94564         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
94565         New macro.  Use it uniformly instead of
94566         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
94567         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
94568         reported by Vin Shelton.
94569
94570 2002-06-22  Paul Eggert  <eggert@twinsun.com>
94571
94572         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
94573         Do not assume SA_SIGINFO behavior.
94574         Bug reported by Jim Meyering on NetBSD 1.5.2.
94575
94576 2002-06-22  Jim Meyering  <meyering@lucent.com>
94577
94578         * m4/c-stack.m4: New file, from diffutils-2.8.2.
94579         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
94580
94581         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
94582         now that configure.ac uses AC_GNU_SOURCE.
94583         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
94584         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
94585
94586         Update to latest tools.  Suggestions from Paul Eggert.
94587         * m4/stdbool.m4: New file, from diffutils-2.8.2.
94588         * m4/gnu-source.m4: Update from diffutils-2.8.2.
94589         * m4/fnmatch.m4: Likewise.
94590         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
94591         to AC_HEADER_STDBOOL
94592
94593 2002-06-22  Jim Meyering  <meyering@lucent.com>
94594
94595         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
94596         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
94597
94598 2002-06-22  Jim Meyering  <meyering@lucent.com>
94599
94600         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
94601
94602         * lib/exitfail.c, exitfail.h: Likewise.
94603         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
94604
94605         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
94606         of fnmatch.h.
94607         (EXTRA_DIST): Add fnmatch_loop.c.
94608         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
94609
94610         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
94611         * lib/fnmatch.c: Update from diffutils-2.8.2.
94612         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
94613         * lib/fnmatch.h: Remove file.
94614
94615 2002-06-21  Jim Meyering  <meyering@lucent.com>
94616
94617         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
94618         * m4/mbrtowc.m4: Likewise.
94619
94620         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
94621         * m4/mbswidth.m4: Reflect name change:
94622         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
94623         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94624
94625         * m4/lib-link.m4: Update from gettext-0.11.2.
94626         * m4/gettext.m4: Likewise.
94627
94628         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
94629         From Alfred M. Szmidt.
94630
94631 2002-06-18  Paul Eggert  <eggert@twinsun.com>
94632
94633         * lib/file-type.h: Report an error if neither S_ISREG nor
94634         S_IFREG is defined, instead of using a test specific to glibc
94635         2.2.  This should be safe, since POSIX requires S_ISREG and
94636         Unix Version 7 had S_IFREG.  We don't need to check for
94637         <sys/types.h> since we don't use any symbols that it defines.
94638
94639 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
94640
94641         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
94642         $@-t, so that each temporary file name is unique and valid in the first
94643         8 characters, for operation under DOS.
94644
94645 2002-06-15  Paul Eggert  <eggert@twinsun.com>
94646
94647         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
94648
94649 2002-06-15  Jim Meyering  <meyering@lucent.com>
94650
94651         Work even with DJGPP 2.03, which lacks support for symlinks.
94652         From Richard Dawe.
94653         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
94654         is defined.
94655         * lib/lchown.c (S_ISLNK): Likewise.
94656
94657 2002-06-15  Jim Meyering  <meyering@lucent.com>
94658
94659         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
94660         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
94661         have been included before this file.
94662
94663 2002-06-14  Jim Meyering  <meyering@lucent.com>
94664
94665         * lib/file-type.h: Use the version from diffutils-2.8.2.
94666         * lib/file-type.c: Likewise.
94667
94668 2002-06-07  Jim Meyering  <meyering@lucent.com>
94669
94670         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
94671         They're needed at least for NetBSD 1.5.2.
94672         ($statxfs_includes): Include those same headers.
94673         ($statxfs_includes): Include sys/vfs.h if available.
94674         ($statxfs_includes): Likewise for sys/statvfs.h.
94675         Check for the following members in both structs statfs and statvfs:
94676         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
94677
94678 2002-06-01  Jim Meyering  <meyering@lucent.com>
94679
94680         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
94681         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
94682
94683 2002-05-28  Jim Meyering  <meyering@lucent.com>
94684
94685         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
94686         Reported by Volker Borchert.
94687
94688 2002-05-27  Jim Meyering  <meyering@lucent.com>
94689
94690         Fix a problem seen only on nonconforming systems whereby ls.c's
94691         use of localtime, and then of gettimeofday would cause trouble:
94692         the localtime call used to initialize rpl_gettimeofday's save
94693         mechanism would clobber ls's current local time information so
94694         that in any long listing the first file would always be listed
94695         with date 1970-01-01.  Analysis by Volker Borchert.
94696
94697         * lib/gettimeofday.c (localtime): Undefine.
94698         (rpl_localtime): New function.
94699
94700 2002-05-27  Jim Meyering  <meyering@lucent.com>
94701
94702         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
94703         localtime.
94704
94705         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
94706         use the replacement function; it wouldn't resolve at link time.
94707         Reported by Volker Borchert.
94708
94709 2002-05-22  Jim Meyering  <meyering@lucent.com>
94710
94711         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
94712         file-type.h.
94713         * lib/file-type.h: New file.
94714         * lib/file-type.c (file_type): New file/function.  Extracted from
94715         diffutils.
94716
94717 2002-04-30  Jim Meyering  <meyering@lucent.com>
94718
94719         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
94720
94721 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94722
94723         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
94724
94725 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94726
94727         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
94728         Do not check for alloca.h (no longer used) or stdbool.h (was never
94729         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
94730
94731 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94732
94733         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
94734
94735 2002-04-29  Jim Meyering  <meyering@lucent.com>
94736
94737         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
94738         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
94739         Use AC_FUNC_STRNLEN here instead.
94740
94741         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
94742         With autoconf-2.53a, it's part of AC_PROG_CC.
94743
94744 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94745
94746         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
94747         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
94748
94749 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94750
94751         * lib/sig2str.h, lib/sig2str.c: New files.
94752         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
94753
94754 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94755
94756         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
94757         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
94758         of 127, since 64 is the largest conceivable number for ancient
94759         nonstandard hosts.
94760         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
94761
94762 2002-04-28  Jim Meyering  <meyering@lucent.com>
94763
94764         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
94765
94766 2002-04-24  Jim Meyering  <meyering@lucent.com>
94767
94768         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
94769         (jm_PREREQ): Use it.
94770
94771         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
94772         mach/mach.h fcntl.h.
94773         Check for this function: setlocale.
94774
94775 2002-04-24  Jim Meyering  <meyering@lucent.com>
94776
94777         * lib/gettext.h: New file, from Gettext.
94778         * lib/Makefile.am (INCLUDES): Remove -I../intl.
94779         (libfetish_a_SOURCES): Add gettext.h.
94780
94781 2002-04-16  Jim Meyering  <meyering@lucent.com>
94782
94783         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
94784         ut_pid, ut_id, ut_exit.
94785
94786 2002-04-16  Jim Meyering  <meyering@lucent.com>
94787
94788         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
94789         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
94790         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
94791
94792 2002-04-12  Jim Meyering  <meyering@lucent.com>
94793
94794         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
94795         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
94796         existence of the getmntinfo function.  Needed for Darwin 5.3.
94797
94798         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
94799         This is necessary at least on Darwin 5.3.
94800
94801         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
94802         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
94803         strnlen.o in the library, and that makes some versions of ranlib
94804         object.
94805
94806 2002-04-12  Jim Meyering  <meyering@lucent.com>
94807
94808         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
94809
94810 2002-04-09  Jim Meyering  <meyering@lucent.com>
94811
94812         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
94813         to be more precise.  Rather than saying we're checking whether the
94814         function `works', say what we're testing.
94815         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
94816         Reported by Bruno Haible.
94817
94818 2002-03-10  Jim Meyering  <meyering@lucent.com>
94819
94820         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
94821         Suggestion from Santiago Vila.
94822
94823 2002-03-08  Jim Meyering  <meyering@lucent.com>
94824
94825         * lib/rename.c: Mention that this wrapper is needed also on
94826         mips-dec-ultrix4.4 systems.
94827
94828 2002-03-02  Jim Meyering  <meyering@lucent.com>
94829
94830         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
94831         not HAVE_CLOCK_SETTIME.
94832
94833 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94834
94835         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
94836         Check for clock_settime.
94837
94838 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94839
94840         * lib/nanosleep.h: Rename to....
94841         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
94842
94843         * lib/gettime.c: New file.
94844         * lib/settime.c: New file.
94845         * lib/stime.c: Remove.
94846
94847         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
94848         timespec.h.  Remove nanosleep.h.
94849
94850 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94851
94852         * m4/acl.m4: New file.
94853         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
94854         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
94855
94856 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94857
94858         * lib/acl.c, lib/acl.h: New files.
94859         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
94860
94861 2002-02-24  Jim Meyering  <meyering@lucent.com>
94862
94863         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
94864         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
94865         cause trouble.  Reported by Nelson Beebe.
94866
94867 2002-02-23  Paul Eggert  <eggert@twinsun.com>
94868
94869         * lib/path-concat.c (xpath_concat): Reorder code to pacify
94870         compilers that don't know that xalloc_die never returns.
94871
94872 2002-02-20  Jim Meyering  <meyering@lucent.com>
94873
94874         * lib/getdate.c: Regenerate using bison-1.33.
94875
94876 2002-02-17  Jim Meyering  <meyering@lucent.com>
94877
94878         * config/config.guess (main): Don't use `head -1'; it's no longer
94879         portable. Use `sed 1q' instead.
94880
94881 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
94882
94883         * m4/codeset.m4: Upgrade to gettext-0.11.
94884         * m4/gettext.m4: Upgrade to gettext-0.11.
94885         * m4/glibc21.m4: Upgrade to gettext-0.11.
94886         * m4/iconv.m4: Upgrade to gettext-0.11.
94887         * m4/isc-posix.m4: Upgrade to gettext-0.11.
94888         * m4/lcmessage.m4: Upgrade to gettext-0.11.
94889         * m4/lib-ld.m4: New file, from gettext-0.11.
94890         * m4/lib-link.m4: New file, from gettext-0.11.
94891         * m4/lib-prefix.m4: New file, from gettext-0.11.
94892         * m4/progtest.m4: Upgrade to gettext-0.11.
94893
94894 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94895
94896         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
94897         (jm_PREREQ): Use it.
94898
94899 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94900
94901         * lib/posixver.c, lib/posixver.h: New files.
94902         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94903
94904 2002-02-02  Paul Eggert  <eggert@twinsun.com>
94905             Bruno Haible  <bruno@clisp.org>
94906
94907         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
94908         (fwrite_success_callback): New declaration.
94909         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
94910         print_unicode_char. Call failure callback instead of error.
94911         (fwrite_success_callback): New function.
94912         (exit_failure_callback): New function.
94913         (fallback_failure_callback): New function.
94914         (print_unicode_char): Call unicode_to_mb.
94915
94916 2002-01-26  Jim Meyering  <meyering@lucent.com>
94917
94918         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
94919         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
94920
94921 2002-01-26  Jim Meyering  <meyering@lucent.com>
94922
94923         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
94924
94925 2002-01-22  Paul Eggert  <eggert@twinsun.com>
94926
94927         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
94928
94929 2002-01-22  Jim Meyering  <meyering@lucent.com>
94930
94931         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
94932         Otherwise, some versions of automake would omit the rule that makes
94933         Makefile from Makefile.in.
94934
94935 2002-01-21  Paul Eggert  <eggert@twinsun.com>
94936
94937         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
94938         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94939         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
94940         (memcoll): Set errno to zero if there is no error.
94941
94942         * lib/quotearg.c (quotearg_buffer_restyled):
94943         Fix bug with quoting buffers containing NUL when backslashing escapes.
94944         This bug was exposed by the other changes in this patch.
94945         (quotearg_n_options): New arg ARGSIZE.
94946         All callers changed.
94947         (quoting_options_from_style): New function.
94948         (quotearg_n_style): Use it.
94949         (quotearg_n_style_mem): New function.
94950
94951         * lib/quotearg.h (quotearg_n_style_mem): New function.
94952
94953 2002-01-19  Jim Meyering  <meyering@lucent.com>
94954
94955         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
94956         Remove useless quotes: DF_PROG="df".
94957         * m4/strnlen.m4: New file.
94958
94959 2002-01-16  Paul Eggert  <eggert@twinsun.com>
94960
94961         * lib/backupfile.c (ISDIGIT): Comment fix.
94962         * lib/getdate.y (ISDIGIT): Likewise.
94963         * lib/posixtm.c (ISDIGIT, year): Likewise.
94964         * lib/strverscmp.c (ISDIGIT): Likewise.
94965         * lib/userspec.c (ISDIGIT): Likewise.
94966
94967 2002-01-16  Jim Meyering  <meyering@lucent.com>
94968
94969         * lib/getdate.y: Add three semicolons, each just before a closing
94970         brace. Bison (as of version 1.31) no longer papers over that mistake.
94971
94972 2002-01-05  Jim Meyering  <meyering@lucent.com>
94973
94974         * lib/version-etc.c (version_etc_copyright): Update copyright year.
94975
94976 2001-12-19  Paul Eggert  <eggert@twinsun.com>
94977
94978         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
94979         not silently exit merely because the output buffer happens to
94980         have nothing pending.
94981
94982 2001-12-18  Paul Eggert  <eggert@twinsun.com>
94983
94984         See the big note in ../ChangeLog.
94985         * lib/human.c (suffixes): Prefer K to k for 1024.
94986         (generate_suffix_backwards): New function.
94987         (human_readable_inexact): Use it.
94988         * lib/xstrtol.c (__xstrtol): If there is no number but there
94989         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
94990         Accept 'K' as well as 'k'.
94991
94992 2001-12-15  Jim Meyering  <meyering@lucent.com>
94993
94994         * lib/regex.h (__restrict_arr): Update from libc.
94995
94996         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
94997         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
94998         (STREQ): Define.
94999
95000 2001-12-14  Jim Meyering  <meyering@lucent.com>
95001
95002         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
95003         Suggestion from Bruno Haible.
95004
95005 2001-12-10  Jim Meyering  <meyering@lucent.com>
95006
95007         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
95008         xrealloc, Instead, include "xalloc.h".
95009         (initbuffer): Don't cast xmalloc return value to char*.
95010         (readline): Reword comment.
95011         Don't cast xrealloc return value to char*
95012         Return NULL, not 0.
95013
95014 2001-12-09  Jim Meyering  <meyering@lucent.com>
95015
95016         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
95017         about `signed and unsigned type in conditional expression'.
95018         * lib/posixtm.c (posix_time_parse): Likewise.
95019
95020         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
95021
95022         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
95023         to avoid a pedantic warning.
95024
95025         * lib/getstr.c: Don't include assert.h.
95026         (getstr): Remove warning-evoking assertions.
95027         Return -1 if offset parameter is out of bounds.
95028         Change the type of a local from int to size_t.
95029
95030         * lib/strftime.c (my_strftime_localtime_r): Include this function
95031         definition in the `#if ! HAVE_TM_GMTOFF' block.
95032
95033         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
95034         Include xalloc.h instead.
95035
95036 2001-12-02  Jim Meyering  <meyering@lucent.com>
95037
95038         * lib/tempname.c: Don't declare getenv, thus reverting the change of
95039         2001-11-18.  It's no longer necessary, now that stdlib.h is always
95040         included.
95041
95042         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
95043         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
95044
95045 2001-11-30  Akim Demaille  <akim@epita.fr>
95046
95047         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
95048         before being defined.
95049
95050 2001-11-27  Paul Eggert  <eggert@twinsun.com>
95051
95052         * lib/quotearg.h (quotearg_n, quotearg_n_style):
95053         First arg is int, not unsigned.
95054         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
95055         (SIZE_MAX, UINT_MAX): New macros.
95056         (quotearg_n_options): Abort if N is negative.
95057         Avoid overflow check on hosts where size_t is 64 bits and int
95058         is 32 bits, as overflow is impossible there.
95059         Fix off-by-one typo that caused unnecessary reallocation.
95060
95061 2001-11-27  Jim Meyering  <meyering@lucent.com>
95062
95063         * lib/tempname.c: Merge with version from libc.
95064         * lib/regex.c: Likewise.
95065
95066         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
95067         systems for which STDC_HEADERS is 0, it was not included, resulting in
95068         a warning about an integer-to-pointer conversion problem with getenv.
95069         Reported by Volker Borchert.
95070
95071 2001-11-26  Jim Meyering  <meyering@lucent.com>
95072
95073         * lib/gtod.h: Remove file.
95074         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
95075         * lib/gettimeofday.c: Don't include gtod.h.
95076         (GTOD_init): Remove function.
95077         (rpl_gettimeofday): Do its job here instead, rather than aborting.
95078         Suggestion from Volker Borchert.
95079
95080 2001-11-23  Jim Meyering  <meyering@lucent.com>
95081
95082         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
95083         it.
95084         * lib/hash.c (struct hash_table): Define it here instead.
95085
95086 2001-11-22  Jim Meyering  <meyering@lucent.com>
95087
95088         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
95089
95090 2001-11-20  Jim Meyering  <meyering@lucent.com>
95091
95092         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
95093         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
95094
95095 2001-11-19  Jim Meyering  <meyering@lucent.com>
95096
95097         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
95098         directory.  Use "conftestXXXXXX" as the template.
95099         Suggestion from Paul Eggert.
95100
95101         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
95102         immediately, so the test doesn't mistakenly hit the max-open-files
95103         limit.
95104
95105 2001-11-18  Paul Eggert  <eggert@twinsun.com>
95106
95107         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
95108         (TEMPORARIES): New macro.
95109         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
95110         removes an artificial limitation (e.g. HP-UX 10.20, where
95111         TMP_MAX is 17576).
95112
95113 2001-11-18  Jim Meyering  <meyering@lucent.com>
95114
95115         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
95116
95117 2001-11-18  Jim Meyering  <meyering@lucent.com>
95118
95119         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
95120         on SunOS 4.
95121
95122         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
95123         files will be created before anything else.
95124
95125 2001-11-17  Paul Eggert  <eggert@twinsun.com>
95126
95127         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
95128         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
95129
95130 2001-11-17  Jim Meyering  <meyering@lucent.com>
95131
95132         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
95133         Prompted by a report from Bob Proulx.
95134
95135         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
95136         Instead, require UTILS_FUNC_MKSTEMP.
95137
95138 2001-11-17  Jim Meyering  <meyering@lucent.com>
95139
95140         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
95141         Now, that's done as part of AC_FUNC_STRTOD.
95142
95143 2001-11-17  Jim Meyering  <meyering@lucent.com>
95144
95145         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
95146         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
95147         rather than group writable.  Patch by Juan F. Codagnone.
95148
95149         * lib/readtokens.c: Remove explicit declarations of xmalloc and
95150         xrealloc, Instead, include "xalloc.h".
95151
95152         * lib/mountlist.c: Include unlocked-io.h after all system headers.
95153         Remove explicit declarations of xmalloc, xrealloc,
95154         and xstrdup.  Instead, include "xalloc.h".
95155
95156         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
95157         unlocked-io.h.
95158         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
95159         Likewise.
95160         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
95161
95162         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
95163         Reported by Padraig Brady.
95164
95165         * lib/mkstemp.c: #undef mkstemp.
95166         Include config.h.
95167         (rpl_mkstemp): Rename from mkstemp.
95168         Protoize.
95169
95170 2001-11-16  Jim Meyering  <meyering@lucent.com>
95171
95172         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
95173         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
95174         determine the amount of total physical memory, use pstat_getstatic.
95175         HPUX-11 doesn't define _SC_PHYS_PAGES.
95176         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
95177         If sysconf couldn't be used to determine the amount of available
95178         physical memory, use both pstat_getstatic and pstat_getdynamic.
95179         Based on a patch from Bob Proulx.
95180
95181 2001-11-10  Jim Meyering  <meyering@lucent.com>
95182
95183         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
95184         (jm_PREREQ): Use it.
95185
95186 2001-11-09  Jim Meyering  <meyering@lucent.com>
95187
95188         * m4/jm-macros.m4: Require autoconf-2.52f.
95189         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
95190         Use these AC_-prefixed names, not the AM_-prefixed ones.
95191
95192         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
95193
95194 2001-11-05  Jim Meyering  <meyering@lucent.com>
95195
95196         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
95197
95198 2001-11-04  Jim Meyering  <meyering@lucent.com>
95199
95200         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
95201         $DEFS.
95202
95203 2001-11-03  Jim Meyering  <meyering@lucent.com>
95204
95205         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
95206         of AC_DEFUN.
95207
95208         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
95209         know the name of the variable in the macro definition.
95210
95211 2001-11-03  Jim Meyering  <meyering@lucent.com>
95212
95213         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
95214         in argmatch_to_argument call.
95215
95216         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
95217         argument.
95218
95219         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
95220         e.g., a fault due to an attempt to free a NULL pointer.
95221
95222 2001-11-01  Jim Meyering  <meyering@lucent.com>
95223
95224         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
95225         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
95226
95227 2001-11-01  Jim Meyering  <meyering@lucent.com>
95228
95229         * lib/dirfd.c, lib/dirfd.h: New files.
95230         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
95231
95232         * lib/hash.c (hash_print) [TESTING]: Clean up.
95233
95234 2001-10-22  Paul Eggert  <eggert@twinsun.com>
95235
95236         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
95237         to avoid a warning if -Wall.
95238
95239 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
95240
95241         * README: New file
95242         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
95243         (per RMS's instructions, this is now the canonical source)
95244         * lgpl/, gpl/: New directories.
95245
95246 2001-10-21  Paul Eggert  <eggert@twinsun.com>
95247
95248         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
95249
95250 2001-10-21  Jim Meyering  <meyering@lucent.com>
95251
95252         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
95253         this code would end up calling gettext even in packages built
95254         with --disable-nls.
95255         * lib/getopt.c (_): Likewise.
95256         * lib/regex.c (_): Likewise.
95257
95258 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95259
95260         * m4/error.m4 (jm_PREREQ_ERROR):
95261         Do not invoke AC_CHECK_FUNCS with strerror_r, as
95262         AC_FUNC_STRERROR_R does that.
95263         Check for strerror declaration.
95264
95265         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
95266         are supposed to have them these days.
95267         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
95268         Merge changes from latest Autoconf CVS.
95269         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
95270         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
95271         POSIX decided to standardize on the int flavor of strerror_r.
95272
95273 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95274
95275         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
95276         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
95277         Use strerror_r that is only a macro, even if it is not a function.
95278         (strerror): Check for HAVE_DECL_STRERROR before declaring.
95279         (private_strerror): Use prototypes, not old-style function definition.
95280         (print_errno_message): New function.
95281         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
95282         char*-flavored one.
95283         (error_tail, error, error_at_line): Use it.
95284
95285 2001-10-11  Jim Meyering  <meyering@lucent.com>
95286
95287         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
95288         and quote_n (1, ... to avoid clobbering a buffer.
95289
95290 2001-10-05  Jim Meyering  <meyering@lucent.com>
95291
95292         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
95293         hash-pjw.h.
95294         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
95295         * lib/hash-pjw.h: New file.
95296
95297 2001-09-30  Jim Meyering  <meyering@lucent.com>
95298
95299         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
95300         `struct fsstat' has the `f_fstypename' member.
95301         Use that to define FS_TYPE, which is now used to make
95302         the getfsstat link test tighter.
95303
95304 2001-09-30  Jim Meyering  <meyering@lucent.com>
95305
95306         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
95307         Include <sys/ucred.h>, for Apple Darwin.
95308         Include sys/mount.h and sys/fs_types.h only if available.
95309         (FS_TYPE): Define.
95310         (read_filesystem_list): Use FS_TYPE.
95311
95312 2001-09-29  Paul Eggert  <eggert@twinsun.com>
95313
95314         * lib/exclude.c (excluded_filename): 0 -> false, since it's
95315         a boolean context.
95316
95317 2001-09-29  Jim Meyering  <meyering@lucent.com>
95318
95319         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95320         [one-argument getmntent function]): Include stdio.h before mntent.h.
95321         SunOS 4.1.x needs it for the declaration of `FILE'.
95322         Patch by Volker Borchert.
95323
95324         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95325         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
95326         sys/fs_types.h, and make the link-test for getfsstat guard #include
95327         directives with appropriate #if HAVE_*_H tests so that we can
95328         detect getfsstat on Apple Darwin1.3.7 systems.
95329         Reported by Nelson Beebe.
95330         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
95331
95332 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95333
95334         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95335         #defines strtoimax.  Also treat the other strto* functions
95336         like strtoimax.
95337
95338         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95339         Check for strtoul and strtoumax,
95340         as those declarations are made even in the signed case.
95341         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
95342         Likewise, for strtol and strtoimax.
95343
95344 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95345
95346         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95347         #defines strtoimax.  Also treat the other strto* functions
95348         like strtoimax.
95349
95350         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
95351         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
95352         (strtoimax, strtoumax): Do not declare if already defined as a macro.
95353
95354 2001-09-26  Jim Meyering  <meyering@lucent.com>
95355
95356         Most macros in unlocked-io.h had the wrong number of arguments.
95357         * lib/gen-uio: New script.
95358         (USE_UNLOCKED_IO): Define to 1 if not already defined.
95359         * lib/unlocked-io.hin: Remove file.
95360         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
95361         rather than trying to embed it here.
95362         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
95363         Reported by Padraig Brady.
95364
95365 2001-09-25  Volker Borchert  <bt@teknon.de>
95366
95367         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
95368         `result'.
95369
95370 2001-09-24  Jim Meyering  <meyering@lucent.com>
95371
95372         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
95373
95374 2001-09-23  Jim Meyering  <meyering@lucent.com>
95375
95376         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
95377         instead of the mere test for existence of mntent.h.  The latter
95378         would get a false-positive on AIX 3.4 systems.
95379         In the outer getmntent if-block, don't die if neither of the getmntent
95380         tests succeeds.  Instead, just fall through and continue with the
95381         remaining tests.
95382
95383 2001-09-23  Jim Meyering  <meyering@lucent.com>
95384
95385         * lib/mountlist.c: Remove useless parentheses in #if directives.
95386         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
95387         the deprecated MOUNTED symbol is no longer defined in mntent.h.
95388
95389 2001-09-22  Jim Meyering  <meyering@lucent.com>
95390
95391         * m4/gettext.m4: New file.  From gettext.
95392         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
95393         * m4/progtest.m4: Likewise
95394         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
95395         * m4/glibc21.m4: Likewise.
95396
95397         * m4/libintl.m4: Remove.  No longer used.
95398
95399 2001-09-22  Jim Meyering  <meyering@lucent.com>
95400
95401         * lib/localcharset.c: Update from latest gettext.
95402         * lib/config.charset: Likewise.
95403
95404 2001-09-20  Jim Meyering  <meyering@lucent.com>
95405
95406         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
95407         strtoimax.
95408         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
95409         strtoumax.
95410
95411 2001-09-20  Jim Meyering  <meyering@lucent.com>
95412
95413         * lib/xstrtol.c (strtoimax): Guard declaration with
95414         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
95415         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
95416         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
95417         (strtoumax): Likewise, for completeness (it wasn't necessary).
95418
95419 2001-09-17  Paul Eggert  <eggert@twinsun.com>
95420
95421         * lib/strtoimax.c (HAVE_LONG_LONG):
95422         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
95423         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
95424         to work around bug in IBM C compiler.
95425
95426 2001-09-17  Jim Meyering  <meyering@lucent.com>
95427
95428         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
95429         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
95430         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
95431         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
95432         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
95433         whenever the right hand side need not be expanded by the shell.
95434
95435 2001-09-16  Paul Eggert  <eggert@twinsun.com>
95436
95437         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
95438         library.  It's not correct, as some older glibcs are buggy.
95439         fnmatch wasn't fixed until glibc 2.2.
95440
95441         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
95442         special shell magic here.
95443
95444 2001-09-16  Jim Meyering  <meyering@lucent.com>
95445
95446         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
95447         * m4/jm-macros.m4: Require it.
95448
95449 2001-09-16  Jim Meyering  <meyering@lucent.com>
95450
95451         * lib/mkdir.c: New file.
95452
95453 2001-09-15  Jim Meyering  <meyering@lucent.com>
95454
95455         * m4/jm-macros.m4: Check for help2man.
95456
95457 2001-09-11  Jim Meyering  <meyering@lucent.com>
95458
95459         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
95460         The body, by Paul Eggert, was moved here from configure.in.
95461         * m4/jm-macros.m4: Require UTILS_HOST_OS.
95462
95463 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95464
95465         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
95466         (jm_PREREQ): Use it.
95467
95468 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95469
95470         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
95471         Use ssize_t, not int, to store result of readlink.
95472         Check for ssize_t overflow as well as size_t overflow,
95473         as POSIX says the result of readlink is implementation-defined
95474         when ssize_t overflows.
95475         Remove unnecessary cast to char*.
95476         Use free+malloc instead of realloc, as the storage doesn't need
95477         to be preserved and it's clearer and can be more efficient that way.
95478         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
95479         * lib/xreadlink.h (xreadlink): Update prototype.
95480
95481 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95482
95483         * lib/xgetcwd.c: Revert some of the previous change; intead,
95484         fix the HAVE_GETCWD_NULL code to behave more like the
95485         !HAVE_GETCWD_NULL code used to.
95486
95487         Include "xalloc.h".
95488         (xgetcwd): Do not return NULL when memory is exhausted; instead,
95489         invoke xalloc_die.
95490
95491 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95492
95493         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
95494         sys/param.h, as pathmax.h includes them.
95495
95496 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95497
95498         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
95499         (jm_PREREQ_XGETCWD): New macro.
95500
95501         * m4/getcwd.m4: New file.
95502
95503 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95504
95505         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
95506         like the HAVE_GETCWD_NULL code.
95507         Include pathmax.h if not HAVE_GETCWD.
95508         Do not include xalloc.h.
95509         (INITIAL_BUFFER_SIZE): New symbol.
95510         Do not use xmalloc / xrealloc, since the caller is responsible for
95511         handling errors.  Preserve errno around `free' during failure.
95512         Do not overrun buffer when using getwd.
95513
95514 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95515
95516         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
95517         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
95518         getcwd (NULL, 0).
95519
95520 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95521
95522         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
95523         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
95524         spotted by Jim Meyering.
95525
95526 2001-09-03  Jim Meyering  <meyering@lucent.com>
95527
95528         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
95529         failure.
95530
95531 2001-09-02  Jim Meyering  <meyering@lucent.com>
95532
95533         * lib/error.c: Update from GNU libc.
95534
95535 2001-09-01  Jim Meyering  <meyering@lucent.com>
95536
95537         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
95538         Used by df.
95539
95540 2001-09-01  Jim Meyering  <meyering@lucent.com>
95541
95542         * lib/xreadlink.c: New file.
95543         * lib/xreadlink.h: New file.
95544         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
95545         xreadlink.h.
95546
95547         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
95548         doesn't conflict with sparc Solaris 7's definition in
95549         /usr/include/sys/int_types.h.
95550
95551         * lib/exclude.c: Use `""', not `<>' to #include non-system header
95552         files.
95553         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
95554         and strncasecmp as r-values.  Unixware didn't have declarations.
95555
95556 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95557
95558         * lib/xstrtol.h: Add copyright notice.
95559         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
95560         LONGINT_INVALID_SUFFIX_CHAR.
95561
95562 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95563
95564         * lib/xstrtol.c (strtoimax): New decl.
95565
95566 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95567
95568         * lib/xgetcwd.c: Don't include pathmax.h.
95569         Include stdlib.h and unistd.h if available.
95570         Include xalloc.h.
95571         (xmalloc, xstrdup, free): Remove decls.
95572         (xgetcwd): Don't assume sizes fit in unsigned.
95573         Check for overflow when computing sizes.
95574         Simplify reallocation code.
95575
95576 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95577
95578         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
95579         a directory's st_size can have an arbitrary value, so the old
95580         usage could waste an arbitrary amount of memory.  All uses
95581         changed.
95582         * lib/savedir.h: Update prototype.
95583
95584 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95585
95586         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
95587
95588         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
95589         old strtoimax.c.
95590
95591         Also, make the following further changes to make this file's
95592         configuration more similar to that of strtol.c:
95593         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
95594         (strtoumax, uintmax_t, strtoull, strtol): Remove.
95595         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
95596         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
95597         changed to signed values.
95598
95599         And make the following changes as well:
95600         Fix copyright notice, as 1999 was missing.
95601         (verify): New macro.
95602         (strtoimax): Check sizes at compile-time, not run-time.
95603         Prefer strtol to strtoll if both work.
95604         (main): Remove; it was not that useful and was a pain to maintain.
95605
95606         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
95607
95608 2001-08-31  Jim Meyering  <meyering@lucent.com>
95609
95610         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
95611         Use an initial, malloc'd, buffer of length 128 rather than
95612         a statically allocated one of length 1024.
95613
95614 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95615
95616         Simplify code, partly by assuming autoconf 2.52 semantics.
95617
95618         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
95619
95620         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
95621         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
95622         All uses removed.
95623         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
95624         Move AC_REQUIRE to next-to-top level, to avoid confusion.
95625         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
95626         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
95627         jm_AC_HEADER_INTTYPES_H.
95628         * m4/jm-macros.m4 (jm_MACROS): Likewise.
95629
95630         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
95631
95632         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95633         Quote first arg of AC_DEFUN.
95634         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
95635         since they are needed to parse the include file even if we need
95636         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
95637         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
95638         but with opposite signedness.
95639
95640 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95641
95642         Merge 'exclude' changes from tar 1.13.22.
95643         This fixes one or two unlikely storage allocation overflow bugs,
95644         but doesn't change user-visible behavior otherwise.
95645
95646 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95647
95648         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
95649         (jm_PREREQ_EXCLUDE): New macro.
95650
95651 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95652
95653         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
95654         tm to be declared.
95655
95656 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95657
95658         * lib/hash.c: Remove '2001' from copyright notice.
95659
95660 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95661
95662         * lib/full-write.h: New file.
95663         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
95664         * lib/full-write.c: Correct credits, as cccp.c no longer
95665         exists and anyway it was so heavily changed from the old cccp
95666         code as to be unrecognizable.  Include full-write.h.
95667         (full_write): Return size_t, with short writes meaning failure.
95668         All callers changed.  This fixes a bug with large buffers
95669         on 64-bit hosts.
95670         * lib/utime.c: Include full-write.h.
95671
95672 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95673
95674         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
95675         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
95676         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
95677         Include if available.
95678         (<xalloc.h>): Include
95679         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
95680         (verify): New macro.  Use it to verify that EXCLUDE macros do not
95681         collide with FNM macros.
95682         (struct patopts): New struct.
95683         (struct exclude): Use it, as exclude patterns now come with options.
95684         (new_exclude): Support above changes.
95685         (new_exclude, add_exclude_file):
95686         Initial size must now be a power of two to simplify overflow checking.
95687         (free_exclude, fnmatch_no_wildcards): New function.
95688         (excluded_filename): No longer requires options arg, as the options
95689         are determined by add_exclude.  Now returns bool, not int.
95690         (excluded_filename, add_exclude):
95691         Add support for the fancy new exclusion options.
95692         (add_exclude, add_exclude_file): Now takes int options arg.
95693         Check for arithmetic overflow when computing sizes.
95694         (add_exclude_file): xrealloc might modify errno, so don't
95695         realloc until after errno might be used.
95696
95697         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
95698         New macros.
95699         (free_exclude): New decl.
95700         (add_exclude, add_exclude_file): Now takes int options arg.
95701         (excluded_filename): No longer requires options arg, as the options
95702         are determined by add_exclude.  Now returns bool, not int.
95703
95704 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95705
95706         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
95707
95708 2001-08-27  Jim Meyering  <meyering@lucent.com>
95709
95710         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
95711
95712         * lib/version-etc.c (N_): Remove definition.
95713         Revert most of last change.
95714         Instead, simply don't mark the `Copyright...' string for translation.
95715         Based on advice from Paul Eggert.
95716
95717         * lib/strtoxmax.c: Tweak comment.
95718
95719 2001-08-26  Jim Meyering  <meyering@lucent.com>
95720
95721         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
95722
95723         * m4/xstrtoimax.m4: New file.
95724         * m4/xstrtoumax.m4: Add comments explaining why we
95725         AC_REPLACE_FUNCS(strtol).
95726
95727 2001-08-26  Jim Meyering  <meyering@lucent.com>
95728
95729         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
95730         of copyright with `%s' so translators don't get an untranslated
95731         message in 2002.
95732         (COPYRIGHT_YEAR): Define.
95733         (version_etc): Use fprintf rather than fputs.
95734         Suggestion from Ulrich Drepper.
95735
95736         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
95737
95738         * lib/strtoll.c: New file, from GNU libc.
95739         * lib/xstrtoimax.c: New file.
95740
95741         * lib/xstrtol.h: Add xstrtoimax.
95742         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
95743         * lib/strtoimax.c: New file.  Likewise, but first define
95744         STRTOUXMAX_SIGNED.
95745
95746         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
95747         ...
95748         * lib/strtoxmax.c: ... then renamed to this.
95749
95750 2001-08-18  Paul Eggert  <eggert@twinsun.com>
95751
95752         * m4/inttypes.m4: Add AC_PREREQ(2.13).
95753         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
95754         (jm_AC_TYPE_INTMAX_T): New macro.
95755         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
95756
95757         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
95758
95759         * m4/longlong.m4: Renamed from ulonglong.m4.
95760         * m4/inttypes.m4: Renamed from inttypes_h.m4.
95761         * m4/uintmax_t.m4: Removed.
95762
95763 2001-08-13  Paul Eggert  <eggert@twinsun.com>
95764
95765         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
95766         Port to Solaris 8, where 'sed' requires a space after the 'r'
95767         command, and where sh dislikes "$/".  Clean up the spacing a bit.
95768         Redirect output to $tmp just once.
95769
95770 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
95771
95772         * lib/addext.c (<errno.h>): Include.
95773         (errno): Declare if not defined.
95774         (addext): Work correctly when pathconf returns -1 and leaves
95775         errno alone because there is no limit.  Also, work even if
95776         pathconf returns a value greater than SIZE_MAX.
95777
95778 2001-08-12  Jim Meyering  <meyering@lucent.com>
95779
95780         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
95781         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
95782         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
95783         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
95784         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
95785         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
95786         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
95787         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
95788         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
95789         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
95790         utime.m4, utimes.m4, xstrtoumax.m4:
95791         Quote the first argument in each use of AC_DEFUN.
95792
95793 2001-08-12  Jim Meyering  <meyering@lucent.com>
95794
95795         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
95796         Simply `return getcwd (NULL, 0);'.
95797         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
95798         Use 1300 as initial value for length, not PATH_MAX.
95799
95800         * lib/pathmax.h: Clean up cpp syntax.
95801
95802 2001-08-12  Jim Meyering  <meyering@lucent.com>
95803
95804         * lib/gettimeofday.c: New file.
95805         * lib/gtod.h: New file.
95806         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
95807
95808 2001-08-05  Jim Meyering  <meyering@lucent.com>
95809
95810         * m4/jm-macros.m4: Require autoconf-2.52.
95811
95812 2001-08-04  Jim Meyering  <meyering@lucent.com>
95813
95814         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
95815         stmt, to get in sync with glibc.
95816
95817 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95818
95819         The following changes are from gettext 0.10.39 as maintained by
95820         Bruno Haible.
95821
95822         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
95823         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
95824         with inverted sense.  All uses changed.
95825
95826         * lib/mbswidth.c: Don't include <limits.h>.
95827         Include <stdlib.h> and <string.h> unconditionally.
95828         (iswcntrl, mbsinit, ISCNTRL): New macros.
95829         (mbsnwidth): Use K&R style function declarations.
95830         Don't bother checking for MB_LEN_MAX == 1, since the compiler
95831         can optimize it when MB_CUR_MAX == 1.
95832         The width of control characters is zero, not 1.
95833
95834 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95835
95836         The following changes are from gettext 0.10.39 as maintained by
95837         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
95838
95839         * m4/codeset.m4: Upgrade to serial AM1.
95840         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
95841         all uses changed.  Quote first arg of AC_DEFUN.
95842         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
95843
95844         * m4/iconv.m4: Upgrade to serial AM2.
95845         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
95846         Add --with-libconv-prefix.
95847         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
95848         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
95849         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
95850         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
95851         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
95852
95853         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
95854         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
95855         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
95856         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
95857         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
95858         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
95859         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
95860         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
95861         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
95862
95863         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
95864         string.h any more.
95865
95866         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
95867         not the default value.
95868
95869         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
95870         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
95871         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
95872         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
95873         Also check for iswcntrl, used for wcwidth fallback.
95874         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
95875         to Autoconf 2.13.
95876
95877 2001-08-03  Jim Meyering  <meyering@lucent.com>
95878
95879         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
95880         as it was in the original.  Reported by Paul Eggert.
95881
95882 2001-07-16  Jim Meyering  <meyering@lucent.com>
95883
95884         * m4/gettimeofday.m4: New file.
95885         Prompted by a report from Bernhard Baehr.
95886
95887 2001-07-15  Jim Meyering  <meyering@lucent.com>
95888
95889         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
95890         stuff. Now it's in ../Makefile.cfg.
95891
95892 2001-07-15  Jim Meyering  <meyering@lucent.com>
95893
95894         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
95895         (BUILT_SOURCES): Add unlocked-io.h.
95896         (io_functions): Define.
95897         (unlocked-io.h): New rule.
95898         (DISTCLEANFILES): Add unlocked-io.h.
95899         (all-local): Depend on unlocked-io.h, to ensure it is created.
95900
95901         * lib/unlocked-io.hin: New file
95902
95903         * lib/regex.c: Update from glibc.
95904
95905 2001-07-05  Jim Meyering  <meyering@lucent.com>
95906
95907         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
95908         recommendation.
95909         (libfetish_a_SOURCES): Put all .h files here instead.
95910         Remove a thus-exposed (better checks in automake) duplicate and
95911         two unnecessary .h files.
95912
95913 2001-07-04  Jim Meyering  <meyering@lucent.com>
95914
95915         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
95916         that generates jm-glibc-io.m4 so that it doesn't trigger any make
95917         distcheck failure.
95918
95919 2001-07-02  Jim Meyering  <meyering@lucent.com>
95920
95921         The following changes were prompted by suggestions from Bruno Haible.
95922
95923         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
95924         is now generated.
95925         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
95926         definition of EXTRA_DIST.
95927         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
95928         ensure that the generated file is created/updated whenever the list
95929         of $(unlocked_functions) is changed.
95930         (jm-glibc-io.m4): New rule.
95931         (unlocked-io.h): New rule -- currently unused.
95932
95933 2001-06-24  Jim Meyering  <meyering@lucent.com>
95934
95935         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
95936         unmatched right bracket, rather than kludging it with an extra,
95937         falsely-matching quote in a comment.  Patch by Akim Demaille.
95938
95939 2001-06-11  Jim Meyering  <meyering@lucent.com>
95940
95941         * lib/regex.c: Update from GNU libc.
95942
95943 2001-05-27  Jim Meyering  <meyering@lucent.com>
95944
95945         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
95946         Check for ut_type in struct utmp.
95947
95948 2001-05-27  Jim Meyering  <meyering@lucent.com>
95949
95950         * lib/readutmp.h (UT_TYPE): Define.
95951
95952 2001-05-24  Jim Meyering  <meyering@lucent.com>
95953
95954         * lib/argmatch.c: Include "quote.h".
95955         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
95956         quote function.  Reported by Göran Uddeborg.
95957
95958 2001-05-22  Jim Meyering  <meyering@lucent.com>
95959
95960         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
95961         now that we use the package-supplied version unconditionally.
95962         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
95963
95964 2001-05-21  Jim Meyering  <meyering@lucent.com>
95965
95966         * m4/regex.m4: Change a couple backticks to single quotes to avoid
95967         shell syntax errors.
95968
95969 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95970
95971         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
95972
95973 2001-05-20  Paul Eggert  <eggert@twinsun.com>
95974
95975         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
95976         Don't bother to check library strftime, since
95977         we'll be using our own my_strftime function anyway.
95978         Define my_strftime instead of strftime.
95979
95980 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
95981
95982         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
95983         which is not yet declared.
95984
95985 2001-05-15  Jim Meyering  <meyering@lucent.com>
95986
95987         * m4/regex.m4: Use proper quoting so brackets appear in the test
95988         program.
95989         Reported by, and with help from, Bruno Haible.
95990
95991 2001-05-13  Jim Meyering  <meyering@lucent.com>
95992
95993         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
95994         undefined.
95995
95996 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95997
95998         dirname code cleanup.  base_name now behaves more compatibly
95999         with POSIX basename when given file names that have trailing
96000         slashes, and similarly for dir_name.  Add new primitives
96001         base_len and dir_len.  Put the directory-name-related decls
96002         into dirname.h.
96003
96004         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
96005         * lib/backupfile.c (base_name): Likewise.
96006         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
96007         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
96008         * lib/makepath.c (strip_trailing_slashes): Likewise.
96009         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
96010         ISSLASH): Likewise.
96011         * lib/rename.c (strip_trailing_slashes): Likewise.
96012         * lib/same.c (base_name): Likewise.
96013         * lib/stripslash.c (ISSLASH): Likewise.
96014
96015         * lib/addext.c: Include <dirname.h> after size_t is defined.
96016         * lib/backupfile.c: Likewise.
96017
96018         * lib/addext.c (addext): Use base_len to trim redundant
96019         trailing slashes instead of doing it ourselves.
96020         But do not trim the last slash if it is not redundant.
96021
96022         * lib/backupfile.c (find_backup_file_name,
96023         max_backup_version): Use base_len instead of rolling it ourselves.
96024         Handle the case of "" and (on DOS) "C:" correctly.
96025
96026         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
96027         needed. Include <string.h>, <dirname.h>.
96028         (base_name): Allow file names ending in slashes, other than names
96029         that are all slashes.  In this case, return the basename followed
96030         by the slashes.  This is more general, and can be used in places
96031         where the original base_name purposely had an assertion failure.
96032         (base_len): New function.
96033
96034         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
96035         Do not include <assert.h>; no longer needed.
96036         Include xalloc.h.
96037         (memrchr): Remove decl.
96038         (dir_name_r): Remove.
96039         (dir_len): Renamed from dirlen.  All callers changed.
96040         Rewrite in terms of base_name, for simplicity and consistency.
96041         (dir_name): Never return NULL.  All callers changed.
96042         Do not include <stdlib.h> in test program; no longer needed.
96043         return 0; is fine for test program.
96044
96045         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
96046         New macros.
96047         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
96048
96049         * lib/path-concat.c (path_concat): Use base_len to compute
96050         base length, not strlen; this means we cannot rely on memcpy
96051         to null-terminate.
96052
96053         * lib/same.c (STREQ): Remove.
96054         (same_name): Handle the case where the basename ends in trailing '/'.
96055
96056         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
96057         a slash was stripped.  Do not strip the last slash after a
96058         file system prefix.
96059
96060 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96061
96062         * lib/Makefile.am (libfetish_a_SOURCES):
96063         Add strftime.c, since we now compile it on all hosts.
96064
96065         * lib/strftime.c (my_strftime):
96066         Define to nstrftime if emacs, but only if my_strftime is not defined.
96067         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
96068         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
96069         Add one more extra argument: a nanoseconds value.
96070         All uses changed.
96071         (ns): New macro.
96072         (my_strftime function): Add %N format.
96073         (emacs_strftimeu): Renamed from emacs_strftime,
96074         with extra ut argument.
96075
96076 2001-05-09  Paul Eggert  <eggert@twinsun.com>
96077
96078         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
96079
96080 2001-04-21  Jim Meyering  <meyering@lucent.com>
96081
96082         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
96083         doesn't interfere.
96084
96085 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96086
96087         * m4/ftruncate.m4: Check for chsize.
96088         Link with ftruncate.o unconditionally if ftruncate is missing.
96089         This was required when cross-compiling to i586-mingw32msvc.
96090
96091 2001-04-08  Jim Meyering  <meyering@lucent.com>
96092
96093         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
96094         recomputed; that's necessary when the offset spans a DST transition.
96095         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
96096
96097 2001-04-02  Jim Meyering  <meyering@lucent.com>
96098
96099         * lib/regex.h, regex.c: Update from GNU libc.
96100
96101 2001-03-24  Jim Meyering  <meyering@lucent.com>
96102
96103         * m4/jm-macros.m4: Require autoconf-2.49d.
96104
96105 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
96106
96107         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
96108
96109 2001-03-19  Paul Eggert  <eggert@twinsun.com>
96110
96111         * lib/version-etc.c (version_etc_copyright): Update to 2001.
96112
96113 2001-03-17  Jim Meyering  <meyering@lucent.com>
96114
96115         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
96116         now that the version in autoconf is equivalent.
96117         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
96118
96119         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
96120         Suggestion from Akim Demaille.
96121
96122         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
96123         (jm_PREREQ_TEMPNAME): New function.
96124
96125 2001-03-16  Paul Eggert  <eggert@twinsun.com>
96126
96127         * lib/tempname.c (uint64_t): Define to uintmax_t if
96128         not defined, and if UINT64_MAX is not defined.
96129         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
96130         Reported by John David Anglin.
96131
96132 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
96133
96134         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
96135         resolve alias if codeset is empty.
96136         * lib/config.charset (BeOS): Use wildcard syntax.
96137
96138 2001-03-13  Jim Meyering  <meyering@lucent.com>
96139
96140         * lib/path-concat.c (path_concat)
96141         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
96142         concatenating e.g., `C:' and `foo'.
96143         From Bruno Haible.
96144
96145 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96146
96147         * lib/localcharset.c (locale_charset): Don't use
96148         setlocale(LC_CTYPE,NULL). Don't return NULL.
96149         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
96150
96151 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96152
96153         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
96154         support for DOS/DJGPP.
96155
96156 2001-03-01  Paul Eggert  <eggert@twinsun.com>
96157
96158         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
96159         lacks mkstemp.  Compile our own tempname.c if we compile our own
96160         mkstemp.c, as mkstemp relies on tempname.
96161
96162 2001-03-01  Jim Meyering  <meyering@lucent.com>
96163
96164         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
96165         AH_VERBATIM really does output its argument verbatim.
96166
96167 2001-02-28  Paul Eggert  <eggert@twinsun.com>
96168
96169         * lib/Makefile.am (libfetish_a_SOURCES):
96170         Add dup-safer.c, fopen-safer.c.
96171         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
96172
96173         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
96174         * lib/unistd-safer.h: New files.
96175
96176 2001-02-25  Paul Eggert  <eggert@twinsun.com>
96177
96178         The mkstemp replacement is taken from glibc 2.2.2, with some
96179         portability fixes for use outside glibc, as follows:
96180
96181         * lib/tempname.c (struct_stat64): New macro.
96182         (direxists, __gen_tempname): Use it.
96183         This avoids a portability problem with Solaris 8.
96184
96185         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
96186         (<stddef.h>, <stdint.h>, <string.h>):
96187         Include only if STDC_HEADERS || _LIBC.
96188         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
96189         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
96190         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
96191         (__set_errno): Define this macro if <errno.h> doesn't.
96192         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
96193         Define these macros if <stdio.h> doesn't.
96194         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
96195         Define these macros if <sys/stat.h>
96196         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
96197         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
96198         __xstat64): Define if not _LIBC.
96199         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
96200         (__gen_tempname): Invoke gettimeofday only if
96201         HAVE_GETTIMEOFDAY || _LIBC;
96202         otherwise, fall back on plain "time".
96203         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
96204
96205         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
96206
96207         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
96208
96209 2001-02-18  Paul Eggert  <eggert@twinsun.com>
96210
96211         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
96212
96213 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96214
96215         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
96216         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
96217         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
96218         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96219
96220 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96221
96222         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
96223         Remove workaround macros for hosts that have mbrtowc but not
96224         mbstate_t, as we now insist on proper declarations for both
96225         before using mbrtowc.
96226
96227 2001-02-17  Jim Meyering  <meyering@lucent.com>
96228
96229         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
96230         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
96231         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
96232         UnixWare 7.1.1.
96233
96234         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
96235         rather than AC_CACHE_VAL.
96236
96237 2001-02-17  Jim Meyering  <meyering@lucent.com>
96238
96239         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
96240         around included file name.
96241
96242         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
96243
96244         * lib/strftime.c: Update from GNU libc (the only changes were to
96245         comments).
96246
96247 2001-02-17  Jim Meyering  <meyering@lucent.com>
96248
96249         * lib/regex.c: Update from libc.
96250
96251 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
96252
96253         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
96254         clash.
96255
96256 2001-02-16  Paul Eggert  <eggert@twinsun.com>
96257
96258         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
96259         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
96260         Reported by Mark Hounschell via Paul Eggert.
96261
96262 2001-02-07  Jim Meyering  <meyering@lucent.com>
96263
96264         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
96265
96266 2001-02-05  Jim Meyering  <meyering@lucent.com>
96267
96268         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
96269         it includes the patch required for `large file' support with at least
96270         HP-UX's 10.20 /bin/cc.
96271
96272 2001-02-03  Jim Meyering  <meyering@lucent.com>
96273
96274         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
96275         AS_IF, now that it works once again (mysteriously).
96276         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96277
96278 2001-01-30  Jim Meyering  <meyering@lucent.com>
96279
96280         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
96281         * m4/chown.m4: Rename conftestchown to conftest.chown.
96282         * m4/rename.m4: s/conftestdir/conftest.d1/ and
96283         s/conftestdir2/conftest.d2/.
96284         * m4/utimes.m4: s/conftestdata/conftest.data/
96285         Inspired by Pavel Roskin's change in autoconf.
96286
96287 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
96288
96289         * lib/config.charset: Update for FreeBSD 4.2.
96290
96291 2001-01-27  Jim Meyering  <meyering@lucent.com>
96292
96293         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
96294         a use of AS_IF.
96295         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96296
96297 2001-01-26  Jim Meyering  <meyering@lucent.com>
96298
96299         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
96300         quotearg.c includes it.
96301
96302 2001-01-26  Jim Meyering  <meyering@lucent.com>
96303
96304         * lib/quotearg.c: Include stddef.h.
96305         * lib/quote.c: Include stddef.h.
96306         Reported by Axel Kittenberger.
96307
96308         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
96309         line in double quotes so that it evokes a better diagnostic.
96310         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
96311         Reported by Axel Kittenberger.
96312
96313 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
96314
96315         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
96316         as if it was a `charset'.
96317
96318 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96319
96320         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
96321         has const.
96322
96323 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96324
96325         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
96326         to avoid a warning.  Add back 'const' to inptr.
96327
96328 2001-01-20  Jim Meyering  <meyering@lucent.com>
96329
96330         Be sure that headers are checked before used in code compiled
96331         for the type checks.
96332         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
96333         In place of that, invoke jm_CHECK_ALL_TYPES.
96334         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
96335         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
96336         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
96337         The check for ssize_t was mistakenly run before the test for unistd.h.
96338
96339         The configure-time check for stdbool.h was missing.
96340         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
96341         (jm_PREREQ_HASH): New function.
96342
96343 2001-01-17  Jim Meyering  <meyering@lucent.com>
96344
96345         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
96346         for autoconf-2.49c.
96347         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
96348
96349 2001-01-16  Jim Meyering  <meyering@lucent.com>
96350
96351         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
96352         From Bruno Haible.
96353
96354 2001-01-14  Jim Meyering  <meyering@lucent.com>
96355
96356         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
96357         foo and bar.  Create conftestdir/ in the script, not in the C code.
96358         Remove directories in the script, not in the C code.
96359         Remove conftestdir{,2} before trying to create the directory.
96360         Make the entire configure script fail if the mkdir fails.
96361
96362 2001-01-14  Jim Meyering  <meyering@lucent.com>
96363
96364         * lib/rename.c: New file.  From Volker Borchert.
96365         Include stdlib.h, string.h or strings.h, and xalloc.h.
96366         Use strip_trailing_slashes rather than open-coding it.
96367
96368 2001-01-03  Paul Eggert  <eggert@twinsun.com>
96369
96370         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
96371
96372 2001-01-03  Jim Meyering  <meyering@lucent.com>
96373
96374         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
96375         of local `inptr' to avoid warning with some system declarations of
96376         iconv.
96377
96378 2001-01-02  Volker Borchert  <bt@teknon.de>
96379
96380         * m4/rename.m4: New file.
96381         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
96382
96383 2001-01-01  Jim Meyering  <meyering@lucent.com>
96384
96385         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
96386         even on systems with utmpx.h.  It's necessary for the declaration of
96387         utmp's ut_user member.  Reported by Andreas Jaeger.
96388
96389         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
96390         available. They are required for the declarations of getgrgid and
96391         getpwuid resp.
96392         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
96393         Reported by Andreas Jaeger.
96394
96395 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
96396
96397         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
96398         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
96399         so `make install' also works in VPATH builds.
96400
96401 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
96402
96403         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
96404         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
96405         can be used in subdirectories.
96406
96407 2000-12-29  Paul Eggert  <eggert@twinsun.com>
96408
96409         * lib/modechange.c: Do not assume that mode_t uses the
96410         traditional octal encoding.  E.g. "chmod 1 FOO" should set
96411         the other-execute bit of FOO even if S_IXOTH != 1.
96412
96413         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
96414         WOTH, XOTH, ALLM): New macros.
96415         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
96416          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
96417         Use them.
96418         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
96419         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
96420         (mode_compile):
96421         No need to use uintmax_t; unsigned long is long enough.
96422         Don't bother to get suffix since we don't use it.
96423
96424 2000-12-26  Jim Meyering  <meyering@lucent.com>
96425
96426         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
96427         better with autoheader.
96428
96429 2000-12-24  Jim Meyering  <meyering@lucent.com>
96430
96431         * lib/hash.c (is_prime): Return explicit boolean values.
96432         (hash_get_first): Return NULL to appease Irix5.6's 89.
96433         Reported by Nelson Beebe.
96434
96435 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
96436
96437         * lib/localcharset.c (locale_charset): Add support for Win32.
96438
96439 2000-12-18  Paul Eggert  <eggert@twinsun.com>
96440
96441         * lib/physmem.h, lib/physmem.c: New files.
96442
96443         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
96444         (noinst_HEADERS): Add physmem.h.
96445
96446         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
96447         't' for compatibility with Solaris 8 sort.
96448
96449 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
96450
96451         * lib/config.charset: Add support for BeOS.
96452
96453 2000-12-17  Jim Meyering  <meyering@lucent.com>
96454
96455         * m4/dos.m4 (jm_AC_DOS): New file and macro.
96456         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
96457
96458 2000-12-16  Jim Meyering  <meyering@lucent.com>
96459
96460         This bug had a serious impact on chown: `chown N:M FILE' (for integer
96461         N and M) would have treated it like `chown N:N FILE'.
96462
96463         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
96464
96465 2000-12-16  Jim Meyering  <meyering@lucent.com>
96466
96467         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
96468         SHELLS_FILE to a file name that's useful on djgpp systems.
96469         Include stdlib.h.
96470         (ADDITIONAL_DEFAULT_SHELLS): Define.
96471         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
96472         Based mostly on a patch from Prashant TR.
96473
96474 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
96475
96476         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
96477         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
96478         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
96479
96480 2000-12-08  Andreas Schwab  <schwab@suse.de>
96481
96482         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
96483         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
96484
96485 2000-12-07  Jim Meyering  <meyering@lucent.com>
96486
96487         * lib/stripslash.c (ISSLASH): Define.
96488         (strip_trailing_slashes): Use ISSLASH rather than comparing against
96489         `/'.
96490         From Prashant TR.
96491
96492         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
96493         (dir_name_r): Declare this function as static.
96494         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
96495         manifest itself on a name containing a mix of slashes and
96496         backslashes.
96497         Make this function work with names starting with a DOS-style
96498         drive letter and colon prefix.
96499         (dir_name): Append `.' if necessary.
96500         Based mostly on patches from Prashant TR and Eli Zaretskii.
96501
96502         * lib/dirname.h (dir_name_r): Remove prototype.
96503
96504 2000-12-06  Paul Eggert  <eggert@twinsun.com>
96505
96506         * m4/off_t-format.m4: Remove this file.
96507         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
96508
96509 2000-12-06  Jim Meyering  <meyering@lucent.com>
96510
96511         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
96512         replacement strtoull, we may well need the replacement strtoul, too.
96513         Check for declarations of strtoul and strtoull.
96514         Check for strtol.  Mainly as a cue to cause automake to include
96515         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
96516         Check for limits.h -- strtol.c needs it.
96517
96518 2000-12-05  Jim Meyering  <meyering@lucent.com>
96519
96520         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
96521
96522 2000-12-04  Jim Meyering  <meyering@lucent.com>
96523
96524         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
96525         Also include memory.h, stdlib.h, unistd.h if appropriate.
96526         Reported by Andreas Jaeger (conflicting declaration of malloc).
96527
96528 2000-12-02  Jim Meyering  <meyering@lucent.com>
96529
96530         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
96531         * m4/jm-macros.m4 (jm_MACROS): require it.
96532
96533 2000-12-02  Jim Meyering  <meyering@lucent.com>
96534
96535         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
96536
96537 2000-12-01  Paul Eggert  <eggert@twinsun.com>
96538
96539         * lib/memrchr.c: Include <config.h> before any system include file.
96540
96541 2000-11-30  Jim Meyering  <meyering@lucent.com>
96542
96543         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
96544
96545 2000-11-30  Jim Meyering  <meyering@lucent.com>
96546
96547         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
96548
96549 2000-11-29  Paul Eggert  <eggert@twinsun.com>
96550
96551         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
96552
96553 2000-11-26  Jim Meyering  <meyering@lucent.com>
96554
96555         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
96556
96557 2000-11-22  Paul Eggert  <eggert@twinsun.com>
96558
96559         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
96560         size of (size_t) -1; it's not portable.
96561
96562 2000-11-17  Jim Meyering  <meyering@lucent.com>
96563
96564         * lib/strstr.c: Update from GNU libc.
96565
96566 2000-11-17  Akim Demaille  <akim@epita.fr>
96567
96568         * lib/obstack.h: Formatting changes.
96569         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
96570         prevent type checking.
96571         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
96572         cast the value to (void *): assigning a `foo *' to a `void *'
96573         variable is valid.
96574         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
96575
96576 2000-11-16  Jim Meyering  <meyering@lucent.com>
96577
96578         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
96579
96580 2000-11-11  Jim Meyering  <meyering@lucent.com>
96581
96582         * lib/error.c: Add a couple #includes, merging from GNU libc version.
96583
96584 2000-11-10  Jim Meyering  <meyering@lucent.com>
96585
96586         * lib/obstack.h: Update from GNU libc.
96587         * lib/obstack.c: Likewise.
96588
96589 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
96590
96591         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
96592
96593 2000-11-06  Paul Eggert  <eggert@twinsun.com>
96594
96595         * lib/getusershell.c (setusershell): Use rewind rather than
96596         fseek/fseeko, to avoid configuration hassles with fseeko.
96597         Don't bother opening SHELLS_FILE if shellstream is NULL;
96598         it's not necessary.
96599
96600 2000-11-05  Jim Meyering  <meyering@lucent.com>
96601
96602         * lib/makepath.h (make_dir): Declare.
96603         * lib/makepath.c (make_dir): Remove `static' attribute.
96604         Tweak a comment.
96605
96606 2000-11-04  Jim Meyering  <meyering@lucent.com>
96607
96608         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
96609
96610 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
96611
96612         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
96613         last one in a bucket, advance to the next bucket.
96614
96615 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
96616
96617         * lib/fnmatch.c: Do not comment out all the code if we are using
96618         the GNU C library, because in some cases we are replacing buggy
96619         code in the GNU C library itself.
96620
96621 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
96622
96623         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
96624         (regex_compile): Catch bogus \(\1\).
96625
96626 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96627
96628         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
96629         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
96630         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
96631
96632 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96633
96634         * lib/error.h, getline.h, modechange.h:
96635         Remove "2000" from Copyright line, as the file hasn't been
96636         changed this year other than in the copyright notice.
96637
96638         * lib/xalloc.h: Add "2000" to Copyright line, as this file
96639         was changed this year.
96640
96641 2000-10-29  Jim Meyering  <meyering@lucent.com>
96642
96643         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
96644         renaming.
96645         * m4/ls-mntd-fs.m4: Likewise
96646
96647 2000-10-29  Jim Meyering  <meyering@lucent.com>
96648
96649         * lib/xstat.in: Fix grammar in comment.
96650
96651 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
96652
96653         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
96654         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
96655         doesn't define __restrict_arr.
96656
96657 2000-10-28  Jim Meyering  <meyering@lucent.com>
96658
96659         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
96660         (jm_PREREQ_MEMCHR): New function.
96661
96662 2000-10-28  Jim Meyering  <meyering@lucent.com>
96663
96664         * lib/memchr.c: Update from libc.
96665         Adjust for portability:
96666         [HAVE_STDLIB_H]: Include stdlib.h.
96667         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
96668         Undef __memchr, too.
96669         [!weak_alias]: Define __memchr to memchr.
96670
96671         * lib/regex.c: Update from libc.
96672         * lib/regex.h: Likewise.
96673         * lib/getopt1.c: Likewise.
96674         * lib/memcmp.c: Likewise.
96675
96676         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
96677         Avoid using fseek, when possible -- it's broken by design.
96678         Patch by Ulrich Drepper.
96679
96680 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
96681
96682         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
96683         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
96684         Giving in to popular pressure to shut up the compiler with casts.
96685
96686 2000-10-26  Jim Meyering  <meyering@lucent.com>
96687
96688         * lib/strftime.c: Update from libc.
96689
96690 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
96691
96692         * regex.c: More `unsigned char' -> `re_char' changes.
96693         Also change several `int' into `re_wchar_t'.
96694         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
96695         (PUSH_FAILURE_POINTER): Don't cast any more.
96696         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
96697         We want GCC to complain, since this piece of code makes
96698         re_match non-reentrant, which *should* be fixed.
96699         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
96700         (EXTEND_BUFFER): Use RETALLOC.
96701         (SET_LIST_BIT): Don't cast.
96702         (re_wchar_t): New type.
96703         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
96704         that those two functions will always properly return.
96705         (IMMEDIATE_QUIT_CHECK): Cast to void.
96706         (analyse_first): Use recursion rather than an explicit stack.
96707         (re_compile_fastmap): Can't fail anymore.
96708         (re_search_2): Don't check re_compile_fastmap for failure.
96709         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
96710         Now also sets the new value (passed in a new argument).
96711         (re_match_2_internal): Use it.
96712         Also, use a new var `reg' of type size_t when looping through regs
96713         rather than reuse the inappropriate `mcnt'.
96714
96715 2000-10-25  Jim Meyering  <meyering@lucent.com>
96716
96717         * lib/obstack.c: Update from libc.
96718
96719 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
96720
96721         * regex.c (regex_compile): Change the way of handling a range from
96722         a char less than 256 to a char not less than 256.
96723
96724 2000-10-24  Andrew Innes  <andrewi@gnu.org>
96725
96726         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
96727         NT-Emacs only.
96728         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
96729         so that re_search functions only quit when callers expect them to.
96730
96731 2000-10-23  Jim Meyering  <meyering@lucent.com>
96732
96733         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
96734         wrong.  That set_locale call must not have any side effects.
96735         From Paul Eggert.
96736
96737 2000-10-22  Jim Meyering  <meyering@lucent.com>
96738
96739         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
96740         [CYCLIC]: Remove now-unused definition.
96741
96742         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
96743         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
96744         Suggestion from Ulrich Drepper.
96745
96746 2000-10-21  Jim Meyering  <meyering@lucent.com>
96747
96748         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
96749         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
96750         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
96751
96752 2000-10-21  Jim Meyering  <meyering@lucent.com>
96753
96754         * lib/dirname.c (memrchr): Declare if necessary.
96755         (dir_name): Remove the restriction that there be no
96756         trailing slashes.  Now, this code skips past them, effectively
96757         ignoring them.
96758         [TEST_DIRNAME] (main): New unit tests.
96759
96760         * lib/memrchr.c: New file from GNU libc.
96761         Undef __memrchr, too.
96762         [!weak_alias]: Define __memrchr to memrchr.
96763         Guard weak_alias use with `#ifdef weak_alias'.
96764
96765 2000-10-21  Jim Meyering  <meyering@lucent.com>
96766
96767         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
96768         (dir_name): Use dir_name_r.
96769         * lib/dirname.h (dir_name_r): Declare it.
96770
96771 2000-10-17  Jim Meyering  <meyering@lucent.com>
96772
96773         * lib/quote.h (PARAMS): Define and use.
96774         Reported by Akim Demaille.
96775
96776         * lib/getopt.c: Update from libc.
96777
96778 2000-10-16  Jim Meyering  <meyering@lucent.com>
96779
96780         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
96781         setlocale.
96782         From Jan Fedak.
96783
96784 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
96785
96786         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
96787
96788 2000-09-25  Jim Meyering  <meyering@lucent.com>
96789
96790         * lib/md5.h (rol): Define (from GnuPG).
96791
96792         * lib/sha.c: Give credit (GnuPG) where due.
96793         (M): Use rol rather than open-coding it.
96794         Add a FIXME comment.
96795
96796 2000-09-21  Jim Meyering  <meyering@lucent.com>
96797
96798         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
96799         Reported by Michael Stone.
96800
96801 2000-09-20  Jim Meyering  <meyering@lucent.com>
96802
96803         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
96804         (noinst_HEADERS): Add sha.h.
96805         Based on code from Scott G. Miller and from GnuPG.
96806
96807 2000-09-18  Jim Meyering  <meyering@lucent.com>
96808
96809         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
96810         LIBS. Otherwise, everyone ends up linking with -lelf for some
96811         configurations.
96812         Reported by Mike Stone.
96813
96814 2000-09-15  Jim Meyering  <meyering@lucent.com>
96815
96816         * lib/regex.c: Update from libc.
96817
96818 2000-09-10  Jim Meyering  <meyering@lucent.com>
96819
96820         * lib/getopt.c (_getopt_internal): Update from glibc.
96821
96822 2000-09-09  Jim Meyering  <meyering@lucent.com>
96823
96824         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
96825         think it should be used as a general replacement for isascii.
96826         * lib/fnmatch.c: Likewise.
96827         * lib/mbswidth.c: Likewise
96828         * lib/regex.c: Likewise.
96829
96830         Don't use atoi.
96831         * lib/userspec.c: Include sys/param.h and limits.h.
96832         Include xstrtol.h.
96833         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96834         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
96835         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
96836         UID, GID.  Check range.
96837
96838 2000-09-06  Jim Meyering  <meyering@lucent.com>
96839
96840         * lib/getopt.c (_getopt_internal): Update from glibc.
96841
96842 2000-08-30  Jim Meyering  <meyering@lucent.com>
96843
96844         * lib/strftime.c: Merge in changes from GNU libc.
96845
96846 2000-08-26  Jim Meyering  <meyering@lucent.com>
96847
96848         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
96849         * m4/fpending.m4: New file.
96850
96851 2000-08-26  Jim Meyering  <meyering@lucent.com>
96852
96853         * lib/closeout.c: Include "__fpending.h".
96854         (close_stdout_status): Return right away if there's nothing to flush.
96855
96856         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
96857         * lib/__fpending.c: New file.
96858         * lib/__fpending.h: New file.
96859
96860 2000-08-20  Jim Meyering  <meyering@lucent.com>
96861
96862         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
96863         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
96864         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
96865
96866 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
96867
96868         Improve fileutils installation on systems where running
96869         programs (like install) can't be unlinked.
96870         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
96871         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
96872
96873 2000-08-07  Paul Eggert  <eggert@twinsun.com>
96874
96875         Standardize on "memory exhausted" instead of "Memory exhausted"
96876         or "virtual memory exhausted".
96877         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
96878         "virtual memory exhausted".
96879         * lib/same.c (same_name): Invoke xalloc_die instead of printing
96880         our own message.
96881         * lib/userspec.c (parse_user_spec): Likewise.
96882         * lib/bumpalloc.h: comment fix
96883         * lib/same.c, userspec.c: Include xalloc.h.
96884
96885         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
96886         not char *const and pointing to a constant array.
96887         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
96888         (xrealloc): Comment fix.
96889
96890         * lib/userspec.c (parse_user_spec):
96891         Don't translate a message until just before returning,
96892         to avoid unnecessary translation.
96893
96894 2000-08-07  Jim Meyering  <meyering@lucent.com>
96895
96896         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
96897         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
96898         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
96899         getgroups.c, gethostname.c, getopt.h, group-member.c,
96900         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
96901         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
96902         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
96903         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
96904         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
96905         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
96906         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
96907         yesno.c: Back out Copyright date changes for each file with no change
96908         this year.  This eases coordination with other programs using the same
96909         source code modules.  From Paul Eggert.
96910
96911 2000-08-06  Paul Eggert  <eggert@twinsun.com>
96912
96913         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
96914         not char, for compatibility with glibc 2.1.3 strftime.c.
96915
96916 2000-08-03  Greg McGary  <greg@mcgary.org>
96917
96918         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
96919         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
96920         (EXTEND_BUFFER): Use them.
96921
96922 2000-08-01  Jim Meyering  <meyering@lucent.com>
96923
96924         * lib/dirname.c (ISSLASH): Define.
96925         (BACKSLASH_IS_PATH_SEPARATOR): Define.
96926         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
96927         both `\' and `/' may be use as path separators.
96928         Based on a patch from Prashant TR.
96929
96930 2000-07-31  Paul Eggert  <eggert@twinsun.com>
96931
96932         * lib/quotearg.c (quotearg_n_options): Don't make the initial
96933         slot vector a constant, since it might get modified.
96934
96935 2000-07-31  Jim Meyering  <meyering@lucent.com>
96936
96937         * lib/xmalloc.c: Use `virtual memory exhausted', not
96938         `Memory exhausted'.
96939         * lib/obstack.c (print_and_abort): Likewise.
96940
96941 2000-07-30  Paul Eggert  <eggert@twinsun.com>
96942
96943         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
96944         buffer, so that the caller can always quote one small
96945         component of a "memory exhausted" message in slot 0.
96946         From a suggestion by Jim Meyering.
96947
96948 2000-07-30  Jim Meyering  <meyering@lucent.com>
96949
96950         * lib/makepath.c (make_path): Quote the other instance, too.
96951
96952         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
96953         (STATIC_BUF_SIZE): Define.
96954         (quotearg_n_options): Use only statically allocated storage when
96955         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
96956         than STATIC_BUF_SIZE.
96957
96958 2000-07-29  Jim Meyering  <meyering@lucent.com>
96959
96960         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
96961         * lib/dirname.c (dir_name): Likewise.
96962
96963         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
96964         `/'.
96965
96966         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
96967         (dir_name): Assert that there are no trailing slashes.
96968
96969 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
96970
96971         * lib/mbswidth.h (mbswidth): Add a flags argument.
96972         (mbswidth): New declaration.
96973         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
96974         * lib/mbswidth.c (mbswidth): Add a flags argument.
96975         (mbsnwidth): New function.
96976
96977 2000-07-24  Jim Meyering  <meyering@lucent.com>
96978
96979         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
96980
96981 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96982
96983         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
96984
96985 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96986
96987         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
96988         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
96989         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
96990         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
96991         invoke multibyte primitives.
96992
96993 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96994
96995         * lib/quotearg.c:
96996         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
96997         so that mbstate_t is always defined.
96998
96999         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
97000         be 1 in at least one GCC installation, and this configuration
97001         error is likely to be common.  Ignoring MB_LEN_MAX hurts
97002         performance on hosts that have mbrtowc but have only unibyte
97003         locales, but I assume these hosts are rare.
97004
97005 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97006
97007         * lib/mbswidth.c (_XOPEN_SOURCE):
97008         Don't define; this causes problems on Solaris 7.
97009         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
97010
97011 2000-07-23  Jim Meyering  <meyering@lucent.com>
97012
97013         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
97014         too: getgrgid, getpwuid, getuid.
97015
97016 2000-07-23  Jim Meyering  <meyering@lucent.com>
97017
97018         * lib/basename.c (base_name): Add an assertion.
97019
97020 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
97021
97022         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
97023         shadow its mbsinit function.
97024
97025 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97026
97027         * lib/mbswidth.h: New file.
97028         * lib/mbswidth.c: New file.
97029         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
97030         (noinst_HEADERS): Add mbswidth.h.
97031
97032 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97033
97034         * lib/config.charset: Add support for FreeBSD. Improve support for
97035         HP-UX and IRIX 6.
97036
97037 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
97038
97039         * m4/mbswidth.m4: New file.
97040         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
97041
97042 2000-07-15  Jim Meyering  <meyering@lucent.com>
97043
97044         * lib/makepath.c: Include quote.h.
97045         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
97046         corresponding argument in a `quote (...)' call.
97047         Give better diagnostics.
97048
97049         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
97050         (noinst_HEADERS): Add quote.h.
97051
97052         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
97053         from tar's src/misc.c.
97054         * lib/quote.h: New file.  Prototypes for same.
97055
97056 2000-07-14  Paul Eggert  <eggert@twinsun.com>
97057
97058         From a suggestion by Bruno Haible.
97059         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
97060         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
97061         to decide whether to define the BeOS workaround macro;
97062         this adjusts to the change to AC_MBSTATE_T.
97063
97064 2000-07-14  Jim Meyering  <meyering@lucent.com>
97065
97066         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
97067         jm_AC_TYPE_UINTMAX_T.
97068
97069 2000-07-13  Paul Eggert  <eggert@twinsun.com>
97070
97071         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
97072
97073         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
97074         quotearg_buffer_restyled): Add support for
97075         clocale_quoting_style.  Undo previous change to
97076         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
97077         and "{RIGHT QUOTATION MARK}" msgids.
97078
97079 2000-07-10  Paul Eggert  <eggert@twinsun.com>
97080
97081         From a suggestion by Bruno Haible.
97082         * m4/mbstate_t.m4 (AC_MBSTATE_T):
97083         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
97084         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
97085         and mbstate_t, to a single-part test that simply defines mbstate_t.
97086         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
97087         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
97088
97089 2000-07-10  Jim Meyering  <meyering@lucent.com>
97090
97091         * m4/strerror_r.m4: Mirror the correction made in autoconf.
97092
97093         * m4/gnu-source.m4: Output to confdefs.h directly.
97094         Suggestion from Akim Demaille.
97095
97096 2000-07-09  Paul Eggert  <eggert@twinsun.com>
97097
97098         The old behavior of quoting `like this' doesn't look good with
97099         newer, ISO-style fonts.  See:
97100         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
97101
97102         Instead, quote "like this" by default.  Let the translator
97103         tailor the locale-specific quoting behavior by providing
97104         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
97105
97106         * lib/quotearg.c (N_): New macro.
97107         (gettext_default): New function.
97108         (quotearg_buffer_restyled): Use
97109         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
97110         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
97111
97112 2000-07-09  Jim Meyering  <meyering@lucent.com>
97113
97114         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
97115         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
97116
97117         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
97118         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
97119
97120 2000-07-09  Jim Meyering  <meyering@lucent.com>
97121
97122         * lib/Most files: Update copyright dates to include 2000.
97123
97124 2000-07-08  Jim Meyering  <meyering@lucent.com>
97125
97126         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
97127         if not defined.
97128         (xgethostname): Remove now-unnecessary #ifdef.
97129         Move declaration of `err' into loop where it's used.
97130
97131 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97132         and Bruno Haible  <haible@clisp.cons.org>
97133
97134         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
97135         only if the test for an object-type mbstate_t fails.  This
97136         prevents us from mistakenly reporting that mbstate_t is a
97137         system object type after we "#define mbstate_t int" to work
97138         around its lack.
97139
97140 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97141         and Bruno Haible  <haible@clisp.cons.org>
97142
97143         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
97144
97145 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97146
97147         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
97148         to strerror_r.
97149         Include <ctype.h> for use of isalpha.
97150
97151 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97152
97153         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
97154         by allocating a larger buffer. Test the gethostname return value for
97155         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
97156         returns an error and ENAMETOOLONG isn't defined.
97157
97158 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97159
97160         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
97161         dimension.
97162
97163 2000-07-04  Jim Meyering  <meyering@lucent.com>
97164
97165         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
97166         of the deprecated AC_CHECKING.
97167
97168 2000-07-04  Jim Meyering  <meyering@lucent.com>
97169
97170         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
97171         Reported by Bruno Haible.
97172
97173 2000-07-04  Jim Meyering  <meyering@lucent.com>
97174
97175         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
97176         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
97177         lacks mbrtowc.
97178
97179 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97180
97181         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
97182         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
97183
97184 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97185         and Bruno Haible  <haible@clisp.cons.org>
97186
97187         * lib/quotearg.c (mbrtowc):
97188         Assign to *pwc, and return 1 only if result is nonzero.
97189         (iswprint): Use ISPRINT when substituting our own mbrtowc.
97190
97191 2000-07-03  Jim Meyering  <meyering@lucent.com>
97192
97193         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
97194
97195 2000-07-03  Jim Meyering  <meyering@lucent.com>
97196
97197         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
97198         This is necessary to get a definition of e.g., UTMP_FILE on
97199         HP-UX 10.20.
97200         From Bob Proulx.
97201
97202 2000-07-02  Jim Meyering  <meyering@lucent.com>
97203
97204         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
97205
97206         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
97207         AC_LIBOBJ(function_name).
97208         * m4/chown.m4: Likewise.
97209         * m4/fnmatch.m4: Likewise.
97210         * m4/ftruncate.m4: Likewise.
97211         * m4/getgroups.m4: Likewise.
97212         * m4/getline.m4: Likewise.
97213         * m4/group-member.m4: Likewise.
97214         * m4/jm-macros.m4: Likewise.
97215         * m4/lstat.m4: Likewise.
97216         * m4/malloc.m4: Likewise.
97217         * m4/memcmp.m4: Likewise.
97218         * m4/nanosleep.m4: Likewise.
97219         * m4/putenv.m4: Likewise.
97220         * m4/realloc.m4: Likewise.
97221         * m4/regex.m4: Likewise.
97222         * m4/stat.m4: Likewise.
97223         * m4/strftime.m4: Likewise.
97224
97225 2000-07-02  Jim Meyering  <meyering@lucent.com>
97226
97227         * lib/quotearg.c (mbstate_t): Don't define here.
97228
97229 2000-07-02  Jim Meyering  <meyering@lucent.com>
97230
97231         * lib/nanosleep.c (SIGCONT): Define if not already defined.
97232
97233 2000-07-01  Jim Meyering  <meyering@lucent.com>
97234
97235         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
97236
97237 2000-07-01  Jim Meyering  <meyering@lucent.com>
97238
97239         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
97240         problem.
97241
97242 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97243
97244         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
97245         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
97246
97247 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97248
97249         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
97250         per change in ../m4/ls-mntd-fs.m4.
97251         (read_filesystem_list): Ignore symbolic links.
97252
97253 2000-06-29  Jim Meyering  <meyering@lucent.com>
97254
97255         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
97256         for declaration of strcmp.
97257
97258         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
97259
97260         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
97261         Avoid warning by casting result to `char *' to remove `const'.
97262
97263 2000-06-28  Jim Meyering  <meyering@lucent.com>
97264
97265         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
97266         included by quotearg.c, for which we perform this test.  From
97267         Bruno Haible.
97268
97269 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97270
97271         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
97272         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
97273         <utmpx.h> exists, put readutmp.o into LIBOBJS.
97274
97275 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97276
97277         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
97278
97279 2000-06-26  Paul Eggert  <eggert@twinsun.com>
97280
97281         savedir now sets errno on failure and invokes xmalloc to get memory.
97282         Fix a couple of other minor bugs while we're at it.
97283
97284         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
97285         (NAMLEN): Remove macro.
97286         (malloc, realloc): Remove decls.
97287         (stpcpy): Likewise.
97288         ("xalloc.h"): Include.
97289         (NAME_SIZE_DEFAULT): New macro.
97290         (savedir): Use xmalloc / xrealloc to allocate memory.
97291         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
97292         Skip "" directory entries.
97293         Use strlen to calculate directory entry length, since the old method
97294         is rarely used these days and isn't worth supporting.
97295         Don't use a pointer after freeing it.
97296         Check for integer overflow when calculating allocation size.
97297         Use memcpy to copy entries, instead of stpcpy.
97298         Set errno properly when returning NULL.
97299         Check for readdir error.
97300
97301 2000-06-26  Jim Meyering  <meyering@lucent.com>
97302
97303         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
97304
97305 2000-06-25  Jim Meyering  <meyering@lucent.com>
97306
97307         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
97308         Linux header bug when _XOPEN_SOURCE is defined to 500.
97309
97310 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97311
97312         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
97313         deficiency.
97314
97315 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97316
97317         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
97318         Include xalloc.h.
97319         Don't include <stdlib.h>.  Don't declare malloc, realloc.
97320
97321 2000-06-24  Jim Meyering  <meyering@lucent.com>
97322
97323         * m4/strerror_r.m4: Revive this file -- to try out an experimental
97324         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
97325         for which strerror does return char*, but which lacks a conveniently
97326         accessible declaration of the function.  If the compile-test says
97327         strerror_r doesn't work, then resort to a `run'-test that works on
97328         BeOS and segfaults on DEC Unix.
97329
97330 2000-06-24  Jim Meyering  <meyering@lucent.com>
97331
97332         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
97333
97334 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97335
97336         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
97337         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
97338
97339 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97340
97341         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
97342         (mbrtowc, mbstate_t): Define substitutes if
97343         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
97344         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
97345         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
97346
97347 2000-06-23  Jim Meyering  <meyering@lucent.com>
97348
97349         * m4/afs.m4: Add missing AC_MSG_RESULT.
97350         Reported by Bruno Haible.
97351
97352         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
97353         Suggestion from Bruno Haible.
97354
97355 2000-06-23  Jim Meyering  <meyering@lucent.com>
97356
97357         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
97358
97359 2000-06-21  Jim Meyering  <meyering@lucent.com>
97360
97361         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
97362
97363 2000-06-21  Jim Meyering  <meyering@lucent.com>
97364
97365         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
97366         (noinst_HEADERS): Add getstr.h.
97367
97368         * lib/getline.c (getstr): Move into a separate file.
97369         * lib/getstr.c (getstr): New file, extracted from getline.c, with
97370         the following changes: new parameter, delim2; both delim[12]
97371         parameters have type `int', not `char'.  The latter would lose
97372         with 8-bit delimiters.
97373         * lib/getstr.h: New file.
97374
97375 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97376
97377         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
97378         than 1024, return a memory chunk of least possible size, instead
97379         of size PATH_MAX + 2. In the loop, increment the size proportionally.
97380         Use free/xmalloc instead of xrealloc to avoid copying for very long
97381         paths.
97382
97383 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97384
97385         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
97386         the empty string.
97387
97388 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97389
97390         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
97391         address, not strdup.  Include <stdlib.h> and don't declare free().
97392
97393 2000-06-19  Jim Meyering  <meyering@lucent.com>
97394
97395         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
97396
97397 2000-06-18  Jim Meyering  <meyering@lucent.com>
97398
97399         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
97400
97401         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
97402         `checking whether...' message to be consistent with that of the
97403         lstat test.
97404
97405 2000-06-18  Jim Meyering  <meyering@lucent.com>
97406
97407         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
97408         Besides, these days every porting target provides a mkdir function.
97409
97410         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
97411         needed. (this snippet comes from src/system.h).
97412
97413 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
97414
97415         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
97416
97417 2000-06-15  Paul Eggert  <eggert@twinsun.com>
97418
97419         * lib/human.c (adjust_value): New function.
97420         (human_readable_inexact): Apply rounding style even when
97421         printing approximate values.
97422
97423 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97424
97425         * lib/human.c (human_readable_inexact): Allow an input block
97426         size that is not a multiple of the output block size, and vice versa.
97427         Reported by Piergiorgio Sartor.
97428
97429 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97430
97431         * lib/getdate.y (get_date): Apply relative times after time
97432         zone indicator, not before.  Reported by Todd A. Jacobs.
97433
97434 2000-06-13  Jim Meyering  <meyering@lucent.com>
97435
97436         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
97437
97438         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
97439
97440 2000-06-12  Paul Eggert  <eggert@twinsun.com>
97441
97442         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
97443
97444 2000-06-12  Jim Meyering  <meyering@lucent.com>
97445
97446         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
97447         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
97448         optional argument.
97449         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
97450         the optional argument, `lib'.
97451
97452 2000-06-08  Jim Meyering  <meyering@lucent.com>
97453
97454         * m4/largefile.m4: Remove file (now that it's part of autoconf).
97455
97456 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97457
97458         Rewrite largefile configuration so that we don't need to run
97459         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
97460         AC_CANONICAL_HOST in configure.in -- jmm]
97461
97462         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
97463         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
97464         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
97465         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
97466         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
97467         All uses changed.
97468         Instead of inspecting the output of getconf, try to compile the
97469         test program without and with the macro definition.
97470         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
97471         for getconf.  Instead, check for the needed flags by compiling
97472         test programs.
97473
97474 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97475
97476         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
97477
97478 2000-06-04  Jim Meyering  <meyering@lucent.com>
97479
97480         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
97481         SunOS 4.1.4 for which gid_t is an unsigned type.
97482
97483 2000-06-03  Jim Meyering  <meyering@lucent.com>
97484
97485         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
97486         now that autoconf requires that.
97487
97488         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
97489         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
97490         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
97491
97492 2000-06-03  Jim Meyering  <meyering@lucent.com>
97493
97494         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
97495
97496 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97497
97498         * m4/glibc21.m4: New file.
97499         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
97500
97501 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97502
97503         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
97504         newer, don't install charset.alias.
97505         * lib/config.charset: Change the Linux/glibc rules so they become empty
97506         on glibc-2.1 or newer.
97507
97508 2000-06-02  Jim Meyering  <meyering@lucent.com>
97509
97510         * lib/mountlist.c: Back out last change.  Instead, do this...
97511         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
97512         me_dummy member using the same `ignore'-testing code.
97513         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
97514         fs_type strings.
97515         From Mark D. Roth.
97516
97517 2000-05-29  Jim Meyering  <meyering@lucent.com>
97518
97519         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
97520         mounts with the `ignore' attribute.  Based on a patch from
97521         Mark D. Roth.
97522
97523 2000-05-28  Jim Meyering  <meyering@lucent.com>
97524
97525         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
97526         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97527         * m4/stat.m4: Likewise.
97528         * m4/lstat.m4: Likewise.
97529         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
97530
97531         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
97532         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
97533
97534 2000-05-26  Jim Meyering  <meyering@lucent.com>
97535
97536         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
97537
97538 2000-05-24  Jim Meyering  <meyering@lucent.com>
97539
97540         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
97541         autoconf requires that.
97542         * m4/lib-check.m4: Likewise.
97543         * m4/jm-macros.m4: Likewise.
97544         * m4/strftime.m4: Likewise.
97545
97546         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
97547         AC_CHECK_DECLS, now that autoconf requires that.
97548
97549 2000-05-22  Jim Meyering  <meyering@lucent.com>
97550
97551         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97552         * m4/lstat.m4: Likewise.
97553
97554 2000-05-22  Jim Meyering  <meyering@lucent.com>
97555
97556         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
97557
97558 2000-05-20  Jim Meyering  <meyering@lucent.com>
97559
97560         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
97561         (jm_PREREQ): Use it.
97562
97563 2000-05-18  Jim Meyering  <meyering@lucent.com>
97564
97565         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
97566         back, too, since it may have been modified by allocate_entry.
97567         (hash_delete): Rewrite to use neither the assignment operator
97568         nor the comma operator in an if-expression.
97569
97570 2000-05-15  Paul Eggert  <eggert@twinsun.com>
97571
97572         * lib/closeout.c:
97573         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
97574         Remove; no longer needed.
97575         "quotearg.h": Add include.
97576         (file_name): Do not bother to explicitly initialize to NULL; it's less
97577         efficient on some hosts.
97578         (close_stdout_status): Remove test as to whether stdout was already
97579         closed; it breaks for the case "echo x | sort >&-".
97580         Quote file name colons.
97581         Do not assume that _("write error") lacks format strings.
97582
97583 2000-05-15  Jim Meyering  <meyering@lucent.com>
97584
97585         * lib/version-etc.c (version_etc_copyright): Update the copyright
97586         string used in all --version output.
97587
97588 2000-05-14  Jim Meyering  <meyering@lucent.com>
97589
97590         * lib/closeout.c (close_stdout_set_file_name): New function.
97591         (close_stdout_status): Use new file-scoped global.
97592         Return right away if fstat says the stdout file descriptor is invalid.
97593         * lib/closeout.h (close_stdout_set_file_name): Declare.
97594
97595 2000-05-10  Jim Meyering  <meyering@lucent.com>
97596
97597         * lib/closeout.c [default_exit_status]: New file-scoped variable.
97598         (close_stdout_set_status): New function.
97599         * lib/closeout.h (close_stdout_set_status): Declare.
97600
97601 2000-05-09  Jim Meyering  <meyering@lucent.com>
97602
97603         * m4/gettext.m4: Rename this...
97604         * m4/libintl.m4: ...to this.
97605
97606 2000-05-08  Jim Meyering  <meyering@lucent.com>
97607
97608         * lib/long-options.c: Don't include closeout.h.
97609         (parse_long_options): Don't call close_stdout for --version.
97610
97611 2000-05-06  Paul Eggert  <eggert@twinsun.com>
97612
97613         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
97614         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
97615         2.1.3 bug.  This avoids a clash when files like regex.c define
97616         _GNU_SOURCE.
97617
97618 2000-05-06  Jim Meyering  <meyering@lucent.com>
97619
97620         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
97621         (AC_REPLACE_FUNCS): Add strnlen.
97622
97623         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
97624         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
97625
97626         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
97627         AC_SEARCH_LIBS call for nanosleep.
97628         (LIB_NANOSLEEP): Set and AC_SUBST.
97629
97630 2000-05-06  Jim Meyering  <meyering@lucent.com>
97631
97632         * lib/strnlen.c: Undefine __strnlen and strnlen.
97633         [!weak_alias]: Define __strnlen to strnlen.
97634
97635         * lib/atexit.c: New file, from libiberty.
97636
97637 2000-05-06  Jim Meyering  <meyering@lucent.com>
97638
97639         * lib/closeout.c (close_stdout_status): Also check for errors on the
97640         stderr stream.
97641
97642 2000-05-05  Jim Meyering  <meyering@lucent.com>
97643
97644         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
97645         AC_SEARCH_LIBS call for clock_gettime.
97646         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
97647
97648         * m4/search-libs.m4: Update from autoconf.
97649
97650         su doesn't work on Solaris 2.6.
97651         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
97652         <shadow.h>.  Reported by Dragos Harabor.
97653
97654 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
97655
97656         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
97657         memcpy instead of xmalloc, xrealloc, path_concat.
97658         (locale_charset): Treat empty environment variables as absent.
97659         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
97660
97661 2000-05-04  Jim Meyering  <meyering@lucent.com>
97662
97663         * lib/getopt.c: Update from glibc.
97664         * lib/obstack.c: Likewise.
97665         * lib/obstack.h: Likewise.
97666         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
97667         file
97668
97669         * lib/regex.h: Likewise.
97670         * lib/strndup.c: Likewise.
97671         * lib/strnlen.c: New file, from glibc.
97672
97673 2000-05-03  Jim Meyering  <meyering@lucent.com>
97674
97675         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
97676
97677 2000-05-02  Paul Eggert  <eggert@twinsun.com>
97678
97679         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
97680         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
97681         compile-time test, rather than inspecting host and OS, to
97682         decide whether to define _LARGEFILE_SOURCE.
97683
97684 2000-05-01  Jim Meyering  <meyering@lucent.com>
97685
97686         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
97687
97688         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
97689         Based on a patch from Bruno Haible.
97690
97691 2000-05-01  Jim Meyering  <meyering@lucent.com>
97692
97693         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
97694
97695 2000-04-29  Jim Meyering  <meyering@lucent.com>
97696
97697         * lib/path-concat.c: Declare strdup only if it's not defined.
97698         * lib/canon-host.c: Likewise.
97699
97700 2000-04-28  Jim Meyering  <meyering@lucent.com>
97701
97702         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
97703         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
97704         is included first, then limits.h is included by locale.h by libintl.h.
97705         From John David Anglin.
97706
97707 2000-04-25  Jim Meyering  <meyering@lucent.com>
97708
97709         * lib/makepath.c (S_IRWXUGO): Define.
97710         (make_path): Always perform explicit chmod if MODE specifies any
97711         of the `special' permission bits.  Prompted by a bug report against
97712         install from Mate Wierdl and Joost van Baal.
97713
97714 2000-04-18  Jim Meyering  <meyering@lucent.com>
97715
97716         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
97717         (jm_PREREQ): Use it.
97718
97719 2000-04-18  Jim Meyering  <meyering@lucent.com>
97720
97721         * lib/README: New file.
97722
97723         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
97724         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
97725
97726 2000-04-17  Jim Meyering  <meyering@lucent.com>
97727
97728         Get it right :-)
97729         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
97730         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
97731         Suggestion from Akim Demaille.
97732
97733 2000-04-17  Jim Meyering  <meyering@lucent.com>
97734
97735         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
97736         the definition of it to rpl_strftime also defined-away the system's
97737         declaration.
97738
97739 2000-04-15  Jim Meyering  <meyering@lucent.com>
97740
97741         Use `C' to denote so-called `contiguous' files, the same way
97742         that tar does.
97743         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
97744         (ftypelet): Use S_ISCTG.
97745         From Michael Deutschmann.
97746
97747 2000-04-14  Jim Meyering  <meyering@lucent.com>
97748
97749         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
97750         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
97751         clobbered.
97752
97753 2000-04-14  Jim Meyering  <meyering@lucent.com>
97754
97755         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
97756
97757 2000-04-13  Jim Meyering  <meyering@lucent.com>
97758
97759         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
97760         AH_VERBATIM to insert required #ifndef into config.h.in.
97761         Suggestion from Akim Demaille.
97762
97763 2000-04-12  Jim Meyering  <meyering@lucent.com>
97764
97765         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
97766         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
97767         Christian Krackowizer.
97768
97769         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
97770         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
97771         (AC_SYS_LARGEFILE): Require.
97772         (AM_C_PROTOTYPES): Require.
97773
97774 2000-04-08  Jim Meyering  <meyering@lucent.com>
97775
97776         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
97777         names don't conflict.  Reported by Eli Zaretskii.
97778
97779 2000-04-07  Jim Meyering  <meyering@lucent.com>
97780
97781         * lib/putenv.c: Move inclusion of errno.h so it follows that of
97782         sys/types.h, to work around system header problems on AIX 3.2.5.
97783         From Bruno Haible.
97784
97785 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
97786
97787         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
97788         bug.  Deal with the different error behavior of Irix iconv.
97789
97790 2000-04-05  Paul Eggert  <eggert@twinsun.com>
97791
97792         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
97793         IRIX if the installer said otherwise.
97794
97795 2000-04-05  Jim Meyering  <meyering@lucent.com>
97796
97797         Portability tweaks required for ultrix4.3.
97798         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
97799         (jm_CHECK_DECLS): Add getutent to the list of functions.
97800         (_jm_DECL_HEADERS): Add utmpx.h.
97801         From John David Anglin.
97802
97803         * m4/strftime.m4: Back out the 2000-04-02 change.
97804         Instead of that change, simply undefine putenv in the test program.
97805
97806 2000-04-05  Jim Meyering  <meyering@lucent.com>
97807
97808         Portability tweaks required for ultrix4.3.
97809         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
97810         getutent.
97811         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
97812         * lib/canon-host.c: Declare strdup.
97813         * lib/path-concat.c: Likewise.
97814         From John David Anglin.
97815
97816 2000-04-04  Jim Meyering  <meyering@lucent.com>
97817
97818         Be more DOS 8.3-friendly.
97819         * lib/ref-add.sin: Renamed from ref-add.sed.in.
97820         * lib/ref-del.sin: Renamed from ref-del.sed.in.
97821         * lib/Makefile.am: Reflect renaming.
97822         Reported by Eli Zaretskii.
97823
97824         Use a temporary file name that won't clash with `charset.alias'
97825         in the DOS 8.3 name space.
97826         * lib/Makefile.am (charset_tmp): Define.
97827         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
97828         (uninstall-local): Likewise.
97829         Reported by Eli Zaretskii.
97830
97831 2000-04-03  Jim Meyering  <meyering@lucent.com>
97832
97833         * m4/gettext.m4: Fix typo in comment.
97834
97835         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
97836         textutils/configure.in).  Suggestion from Paul Eggert.
97837         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
97838
97839 2000-04-02  Paul Eggert  <eggert@twinsun.com>
97840
97841         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
97842         variable in the shell rather than using putenv, which isn't
97843         portable.  This avoids the configure-time inter-test dependency
97844         on the potentially-renamed putenv function.
97845
97846 2000-03-30  Paul Eggert  <eggert@twinsun.com>
97847
97848         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
97849         before checking struct stat.st_blksize, so that
97850         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
97851
97852 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97853
97854         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
97855         since strftime.c uses HAVE_STRFTIME to decide whether to use
97856         the underlying strftime.
97857
97858 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97859
97860         * lib/time/strftime.c (my_strftime): Make sure we call the system
97861         strftime, not ourselves, when invoking the underlying strftime.
97862
97863 2000-03-24  Jim Meyering  <meyering@lucent.com>
97864
97865         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
97866         (charset_alias): Define.
97867         (install-exec-local): Factor out common code.
97868         (uninstall-local): Split lines longer than 80.
97869         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
97870         (SUFFIXES): Define.
97871         (.sed.in.sed): New rule.  Don't redirect directly to $@.
97872         (CLEANFILES): Add ref-add.sed and ref-del.sed.
97873
97874 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
97875
97876         * lib/config.charset: Output a line containing "Packages using this
97877         file".
97878         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
97879         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
97880         ref-del.sed): New rules.
97881
97882 2000-03-17  Jim Meyering  <meyering@lucent.com>
97883
97884         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
97885         Otherwise, include <strings.h>
97886
97887 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
97888
97889         * lib/unicodeio.c (utf8_wctomb): New function.
97890         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
97891         format instead of in UCS-4 with platform dependent endianness.
97892
97893 2000-03-10  Jim Meyering  <meyering@lucent.com>
97894
97895         * m4/lib-check.m4: Look for getspnam in -lgen, too.
97896         From Marco Franzen.
97897
97898 2000-03-07  Paul Eggert  <eggert@twinsun.com>
97899
97900         * lib/savedir.c (savedir): Work even if directory size is
97901         negative; this can happen with some screwy NFS configurations.
97902
97903 2000-03-06  Jim Meyering  <meyering@lucent.com>
97904
97905         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
97906         if it's NULL (because we ran out of memory).  From Bruno Haible.
97907
97908 2000-03-05  Jim Meyering  <meyering@lucent.com>
97909
97910         * lib/localcharset.c ("path-concat.h"): Include.
97911         (get_charset_aliases): Use path_concat instead of ANSI string
97912         concatenation.
97913
97914         * lib/unicodeio.h (PARAMS): Define.
97915         Use it to guard prototype.
97916
97917 2000-03-04  Jim Meyering  <meyering@lucent.com>
97918
97919         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
97920         for lib/localcharset.c.
97921
97922 2000-03-04  Jim Meyering  <meyering@lucent.com>
97923
97924         * lib/Makefile.am (install-exec-local): Create $(libdir) before
97925         installing into it.
97926         (uninstall-local): Uncomment this rule so `make distcheck' works
97927         once again.
97928
97929         * lib/unicodeio.c (<errno.h>): Include it.
97930         (errno): Declare if not defined.
97931
97932         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
97933
97934         * lib/config.charset: New version, incorporating remarks from a linux
97935         i18n mailing list.  From Bruno Haible.
97936
97937 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
97938
97939         * m4/codeset.m4: New file.
97940         * m4/iconv.m4: New file.
97941         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
97942
97943 2000-03-03  Jim Meyering  <meyering@lucent.com>
97944
97945         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
97946
97947 2000-03-02  Jim Meyering  <meyering@lucent.com>
97948
97949         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
97950         the messages come out on separate lines.
97951
97952         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
97953         rather than jm_CHECK_DECLARATIONS.
97954         * m4/decl.m4: Remove now-unused file.
97955
97956         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
97957         geteuid.
97958
97959 2000-03-02  Jim Meyering  <meyering@lucent.com>
97960
97961         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
97962
97963 2000-03-01  Jim Meyering  <meyering@lucent.com>
97964
97965         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
97966         * lib/unicodeio.c: Likewise.
97967
97968 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
97969
97970         * lib/config.charset: New file.
97971         * lib/localcharset.c: New file.
97972         * lib/unicodeio.h, lib/unicodeio.c: New files.
97973         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
97974         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
97975         (noinst_HEADERS): Add unicodeio.h.
97976         (all-local, install-exec-local, charset.alias): New targets.
97977
97978 2000-02-28  Paul Eggert  <eggert@twinsun.com>
97979
97980         * lib/quotearg.c (ALERT_CHAR): New macro.
97981         (quotearg_buffer_restyled): Use it.
97982
97983 2000-02-27  Jim Meyering  <meyering@lucent.com>
97984
97985         * m4/check-decl.m4: Add getenv to the list.
97986
97987 2000-02-27  Jim Meyering  <meyering@lucent.com>
97988
97989         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
97990         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
97991
97992         * lib/backupfile.c: Guard inclusion of stdlib.h with
97993         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
97994         Declare malloc if needed.
97995
97996         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
97997         `#ifndef HAVE_DECL..'
97998         now that autoconf always defines the HAVE_DECL_ symbols.
97999         * lib/human.c: Likewise.
98000         * lib/same.c: Likewise.
98001         * lib/strtoumax.c: Likewise.
98002
98003         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
98004         declaration check was not run.
98005         * lib/hash.c: Likewise.
98006         * lib/human.c: Likewise.
98007         * lib/same.c: Likewise.
98008         * lib/strtoumax.c: Likewise.
98009
98010         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
98011         `.', then first look up the entire `.'-containing string as a login
98012         name.
98013
98014 2000-02-23  Jim Meyering  <meyering@lucent.com>
98015
98016         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
98017         in place of my hack.
98018
98019 2000-02-18  Paul Eggert  <eggert@twinsun.com>
98020
98021         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
98022         (textint): New typedef.
98023         (parser_control): Member year changed from int to textint.
98024         All uses changed.
98025         (YYSTYPE): Removed; replaced by %union with int and textint members.
98026         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
98027         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
98028         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
98029         (tSNUMBER, tUNUMBER): Now of type <textintval>.
98030         (date, number, to_year): Use width of number in digits, not its value,
98031         to determine whether it's a 2-digit year, or a 2-digit time.
98032         (yylex): Store number of digits of numeric tokens.
98033         Reported by John Kendall.
98034
98035         (parser_control): Changed from struct parser_control to typedef (for
98036         consistency).  All uses changed.
98037
98038         (tID): Removed; not used.
98039         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
98040
98041 2000-02-14  Paul Eggert  <eggert@twinsun.com>
98042
98043         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
98044         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
98045
98046 2000-02-12  Jim Meyering  <meyering@lucent.com>
98047
98048         * lib/userspec.c (ISDIGIT): Define it.
98049         (isdigit): Remove definition.
98050         (is_number): Use ISDIGIT, not isdigit.
98051         <libintl.h>: Include.
98052         (_ and N_): Define.
98053         (parse_user_spec): Mark translatable strings.
98054
98055 2000-02-10  Jim Meyering  <meyering@lucent.com>
98056
98057         With these changes, nanosleep.[ch] are finally enough like the other
98058         lib/* replacement files to compile on a few more losing systems.
98059
98060         * lib/nanosleep.h: Don't include config.h.
98061         Remove prototype from declaration of nanosleep.
98062         (PARAMS): Remove now-unneeded definition.
98063         * lib/nanosleep.c: #undef nanosleep.
98064         (rpl_nanosleep): Rename from nanosleep.
98065
98066 2000-02-10  Jim Meyering  <meyering@lucent.com>
98067
98068         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
98069         gnu_nanosleep to rpl_nanosleep.
98070
98071 2000-02-09  Jim Meyering  <meyering@lucent.com>
98072
98073         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
98074         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
98075
98076 2000-02-08  Akim Demaille  <akim@epita.fr>
98077
98078         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
98079         `[' and `]' and remove uses of `changequote'.
98080         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
98081         (AC_SYS_LARGEFILE): Likewise.
98082         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
98083         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
98084         of changequote.
98085         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
98086         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
98087         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
98088         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
98089
98090 2000-02-05  Jim Meyering  <meyering@lucent.com>
98091
98092         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
98093         Remove explicit use of AC_HEADER_TIME.  It is required by
98094         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
98095         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
98096         in autoconf whereby the expansion of the latter ended up preceding
98097         the expansion of its prerequisite, AC_HEADER_TIME.
98098         Reported by Volker Borchert.
98099
98100 2000-02-03  Jim Meyering  <meyering@lucent.com>
98101
98102         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
98103
98104 2000-02-03  Jim Meyering  <meyering@lucent.com>
98105
98106         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
98107         rather than with `#if HAVE_UTMPNAME'.
98108
98109 2000-02-02  Jim Meyering  <meyering@lucent.com>
98110
98111         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
98112         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
98113         Reported by Eli Zaretskii.
98114
98115 2000-02-01  Jim Meyering  <meyering@lucent.com>
98116
98117         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
98118
98119 2000-01-31  Jim Meyering  <meyering@lucent.com>
98120
98121         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
98122         functions.  Add the time.h and sys/time.h headers along with the
98123         AC_REQUIRE'ment of AC_HEADER_TIME.
98124
98125 2000-01-31  Jim Meyering  <meyering@lucent.com>
98126
98127         * lib/nanosleep.h (nanosleep): Guard declaration with
98128         `#if ! HAVE_DECL_NANOSLEEP'.
98129         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
98130         the declaration in that vendor's sys/timers.h.
98131         Reported by Christian Krackowizer.
98132
98133         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
98134         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
98135         (ISPRINT): Likewise.
98136         Reported by Tom Tromey.
98137
98138 2000-01-30  Jim Meyering  <meyering@lucent.com>
98139
98140         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
98141
98142         * m4/prereq.m4 (utmp_includes): Define.
98143         Check for ut_user and ut_name members in both struct utmpx
98144         and struct utmp.
98145
98146 2000-01-30  Jim Meyering  <meyering@lucent.com>
98147
98148         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
98149         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
98150         header files where only utmpx.ut_user is declared.
98151
98152         * lib/readutmp.h (UT_USER): Define.
98153
98154 2000-01-29  Jim Meyering  <meyering@lucent.com>
98155
98156         * m4/lib-check.m4: New file containing library-related checks from
98157         fileutils and sh-utils (textutils had none).
98158
98159 2000-01-28  Jim Meyering  <meyering@lucent.com>
98160
98161         * m4/perl.m4: Change format of warning message to look more like that
98162         from the missing script.  Suggestion from François Pinard.
98163
98164 2000-01-25  Jim Meyering  <meyering@lucent.com>
98165
98166         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
98167         well as time.h in the compile check.
98168         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
98169         Fix typo in cross-compiling case: s/yes/no/.
98170
98171 2000-01-23  Jim Meyering  <meyering@lucent.com>
98172
98173         * m4/jm-macros.m4: Move df-related tests here from
98174         fileutils/configure.in
98175
98176         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
98177         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
98178
98179         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
98180         s/space/ac_fsusage_space/.
98181         (jm_FILE_SYSTEM_USAGE): Take two parameters.
98182
98183         * m4/ftruncate.m4: New file (derived from part of
98184         fileutils/configure.in).
98185         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
98186         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
98187
98188         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
98189         AC_SUBST these here, rather than just in sh-util/configure.in, so
98190         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
98191         all the same.
98192         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
98193         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
98194         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
98195         (AC_SUBST(POW_LIBM)): Likewise.
98196         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
98197
98198 2000-01-23  Jim Meyering  <meyering@lucent.com>
98199
98200         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
98201         obstack.c.
98202
98203 2000-01-22  Jim Meyering  <meyering@lucent.com>
98204
98205         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
98206
98207         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
98208
98209         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
98210         configure.in
98211         (AC_CHECK_HEADERS): Likewise for sh-utils.
98212         (AC_CHECK_HEADERS): Likewise for textutils.
98213         Merge the three lists of headers.
98214
98215         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
98216         from fileutils' configure.in.
98217
98218         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
98219         code. Moved tests into their own function (_jm_DECL_HEADERS) in
98220         check-decl.m4.
98221
98222         * m4/check-decl.m4: Use #if rather than #ifdef.
98223         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
98224         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
98225         (_jm_DECL_HEADERS): Define new function.
98226         (jm_CHECK_DECLARATIONS): Require it.
98227
98228 2000-01-22  Jim Meyering  <meyering@lucent.com>
98229
98230         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
98231         [! HAVE_DECL_STRTOULL]: Declare strtoull.
98232         Required for some AIX systems.  Reported by Christian Krackowizer.
98233         [TESTING] (main): New function.
98234
98235         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
98236         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
98237         letters.
98238
98239         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
98240         iswprint.
98241
98242         * lib/strverscmp.c (ISDIGIT): Define.
98243         (strverscmp): Use ISDIGIT, not isdigit.
98244
98245 2000-01-19  Jim Meyering  <meyering@lucent.com>
98246
98247         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
98248         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
98249         defines `struct timespec' in <sys/time.h>
98250
98251         * m4/c-bs-a.m4: Remove uses of changequote altogether.
98252         Thanks to Akim for explaining.
98253
98254 2000-01-17  Paul Eggert  <eggert@twinsun.com>
98255
98256         * lib/nanosleep.c (nanosleep):
98257         Don't use SA_INTERRUPT to decide whether to call sigaction, as
98258         POSIX.1 doesn't require SA_INTERRUPT and some systems
98259         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
98260         it's been part of POSIX.1 since day 1 (in 1988).
98261
98262 2000-01-17  Jim Meyering  <meyering@lucent.com>
98263
98264         * lib/interlock: Remove unused file.  Reported by François Pinard.
98265
98266 2000-01-16  Paul Eggert  <eggert@twinsun.com>
98267
98268         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
98269         alert, backslash, formfeed, and vertical tab unnecessarily in
98270         shell quoting style.
98271
98272 2000-01-16  Jim Meyering  <meyering@lucent.com>
98273
98274         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
98275         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
98276         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
98277         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
98278
98279 2000-01-16  Jim Meyering  <meyering@lucent.com>
98280
98281         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
98282         because the latter didn't work.
98283
98284 2000-01-15  Jim Meyering  <meyering@lucent.com>
98285
98286         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
98287         (AC_REPLACE_FUNCS): Add memcpy and memset.
98288         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
98289         Add strpbrk.
98290         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
98291
98292 2000-01-12  Jim Meyering  <meyering@lucent.com>
98293
98294         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
98295         (jm_PREREQ): Use it.
98296         (jm_PREREQ_READUTMP): New macro.
98297         (jm_PREREQ): Use it.
98298
98299 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98300
98301         Quote multibyte characters correctly.
98302         * m4/c-bs-a.m4: New file.
98303         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
98304         (jm_PREREQ): Use it.
98305
98306 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98307
98308         * m4/uintmax_t.m4: Port to autoconf 2.13.
98309
98310 2000-01-08  Jim Meyering  <meyering@ascend.com>
98311
98312         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
98313         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
98314
98315 2000-01-04  Jim Meyering  <meyering@ascend.com>
98316
98317         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
98318         jm_STRUCT_DIRENT_D_TYPE.
98319         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
98320         jm_STRUCT_DIRENT_D_INO.
98321         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
98322         jm_STRUCT_UTIMBUF.
98323         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
98324         renamings.
98325         * m4/utime.m4: Likewise.
98326
98327         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
98328         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
98329
98330 2000-01-03  Paul Eggert  <eggert@twinsun.com>
98331
98332         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
98333         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
98334
98335 2000-01-02  Jim Meyering  <meyering@ascend.com>
98336
98337         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
98338         remember if this is necessary.
98339
98340 1999-12-26  Jim Meyering  <meyering@ascend.com>
98341
98342         * m4/jm-macros.m4: Use it here.
98343         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
98344
98345 1999-12-23  Jim Meyering  <meyering@ascend.com>
98346
98347         * m4/jm-macros.m4: Check for clock_gettime (moved from
98348         fileutils/configure.in)
98349         Check for gettimeofday.
98350
98351 1999-12-20  Jim Meyering  <meyering@ascend.com>
98352
98353         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
98354         autoconf-2.14a-1999-12-20.
98355
98356 1999-12-19  Jim Meyering  <meyering@ascend.com>
98357
98358         * m4/lstat-slash.m4: New file.
98359         * m4/jm-macros.m4: Use the new macro:
98360         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98361
98362 1999-12-07  Jim Meyering  <meyering@ascend.com>
98363
98364         * m4/perl.m4: Require that File::Compare be available, too.
98365         Too many systems seem to lack it.
98366
98367         * m4/strftime.m4: Add checks for most of the cpp macros tested in
98368         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
98369
98370 1999-11-18  Paul Eggert  <eggert@twinsun.com>
98371
98372         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
98373         problem with the QNX 4.25 shell, which doesn't propagate exit
98374         status of failed commands inside shell assignments.
98375
98376 1999-11-17  Jim Meyering  <meyering@ascend.com>
98377
98378         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
98379
98380 1999-11-07  Jim Meyering  <meyering@ascend.com>
98381
98382         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
98383
98384 1999-11-06  Jim Meyering  <meyering@ascend.com>
98385
98386         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
98387         * m4/jm-macros.m4 (jm_MACROS): Use it here.
98388
98389 1999-11-05  Jim Meyering  <meyering@ascend.com>
98390
98391         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
98392         configure.in of textutils, fileutils, and sh-utils into this one
98393         (shared between those packages) file.
98394         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
98395         AC_STRUCT_ST_BLKSIZE.
98396
98397 1999-11-03  Jim Meyering  <meyering@ascend.com>
98398
98399         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
98400         of AC_CHECK_TYPE checks includes unistd.h.
98401         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
98402         Suggestion from Akim Demaille.
98403
98404 1999-10-30  Jim Meyering  <meyering@ascend.com>
98405
98406         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
98407         m4-quoted string.
98408         * m4/ls-mntd-fs.m4: Likewise.
98409         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
98410         * m4/jm-winsz1.m4: Likewise.
98411
98412         * m4/const.m4: Remove file, since the fix made it into the experimental
98413         version of autoconf.
98414         * m4/mktime.m4: Likewise.
98415
98416         * m4/check-type.m4: Remove file, now that the latest version of
98417         AC_CHECK_TYPE takes a third arg to specify additional #includes.
98418
98419         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
98420         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
98421         AC_CHECK_TYPE.
98422
98423 1999-10-04  Jim Meyering  <meyering@ascend.com>
98424
98425         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
98426
98427 1999-09-22  Paul Eggert  <eggert@twinsun.com>
98428
98429         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
98430         2.95.1 bug with HP-UX 10.20.
98431
98432 1999-09-17  Jim Meyering  <meyering@ascend.com>
98433
98434         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
98435         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
98436         due to missing strdup (against sh-utils-2.0).
98437
98438 1999-08-29  Jim Meyering  <meyering@ascend.com>
98439
98440         * m4/jm-macros.m4: Require jm_BISON.
98441         * m4/bison.m4: New file.
98442
98443 1999-08-17  Paul Eggert  <eggert@twinsun.com>
98444
98445         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
98446         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
98447
98448 1999-08-05  Jim Meyering  <meyering@ascend.com>
98449
98450         * m4/getline.m4: Rename test file from conftestdata to conftest.data
98451         to avoid conflicts with `conftest' on 8+3 filesystems.
98452         Suggestion from Eli Zaretskii.
98453
98454 1999-08-04  Jim Meyering  <meyering@ascend.com>
98455
98456         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
98457         fileutils and sh-utils (textutils's getline test was inadequate).
98458         (AM_FUNC_GETLINE): Run this test.
98459         (AC_CHECK_FUNCS): Check for getdelim.
98460         Reported by Bob Proulx.
98461
98462 1999-08-02  Jim Meyering  <meyering@ascend.com>
98463
98464         * m4/jm-macros.m4: Add a comment.
98465
98466 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98467
98468         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
98469         <inttypes.h> defines strtoumax as a macro (and not as a
98470         function).
98471
98472 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98473
98474         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
98475         that we can shift, multiply and divide unsigned long long
98476         values; Ultrix cc can't do it.
98477
98478 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98479
98480         * m4/mktime.m4: New file, which is a preview of what should appear
98481         in the next public autoconf release.
98482
98483 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98484
98485         * m4/lfs.m4: Remove this file.
98486         * m4/largefile.m4: New file.  It contains the old contents of
98487         lfs.m4, except that all names with prefix AC_LFS have been
98488         changed to use the prefix AC_SYS_LARGEFILE instead, to be
98489         compatible with future autoconf versions.  Also, some minor m4
98490         quoting problems have been fixed.
98491
98492 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98493
98494         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
98495         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
98496         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
98497         and simplify the shell code.
98498
98499 1999-08-01  Jim Meyering  <meyering@ascend.com>
98500
98501         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
98502         m4.
98503
98504 1999-07-20  Jim Meyering  <meyering@ascend.com>
98505
98506         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
98507
98508 1999-07-15  Jim Meyering  <meyering@ascend.com>
98509
98510         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
98511
98512 1999-05-22  Jim Meyering  <meyering@ascend.com>
98513
98514         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
98515
98516 1999-05-20  Jim Meyering  <meyering@ascend.com>
98517
98518         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
98519         Add a colon after each `then' in case $4 is empty.
98520
98521 1999-05-16  Jim Meyering  <meyering@ascend.com>
98522
98523         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
98524
98525 1999-05-10  Jim Meyering  <meyering@ascend.com>
98526
98527         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
98528
98529         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
98530         AC_FUNC_MKTIME.
98531
98532 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
98533
98534         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
98535
98536 1999-05-04  Paul Eggert  <eggert@twinsun.com>
98537
98538         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
98539         not CPPFLAGS, so that linking works correctly in IRIX.
98540
98541 1999-04-30  Paul Eggert  <eggert@twinsun.com>
98542
98543         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
98544
98545 1999-04-20  Paul Eggert  <eggert@twinsun.com>
98546
98547         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
98548         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
98549         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
98550         jm_AC_TYPE_UNSIGNED_LONG_LONG.
98551         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
98552
98553         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
98554
98555 1999-04-20  Jim Meyering  <meyering@ascend.com>
98556
98557         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
98558         AC_REPLACE xstroull if necessary.  From Paul Eggert.
98559         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
98560
98561 1999-04-18  Jim Meyering  <meyering@ascend.com>
98562
98563         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
98564         * m4/jm-macros.m4: Use it.
98565
98566 1999-04-06  Jim Meyering  <meyering@ascend.com>
98567
98568         * m4/strftime.m4: Remove test for %f.
98569
98570 1999-03-29  Jim Meyering  <meyering@ascend.com>
98571
98572         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
98573         superset of the AC_TYPE_* checks in the textutils, fileutils,
98574         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
98575         AC_TYPE_PID_T.
98576
98577 1999-03-28  Jim Meyering  <meyering@ascend.com>
98578
98579         * m4/jm-macros.m4: Define GNU_PACKAGE here.
98580         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
98581         replaced e.g., in the *.sh files of the sh-utils.
98582
98583 1999-03-20  Jim Meyering  <meyering@ascend.com>
98584
98585         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
98586         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
98587         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
98588
98589 1999-03-19  Jim Meyering  <meyering@ascend.com>
98590
98591         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
98592
98593 1999-03-12  Jim Meyering  <meyering@ascend.com>
98594
98595         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
98596
98597 1999-03-07  Jim Meyering  <meyering@ascend.com>
98598
98599         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
98600         declared.
98601
98602 1999-02-17  Jim Meyering  <meyering@ascend.com>
98603
98604         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
98605         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
98606
98607 1999-02-07  Jim Meyering  <meyering@ascend.com>
98608
98609         * m4/group-member.m4: New file -- extracted from sh-utils'
98610         configure.in.
98611
98612         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
98613         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
98614
98615 1999-02-06  Jim Meyering  <meyering@ascend.com>
98616
98617         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
98618         * m4/fnmatch.m4: Likewise.
98619         * m4/getgroups.m4: Likewise.
98620         * m4/lstat.m4: Likewise.
98621         * m4/malloc.m4: Likewise.
98622         * m4/putenv.m4: Likewise.
98623         * m4/realloc.m4: Likewise.
98624         * m4/regex.m4: Likewise.
98625         * m4/stat.m4: Likewise.
98626         * m4/strftime.m4: Likewise.
98627         Suggestion from Alain Magloire.
98628
98629         * m4/chown.m4: Use `.$ac_objext', not `.o'.
98630         * m4/fnmatch.m4: Likewise.
98631         * m4/getgroups.m4: Likewise.
98632         * m4/getline.m4: Likewise.
98633         * m4/lstat.m4: Likewise.
98634         * m4/malloc.m4: Likewise.
98635         * m4/memcmp.m4: Likewise.
98636         * m4/putenv.m4: Likewise.
98637         * m4/realloc.m4: Likewise.
98638         * m4/regex.m4: Likewise.
98639         * m4/stat.m4: Likewise.
98640         * m4/strftime.m4: Likewise.
98641         Suggestion from Alain Magloire.
98642
98643         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
98644         an argument.
98645
98646         * m4/regex.m4: Add a run-time Test for proper operation of
98647         re_compile_pattern.
98648
98649 1999-01-31  Jim Meyering  <meyering@ascend.com>
98650
98651         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
98652
98653 1999-01-30  Jim Meyering  <meyering@ascend.com>
98654
98655         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
98656
98657         * m4/jm-mktime.m4: Make this a wrapper around the official
98658         AM_FUNC_MKTIME rather than my private copy, now that the official one
98659         is up to date.
98660         * m4/mktime.m4: Remove file.
98661
98662         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
98663         * m4/uptime.m4: Likewise.
98664         * m4/uintmax_t.m4: Likewise.
98665
98666 1999-01-28  Jim Meyering  <meyering@ascend.com>
98667
98668         * m4/jm-macros.m4: Use jm_AFS.
98669         * m4/afs.m4: New file (from fileutils' configure.in).
98670
98671         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
98672         * m4/chown.m4: Likewise.
98673         * m4/d-ino.m4: Likewise.
98674         * m4/d-type.m4: Likewise.
98675         * m4/fnmatch.m4: Likewise.
98676         * m4/getgroups.m4: Likewise.
98677         * m4/gettext.m4: Likewise.
98678         * m4/jm-mktime.m4: Likewise.
98679         * m4/jm-winsz2.m4: Likewise.
98680         * m4/lcmessage.m4: Likewise.
98681         * m4/ls-mntd-fs.m4: Likewise.
98682         * m4/malloc.m4: Likewise.
98683         * m4/memcmp.m4: Likewise.
98684         * m4/putenv.m4: Likewise.
98685         * m4/realloc.m4: Likewise.
98686         * m4/st_mtim.m4: Likewise.
98687         * m4/strftime.m4: Likewise.
98688
98689 1999-01-16  Jim Meyering  <meyering@ascend.com>
98690
98691         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
98692         (ARGMATCH_DIE_DECL): Define.
98693
98694 1999-01-12  Jim Meyering  <meyering@ascend.com>
98695
98696         * m4/Makefile.am.in: Rewrite to avoid using fmt.
98697         Reported by Lars Hecking.
98698
98699 1999-01-10  Jim Meyering  <meyering@ascend.com>
98700
98701         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
98702         gross kludge.
98703         * m4/inttypes_h.m4: Likewise.
98704         * m4/lstat.m4: Likewise.
98705         * m4/malloc.m4: Likewise.
98706         * m4/readdir.m4: Likewise.
98707         * m4/realloc.m4: Likewise.
98708         * m4/st_dm_mode.m4: Likewise.
98709         * m4/stat.m4: Likewise.
98710         * m4/utimbuf.m4: Likewise.
98711         * m4/utimes.m4: Likewise.
98712
98713         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
98714         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
98715         comments in config.h.in are meaningful.
98716
98717         * m4/jm-macros.m4: Require autoconf-2.13 here.
98718
98719         * m4/regex.m4: By default, don't use the included regex.c on systems
98720         with glibc 2.  Suggestion from Uli Drepper.
98721
98722 1999-01-02  Jim Meyering  <meyering@ascend.com>
98723
98724         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
98725
98726 1998-12-18  Jim Meyering  <meyering@ascend.com>
98727
98728         * m4/Makefile.am.in (Makefile.am): Simplify rule.
98729         Based on a suggestion from Lars Hecking.
98730
98731 1998-11-16  Paul Eggert  <eggert@twinsun.com>
98732
98733         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
98734
98735 1998-11-16  Jim Meyering  <meyering@ascend.com>
98736
98737         * m4/lfs.m4: Double-quote the `uname...` expression.
98738
98739 1998-11-14  Jim Meyering  <meyering@ascend.com>
98740
98741         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
98742         * m4/stat.m4: Likewise.
98743
98744 1998-11-03  Jim Meyering  <meyering@ascend.com>
98745
98746         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
98747         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
98748
98749 1998-10-18  Jim Meyering  <meyering@ascend.com>
98750
98751         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
98752
98753 1998-10-17  Jim Meyering  <meyering@ascend.com>
98754
98755         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
98756         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
98757         calls for those previously hard-coded headers.  Instead, take a new
98758         parameter.
98759         (jm_CHECK_DECLARATIONS): Reflect interface change.
98760         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
98761         (jm_CHECK_DECL_LOCALTIME_R): New macro.
98762
98763         * m4/mktime.m4: Test for spring-forward gap before long-running test.
98764
98765 1998-10-14  Jim Meyering  <meyering@ascend.com>
98766
98767         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
98768         instead of "TZ=America/Vancouver".  From Paul Eggert.
98769
98770 1998-10-11  Jim Meyering  <meyering@ascend.com>
98771
98772         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
98773         This adds a test for a recently added compatibility fix for mktime.c.
98774         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
98775
98776 1998-09-27  Jim Meyering  <meyering@ascend.com>
98777
98778         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
98779
98780         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
98781         ../configure.in, including a change from Gordon Matzigkeit to allow
98782         cross-compiling for the Hurd.
98783
98784         * m4/glibc.m4: New file/macro to test for the GNU C Library
98785         versions 1 and 2.  From Gordon Matzigkeit.
98786         Indent.
98787
98788 1998-09-21  Jim Meyering  <meyering@ascend.com>
98789
98790         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
98791
98792 1998-08-18  Paul Eggert  <eggert@twinsun.com>
98793
98794         Port nanosecond-resolution times to UnixWare 2.1.2 and
98795         pedantic Solaris 2.6.
98796
98797         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
98798         AC_STRUCT_ST_MTIM.
98799         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
98800         Generate name of ns member, instead of just 1 or undef.
98801         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
98802
98803 1998-08-15  Jim Meyering  <meyering@ascend.com>
98804
98805         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
98806         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
98807         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
98808         instead of jm_TYPE_SSIZE_T.
98809
98810 1998-08-12  Jim Meyering  <meyering@ascend.com>
98811
98812         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
98813
98814 1998-08-02  Jim Meyering  <meyering@ascend.com>
98815
98816         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
98817         in acconfig.h manually.
98818
98819 1998-07-31  Paul Eggert  <eggert@twinsun.com>
98820
98821         * m4/st_mtim.m4: New file.
98822
98823 1998-07-28  Jim Meyering  <meyering@ascend.com>
98824
98825         * m4/utimes.m4: Undef stat.
98826
98827 1998-07-25  Jim Meyering  <meyering@ascend.com>
98828
98829         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
98830         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
98831
98832 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
98833
98834         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
98835         uid and gid actually remain unchanged.
98836
98837 1998-07-07  Jim Meyering  <meyering@ascend.com>
98838
98839         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
98840
98841 1998-07-04  Jim Meyering  <meyering@ascend.com>
98842
98843         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
98844         to prove that this macro can be used in packages without regex.c.
98845
98846 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
98847
98848         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
98849         is to be used.
98850
98851 1998-07-03  Jim Meyering  <meyering@ascend.com>
98852
98853         * m4/gettext.m4: Add -lintl if it's found to be necessary.
98854
98855         * m4/gettext.m4: New file -- from gettext-0.10.35.
98856         * m4/lcmessage.m4: Likewise.
98857         * m4/progtest.m4: Likewise.
98858
98859         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
98860         * m4/jm-macros.m4: Require the new macro.
98861
98862 1998-06-29  Jim Meyering  <meyering@ascend.com>
98863
98864         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
98865         for the definition of NGROUPS (used in a system header included
98866         by sys/mount.h).
98867
98868 1998-06-28  Jim Meyering  <meyering@ascend.com>
98869
98870         * m4/ls-mntd-fs.m4: New file.
98871         * m4/fstypename.m4: New file.
98872
98873         * m4/jm-macros.m4: Require the new macro.
98874         * m4/jm-glibc-io.m4: New file.
98875
98876 1998-05-19  Jim Meyering  <meyering@ascend.com>
98877
98878         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
98879         * m4/lchown.m4: New file.
98880
98881         * m4/Makefile.am.in: New file.
98882         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
98883
98884 1998-05-14  Jim Meyering  <meyering@ascend.com>
98885
98886         * m4/Makefile.am (EXTRA_DIST): Add them.
98887         * m4/jm-macros.m4: New file.
98888         * m4/utimbuf.m4: New file.
98889
98890 1998-05-12  Jim Meyering  <meyering@ascend.com>
98891
98892         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
98893
98894 1998-05-11  Jim Meyering  <meyering@ascend.com>
98895
98896         * m4/isc-posix.m4: New file.
98897
98898 1998-05-10  Jim Meyering  <meyering@ascend.com>
98899
98900         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
98901
98902 1998-05-09  Jim Meyering  <meyering@ascend.com>
98903
98904         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
98905         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
98906         with automake.
98907
98908         * m4/ssize_t.m4: New file.
98909         * m4/mktime.m4: Remove file -- the new automake has this now.
98910
98911 1998-04-26  Jim Meyering  <meyering@ascend.com>
98912
98913         * m4/assert.m4: New file.
98914         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
98915
98916 1998-04-05  Jim Meyering  <meyering@ascend.com>
98917
98918         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
98919         (jm_PREREQ): Use it here.
98920
98921 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
98922
98923         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
98924         in acconfig.h.
98925
98926 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
98927
98928         * m4/prereq.m4: New file.
98929         * m4/error.m4: New file.
98930         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
98931
98932 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
98933
98934         * m4/getline.m4: Don't set am_cv_func_working_getline before the
98935         cache-check for the same variable -- that defeated the purpose of
98936         the test; the test program was never run.  This was a problem only
98937         on systems with losing getline functions -- HP-UX 10.20 is one.
98938         Reported by Bjorn Helgaas.
98939
98940 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
98941
98942         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
98943
98944 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
98945
98946         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
98947
98948         * m4/const.m4: New file.  Use an initializer in this declaration
98949         typedef int charset[2]; const charset x;
98950         Reported by Bob Glickstein.
98951
98952 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
98953
98954         * m4/chown.m4: Fix reversed types on -1 args to chown.
98955         From Kaveh Ghazi.
98956
98957 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
98958
98959         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
98960         Add lseek and memchr.
98961
98962         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
98963         T.E.Dickey <dickey@clark.net> said that some older preprocessors
98964         have a 20-character limit on names.
98965
98966 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
98967
98968         * m4/inttypes_h.m4: New file.
98969         * m4/uintmax_t.m4: New file.
98970         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
98971
98972
98973         -----
98974
98975         Local Variables:
98976         coding: utf-8
98977         End:
98978
98979         Copyright (C) 1997-2013 Free Software Foundation, Inc.
98980
98981         Copying and distribution of this file, with or without
98982         modification, are permitted provided the copyright notice
98983         and this notice are preserved.